Compare commits

..

489 Commits

Author SHA1 Message Date
Richard Purdie
d4b57c68b2 bitbake: fetch/git: Handle github dropping git:// support
github is dropping support for git protocol in Git urls. Add code to remap
this to https in a way that could be used in older bitbake versions.

(Bitbake rev: af479e239d1e4dc93f0162c5936369a94c1c529d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-03 11:31:54 +00:00
Richard Purdie
c8c383d958 oeqa/runtime_test: Disable test_testimage_virgl_gtk
This test keeps failing on the autobuilder and is proving extremely
annoying. It works much better in later releases but for zeus and
earlier, lets just stop running it as it doesn't really tell us
anything useful at this point, nobody has any plans to improve
the distro exclusions or otherwise fix it in the older releases.

(From OE-Core rev: 856674d6f75e2b99ae961d5ab869ff071ff5c362)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Konrad Weihmann
ba9853a96b cve-update: handle baseMetricV2 as optional
Currently in NVD DB an item popped up, which hasn't set baseMetricV2.
Let the parser handle it as an optional item.
In case use baseMetricV2 before baseMetricV3

(From OE-Core rev: 77f119baf6f4b85194a9b26d8442ddc7fb3bb97c)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Richard Purdie
540b1140a4 selftest/signing: Ensure build path relocation is safe
Similarly to 04ee0e8b95cd8ed890374e0007f976684206b630, ensure only full
build paths are replaced in the environment to avoid breaking buildtools.

(From OE-Core rev: be07d93a4f59d4563f2d064be1997b39f05e9f0e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Richard Purdie
e2b44ea300 maintainers: Add entry for buildtools-extended-tarball
(From OE-Core rev: 4281342a04078990bb0a110760ff2dc053eccc93)

(From OE-Core rev: 665ef4274e0261bb8351c8d4fd2c8496a2dc27e7)

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-09-16 13:34:54 +01:00
Richard Purdie
c3d4bc65d0 python3-testtools: Avoid traceback2 module requirement
traceback2 adds traceback for python2. Rather than depend on traceback2, we're
python3 only so just use traceback.

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

[YOCTO #13652]

(From OE-Core rev: ee80a06c107375e3cf0d246ea17c09dda4536dab)

(From OE-Core rev: ee82e3c24fe5727ce81e972cadedca431d6086c5)

(From OE-Core rev: be4470c9590183b388d9ff176331d0c50984dec8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Richard Purdie
eb2d2f5c11 attr: Disable parallel make install
do_install fails on newer versions of make with interesting and hard to
debug errors. Disablle parallle make install as a workaround. Later verisons
of attr in newer releases don't have the issue.

(From OE-Core rev: 6043b9a2ea879f8960897b11eb947801508a94da)

(From OE-Core rev: f06861bbe402fff3f370687585e43c0270609d00)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Richard Purdie
0c011f61e6 oeqa/selftest: Ensure buildtools in environment variables isn't replaced
This avoids the seeing broken replacements like:
oe-selftest-centos/build/build-st-926tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
which understandably break builds.

(From OE-Core rev: 04ee0e8b95cd8ed890374e0007f976684206b630)

(Cherry-picked from f930e2cadb but adjusted for thud)
(From OE-Core rev: b51a8c390714357713e91d828708c85cf5f68971)

(From OE-Core rev: cf51a1e4447010f927a9e3f4ff5a5c305be0c0c9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Richard Purdie
da3cbaec0d oeqa/testsdk: Use original PATH
We want to test the SDK with PATH from the original host, not with our own
tools injected via HOSTTOOLS. It even uses some tools which aren't in
HOSTTOOLS.

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

(From OE-Core rev: 87c9602fd0dedc7bcf75b822aaf5f6ebfc17737c)

(From OE-Core rev: de3f405b6cf96311ced86bccf7202370e4d1481a)

(From OE-Core rev: aad4b41c49b1a63a767150a3451e10d15e8bcf31)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Khem Raj
35a9c47e21 uninative: Upgrade to 2.9
This supports glibc upto 2.32 which is now rolling into distributions

(From OE-Core rev: 622371678ddb013fc456eaf75def26fc4e142d15)

(From OE-Core rev: 4543eeacd65eebe74ff3a44182915a732ba26e47)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Jeremy Puhlman
026eb4b8fa buildtools-extended-tarball: add nativesdk-libxcrypt-dev
virtual/crypt-native is assume provided in bitbake.conf, so
buildtools-extended-tarball shoud provide crypt since it doesn't
use the host's headers/libraries.

[YOCTO #13714]

(From OE-Core rev: da948b25d5ef452fb35275d108e18d2a2829f4fb)

(From OE-Core rev: bc42406d83310398bc4d4db4244252411eff117d)

(From OE-Core rev: 6f6d7278358b042aca3e911aefd0d6128480f32d)

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Richard Purdie
ee0e39fae3 glibc: Update nativesdk locale relocation patch
The locale binary reported incorrect locale lists in relocated toolchains
as some path references were not relocated by this patch. Fix this missing
relocations so the locale binary correctly reports the locales.

(From OE-Core rev: f7a6a72880009380ae81bc7fc863921a26811c8c)

(From OE-Core rev: e4c4337e642f565e9988a4a2c50a995090d1f49e)

(From OE-Core rev: c9e8b7a40b2628331c7cb564aa3f3d9e1822fe36)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Jeremy Puhlman
70219a2ecc buildtools-tarball: add nativesdk-python
(From OE-Core rev: 6467eb4461f3cab16cab2ba63154c92fc2adacef)

(From OE-Core rev: 848c61a07f691638fa529bbe0f0ff1dfded4a967)

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Steve Sakoman
4377d2831c buildtools-tarball: export OPENSSL_CONF in environment setup
The autobuilder has been experiencing SSL: CERTIFICATE_VERIFY_FAILED
errors during error report uploads when using buildtools due to looking
for certs in /opt/poky

(From OE-Core rev: 197f1d5d14b8e57295f5a81c03c86abba5328614)

(From OE-Core rev: 35c6ab2501672083cf8b974d8b9c3daa3202de36)

(From OE-Core rev: 0cb479a5e99289b75e89b2ed5058f33605f15936)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Liwei Song
6a5e46a9ee buildtools-tarball: export OPENSSL_CONF for openssl
export OPENSSL_CONF to aviod SDK openssl can not find openssl.cnf.

(From OE-Core rev: 0aaf3dd17dcde959e9c0d62543cb91c9b33551b4)

(From OE-Core rev: 63d8569b2c9f66e8123e2672a7f8fb8e7cc1f0b4)

(From OE-Core rev: e733a5f3b0e3c3b8a830db5ae99b3fc6b7e56921)

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Jeremy Puhlman
c2fa5fbdb3 buildtools-extended-tarball: Add libstc++.a
Builds like native-openjdk, really wants a to link
some tools against the static version. Since when
using the extended tarball, its the only place to
get it, add the library.

(From OE-Core rev: 59c4a3fdbbfd5a6aaba7e0a1675dcd5866a7f3a4)

(From OE-Core rev: 152709dec03bbac582ca63b65f2efb835e0b33fb)

(From OE-Core rev: 5e3664e5f9a0dde07b0f8a56cdce1321456abaa5)

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:54 +01:00
Tim Orling
fff78b4548 nativesdk-buildtools-perl-dummy: add dependencies for autoconf and automake
* For buildtools-extended-tarball, where we are adding all of build-essentials
  to the nativesdk, we need additional perl modules for autoconf and automake.

(From OE-Core rev: f0f766160663407ea7683d31bbf5f011accc9ba2)

(From OE-Core rev: e7ade58a7da52ebb40120020dd86dd3ae9b2148e)

(From OE-Core rev: ed9d60fb5d471b4ec472088cc9307fd8575b187a)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:53 +01:00
Richard Purdie
e579b30f08 buildtools-extended-tarball: Add locale command
The eSDK installation code checks installed locales with the locale command which is
from glibc-utils. Add this so that we find the correct locales from the buildtools.

(From OE-Core rev: 7d35e4bc6ff94a2d03c48827d7d60a6855c9029d)

(From OE-Core rev: d99b6432decec0964ac0e08698abc782c9b114f5)

(From OE-Core rev: 3562a6848aa3e866ad8e2d3caed3211971817234)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:53 +01:00
Richard Purdie
9d28748d85 files/toolchain-shar-extract.sh: Rework PATH cleaning
Trying to create a clean PATH breaks cases where we install a buildtools tarball
on hosts to provide newer versions of gcc. Rework the fix for #8698 to clean up
directories in PATH which don't exist isntead. Do it with python as the shell
version was too fraught with corner cases.

(From OE-Core rev: 7674b63819aa7ca95ca5ca5477a5cce32e9691eb)

(From OE-Core rev: 9825236deacf6eb311121d233435a46288c02cdb)

(From OE-Core rev: dac6cc21bbd29e55399b71a3e359a935776118de)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:53 +01:00
Richard Purdie
ddfd5cf2ae binutils: Install non-alternatives links for nativesdk
In the SDK we need the plain symlinks and don't use alternative providers.
When these are missing the toolchain can work incorrectly so fix this.

(From OE-Core rev: 0c06cfaa016d06cc56d80dc1c244a938f3d38a3c)

(From OE-Core rev: 0d299c5dc04407d2d54574157f4014f50f2d0468)

(From OE-Core rev: aa37b5fe0620122e47f36165f5c7a07d3328dba3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:53 +01:00
Richard Purdie
b59770a314 binutils: Fix relocation of ld.so.conf in nativesdk builds
We need binutils to look at our ld.so.conf file within the SDK to ensure
we search the SDK's libdirs as well as those from the host system.

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

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

(From OE-Core rev: f6c1089642934ad93056ef19a0888965486ee030)

(From OE-Core rev: 09a2b16ac2bd1e3e415131e46315c851373aa7e0)

(From OE-Core rev: d0b7811b0e8654cf83d1b0f8256c7941fc3d9c41)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:53 +01:00
Richard Purdie
2154313834 buildtools-tarball: Add an ld.so.conf for nativesdk-binutils
We need to search our own libdirs, then fall back to the system ones as our
customised dynamic loader will. Have ld.so.conf reflect that.

This ensures that binutils finds libraries here when linking too.

(From OE-Core rev: ab729c362684474a8346e5256d636200826feb47)

(From OE-Core rev: 8de0aee6befc0541fa40563f63dfe1cc36f064fe)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:53 +01:00
Tim Orling
81c97859db buildtools-extended-tarball: add recipe with build-essentials
* For some aging distros, such as CentOS 7, the native version
  of gcc is simply too ancient and is a constant source of
  headaches for moving forward.

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

Fixes [YOCTO #13714]

(From OE-Core rev: f0377af2325613b63716b0bb4db1ab253d79f388)

(From OE-Core rev: bb4979f0e8367b475cc9a5274933a61bb0eb64b3)

(From OE-Core rev: f492e172e133a4b52dbe818d806cab783204e575)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-16 13:34:53 +01:00
Richard Purdie
d588ff814d bitbake: tests/fetch: Allow wget upgrade tests to run against a local server
Currently these tests rely upon multiple uptream webservers which may change
or be unavailable. Add local copies of the test data, copy the httpserver
from OE-Core (used for testing there) and run these tests against a local
server instead.

(Bitbake rev: b4860b292406698f3c8af9a3708a09df21c96300)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-09 09:44:49 +01:00
Richard Purdie
b65fc3d950 bitbake: fetch2: Change git fetcher not to destroy old references
It looks like we're about to see a lot of changes in branch names in repos. If
we have the prune option here, those old names are lost, the changes propagate
to our source mirrors and our old releases break.

We have the force option so any replaced references should be replaced, its only
orphaned branches which will now be preserved.

I believe this behaviour will cause us fewer problems given the changes that
look likely to happen.

(Bitbake rev: 4c7e0352c56dc956fc19439713e8dce9f6248c86)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-08 14:46:09 +01:00
Richard Purdie
5ea39eac95 bitbake: tests/fetch: Switch from git.infradead.org to a YP mirror
Upstream is unavailable, breaking tests. Switch to a YP mirror since
if we can't reach that there are bigger problems. This should remove
a source of intermittent failures on the autobuilder.

(Bitbake rev: 417f635fca1aa2484c7ccba9ffbbfe9601d41d66)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-07-02 16:11:35 +01:00
Richard Purdie
f65b24e9ca build-appliance-image: Update to warrior head revision
(From OE-Core rev: db3ce703d03b18e8a4120969d32ff7f344f34fe9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-27 07:34:50 +01:00
Martin Jansa
ba1fb60b39 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: eaa6de34442906ad6285aa069f17a7cb2a64e970)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-27 07:34:34 +01:00
Richard Purdie
f260626c4c build-appliance-image: Update to warrior head revision
(From OE-Core rev: bcd9ae6fbb2258787bdea260fed5663791353f5a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-26 23:17:14 +01:00
Richard Purdie
e3c96710c1 poky.conf: Bump version for 2.7.4 warrior release
(From meta-yocto rev: e16269fae87b674a686c96488daa2120f0ea8ba7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-26 23:17:05 +01:00
Lee Chee Yang
29b5805c62 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: 1d06fedf46c8f67fccde7a00d7199d7052c33b30)

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-05-22 16:23:30 +01:00
Jan Luebbe
bb9075fb41 openssl: upgrade 1.1.1f -> 1.1.1g
This also fixes CVE-2020-1967.

(From OE-Core rev: 620d69e7ad0d0c40ecd135e48f96aaf368c7f242)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
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-05-22 16:23:30 +01:00
Alexander Kanavin
567cd6ee9c openssl: update to 1.1.1f
This also un-breaks python3 ptest which got broken
with 1.1.1e update.

(From OE-Core rev: c74958fe05db584289ee560584190b3a0b25155d)

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-05-22 16:23:30 +01:00
Adrian Bunk
0c6a8b5ef3 openssl: Upgrade 1.1.1d -> 1.1.1e
Backported patch removed.

(From OE-Core rev: 4dc340d63d29e632c8402342cf4b66a41c9c5f93)

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-05-22 16:23:30 +01:00
Denys Dmytriyenko
d40a1892a9 openssl: recommend cryptodev-module for corresponding PACKAGECONFIG
(From OE-Core rev: 5de53272951bfc3c8c73bd09fd0b296e2ffff322)

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-05-22 16:23:29 +01:00
Richard Purdie
363b349e66 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: 4a8d927dc3ef569830c417d46e5d0a0318a69cde)

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-05-22 16:23:29 +01:00
Adrian Bunk
8b3e2a5427 python: Upgrade 2.7.17 -> 2.17.18
LICENSE checksum changed due to 2019 -> 2020 update.

(From OE-Core rev: 65ab890bbdd5b104867d80b721be117a9d269aff)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
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-05-22 16:23:29 +01:00
Adrian Bunk
8fef2e0d66 git: Upgrade 2.20.1 -> 2.20.4
This includes the fixes for CVE-2020-5260 and CVE-2020-11008.

(From OE-Core rev: fe5aee43db25f622f4cbacc69765f94eca51395c)

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-22 16:23:29 +01:00
akuster
f0b1dc4816 Documenation: Prepared for the 2.7.4 release
(From yocto-docs rev: 3fd1432890f04fd659952c0f20f5750fb8c3a909)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-17 22:35:46 +01:00
Michael Halstead
274e8c50ee 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: ae341aed81be28232cc34daf4684bc0922f17699)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ccb374c279b260b1fd3460f6bfd1567240816055)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 2da4ee30335d0b127b79a6eedad68c8559606c57)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Adrian Bunk
9ccd3a2b1f 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: 2af49cebd669bd2992d57a586e2a06bbad09e945)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Anuj Mittal
4417758540 gnupg: upgrade 2.2.16 -> 2.2.17
Also fixes CVE-2019-13050. Announcement:

https://lists.gnupg.org/pipermail/gnupg-announce/2019q3/000439.html

(From OE-Core rev: c6e46323f0d62daf8bd424e642581fdcba920ef7)

(From OE-Core rev: ae33f509d753821111bb6b30343b02b37d996339)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Zang Ruochen
5901e08156 gnupg: upgrade 2.2.15 -> 2.2.16
(From OE-Core rev: 825be9d66ae9f503f1dd2dce0fac530554057613)

(From OE-Core rev: bb12f99a5bce3fcee1ef36406197231723647a8d)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Oleksandr Kravchuk
0b55331e63 gnupg: update to 2.2.15
(From OE-Core rev: e60b3994d4bc282191302e1fd9b7d2106ee2f6cb)

(From OE-Core rev: 431bd084f71f9479c2ff9f37237799ad1f02d289)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Adrian Bunk
f12e9bf505 openssl10: Upgrade 1.0.2r -> 1.0.2u
(From OE-Core rev: a691b1e072805b4d2c6fe81554f5e95739a912b5)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Adrian Bunk
9ff9734084 openssl10: Add CVE_PRODUCT
(From OE-Core rev: 718294820ddfaf408a70b9005e05829371d9c93d)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Adrian Bunk
85a317dbcc systemd: Backport the CVE-2019-20386 fix
(From OE-Core rev: 891200e728c520a02f24028e7d430a4a7e3c20fd)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Anuj Mittal
aaf587913d 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: bdd978f8f68e24dd35e2c19b46cbe71b06e4fe42)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Anuj Mittal
548ff21524 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: f454e207eac6fb85eb217554e13c2d3e69f41522)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Yi Zhao
37a64657e6 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: 4ea1d88702d422d4eff5c78698a123563bda4138)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Anuj Mittal
b0cb5deb86 ncurses: add CVE_VERSION
Include the version number in a format that is comparable to what we get
from NVD.

(From OE-Core rev: 359c199634ef82d2b406858b8b71672058f76290)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Lee Chee Yang
b83baaf23d libxml2: Fix CVE-2019-20388
see:
https://gitlab.gnome.org/GNOME/libxml2/merge_requests/68

(From OE-Core rev: 6c4477563bc418ec215671d6960e6e8d6bdd074b)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Anuj Mittal
ca1f518147 libxml2: fix CVE-2020-7595
(From OE-Core rev: 4a031a9b14c36d7aa4599933a4f0769b83511325)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Qi.Chen@windriver.com
b569007b7b sqlite3: fix CVE-2019-16168
(From OE-Core rev: 8d663da7e5fad8dd936fbefeba67db6e0e356975)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Ross Burton
ee276e50e5 libsoup: set CVE_PRODUCT
(From OE-Core rev: 5aa78e651ddef8a19768fa713993568cd3cc2a13)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Anuj Mittal
c3a32fdace boost: fix build for x32
Commit: d336110b94 boost: update to 1.67.0

dropped the patch that ensured boost doesn't over-ride the architecture flags
set by us resulting in errors:

| build/tmp/work/x86_64_x32-poky-linux-gnux32/boost/1.69.0-r0/recipe-sysroot/usr/include/bits/long-double.h:44:10: fatal error: bits/long-double-64.h: No such file or directory
| #include <bits/long-double-64.h>
|          ^~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.

Remove the relevant part from gcc.jam again to ensure we are passing
them correctly again.

Fixes [YOCTO #13598]

(From OE-Core rev: aad28f42b1c8aa1335c040630ebff4a69be07e35)

(From OE-Core rev: 1cfd56ebdbcbab4ded1b0ea3c4bc44d3e83a9288)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ebbfe23acfbc820ad7b71c95539b5af97a8be49d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Anuj Mittal
19efe1272f openssh: backport patch to fix "cert not yet valid" test
Fixes [YOCTO #13796]

(From OE-Core rev: f830a6df31b4232e2a481c2c27148ff70ebb0a13)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
[Fix up for warrior context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-09 00:07:12 +01:00
Daisuke Yamane
4c773c7b03 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: 7f7126211170439ac1d7d72e980786ce0edb7bb7)

Signed-off-by: Daisuke Yamane <daisuke.yamane@cybertrust.co.jp>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-06 17:25:34 +00:00
Richard Purdie
f475afc5df build-appliance-image: Update to warrior head revision
(From OE-Core rev: ca019eec1304ca2a400ea744c0eaafe0a766d5d1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 10:35:31 +00:00
Richard Purdie
83e9841bb8 poky.conf: Bump version for 2.7.3 warrior release
(From meta-yocto rev: 2f71279fc293cf18fb2362fab3acea27510e5078)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:06 +00:00
akuster
654f95f55e Documenation: Prepared for the 2.7.3 release
(From yocto-docs rev: a06e6bdf1d8f133dfaf6dad9c49be24f688799c4)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:06 +00:00
Samuli Piippo
f63d96fd71 linux-firmware: update packaging for brcm files
Add new package for bcm4366c and include available NVRAM config files
into the corrent bcm* packages.

(From OE-Core rev: 8063a1277433c58a9df43f0185bb89c79f865aa9)

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 957c3d39b63f57d896ee89d727007ac2ce6672e3)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:06 +00:00
Otavio Salvador
b15fdc2b68 linux-firmware: Upgrade 20190618 -> 20190815
License-Update:
- WHENCE: New firmware files additions and version updates

(From OE-Core rev: 34428eca5f845293b648801bf61957afd249b315)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit b4c8f2f139d0eeb2ebef3dc5f8309486afdea3d4)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:06 +00:00
Oleksandr Kravchuk
cfb1aa0300 linux-firmware: add PE back
Add PE (package epoch) from the previous version of the recipe to avoid
problems with package upgrade due to changed versioning scheme.

See:
http://lists.openembedded.org/pipermail/openembedded-core/2019-August/285633.html

(From OE-Core rev: b1433f396f32c78d6be5633653541ff6375d5220)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8b6ec55da696087c8ea7bacc042307ee652afd9e)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:06 +00:00
Oleksandr Kravchuk
58ded66418 linux-firmware: bump to 20190618
(From OE-Core rev: 1c16c37e907f4712f40aa70d62c6a526e5228195)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4cbb7392c729a2436c26308c2320fdae5c450d7a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:06 +00:00
Zang Ruochen
10439ba4d3 timezone:upgrade 2019b -> 2019c
-tzdata : upgrade from 2019b to 2019c.

-tzcode-native : upgrade from 2019b to 2019c.

-tzdata.bb and tzcode-native.bb require timezone.inc.

(From OE-Core rev: 0d58f5a01c7d49765d66a7e2d73eef0adb868eac)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit c5a382429d18642d35d40a4df6a58b971c724603)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Armin Kuster
32b6a00b5a timezone: update to 2019b
Briefly:
  Brazil no longer observes DST.
  'zic -b slim' outputs smaller TZif files; please try it out.
  Palestine's 2019 spring-forward transition was on 03-29, not 03-30.

Changes to future timestamps

  Brazil has canceled DST and will stay on standard time indefinitely.
  (Thanks to Steffen Thorsen, Marcus Diniz, and Daniel Soares de
  Oliveira.)

  Predictions for Morocco now go through 2087 instead of 2037, to
  work around a problem on newlib when using TZif files output by
  zic 2019a or earlier.  (Problem reported by David Gauchard.)

Changes to past and future timestamps

  Palestine's 2019 spring transition was 03-29 at 00:00, not 03-30
  at 01:00.  (Thanks to Sharef Mustafa and Even Scharning.)  Guess
  future transitions to be March's last Friday at 00:00.

Changes to past timestamps

  Hong Kong's 1941-06-15 spring-forward transition was at 03:00, not
  03:30.  Its 1945 transition from JST to HKT was on 11-18 at 02:00,
  not 09-15 at 00:00.  In 1946 its spring-forward transition was on
  04-21 at 00:00, not the previous day at 03:30.  From 1946 through
  1952 its fall-back transitions occurred at 04:30, not at 03:30.
  In 1947 its fall-back transition was on 11-30, not 12-30.
  (Thanks to P Chan.)

Changes to past time zone abbreviations

  Italy's 1866 transition to Rome Mean Time was on December 12, not
  September 22.  This affects only the time zone abbreviation for
  Europe/Rome between those dates.  (Thanks to Stephen Trainor and
  Luigi Rosa.)

Changes affecting metadata only

  Add info about the Crimea situation in zone1970.tab and zone.tab.
  (Problem reported by Serhii Demediuk.)

Changes to code

  zic's new -b option supports a way to control data bloat and to
  test for year-2038 bugs in software that reads TZif files.
  'zic -b fat' and 'zic -b slim' generate larger and smaller output;
  for example, changing from fat to slim shrinks the Europe/London
  file from 3648 to 1599 bytes, saving about 56%.  Fat and slim
  files represent the same set of timestamps and use the same TZif
  format as documented in tzfile(5) and in Internet RFC 8536.
  Fat format attempts to work around bugs or incompatibilities in
  older software, notably software that mishandles 64-bit TZif data
  or uses obsolete TZ strings like "EET-2EEST" that lack DST rules.
  Slim format is more efficient and does not work around 64-bit bugs
  or obsolete TZ strings.  Currently zic defaults to fat format
  unless you compile with -DZIC_BLOAT_DEFAULT=\"slim\"; this
  out-of-the-box default is intended to change in future releases
  as the buggy software often mishandles timestamps anyway.

  zic no longer treats a set of rules ending in 2037 specially.
  Previously, zic assumed that such a ruleset meant that future
  timestamps could not be predicted, and therefore omitted a
  POSIX-like TZ string in the TZif output.  The old behavior is no
  longer needed for current tzdata, and caused problems with newlib
  when used with older tzdata (reported by David Gauchard).

  zic no longer generates some artifact transitions.  For example,
  Europe/London no longer has a no-op transition in January 1996.

Changes to build procedure

  tzdata.zi now assumes zic 2017c or later.  This shrinks tzdata.zi
  by a percent or so.

Changes to documentation and commentary

  The Makefile now documents the POSIXRULES macro as being obsolete,
  and similarly, zic's -p POSIXRULES option is now documented as
  being obsolete.  Although the POSIXRULES feature still exists and
  works as before, in practice it is rarely used for its intended
  purpose, and it does not work either in the default reference
  implementation (for timestamps after 2037) or in common
  implementations such as GNU/Linux (for contemporary timestamps).
  Since POSIXRULES was designed primarily as a temporary transition
  facility for System V platforms that died off decades ago, it is
  being decommissioned rather than institutionalized.

  New info on Bonin Islands and Marcus (thanks to Wakaba and Phake
  Nick).

(From OE-Core rev: 1d1dcea1d2de02cb49950235586adbe4593f0eb7)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bbbb985808e5c301cdb7fdb1ff677706e99b4785)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Armin Kuster
31fdfbe48e python2: add ntpath
python3 has this but python is missing this.
[Yocto #13740]

(From OE-Core rev: 3e69681857b88be44797d1d302b9e44a46a7634d)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit af41a2238beec0c34c1c1e5f25eed55f2a214643)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Bruce Ashfield
5e1a04eaef 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: fca2e866289cec99eaf65db4038d5473a34b7b57)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit 064811c18fe26c7d9bc84f86047325e25e2a1001)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 7e944cca62851689f9ddf8a5308ee3331f763957)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Bruce Ashfield
1b51a30102 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: 69844300d3c547739cb1c3404c7b5ff74ed67d86)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit e23a86fa40be2e1dfe50baeebe787e98f793cc5b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 8a36666265002805134cc3786c0e81bc709d8d10)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Bruce Ashfield
62f8d7ef37 linux-yocto/4.19: update to v4.19.78
Updating linux-yocto/4.19 to the latest korg -stable release that comprises
the following commits:

    58fce2064530 Linux 4.19.78
    5b0446c8e0a8 9p/cache.c: Fix memory leak in v9fs_cache_session_get_cookie
    d85bc11a6894 kexec: bail out upon SIGKILL when allocating memory.
    c8a65ec0602a NFC: fix attrs checks in netlink interface
    1b42503211ca smack: use GFP_NOFS while holding inode_smack::smk_lock
    ef9744a0218f Smack: Don't ignore other bprm->unsafe flags if LSM_UNSAFE_PTRACE is set
    4703593498d3 soundwire: fix regmap dependencies and align with other serial links
    322753c78d1d soundwire: Kconfig: fix help format
    74e2a311a226 sch_cbq: validate TCA_CBQ_WRROPT to avoid crash
    ed9420ddce87 tipc: fix unlimited bundling of small messages
    a1afd826e549 xen-netfront: do not use ~0U as error return value for xennet_fill_frags()
    36a4043c4bb8 net/rds: Fix error handling in rds_ib_add_one()
    012363f5ded0 udp: only do GSO if # of segs > 1
    5c08d7e4f1ea net: dsa: rtl8366: Check VLAN ID and not ports
    3c1f0704401c vsock: Fix a lockdep warning in __vsock_release()
    544aee546174 udp: fix gso_segs calculations
    79fd59ae7c2f sch_dsmark: fix potential NULL deref in dsmark_init()
    76b552775d60 rxrpc: Fix rxrpc_recvmsg tracepoint
    7047aae65456 qmi_wwan: add support for Cinterion CLS8 devices
    dd9c580a6d9b nfc: fix memory leak in llcp_sock_bind()
    d5b1db1c7ce4 net: Unpublish sk from sk_reuseport_cb before call_rcu
    9d0995cc268b net: qlogic: Fix memory leak in ql_alloc_large_buffers
    124b64feafa9 net: ipv4: avoid mixed n_redirects and rate_tokens usage
    6f8564edf8c1 ipv6: Handle missing host route in __ipv6_ifa_notify
    658d7ee4da50 ipv6: drop incoming packets having a v4mapped source address
    a495fd19cce2 hso: fix NULL-deref on tty open
    7f30c44b7ca4 erspan: remove the incorrect mtu limit for erspan
    2b8389112292 cxgb4:Fix out-of-bounds MSI-X info array access
    ed568ca73601 bpf: fix use after free in prog symbol exposure
    dbb7339cfddf block: mq-deadline: Fix queue restart handling
    af10ffa69b06 arm: use STACK_TOP when computing mmap base address
    f91a9c6591c0 arm: properly account for stack randomization and stack guard gap
    53ba8d4358eb mips: properly account for stack randomization and stack guard gap
    e1b391abbfce arm64: consider stack randomization for mmap base only when necessary
    30ab799e758e kmemleak: increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K
    52132ff52cad ocfs2: wait for recovering done after direct unlock request
    d4a546452dcc kbuild: clean compressed initramfs image
    d983182d4002 crypto: hisilicon - Fix double free in sec_free_hw_sgl()
    22c788ba7a52 hypfs: Fix error number left in struct pointer member
    bbd76d9514c7 pktcdvd: remove warning on attempting to register non-passthrough dev
    0840daeea6cb fat: work around race with userspace's read via blockdev while mounting
    297904ea60a3 ARM: 8903/1: ensure that usable memory in bank 0 starts from a PMD-aligned address
    9a87ab2b4d60 security: smack: Fix possible null-pointer dereferences in smack_socket_sock_rcv_skb()
    69a32a7306dd PCI: exynos: Propagate errors for optional PHYs
    1264d2e7b75b PCI: imx6: Propagate errors for optional regulators
    403d6c9284f1 PCI: histb: Propagate errors for optional regulators
    ac9c0e2ecc49 PCI: rockchip: Propagate errors for optional regulators
    709c4841e51f HID: apple: Fix stuck function keys when using FN
    31e98cba55ed rtc: pcf85363/pcf85263: fix regmap error in set_time
    607f95788fa9 rtc: snvs: fix possible race condition
    078937549f47 ARM: 8875/1: Kconfig: default to AEABI w/ Clang
    3039c788d648 soundwire: intel: fix channel number reported by hardware
    6a684e002561 ARM: 8898/1: mm: Don't treat faults reported from cache maintenance as writes
    0f0ced702d53 livepatch: Nullify obj->mod in klp_module_coming()'s error path
    78a1138672af HID: wacom: Fix several minor compiler warnings
    3b7fbbddeb7a PCI: tegra: Fix OF node reference leak
    c74a801ded7d mfd: intel-lpss: Remove D3cold delay
    70bb4bf9fdfb i2c-cht-wc: Fix lockdep warning
    371077ea2e75 MIPS: tlbex: Explicitly cast _PAGE_NO_EXEC to a boolean
    3ed14a8d2fe7 MIPS: Ingenic: Disable broken BTB lookup optimization.
    5b400fed74df ext4: fix potential use after free after remounting with noblock_validity
    81fbd2327c32 dma-buf/sw_sync: Synchronize signal vs syncpt free
    c76e18970d93 scsi: core: Reduce memory required for SCSI logging
    c6304d4d7458 clk: sprd: add missing kfree
    7cd89b8db60c mbox: qcom: add APCS child device for QCS404
    324b0c9efc77 powerpc: dump kernel log before carrying out fadump or kdump
    72884423e77f clk: at91: select parent if main oscillator or bypass is enabled
    952d1c6d7cf0 arm64: fix unreachable code issue with cmpxchg
    b25bd837a637 pinctrl: meson-gxbb: Fix wrong pinning definition for uart_c
    b717a47dd913 powerpc/pseries: correctly track irq state in default idle
    ae089bf87c57 clk: qcom: gcc-sdm845: Use floor ops for sdcc clks
    2c16f72135fb pstore: fs superblock limits
    0c09b02842b8 powerpc/64s/exception: machine check use correct cfar for late handler
    39b6d05169b2 drm/amdgpu/si: fix ASIC tests
    4dcbca872a84 drm/amd/display: support spdif
    38dfc974f322 clk: renesas: cpg-mssr: Set GENPD_FLAG_ALWAYS_ON for clock domain
    0b5ac607db4b clk: renesas: mstp: Set GENPD_FLAG_ALWAYS_ON for clock domain
    2cfb89832179 pinctrl: amd: disable spurious-firing GPIO IRQs
    274d7acb0b81 drm/nouveau/volt: Fix for some cards having 0 maximum voltage
    9b2d2f2ad003 vfio_pci: Restore original state on release
    c1f7b3fb87cf powerpc/eeh: Clear stale EEH_DEV_NO_HANDLER flag
    b2df456c83e3 pinctrl: tegra: Fix write barrier placement in pmx_writel
    4c91e678d27c powerpc/pseries/mobility: use cond_resched when updating device tree
    6d728a172732 powerpc/futex: Fix warning: 'oldval' may be used uninitialized in this function
    6aa455b0d0a0 powerpc/rtas: use device model APIs and serialization during LPM
    25c501f0f9d9 powerpc/xmon: Check for HV mode when dumping XIVE info from OPAL
    2cca24b2cb9a clk: zx296718: Don't reference clk_init_data after registration
    efa0fe4cde05 clk: sprd: Don't reference clk_init_data after registration
    89dc59fb267d clk: sirf: Don't reference clk_init_data after registration
    bd3a445c2717 clk: actions: Don't reference clk_init_data after registration
    437399ed906a powerpc/powernv/ioda2: Allocate TCE table levels on demand for default DMA window
    782a77f2eb39 drm/amd/display: reprogram VM config when system resume
    24ba84ec0016 drm/amd/display: fix issue where 252-255 values are clipped
    efb0e1e3d0e1 clk: sunxi-ng: v3s: add missing clock slices for MMC2 module clocks
    a2279550f7be clk: qoriq: Fix -Wunused-const-variable
    84038a98b904 ipmi_si: Only schedule continuously in the thread in maintenance mode
    b351726bb5be PCI: rpaphp: Avoid a sometimes-uninitialized warning
    0936c46139cb gpu: drm: radeon: Fix a possible null-pointer dereference in radeon_connector_set_property()
    6e03bca91f8e drm/radeon: Fix EEH during kexec
    441c15582338 drm/rockchip: Check for fast link training before enabling psr
    f3d62177dee3 drm/panel: check failure cases in the probe func
    9cb3698dcc86 drm/stm: attach gem fence to atomic state
    043f0229f442 video: ssd1307fb: Start page range at page_offset
    bd5b6a7c89ef drm/panel: simple: fix AUO g185han01 horizontal blanking
    db472be8b340 drm/bridge: tc358767: Increase AUX transfer length limit
    053d0ec61e33 tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations
    d598712712e4 tpm: use tpm_try_get_ops() in tpm-sysfs.c.
    6cad9d0cf87b Linux 4.19.77
    2c60da90ec44 drm/amd/display: Restore backlight brightness after system resume
    4d8bdf7f3a86 mm/compaction.c: clear total_{migrate,free}_scanned before scanning a new zone
    5bead06b3443 fuse: fix deadlock with aio poll and fuse_iqueue::waitq.lock
    bbe3e2056d27 md/raid0: avoid RAID0 data corruption due to layout confusion.
    4290a9e59323 CIFS: Fix oplock handling for SMB 2.1+ protocols
    a3a150895b6f CIFS: fix max ea value size
    a0f7fd38acf5 i2c: riic: Clear NACK in tend isr
    fec38267a2bf hwrng: core - don't wait on add_early_randomness()
    060986096fea quota: fix wrong condition in is_quota_modification()
    091c754d5ca9 ext4: fix punch hole for inline_data file systems
    775e3e734bd3 ext4: fix warning inside ext4_convert_unwritten_extents_endio
    caa6926d94f1 /dev/mem: Bail out upon SIGKILL.
    bd3a11af1bde cfg80211: Purge frame registrations on iftype change
    5dc86e9574a1 md: only call set_in_sync() when it is expected to succeed.
    598a2cda62d3 md: don't report active array_state until after revalidate_disk() completes.
    e8323e0ddce1 md/raid6: Set R5_ReadError when there is read failure on parity disk
    bacff03bb286 Btrfs: fix race setting up and completing qgroup rescan workers
    b5c42ef09df3 btrfs: qgroup: Fix reserved data space leak if we have multiple reserve calls
    c521bfa8e2dc btrfs: qgroup: Fix the wrong target io_tree when freeing reserved data space
    067f82a05c2f btrfs: Relinquish CPUs in btrfs_compare_trees
    b08344be3546 Btrfs: fix use-after-free when using the tree modification log
    4874c6fe1c9e btrfs: fix allocation of free space cache v1 bitmap pages
    934243a72849 ovl: filter of trusted xattr results in audit
    e7265adc0a3c ovl: Fix dereferencing possible ERR_PTR()
    2e96c9332595 smb3: allow disabling requesting leases
    82652c06f976 block: fix null pointer dereference in blk_mq_rq_timed_out()
    db5b2fe4d33c i40e: check __I40E_VF_DISABLE bit in i40e_sync_filters_subtask
    b4a734a529b8 memcg, kmem: do not fail __GFP_NOFAIL charges
    d40b3eafb52e memcg, oom: don't require __GFP_FS when invoking memcg OOM killer
    e0c1e6e55bca gfs2: clear buf_in_tr when ending a transaction in sweep_bh_for_rgrps
    3620b06b1db0 efifb: BGRT: Improve efifb_bgrt_sanity_check
    c4f65c2fb0f5 regulator: Defer init completion for a while after late_initcall
    3784576fc639 alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP
    174bbcc560cc arm64: dts: rockchip: limit clock rate of MMC controllers for RK3328
    8cfe3b8aa3b6 arm64: tlb: Ensure we execute an ISB following walk cache invalidation
    fc7d6bfdd774 Revert "arm64: Remove unnecessary ISBs from set_{pte,pmd,pud}"
    881edc165b8e ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up
    2209279439a1 ARM: samsung: Fix system restart on S3C6410
    ad884155fb9c ASoC: Intel: Fix use of potentially uninitialized variable
    7bdab36455f9 ASoC: Intel: Skylake: Use correct function to access iomem space
    3c54f463402f ASoC: Intel: NHLT: Fix debug print format
    29ecf8cae5f4 binfmt_elf: Do not move brk for INTERP-less ET_EXEC
    02ef5c299d15 media: don't drop front-end reference count for ->detach
    589ca8ec4c62 media: sn9c20x: Add MSI MS-1039 laptop to flip_dmi_table
    496cf984a60e KVM: x86: Manually calculate reserved bits when loading PDPTRS
    933e3e2b5070 KVM: x86: set ctxt->have_exception in x86_decode_insn()
    9723e4458604 KVM: x86: always stop emulation on page fault
    8225db4a70b2 parisc: Disable HP HSC-PCI Cards to prevent kernel crash
    ad41162974c6 fuse: fix missing unlock_page in fuse_writepage()
    ecfe4b5f70c8 powerpc/imc: Dont create debugfs files for cpu-less nodes
    e94443fc7b64 scsi: implement .cleanup_rq callback
    4ec3ca2770e7 blk-mq: add callback of .cleanup_rq
    4848fb93243e ALSA: hda/realtek - PCI quirk for Medion E4254
    e9bcaf82dd37 ceph: use ceph_evict_inode to cleanup inode's resource
    72f0fff3c450 Revert "ceph: use ceph_evict_inode to cleanup inode's resource"
    98dc6d958bd9 randstruct: Check member structs in is_pure_ops_struct()
    ad6819cd68be IB/hfi1: Define variables as unsigned long to fix KASAN warning
    a924850c93d4 IB/mlx5: Free mpi in mp_slave mode
    40b071992ca5 printk: Do not lose last line in kmsg buffer dump
    28f142b940af scsi: qla2xxx: Fix Relogin to prevent modifying scan_state flag
    03b75e65ceed scsi: scsi_dh_rdac: zero cdb in send_mode_select()
    2e21e5b225ef ALSA: firewire-tascam: check intermediate state of clock status and retry
    f5779e4449da ALSA: firewire-tascam: handle error code when getting current source of clock
    fdd131eab68f iwlwifi: fw: don't send GEO_TX_POWER_LIMIT command to FW version 36
    6437ec272eda PM / devfreq: passive: fix compiler warning
    814f7fe56ebb media: omap3isp: Set device on omap3isp subdevs
    c5dbd74f8259 btrfs: extent-tree: Make sure we only allocate extents from block groups with the same type
    2aeeb0a4b440 iommu/amd: Override wrong IVRS IOAPIC on Raven Ridge systems
    291da335040c ALSA: hda/realtek - Blacklist PC beep for Lenovo ThinkCentre M73/93
    8630a4d13683 media: ttusb-dec: Fix info-leak in ttusb_dec_send_command()
    d47636913bda drm/amd/powerplay/smu7: enforce minimal VBITimeout (v2)
    5370cf8d90ad ALSA: hda - Drop unsol event handler for Intel HDMI codecs
    ac1d43a20a08 e1000e: add workaround for possible stalled packet
    35b6cba971f5 libertas: Add missing sentinel at end of if_usb.c fw_table
    0a43d5d458d5 raid5: don't increment read_errors on EILSEQ return
    da87dfca25aa mmc: dw_mmc: Re-store SDIO IRQs mask at system resume
    a0dd3d95fb21 mmc: core: Add helper function to indicate if SDIO IRQs is enabled
    8ba99d50cb61 mmc: sdhci: Fix incorrect switch to HS mode
    869122775782 mmc: core: Clarify sdio_irq_pending flag for MMC_CAP2_SDIO_IRQ_NOTHREAD
    a5443cd24063 raid5: don't set STRIPE_HANDLE to stripe which is in batch list
    064fba888e77 ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set
    476eda2539bb platform/x86: intel_pmc_core: Do not ioremap RAM
    e836cd2917c6 x86/cpu: Add Tiger Lake to Intel family
    b21919eeced6 s390/crypto: xts-aes-s390 fix extra run-time crypto self tests finding
    fad90d4bfa8d kprobes: Prohibit probing on BUG() and WARN() address
    213077da3e7c dmaengine: ti: edma: Do not reset reserved paRAM slots
    f1db75622996 md/raid1: fail run raid1 array when active disk less than one
    76cf93f04c3d hwmon: (acpi_power_meter) Change log level for 'unsafe software power cap'
    f0956418d997 closures: fix a race on wakeup from closure_sync
    9fcfdff61f74 ACPI / PCI: fix acpi_pci_irq_enable() memory leak
    e4467fb6ef54 ACPI: custom_method: fix memory leaks
    6fceb241dc76 ARM: dts: exynos: Mark LDO10 as always-on on Peach Pit/Pi Chromebooks
    e4b4280dcd97 libtraceevent: Change users plugin directory
    c55659cd1459 iommu/iova: Avoid false sharing on fq_timer_on
    223b0481ed4b libata/ahci: Drop PCS quirk for Denverton and beyond
    de888e0244cb iommu/amd: Silence warnings under memory pressure
    6241c0ac301e ALSA: firewire-motu: add support for MOTU 4pre
    ad58ce6cacd1 nvme-multipath: fix ana log nsid lookup when nsid is not found
    9edc229b9c90 nvmet: fix data units read and written counters in SMART log
    7bbb7a9dd2c3 x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()
    5201b4ffc324 ASoC: fsl_ssi: Fix clock control issue in master mode
    4b7d9c2a716e x86/mm/pti: Do not invoke PTI functions when PTI is disabled
    eb2485e32f90 arm64: kpti: ensure patched kernel text is fetched from PoU
    b619496540ba x86/apic/vector: Warn when vector space exhaustion breaks affinity
    01e8f487cecb sched/cpufreq: Align trace event behavior of fast switching
    2919fa0398ad ACPI / CPPC: do not require the _PSD method
    b79922133f9c ASoC: es8316: fix headphone mixer volume table
    dd25f76c1f34 media: ov9650: add a sanity check
    342a0bee4d94 perf trace beauty ioctl: Fix off-by-one error in cmd->string table
    57409ea782e7 media: saa7134: fix terminology around saa7134_i2c_eeprom_md7134_gate()
    78550c5cfe6d media: cpia2_usb: fix memory leaks
    d796c6c1aab4 media: saa7146: add cleanup in hexium_attach()
    ab20f38ce522 media: cec-notifier: clear cec_adap in cec_notifier_unregister
    d51268d7574b PM / devfreq: exynos-bus: Correct clock enable sequence
    7e19b7e0d640 PM / devfreq: passive: Use non-devm notifiers
    f9de170eaf7e EDAC/amd64: Decode syndrome before translating address
    6f80e91a66e0 EDAC/amd64: Recognize DRAM device type ECC capability
    adb97f18b4e7 libperf: Fix alignment trap with xyarray contents in 'perf stat'
    4df2427a5148 media: dvb-core: fix a memory leak bug
    8d5fccff7b0c posix-cpu-timers: Sanitize bogus WARNONS
    9df9652b7345 media: dvb-frontends: use ida for pll number
    006a6065c867 media: mceusb: fix (eliminate) TX IR signal length limit
    d093d3183ca2 nbd: add missing config put
    e497ec26cc43 led: triggers: Fix a memory leak bug
    83c2a42b1b84 ASoC: sun4i-i2s: Don't use the oversample to calculate BCLK
    5466c30b11cb tools headers: Fixup bitsperlong per arch includes
    b1f1b83e2583 ASoC: uniphier: Fix double reset assersion when transitioning to suspend state
    e6bc6e2c0d1f media: hdpvr: add terminating 0 at end of string
    4a2cb7600b72 media: radio/si470x: kill urb on error
    dfaf60580191 ARM: dts: imx7-colibri: disable HS400
    c20ee5d906ec ARM: dts: imx7d: cl-som-imx7: make ethernet work again
    21927786df27 m68k: Prevent some compiler warnings in Coldfire builds
    ba8f56ffaebf net: lpc-enet: fix printk format strings
    aa2d05a9de05 media: imx: mipi csi-2: Don't fail if initial state times-out
    1b7df445d881 media: omap3isp: Don't set streaming state on random subdevs
    0c3802174754 media: i2c: ov5645: Fix power sequence
    3dfbac0add22 media: vsp1: fix memory leak of dl on error return path
    c47022e019fe perf record: Support aarch64 random socket_id assignment
    482c1d0a7cc4 dmaengine: iop-adma: use correct printk format strings
    19a1fa140594 media: rc: imon: Allow iMON RC protocol for ffdc 7e device
    a527d3d4b513 media: em28xx: modules workqueue not inited for 2nd device
    6a1c59a7603d media: fdp1: Reduce FCP not found message level to debug
    e3f5f626e17a media: mtk-mdp: fix reference count on old device tree
    066afce8d87d perf test vfs_getname: Disable ~/.perfconfig to get default output
    96b61fe7a5f7 perf config: Honour $PERF_CONFIG env var to specify alternate .perfconfig
    db751f6d5241 media: gspca: zero usb_buf on error
    511110236089 idle: Prevent late-arriving interrupts from disrupting offline
    9addfbd40959 sched/fair: Use rq_lock/unlock in online_fair_sched_group
    6e9d45022d26 firmware: arm_scmi: Check if platform has released shmem before using
    0dbdc1986bb4 efi: cper: print AER info of PCIe fatal error
    4410b8517950 EDAC, pnd2: Fix ioremap() size in dnv_rd_reg()
    cf8f20a1aacf loop: Add LOOP_SET_DIRECT_IO to compat ioctl
    18e5e458c6d8 ACPI / processor: don't print errors for processorIDs == 0xff
    465bc6e80fd2 media: media/platform: fsl-viu.c: fix build for MICROBLAZE
    371538451c21 md: don't set In_sync if array is frozen
    d38aff20c407 md: don't call spare_active in md_reap_sync_thread if all member devices can't work
    1cd972e0a107 md/raid1: end bio when the device faulty
    7d75275fbfb1 arm64/prefetch: fix a -Wtype-limits warning
    829bebdc1ce6 ASoC: rsnd: don't call clk_get_rate() under atomic context
    f5bef62df824 EDAC/altera: Use the proper type for the IRQ status bits
    87bc43e2a775 ia64:unwind: fix double free for mod->arch.init_unw_table
    ca57eca32b3e ALSA: usb-audio: Skip bSynchAddress endpoint check if it is invalid
    d76b5ac5016c base: soc: Export soc_device_register/unregister APIs
    4a75e77ef1b5 media: iguanair: add sanity checks
    fe8fc7d7cb64 EDAC/mc: Fix grain_bits calculation
    55a98e872186 ALSA: i2c: ak4xxx-adda: Fix a possible null pointer dereference in build_adc_controls()
    1af6822f29d6 ALSA: hda - Show the fatal CORB/RIRB error more clearly
    b40c15c20e42 x86/apic: Soft disable APIC before initializing it
    ce7fdd5cd83e x86/reboot: Always use NMI fallback when shutdown via reboot vector IPI fails
    0f30856944d4 sched/deadline: Fix bandwidth accounting at all levels after offline migration
    d29c7b8be599 x86/apic: Make apic_pending_intr_clear() more robust
    f381d3d2c39c sched/core: Fix CPU controller for !RT_GROUP_SCHED
    417cf53b4b85 sched/fair: Fix imbalance due to CPU affinity
    7cebdfa62f22 time/tick-broadcast: Fix tick_broadcast_offline() lockdep complaint
    64f3fb5d751c media: i2c: ov5640: Check for devm_gpiod_get_optional() error
    6cc816dd644e media: hdpvr: Add device num check and handling
    8bc254d3e6b8 media: exynos4-is: fix leaked of_node references
    7ec720763a20 media: mtk-cir: lower de-glitch counter for rc-mm protocol
    920acbff8932 media: dib0700: fix link error for dibx000_i2c_set_speed
    8f9dc49928c2 leds: leds-lp5562 allow firmware files up to the maximum length
    fdcf06a35bc6 dmaengine: bcm2835: Print error in case setting DMA mask fails
    e841313b5731 firmware: qcom_scm: Use proper types for dma mappings
    ec4815460d81 ASoC: sgtl5000: Fix charge pump source assignment
    84bb4024b358 ASoC: sgtl5000: Fix of unmute outputs on probe
    a7ace049bddc ASoC: tlv320aic31xx: suppress error message for EPROBE_DEFER
    3657e58405fb regulator: lm363x: Fix off-by-one n_voltages for lm3632 ldo_vpos/ldo_vneg
    3eec108aa879 ALSA: hda: Flush interrupts on disabling
    5b6c791f494d nfp: flower: prevent memory leak in nfp_flower_spawn_phy_reprs
    33fe1f517e29 nfc: enforce CAP_NET_RAW for raw sockets
    dd651ab7a114 ieee802154: enforce CAP_NET_RAW for raw sockets
    6f0f18e53269 ax25: enforce CAP_NET_RAW for raw sockets
    6fbf86627608 appletalk: enforce CAP_NET_RAW for raw sockets
    50dddec689cb mISDN: enforce CAP_NET_RAW for raw sockets
    f06b0b3e5d76 net/mlx5: Add device ID of upcoming BlueField-2
    3fdcf6a88ded tcp: better handle TCP_USER_TIMEOUT in SYN_SENT state
    a749eea97ac9 net: sched: fix possible crash in tcf_action_destroy()
    831d0fcba1cf usbnet: sanity checking of packet sizes and device mtu
    b7eeccc1c786 usbnet: ignore endpoints with invalid wMaxPacketSize
    ff4419d725c7 skge: fix checksum byte order
    9a623e1b1d03 sch_netem: fix a divide by zero in tabledist()
    1cd663adcece ppp: Fix memory leak in ppp_write
    99952b08537c openvswitch: change type of UPCALL_PID attribute to NLA_UNSPEC
    587df35cbf65 nfp: flower: fix memory leak in nfp_flower_spawn_vnic_reprs
    195a3ea494d2 net_sched: add max len check for TCA_KIND
    c31096dc586e net/sched: act_sample: don't push mac header on ip6gre ingress
    abb04d0a9dea net: qrtr: Stop rx_worker before freeing node
    6ea3bc412506 net/phy: fix DP83865 10 Mbps HDX loopback disable function
    831d082be72c macsec: drop skb sk before calling gro_cells_receive
    fd0034688358 cdc_ncm: fix divide-by-zero caused by invalid wMaxPacketSize
    0bf79588586c arcnet: provide a buffer big enough to actually receive packets
    555161ee1b7a Linux 4.19.76
    59a5cea41dd0 f2fs: use generic EFSBADCRC/EFSCORRUPTED
    fc3d296491f4 net/rds: Check laddr_check before calling it
    3de749d6d7ce net/rds: An rds_sock is added too early to the hash table
    07f7ec87b5f6 net_sched: check cops->tcf_block in tc_bind_tclass()
    90b0761c1b81 Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices
    6934809432d2 netfilter: nft_socket: fix erroneous socket assignment
    649836fe946c xfs: don't crash on null attr fork xfs_bmapi_read
    91ae87240166 drm/nouveau/disp/nv50-: fix center/aspect-corrected scaling
    3717f4a49b34 ACPI: video: Add new hw_changes_brightness quirk, set it on PB Easynote MZ35
    46beb6eacef5 Bluetooth: btrtl: HCI reset on close for Realtek BT chip
    8ffd7ba9ffb1 net: don't warn in inet diag when IPV6 is disabled
    ff0fbfacc94f drm: Flush output polling on shutdown
    303f6d6bbc0c f2fs: fix to do sanity check on segment bitmap of LFS curseg
    dec09554eba9 net/ibmvnic: Fix missing { in __ibmvnic_reset
    dc9118feb472 dm zoned: fix invalid memory access
    73d90f57fcc2 Revert "f2fs: avoid out-of-range memory access"
    40cdc71e1111 blk-mq: move cancel of requeue_work to the front of blk_exit_queue
    313efb253d03 blk-mq: change gfp flags to GFP_NOIO in blk_mq_realloc_hw_ctxs
    75448f40b9f6 initramfs: don't free a non-existent initrd
    ad16dfef4a44 bcache: remove redundant LIST_HEAD(journal) from run_cache_set()
    08fdaee2d97b PCI: hv: Avoid use of hv_pci_dev->pci_slot after freeing it
    ef2baa03b7f0 f2fs: check all the data segments against all node ones
    ef06c33dc371 irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices
    52b4947bac50 bpf: libbpf: retry loading program on EAGAIN
    a935d78e54cc Revert "drm/amd/powerplay: Enable/Disable NBPSTATE on On/OFF of UVD"
    288831cba980 scsi: qla2xxx: Return switch command on a timeout
    2b983f212c68 scsi: qla2xxx: Remove all rports if fabric scan retry fails
    6b449e4cf090 scsi: qla2xxx: Turn off IOCB timeout timer on IOCB completion
    9423770eb336 locking/lockdep: Add debug_locks check in __lock_downgrade()
    0c23335a2d81 power: supply: sysfs: ratelimit property read error message
    1456c40aa906 pinctrl: sprd: Use define directive for sprd_pinconf_params values
    037d73a6458e objtool: Clobber user CFLAGS variable
    952844f31eb7 ALSA: hda - Apply AMD controller workaround for Raven platform
    50c9ccffe041 ALSA: hda - Add laptop imic fixup for ASUS M9V laptop
    866a1a7e9f23 ALSA: dice: fix wrong packet parameter for Alesis iO26
    9829fd27501e ALSA: usb-audio: Add DSD support for EVGA NU Audio
    303921276360 ALSA: usb-audio: Add Hiby device family to quirks for native DSD support
    8a845c02e495 ASoC: fsl: Fix of-node refcount unbalance in fsl_ssi_probe_from_dt()
    a5e2c65034f8 ASoC: Intel: cht_bsw_max98090_ti: Enable codec clock once and keep it enabled
    ec2a3681b30c media: tvp5150: fix switch exit in set control handler
    ba6860700d1f iwlwifi: mvm: always init rs_fw with 20MHz bandwidth rates
    ced0676fc9c2 iwlwifi: mvm: send BCAST management frames to the right station
    b3873e34cbf2 net/mlx5e: Rx, Check ip headers sanity
    404f118f2790 net/mlx5e: Rx, Fixup skb checksum for packets with tail padding
    c95ebb394d65 net/mlx5e: XDP, Avoid checksum complete when XDP prog is loaded
    79e972a89cad net/mlx5e: Allow reporting of checksum unnecessary
    8da68f79b3b3 mlx5: fix get_ip_proto()
    44da02576b5d net/mlx5e: don't set CHECKSUM_COMPLETE on SCTP packets
    6debda97411e net/mlx5e: Set ECN for received packets using CQE indication
    e867ef113004 CIFS: fix deadlock in cached root handling
    f3160a1d71f7 crypto: talitos - fix missing break in switch statement
    c1a7fe486647 mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword()
    5fdefdcb92bb HID: Add quirk for HP X500 PIXART OEM mouse
    3d072c272b88 HID: hidraw: Fix invalid read in hidraw_ioctl
    acc96be807bb HID: logitech: Fix general protection fault caused by Logitech driver
    3e785174fb35 HID: sony: Fix memory corruption issue on cleanup.
    eb77929769e3 HID: prodikeys: Fix general protection fault during probe
    2661d462aaa9 IB/core: Add an unbound WQ type to the new CQ API
    70ec2eecc550 drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines
    80fc27953e74 powerpc/xive: Fix bogus error code returned by OPAL
    4eb92a114834 RDMA/restrack: Protect from reentry to resource return path
    373f9092df95 net/ibmvnic: free reset work of removed device from queue
    2af977b0d1db Revert "Bluetooth: validate BLE connection interval updates"
    d573e8a79f70 Linux 4.19.75
    b841a9f58d9c media: technisat-usb2: break out of loop at end of buffer
    f35f5a990a07 arm64: kpti: Whitelist Cortex-A CPUs that don't implement the CSV3 field
    c0ccb4da26bc binfmt_elf: move brk out of mmap when doing direct loader exec
    c3817ffb1036 floppy: fix usercopy direction
    9c13e770cca9 ovl: fix regression caused by overlapping layers detection
    5e74396d8beb PCI: kirin: Fix section mismatch warning
    0d50f7b1e8c8 iommu/amd: Fix race in increase_address_space()
    52f32e4aec50 iommu/amd: Flush old domains in kdump kernel
    ca77acdf1ac9 keys: Fix missing null pointer check in request_key_auth_describe()
    d73515a17c14 x86/hyper-v: Fix overflow bug in fill_gva_list()
    371357770c8b x86/uaccess: Don't leak the AC flags into __get_user() argument evaluation
    72c762b01eb0 dmaengine: ti: omap-dma: Add cleanup in omap_dma_probe()
    d04b522a65c0 dmaengine: ti: dma-crossbar: Fix a memory leak bug
    6bc421d5a04a net: seeq: Fix the function used to release some memory in an error handling path
    83360eb798ca net: aquantia: fix out of memory condition on rx side
    30c345bd786a tools/power turbostat: fix buffer overrun
    d485c65853de tools/power x86_energy_perf_policy: Fix argument parsing
    254b9b2971a7 tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2
    a85a0d9f3796 amd-xgbe: Fix error path in xgbe_mod_init()
    7ec11cad3fde perf/x86/amd/ibs: Fix sample bias for dispatched micro-ops
    560857de3064 perf/x86/intel: Restrict period on Nehalem
    65ad72ce10e7 i2c: designware: Synchronize IRQs when unregistering slave client
    5a45b14b03f7 sky2: Disable MSI on yet another ASUS boards (P6Xxxx)
    6cce2adae3e1 ibmvnic: Do not process reset during or after device removal
    080ca754f5db ARM: 8901/1: add a criteria for pfn_valid of arm
    c6d779fd8197 usb: host: xhci-tegra: Set DMA mask correctly
    b62946852afa cifs: Use kzfree() to zero out the password
    325fa2a6729b cifs: set domainName when a domain-key is used in multiuser
    9a74f799b99c kallsyms: Don't let kallsyms_lookup_size_offset() fail on retrieving the first symbol
    0f7130177325 NFSv2: Fix write regression
    60f0d449601d NFSv2: Fix eof handling
    6075729f76da netfilter: nf_conntrack_ftp: Fix debug output
    7ac5947f7578 netfilter: xt_physdev: Fix spurious error message in physdev_mt_check
    e997c0730520 x86/apic: Fix arch_dynirq_lower_bound() bug for DT enabled machines
    688fdaa54a3e r8152: Set memory to all 0xFFs on failed reg reads
    d9f79f0ace55 bpf: allow narrow loads of some sk_reuseport_md fields with offset > 0
    7d4201ff9f73 batman-adv: Only read OGM2 tvlv_len after buffer len check
    5b8b66274183 ARM: 8874/1: mm: only adjust sections of valid mm structures
    b870f8afc5a5 qed: Add cleanup in qed_slowpath_start()
    30881d79de31 xdp: unpin xdp umem pages in error path
    55ed0ad50201 Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105
    767877deb25a NFS: Fix initialisation of I/O result struct in nfs_pgio_rpcsetup
    4ac4f4716fba NFSv4: Fix return value in nfs_finish_open()
    d7565d51af18 NFSv4: Fix return values for nfs4_file_open()
    4e5fbcb9a615 netfilter: xt_nfacct: Fix alignment mismatch in xt_nfacct_match_info
    a02c676c0f03 netfilter: nft_flow_offload: missing netlink attribute policy
    a4fa6c68ecc3 netfilter: ebtables: Fix argument order to ADD_COUNTER
    634dd5a48627 fpga: altera-ps-spi: Fix getting of optional confd gpio
    0d393f23f18e tools: bpftool: close prog FD before exit on showing a single program
    c5bb033529f1 selftests/bpf: fix "bind{4, 6} deny specific IP & port" on s390
    48d77ca1497f s390/bpf: use 32-bit index for tail calls
    999f33c2438c bus: ti-sysc: Simplify cleanup upon failures in sysc_probe()
    1a85d5819ade ARM: OMAP1: ams-delta-fiq: Fix missing irq_ack
    a8919f8d352f ARM: dts: dra74x: Fix iodelay configuration for mmc3
    2ff2bd2c5526 ARM: OMAP2+: Fix omap4 errata warning on other SoCs
    73d003274a42 s390/bpf: fix lcgr instruction encoding
    c1e0937ef4d5 bus: ti-sysc: Fix using configured sysc mask value
    0aee9e118eee ARM: OMAP2+: Fix missing SYSC_HAS_RESET_STATUS for dra7 epwmss
    f696ba6b122d ARM: dts: am57xx: Disable voltage switching for SD card
    ac8f26f6a035 ieee802154: hwsim: unregister hw while hwsim_subscribe_all_others fails
    c237a050df3b ieee802154: hwsim: Fix error handle path in hwsim_init_module
    6a10e87ffca1 nl80211: Fix possible Spectre-v1 for CQM RSSI thresholds
    941431c491a6 mwifiex: Fix three heap overflow at parsing element in cfg80211_ap_settings
    770cee245191 tty/serial: atmel: reschedule TX after RX was started
    4c2f60ed8ed8 serial: sprd: correct the wrong sequence of arguments
    2871621518ac firmware: google: check if size is valid when decoding VPD data
    232a6462f43f KVM: coalesced_mmio: add bounds checking
    7a1bad565ceb net_sched: let qdisc_put() accept NULL pointer
    47288968eebd xen-netfront: do not assume sk_buff_head list is empty in error handling
    fdd60d80c429 udp: correct reuseport selection with connected sockets
    97b5f8c95b75 ip6_gre: fix a dst leak in ip6erspan_tunnel_xmit
    4fb95f299504 phy: renesas: rcar-gen3-usb2: Disable clearing VBUS in over-current
    abf389e0795a media: tm6000: double free if usb disconnect while streaming
    77d4e2a05885 USB: usbcore: Fix slab-out-of-bounds bug during device reset
    b01b1eb24c04 powerpc/mm/radix: Use the right page size for vmemmap mapping
    289f3c82b116 Input: elan_i2c - remove Lenovo Legion Y7000 PnpID
    305c3b497662 RDMA/restrack: Release task struct which was hold by CM_ID object
    8993c673d6c4 HID: wacom: generic: read HID_DG_CONTACTMAX from any feature report
    2a0aa8a06aea netfilter: nf_flow_table: set default timeout after successful insertion
    dbc29aff8d04 Linux 4.19.74
    9d587fe2cd70 x86/build: Add -Wnoaddress-of-packed-member to REALMODE_CFLAGS, to silence GCC9 build warning
    96c08711fc66 nvmem: Use the same permissions for eeprom as for nvmem
    3622d621e9be rsi: fix a double free bug in rsi_91x_deinit()
    780f3aadee1e platform/x86: pmc_atom: Add CB4063 Beckhoff Automation board to critclk_systems DMI table
    52bfcc9c8406 modules: fix compile error if don't have strict module rwx
    ae415d7a2707 modules: fix BUG when load module with rodata=n
    0ae0c43abcbf iio: adc: stm32-dfsdm: fix data type
    acf77c411b4e Revert "Bluetooth: btusb: driver to enable the usb-wakeup feature"
    a03ed2891cdb drm/mediatek: mtk_drm_drv.c: Add of_node_put() before goto
    d13a836d787d drm: panel-orientation-quirks: Add extra quirk table entry for GPD MicroPC
    4b30a0698208 firmware: ti_sci: Always request response from firmware
    3dfc787f2f50 crypto: talitos - HMAC SNOOP NO AFEU mode requires SW icv checking.
    e89d4cb6fba3 crypto: talitos - Do not modify req->cryptlen on decryption.
    9aff4077304b crypto: talitos - fix ECB algs ivsize
    c4d7148e2d67 crypto: talitos - check data blocksize in ablkcipher.
    02ebbb4f8df8 crypto: talitos - fix CTR alg blocksize
    39fa02a36bb3 crypto: talitos - check AES key size
    e1666bcbae0c driver core: Fix use-after-free and double free on glue directory
    72cd230b3231 ubifs: Correctly use tnc_next() in search_dh_cookie()
    a65290083b66 gpio: fix line flag validation in lineevent_create
    0f4095f33557 PCI: Always allow probing with driver_override
    70facf939ba2 mtd: rawnand: mtk: Fix wrongly assigned OOB buffer pointer issue
    6da56f8982bb clk: rockchip: Don't yell about bad mmc phases when getting
    a63416f39aaf drm/meson: Add support for XBGR8888 & ABGR8888 formats
    d9e8b4ba0397 powerpc: Add barrier_nospec to raw_copy_in_user()
    eb020b77b646 x86/purgatory: Change compiler flags from -mcmodel=kernel to -mcmodel=large to fix kexec relocation errors
    73c31bd92039 KVM: nVMX: handle page fault in vmread
    6e60900cfa3e KVM: x86: work around leak of uninitialized stack contents
    09a9f894c65b KVM: s390: Do not leak kernel stack data in the KVM_S390_INTERRUPT ioctl
    9f8a2825918c KVM: s390: kvm_s390_vm_start_migration: check dirty_bitmap before using it as target for memset()
    991b3458da56 genirq: Prevent NULL pointer dereference in resend_irqs()
    5b5f14601e0a ixgbe: Prevent u8 wrapping of ITR value to something less than 10us
    7cbd49cf0d62 Btrfs: fix assertion failure during fsync and use of stale transaction
    22ed1d472811 gpio: fix line flag validation in linehandle_create
    705df757e937 gpiolib: acpi: Add gpiolib_acpi_run_edge_events_on_boot option and blacklist
    0f4ceb259493 tun: fix use-after-free when register netdev failed
    9a4598424e99 tipc: add NULL pointer check before calling kfree_rcu
    67fe3b94a833 tcp: fix tcp_ecn_withdraw_cwr() to clear TCP_ECN_QUEUE_CWR
    7c34a29261ee sctp: use transport pf_retrans in sctp_do_8_2_transport_strike
    41b624ff83d2 sctp: Fix the link time qualifier of 'sctp_ctrlsock_exit()'
    a9e91767b921 sch_hhf: ensure quantum and hhf_non_hh_weight are non-zero
    a7f46e18ecfe net: sched: fix reordering issues
    3600a311f83d net: phylink: Fix flow control resolution
    821302dd0c51 net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list
    88a46756f016 net: Fix null de-reference of device refcount
    b26f489245b3 ixgbe: Fix secpath usage for IPsec TX offload.
    2354e925e361 isdn/capi: check message length in capi_write()
    ea6ec671c87e ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()'
    a20c8e4ae48d cdc_ether: fix rndis support for Mediatek based smartphones
    f57fd58dda42 bridge/mdb: remove wrong use of NLM_F_MULTI
    db2d0b7c1dde Linux 4.19.73
    ba03ee62aed0 vhost: make sure log_num < in_num
    569775bd5364 powerpc/tm: Fix restoring FP/VMX facility incorrectly on interrupts
    052bc385f970 powerpc/tm: Remove msr_tm_active()
    f193e02265aa PCI: Reset both NVIDIA GPU and HDA in ThinkPad P50 workaround
    ff69322509bb ext4: unsigned int compared against zero
    292666d2d868 ext4: fix block validity checks for journal inodes using indirect blocks
    97fbf573460e ext4: don't perform block validity checks on the journal inode
    1e88a1f874ca drm/atomic_helper: Allow DPMS On<->Off changes for unregistered connectors
    b1dd1d06b31d virtio/s390: fix race on airq_areas[]
    057cdb6f0f47 drm/i915: Make sure cdclk is high enough for DP audio on VLV/CHV
    b113f98432ae bcache: fix race in btree_flush_write()
    f73c35d92976 bcache: add comments for mutex_lock(&b->write_lock)
    7989a5026fd1 bcache: only clear BTREE_NODE_dirty bit when it is set
    652993a5aae5 NFSv4: Fix delegation state recovery
    5026932adb1a iio: adc: gyroadc: fix uninitialized return code
    2e7e7c8f9423 mm/migrate.c: initialize pud_entry in migrate_vma()
    b8ad18a10f70 i2c: at91: fix clk_offset for sama5d2
    4c9170b55f3a i2c: at91: disable TXRDY interrupt after sending data
    c9c90711ee88 gpio: don't WARN() on NULL descs if gpiolib is disabled
    a532a120a5cd iommu/iova: Remove stale cached32_node
    c4fc7cb93e0a powerpc/mm: Limit rma_size to 1TB when running without HV mode
    5b9a6ba975c0 ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chips
    87c3692172da drm/panel: Add support for Armadeus ST0700 Adapt
    ecf99cdea02d dm thin metadata: check if in fail_io mode when setting needs_check
    5e9a2ce6d3b4 pstore: Fix double-free in pstore_mkfile() failure path
    192b9af8caf0 resource: fix locking in find_next_iomem_res()
    485bcc29a200 resource: Fix find_next_iomem_res() iteration issue
    9a80dfccade1 resource: Include resource end in walk_*() interfaces
    1c13c9c40e31 btrfs: correctly validate compression type
    0ca2688bd7cd RDMA/srp: Accept again source addresses that do not have a port number
    9541604735b2 RDMA/srp: Document srp_parse_in() arguments
    bab0ff2d87db ARM: dts: gemini: Set DIR-685 SPI CS as active low
    3a1b79ade460 KVM: PPC: Book3S HV: Fix CR0 setting in TM emulation
    3ac718069f7c KVM: PPC: Use ccr field in pt_regs struct embedded in vcpu struct
    beeeead95b2f KVM: VMX: check CPUID before allowing read/write of IA32_XSS
    891011ca564d KVM: VMX: Fix handling of #MC that occurs during VM-Entry
    74ce13331db9 KVM: VMX: Always signal #GP on WRMSR to MSR_IA32_CR_PAT with bad value
    74fd8aae19d9 KVM: x86: optimize check for valid PAT value
    812810399999 ceph: use ceph_evict_inode to cleanup inode's resource
    42fa0e35d6e0 ALSA: hda - Don't resume forcibly i915 HDMI/DP codec
    987564c28e8a cifs: Properly handle auto disabling of serverino option
    d85e830d8534 scsi: zfcp: fix request object use-after-free in send path causing wrong traces
    ba8701d2226c staging: wilc1000: fix error path cleanup in wilc_wlan_initialize()
    60b856dc1744 scsi: target/iblock: Fix overrun in WRITE SAME emulation
    ba52842de1ad scsi: target/core: Use the SECTOR_SHIFT constant
    17111037fdf0 apparmor: reset pos on failure to unpack for various functions
    90ca4912e55d IB/hfi1: Avoid hardlockup with flushlist_lock
    fa717fc442ff clk: tegra210: Fix default rates for HDA clocks
    350503c8982b clk: tegra: Fix maximum audio sync clock for Tegra124/210
    acc07941e224 cifs: add spinlock for the openFileList to cifsInodeInfo
    1d0648767ccf Btrfs: fix race between block group removal and block group allocation
    f276beb324cc drm/amdgpu/{uvd,vcn}: fetch ring's read_ptr after alloc
    7abeffff7bc3 drm/amdgpu: fix ring test failure issue during s3 in vce 3.0 (V2)
    d5f6539381c7 kvm: Check irqchip mode before assign irqfd
    90772cf58838 drm/amdkfd: Add missing Polaris10 ID
    cacbc85376b6 ARC: mm: SIGSEGV userspace trying to access kernel virtual memory
    7edfa9c99d21 ARC: mm: fix uninitialised signal code in do_page_fault
    0828438e523e signal/arc: Use force_sig_fault where appropriate
    fcb2f1e2ea68 dm crypt: move detailed message into debug level
    96b44c20e6f0 cifs: smbd: take an array of reqeusts when sending upper layer data
    3f27a14b03d8 PCI: dwc: Use devm_pci_alloc_host_bridge() to simplify code
    842da8fac182 mmc: sdhci-pci: Add support for Intel CML
    e238e6dc222b blk-mq: free hw queue's resource in hctx's release handler
    69409854ba08 dm mpath: fix missing call of path selector type->end_io
    0fe097012b6c PCI: Reset Lenovo ThinkPad P50 nvgpu at boot if necessary
    5659dfca74d0 PCI: Add macro for Switchtec quirk declarations
    e4ba157877db dt-bindings: mmc: Add disable-cqe-dcmd property.
    eb83f9fa10f7 dt-bindings: mmc: Add supports-cqe property
    0a0176f93ea9 ARM: dts: qcom: ipq4019: enlarge PCIe BAR range
    445a78ea3f90 ARM: dts: qcom: ipq4019: Fix MSI IRQ type
    df1216d8bc86 ARM: dts: qcom: ipq4019: fix PCI range
    2fd4629de519 ext4: protect journal inode's blocks using block_validity
    f10a92309b83 media: i2c: tda1997x: select V4L2_FWNODE
    4061e662c8e9 cifs: Fix lease buffer length error
    df5d4ea2d8be KVM: x86: Always use 32-bit SMRAM save state for 32-bit kernels
    7a74d806bdaa x86/kvm: move kvm_load/put_guest_xcr0 into atomic context
    163b24b1a68c kvm: mmu: Fix overflow on kvm mmu page limit calculation
    feced628c068 IB/mlx5: Reset access mask when looping inside page fault handler
    37222eaf7eb7 arm64: dts: stratix10: add the sysmgr-syscon property from the gmac's
    3cfce8b77aad usb: typec: tcpm: Try PD-2.0 if sink does not respond to 3.0 source-caps
    fba4f7c118e4 drm/i915: Sanity check mmap length against object size
    6423a2ad5709 drm/i915: Handle vm_mmap error during I915_GEM_MMAP ioctl with WC set
    778d626c6af3 CIFS: Fix leaking locked VFS cache pages in writeback retry
    fb2dabeabb17 CIFS: Fix error paths in writeback code
    e407b58c3576 drm: add __user attribute to ptr_to_compat()
    e1a12c3b6f87 PCI: qcom: Don't deassert reset GPIO during probe
    be905d0f2330 PCI: qcom: Fix error handling in runtime PM support
    476ecc14cfdb btrfs: init csum_list before possible free
    936690bdd8e6 btrfs: scrub: fix circular locking dependency warning
    ff55333f5c52 btrfs: scrub: move scrub_setup_ctx allocation out of device_list_mutex
    8ba3169dceac btrfs: scrub: pass fs_info to scrub_setup_ctx
    df7329207870 mmc: renesas_sdhi: Fix card initialization failure in high speed mode
    915c9d0a1d68 powerpc/kvm: Save and restore host AMR/IAMR/UAMOR
    b3f864b88256 spi: spi-gpio: fix SPI_CS_HIGH capability
    1d60902a5448 x86/kvmclock: set offset for kvm unstable clock
    716b0cfa88a5 iwlwifi: add new card for 9260 series
    213566a9b0de iwlwifi: fix devices with PCI Device ID 0x34F0 and 11ac RF modules
    2b76fcb6ba62 drm/nouveau: Don't WARN_ON VCPI allocation failures
    173b6557fcbc mt76: fix corrupted software generated tx CCMP PN
    0d7f329e2431 iio: adc: exynos-adc: Use proper number of channels for Exynos4x12
    4e516b721a50 dt-bindings: iio: adc: exynos-adc: Add S5PV210 variant
    7f588a7262b3 iio: adc: exynos-adc: Add S5PV210 variant
    cd490d44150d KVM: VMX: Compare only a single byte for VMCS' "launched" in vCPU-run
    687e470e9123 bcache: treat stale && dirty keys as bad keys
    d1cec665de2c bcache: replace hard coded number with BUCKET_GC_GEN_MAX
    ee30121fbd78 tpm: Fix some name collisions with drivers/char/tpm.h
    c207ac66848e mfd: Kconfig: Fix I2C_DESIGNWARE_PLATFORM dependencies
    6fd5e50add36 drm/i915/ilk: Fix warning when reading emon_status with no output
    2b4f567912ad drm/vblank: Allow dynamic per-crtc max_vblank_count
    71f719105462 crypto: ccree - add missing inline qualifier
    72eec6b303f4 crypto: ccree - fix resume race condition on init
    f0e286550af8 IB/uverbs: Fix OOPs upon device disassociation
    8c6fb55abf2c ARC: mm: do_page_fault fixes #1: relinquish mmap_sem if signal arrives while handle_mm_fault
    96af7d92d8d2 ARC: show_regs: lockdep: re-enable preemption
    424b75b79994 media: vim2m: only cancel work if it is for right context
    be77686f0369 btrfs: Use real device structure to verify dev extent
    a2790b9939ae btrfs: volumes: Make sure no dev extent is beyond device boundary
    cfbf227e0591 powerpc/pkeys: Fix handling of pkey state across fork()
    2ad95be18995 scsi: megaraid_sas: Use 63-bit DMA addressing
    3263f78640cc scsi: megaraid_sas: Add check for reset adapter bit
    dc4e3ec9d226 scsi: megaraid_sas: Fix combined reply queue mode detection
    eb124aaa2e85 btrfs: Fix error handling in btrfs_cleanup_ordered_extents
    1669d1d2e696 btrfs: Remove extent_io_ops::fill_delalloc
    338a528b7922 Btrfs: fix deadlock with memory reclaim during scrub
    fac803479f60 Btrfs: clean up scrub is_dev_replace parameter
    d3984e80d7f2 KVM: PPC: Book3S HV: Fix race between kvm_unmap_hva_range and MMU mode switch
    d88b01d04c6a drm/i915: Cleanup gt powerstate from gem
    b185bde520d5 drm/i915: Restore sane defaults for KMS on GEM error load
    f999485109d1 media: vim2m: use cancel_delayed_work_sync instead of flush_schedule_work
    a7b6f95f3ca6 media: vim2m: use workqueue
    e432a58d7a0d s390/zcrypt: reinit ap queue state machine during device probe
    a4f404af3ca8 ARM: davinci: dm644x: define gpio interrupts as separate resources
    8d6b2b24ca85 ARM: davinci: dm355: define gpio interrupts as separate resources
    d31f2b61e7f9 ARM: davinci: dm646x: define gpio interrupts as separate resources
    4883e9e66f76 ARM: davinci: dm365: define gpio interrupts as separate resources
    0a6c3bdae2c9 ARM: davinci: da8xx: define gpio interrupts as separate resources
    016218ef6bb0 drm/amd/dm: Understand why attaching path/tile properties are needed
    853dc0759586 drm/amd/pp: Fix truncated clock value when set watermark
    5faabd22ed64 powerplay: Respect units on max dcfclk watermark
    11bedb2e77a0 Drivers: hv: kvp: Fix the recent regression caused by incorrect clean-up
    74ff258346e4 Drivers: hv: kvp: Fix the indentation of some "break" statements
    e352d8eb9394 drm/atomic_helper: Disallow new modesets on unregistered connectors
    cff9e1e33151 drm/i915/gen9+: Fix initial readout for Y tiled framebuffers
    8ccbb1d24c26 drm/i915: Rename PLANE_CTL_DECOMPRESSION_ENABLE
    4b2dfc0e2d44 drm/i915: Fix intel_dp_mst_best_encoder()
    796469e361ed x86/kvm/lapic: preserve gfn_to_hva_cache len on cache reinit
    cdad0f65050e KVM: hyperv: define VP assist page helpers
    b0d9043bdbe6 KVM: x86: hyperv: keep track of mismatched VP indexes
    f031fd03e22e KVM: x86: hyperv: consistently use 'hv_vcpu' for 'struct kvm_vcpu_hv' variables
    0b535f7b95af KVM: x86: hyperv: enforce vp_index < KVM_MAX_VCPUS
    8e91cc7f7f91 drm/amdgpu: Update gc_9_0 golden settings.
    bcc3bd761ab5 drm/amdgpu/gfx9: Update gfx9 golden settings.
    2c2cf2245ff6 remoteproc: qcom: q6v5-mss: add SCM probe dependency
    4d9707586ec7 x86, hibernate: Fix nosave_regions setup for hibernation
    805e0e46eb54 Drivers: hv: kvp: Fix two "this statement may fall through" warnings
    3f3beae22842 keys: Fix the use of the C++ keyword "private" in uapi/linux/keyctl.h
    bac1c4edb5c4 scsi: qla2xxx: Move log messages before issuing command to firmware
    6e087eae89df media: cec: remove cec-edid.c
    851308450a8f media: cec/v4l2: move V4L2 specific CEC functions to V4L2
    c09d675f294b drm/i915: Re-apply "Perform link quality check, unconditionally during long pulse"
    3015291b2fb5 kernel/module: Fix mem leak in module_add_modinfo_attrs
    9c49f7811f82 modules: always page-align module section allocations
    84ba9ae18fbb remoteproc: qcom: q6v5: shore up resource probe handling
    56944c0b9774 clk: s2mps11: Add used attribute to s2mps11_dt_match
    480101a4aea2 nvme-fc: use separate work queue to avoid warning
    5f147150b753 riscv: remove unused variable in ftrace
    8d23872c7539 scripts/decode_stacktrace: match basepath using shell prefix operator, not regex
    6c550a5db18f arm64: dts: rockchip: enable usb-host regulators at boot on rk3328-rock64
    573370113b24 media: stm32-dcmi: fix irq = 0 case
    7f8b23600779 powerpc/64: mark start_here_multiplatform as __ref
    85a24825b2e6 x86/ftrace: Fix warning and considate ftrace_jmp_replace() and ftrace_call_replace()
    b93aed78eb78 selftests: fib_rule_tests: use pre-defined DEV_ADDR
    68829256e1f9 timekeeping: Use proper ktime_add when adding nsecs in coarse offset
    1aa38eceb6c0 {nl,mac}80211: fix interface combinations on crypto controlled devices
    178d1337a527 blk-iolatency: fix STS_AGAIN handling
    5f33e81250a6 Blk-iolatency: warn on negative inflight IO counter
    91a71a61da8c hv_sock: Fix hang when a connection is closed
    86d5ae21d6b8 batman-adv: Only read OGM tvlv_len after buffer len check
    4b5fee457723 batman-adv: fix uninit-value in batadv_netlink_get_ifindex()
    47a0f70d7d9a powerpc/tm: Fix FP/VMX unavailable exceptions inside a transaction
    6e7040d65a71 vhost/test: fix build for vhost test - again
    4f45483faadf vhost/test: fix build for vhost test
    dcd22e14780a drm/vmwgfx: Fix double free in vmw_recv_msg()
    38d38d1e0cc5 sched/fair: Don't assign runtime for throttled cfs_rq
    044ab4715585 ALSA: hda/realtek - Fix the problem of two front mics on a ThinkCentre
    849f85bfdf12 ALSA: hda/realtek - Enable internal speaker & headset mic of ASUS UX431FL
    a956998ac1c2 ALSA: hda/realtek - Add quirk for HP Pavilion 15
    d11ca2d79334 ALSA: hda/realtek - Fix overridden device-specific initialization
    2c4d2ce8b799 ALSA: hda - Fix potential endless loop at applying quirks

(From OE-Core rev: bdc7d1a72bc4b095ae9b26ee9cc861e8e9cb05ab)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 611c7d62d67016942323d2fa4f108774c85dce09)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Bruce Ashfield
8d90948953 linux-yocto/4.19: update to v4.19.72
Updating to the latest -korg -stable relase. A summary of the
changes follows:

   ee809c7e0895 Linux 4.19.72
   991467a47cf2 Revert "x86/apic: Include the LDR when clearing out APIC registers"
   0f134f6e722c libceph: allow ceph_buffer_put() to receive a NULL ceph_buffer
   5049632bc958 x86/boot/compressed/64: Fix missing initialization in find_trampoline_placement()
   b8727dff55f0 KVM: arm/arm64: VGIC: Properly initialise private IRQ affinity
   1a31b0d0ddfa afs: Fix leak in afs_lookup_cell_rcu()
   111d36b6fb7e KVM: arm/arm64: Only skip MMIO insn once
   b84817d96e0f ceph: fix buffer free while holding i_ceph_lock in fill_inode()
   5cd1e3552f0e ceph: fix buffer free while holding i_ceph_lock in __ceph_build_xattrs_blob()
   dfb8712c7acc ceph: fix buffer free while holding i_ceph_lock in __ceph_setxattr()
   ddb55cc39c70 selftests/kvm: make platform_info_test pass on AMD
   6cb9f8d60f8f selftests: kvm: fix state save/load on processors without XSAVE
   08c2052815e3 infiniband: hfi1: fix memory leaks
   d1b7f3252d56 infiniband: hfi1: fix a memory leak bug
   adb87027b5ff IB/mlx4: Fix memory leaks
   5e416b11b4a9 nvme-multipath: fix possible I/O hang when paths are updated
   5bbebceec61d Tools: hv: kvp: eliminate 'may be used uninitialized' warning
   1d42e40fe3c5 Input: hyperv-keyboard: Use in-place iterator API in the channel callback
   e02aac3edb46 x86/boot/compressed/64: Fix boot on machines with broken E820 table
   05d611c4ffb7 HID: cp2112: prevent sleeping function called from invalid context
   5e1d50a3eafe kprobes: Fix potential deadlock in kprobe_optimizer()
   a5839b6b3a79 ravb: Fix use-after-free ravb_tstamp_skb
   54eac3997ee4 wimax/i2400m: fix a memory leak bug
   7506e8c4bec8 net: cavium: fix driver name
   ea78dc8b5e66 ibmvnic: Unmap DMA address of TX descriptor buffers after use
   4fcb9b3f263e net: kalmia: fix memory leaks
   1ad45d0f69d2 cx82310_eth: fix a memory leak bug
   ac3cc25f380b vfs: fix page locking deadlocks when deduping files
   9ea1feadf5e0 lan78xx: Fix memory leaks
   375ab446ec76 net: myri10ge: fix memory leaks
   f13b7ec5e1c5 liquidio: add cleanup in octeon_setup_iq()
   2c3dd20f852a cxgb4: fix a memory leak bug
   b8cd0b7b09ed scsi: target: tcmu: avoid use-after-free after command timeout
   6c9a1e17d063 scsi: qla2xxx: Fix gnl.l memory leak on adapter init failure
   b3496367d9cb drm/mediatek: set DMA max segment size
   c9f595453bc3 drm/mediatek: use correct device to import PRIME buffers
   a54fa5dff8cd netfilter: nft_flow_offload: skip tcp rst and fin packets
   6052090280b8 gpio: Fix build error of function redefinition
   cc8aa6155611 ibmveth: Convert multicast list size for little-endian system
   32e912b91b5d Bluetooth: btqca: Add a short delay before downloading the NVM
   7b7a11549dc1 net: tc35815: Explicitly check NET_IP_ALIGN is not zero in tc35815_rx
   752832f2e8c9 hv_netvsc: Fix a warning of suspicious RCU usage
   463d87bc13ff tools: bpftool: fix error message (prog -> object)
   5776970fb4ec netfilter: nf_tables: use-after-free in failing rule with bound set
   d22ed7b72acf net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context
   3ddda4f3114b spi: bcm2835aux: fix corruptions for longer spi transfers
   fe49c3de7372 spi: bcm2835aux: remove dangerous uncontrolled read of fifo
   a4a9ee79036b spi: bcm2835aux: unifying code between polling and interrupt driven code
   ee271ead3b61 x86/boot: Preserve boot_params.secure_boot from sanitizing
   9484203d254d net/rds: Fix info leak in rds6_inc_info_copy()
   5977bc19ce7f tcp: remove empty skb from write queue in error cases
   6f3126379879 tcp: inherit timestamp on mtu probe
   6f8348f63706 net: stmmac: dwmac-rk: Don't fail if phy regulator is absent
   38166934f89c net_sched: fix a NULL pointer deref in ipt action
   5ff0ab0c668b net: sched: act_sample: fix psample group handling on overwrite
   6a2bd8261630 net: fix skb use after free in netpoll
   8a5d27eaba68 mld: fix memory leak in mld_del_delrec()
   e7d2672c66e4 Linux 4.19.71
   72168ae78629 Revert "Input: elantech - enable SMBus on new (2018+) systems"
   0fed55c248d9 Linux 4.19.70
   9854d089f790 Revert "ASoC: Fail card instantiation if DAI format setup fails"
   e064466cb614 mt76: mt76x0u: do not reset radio on resume
   b307f99dca5a x86/ptrace: fix up botched merge of spectrev1 fix
   3b26fa9e3ec3 i2c: piix4: Fix port selection for AMD Family 16h Model 30h
   4f4be79c9ee7 NFS: Ensure O_DIRECT reports an error if the bytes read/written is 0
   b5891b624b9a NFS: Pass error information to the pgio error cleanup routine
   812de6dee596 NFSv4/pnfs: Fix a page lock leak in nfs_pageio_resend()
   57c491fd844d NFS: Clean up list moves of struct nfs_page
   79f1b33c53a0 KVM: arm/arm64: vgic-v2: Handle SGI bits in GICD_I{S,C}PENDR0 as WI
   ab8ecc278dc8 KVM: arm/arm64: vgic: Fix potential deadlock when ap_list is long
   db1841a2dd4c KVM: PPC: Book3S: Fix incorrect guest-to-user-translation error handling
   938e383738d9 mac80211: Correctly set noencrypt for PAE frames
   4f139c0376fb mac80211: Don't memset RXCB prior to PAE intercept
   58f91aac4dfe mac80211: fix possible sta leak
   945b35972803 Revert "cfg80211: fix processing world regdomain when non modular"
   690a424838ca crypto: ccp - Ignore unconfigured CCP device on suspend/resume
   4e77b2ea941b VMCI: Release resource if the work is already queued
   2a964875def7 bus: hisi_lpc: Add .remove method to avoid driver unbind crash
   649532efef46 bus: hisi_lpc: Unregister logical PIO range to avoid potential use-after-free
   68b58d392464 drm/i915: Call dma_set_max_seg_size() in i915_driver_hw_probe()
   c7615333645d drm/i915: Don't deballoon unused ggtt drm_mm_node in linux guest
   6d3003f56449 drm/amdgpu: Add APTX quirk for Dell Latitude 5495
   c4616a9b3d3f lib: logic_pio: Add logic_pio_unregister_range()
   7faef13e6f68 lib: logic_pio: Avoid possible overlap for unregistering regions
   b865c2c6e3f2 lib: logic_pio: Fix RCU usage
   79829fc4ff33 fsi: scom: Don't abort operations for minor errors
   e44840b7320c typec: tcpm: fix a typo in the comparison of pdo_max_voltage
   e91c9c119dba intel_th: pci: Add Tiger Lake support
   ce1c894e1e89 intel_th: pci: Add support for another Lewisburg PCH
   cad1d3bfdd5d stm class: Fix a double free of stm_source_device
   abc42341b6c4 mmc: core: Fix init of SD cards reporting an invalid VDD range
   1ecc65e1418b mmc: sdhci-of-at91: add quirk for broken HS200
   be8e9fa67ea7 mei: me: add Tiger Lake point LP device ID
   5ed36421af24 USB: storage: ums-realtek: Whitelist auto-delink support
   f79d1598968b USB: storage: ums-realtek: Update module parameter description for auto_delink_en
   f46fd68a541f usb: host: xhci: rcar: Fix typo in compatible string matching
   7af7737491ce usb: host: ohci: fix a race condition between shutdown and irq
   a209827549da usb: chipidea: udc: don't do hardware access if gadget has stopped
   97bec7afb98f usb: hcd: use managed device resources
   ebad9fd106da USB: cdc-wdm: fix race between write and disconnect due to flag abuse
   cbf5a279a22d usb-storage: Add new JMS567 revision to unusual_devs
   8ea639525db6 ftrace: Check for empty hash and comment the race with registering probes
   9d98e0f4859d ftrace: Check for successful allocation of hash
   f184b16748f4 ftrace: Fix NULL pointer dereference in t_probe_next()
   edc454cd5a04 x86/apic: Include the LDR when clearing out APIC registers
   959832657c03 x86/apic: Do not initialize LDR and DFR for bigsmp
   941d875cd44a uprobes/x86: Fix detection of 32-bit user mode
   3c2b4827798e KVM: x86: Don't update RIP or do single-step on faulting emulation
   3ec35109c80a kvm: x86: skip populating logical dest map if apic is not sw enabled
   cbd905dac535 ALSA: usb-audio: Add implicit fb quirk for Behringer UFX1604
   b5d1f31d97af ALSA: usb-audio: Fix invalid NULL check in snd_emuusb_set_samplerate()
   98a2017c4a17 ALSA: seq: Fix potential concurrent access to the deleted pool
   842317de9797 ALSA: hda - Fixes inverted Conexant GPIO mic mute led
   5ef43bdc7321 ALSA: line6: Fix memory leak at line6_init_pcm() error path
   c94c0bf878bf ALSA: usb-audio: Check mixer unit bitmap yet more strictly
   5dd2db1ab006 mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
   9febfd30aede ipv4/icmp: fix rt dst dev null pointer dereference
   0a6a9c473080 tcp: make sure EPOLLOUT wont be missed
   3e79bd1e4f9a net/smc: make sure EPOLLOUT is raised
   ff129837a5f6 ipv6: Default fib6_type to RTN_UNICAST when not set
   02127bdfee97 ipv6/addrconf: allow adding multicast addr if IFA_F_MCAUTOJOIN is set
   a1407b26a6ed net: tls, fix sk_write_space NULL write when tx disabled
   fdc4400e9628 net/tls: swap sk_write_space on close
   f7009bbaff54 net/tls: Fixed return value when tls_complete_pending_work() fails
   dc066fd0d073 drm/tilcdc: Register cpufreq notifier after we have initialized crtc
   eba86f0a909f scsi: ufs: Fix RX_TERMINATION_FORCE_ENABLE define value
   edd40f54736d drm/bridge: tfp410: fix memleak in get_modes()
   2fa7c944e11f watchdog: bcm2835_wdt: Fix module autoload
   a3eb2eba2f79 drm/i915: fix broadwell EU computation
   c61c7246dc1f tools: hv: fix KVP and VSS daemons exit code
   0c39d818aae4 tools: hv: fixed Python pep8/flake8 warnings for lsvmbus
   39ad18a042ab usb: host: fotg2: restart hcd after port reset
   37654abed26f drm/ast: Fixed reboot test may cause system hanged
   1cc2ef1cfbd8 i2c: emev2: avoid race when unregistering slave client
   7048cd814f4e i2c: rcar: avoid race when unregistering slave client
   8bd5426889c2 arm64: cpufeature: Don't treat granule sizes as strict
   eb535aaf3cd7 xen/blkback: fix memory leaks
   339c1572a266 usb: gadget: mass_storage: Fix races between fsg_disable and fsg_set_alt
   122ab8ea641c usb: gadget: composite: Clear "suspended" on reset/disconnect
   21ec20f62fae iommu/dma: Handle SG length overflow better
   7f4b81365e83 omap-dma/omap_vout_vrfb: fix off-by-one fi value
   71d24f45f905 dmaengine: stm32-mdma: Fix a possible null-pointer dereference in stm32_mdma_irq_handler()
   377ebe613ed8 auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach
   2f87eb895ebd soundwire: cadence_master: fix definitions for INTSTAT0/1
   29b064d300a2 soundwire: cadence_master: fix register definition for SLAVE_STATE
   4a9829195d9e nvme-pci: Fix async probe remove race
   431f579a5349 nvme: fix a possible deadlock when passthru commands sent to a multipath device
   32c0b8f10351 nvmet-loop: Flush nvme_delete_wq when removing the port
   9c55dc85d890 afs: Only update d_fsdata if different in afs_d_revalidate()
   24e093b96905 fs: afs: Fix a possible null-pointer dereference in afs_put_read()
   8e5179f982f9 afs: Fix loop index mixup in afs_deliver_vl_get_entry_by_name_u()
   dfc438c0bc6d afs: Fix the CB.ProbeUuid service handler to reply correctly
   7436dc2adeff nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns
   2013d6ec0bc0 dmaengine: ste_dma40: fix unneeded variable warning
   97ab07e11fbf Linux 4.19.69
   6d47174198ac rxrpc: Fix local refcounting
   ce3f9e194d25 rxrpc: Fix local endpoint replacement
   a05354cbb822 rxrpc: Fix read-after-free in rxrpc_queue_local()
   f28023c4eedc rxrpc: Fix local endpoint refcounting
   32df8a30b734 powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB
   0d5e34c1e263 dm zoned: fix potential NULL dereference in dmz_do_reclaim()
   655bb2c4ace4 xfs: always rejoin held resources during defer roll
   83a8e6b2f2e3 xfs: Add attibute remove and helper functions
   b21ff6cfcc24 xfs: Add attibute set and helper functions
   b3a248f2307c xfs: Add helper function xfs_attr_try_sf_addname
   a9912f346bdc xfs: Move fs/xfs/xfs_attr.h to fs/xfs/libxfs/xfs_attr.h
   17c2b7af71f2 xfs: don't trip over uninitialized buffer on extent read of corrupted inode
   11f85d4d77af xfs: fix missing ILOCK unlock when xfs_setattr_nonsize fails due to EDQUOT
   ed11e6003314 mm/zsmalloc.c: fix race condition in zs_destroy_pool
   b30a2f608e94 mm/zsmalloc.c: migration can leave pages in ZS_EMPTY indefinitely
   db67ac031655 mm, page_owner: handle THP splits correctly
   42731deff2ea genirq: Properly pair kobject_del() with kobject_add()
   c14fe4e8fd01 dm zoned: properly handle backing device failure
   4530f2f1a79a dm zoned: improve error handling in i/o map code
   8b7c17bb2753 dm zoned: improve error handling in reclaim
   ded8e524cfa6 dm table: fix invalid memory accesses with too high sector number
   53e73d1079d7 dm space map metadata: fix missing store of apply_bops() return value
   2cff6c87a0dc dm raid: add missing cleanup in raid_ctr()
   795b0572729b dm integrity: fix a crash due to BUG_ON in __journal_read_write()
   8114012de6c1 dm btree: fix order of block initialization in btree_split_beneath
   e0fb8135de9e dm kcopyd: always complete failed jobs
   f7d157f33001 x86/boot: Fix boot regression caused by bootparam sanitizing
   d955601166f8 x86/boot: Save fields explicitly, zero out everything else
   e063b03b451a x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h
   685e598e447e x86/apic: Handle missing global clockevent gracefully
   f9747104a5c8 x86/retpoline: Don't clobber RFLAGS during CALL_NOSPEC on i386
   cf13e30c58d4 userfaultfd_release: always remove uffd flags and clear vm_userfaultfd_ctx
   a6f236e1bd97 Drivers: hv: vmbus: Fix virt_to_hvpfn() for X86_PAE
   3783c7ee9920 gpiolib: never report open-drain/source lines as 'input' to user-space
   f88c31b43bab drm/nouveau: Don't retry infinitely when receiving no data on i2c over AUX
   51f6afddb147 libceph: fix PG split vs OSD (re)connect race
   f2951720629e ceph: don't try fill file_lock on unsuccessful GETFILELOCK reply
   7bed2889cd18 ceph: clear page dirty before invalidate page
   a8f7703f2213 clk: socfpga: stratix10: fix rate caclulationg for cnt_clks
   b608a5a238d5 Revert "dm bufio: fix deadlock with loop device"
   375c6c72f56c HID: wacom: Correct distance scale for 2nd-gen Intuos devices
   8317fe4a3906 HID: wacom: correct misreported EKR ring values
   3c4b283a0deb selftests: kvm: Adding config fragments
   ef61b79017ff KVM: arm: Don't write junk to CP15 registers on reset
   d5cb5b493030 KVM: arm64: Don't write junk to sysregs on reset
   590549487679 perf pmu-events: Fix missing "cpu_clk_unhalted.core" event
   06ed429b9018 perf cpumap: Fix writing to illegal memory in handling cpumap mask
   e49cfed0a8cb perf ftrace: Fix failure to set cpumask when only one cpu is present
   7aa8dfa450b4 block, bfq: handle NULL return value by bfq_init_rq()
   fa6f4687805a drm/vmwgfx: fix memory leak when too many retries have occurred
   923de016dc88 x86/lib/cpu: Address missing prototypes warning
   3ca013cd63be libata: add SG safety checks in SFF pio transfers
   3b84bbef51c4 libata: have ata_scsi_rw_xlat() fail invalid passthrough requests
   e0c030221b1f net: hisilicon: Fix dma_map_single failed on arm64
   4ab3052568e5 net: hisilicon: fix hip04-xmit never return TX_BUSY
   09ec5bf10749 net: hisilicon: make hip04_tx_reclaim non-reentrant
   b8d03c79e403 net: stmmac: tc: Do not return a fragment entry
   b6cd6d18423e net: stmmac: Fix issues when number of Queues >= 4
   45e7e4e66b08 net: cxgb3_main: Fix a resource leak in a error path in 'init_one()'
   db106f695414 s390: put _stext and _etext into .text section
   33bdea175df0 SMB3: Kernel oops mounting a encryptData share with CONFIG_DEBUG_VIRTUAL
   fab5a1fd17a6 SMB3: Fix potential memory leak when processing compound chain
   6cb4997861c8 drm/rockchip: Suspend DP late
   1c6ca0921705 HID: input: fix a4tech horizontal wheel custom usage
   f6f9c4491ec5 HID: quirks: Set the INCREMENT_USAGE_ON_DUPLICATE quirk on Saitek X52
   b6fb2f5b33f2 NFS: Fix regression whereby fscache errors are appearing on 'nofsc' mounts
   66daeec347f0 NFSv4: Fix a potential sleep while atomic in nfs4_do_reclaim()
   d1ba0b81e709 net/ethernet/qlogic/qed: force the string buffer NULL-terminated
   35d9e9211baf can: peak_usb: force the string buffer NULL-terminated
   895c8fcfedad can: sja1000: force the string buffer NULL-terminated
   a3d1263c9b03 perf bench numa: Fix cpu0 binding
   4533d08b6528 net: phy: phy_led_triggers: Fix a possible null-pointer dereference in phy_led_trigger_change_speed()
   07efe13b95ab isdn: hfcsusb: Fix mISDN driver crash caused by transfer buffer on the stack
   4db2043eec46 rxrpc: Fix the lack of notification when sendmsg() fails on a DATA packet
   0d68fbc2d07b rxrpc: Fix potential deadlock
   63dd147e7af0 netfilter: ipset: Fix rename concurrency with listing
   ea08214d8cd0 netfilter: ipset: Copy the right MAC address in bitmap:ip,mac and hash:ip,mac sets
   5a072ef6a296 netfilter: ipset: Actually allow destination MAC address for hash:ip,mac sets too
   ba42212ac0a0 mac80211_hwsim: Fix possible null-pointer dereferences in hwsim_dump_radio_nl()
   32cbe03539ac isdn: mISDN: hfcsusb: Fix possible null-pointer dereferences in start_isoc_chain()
   8a24df575c97 qed: RDMA - Fix the hw_ver returned in device attributes
   cb64e86ee0d1 net: usb: qmi_wwan: Add the BroadMobi BM818 card
   bfa713f5cec5 ASoC: ti: davinci-mcasp: Correct slot_width posed constraint
   dd0ff288e344 ASoC: rockchip: Fix mono capture
   c5cb10632c0f st_nci_hci_connectivity_event_received: null check the allocation
   0d73ba88f466 st21nfca_connectivity_event_received: null check the allocation
   714a8438fc8a ASoC: Fail card instantiation if DAI format setup fails
   bd2f4c7c2d6a can: gw: Fix error path of cgw_module_init
   3257103502cf can: mcp251x: add error check when wq alloc failed
   dbf790dcb8a9 can: dev: call netif_carrier_off() in register_candev()
   43d31fd9a8f2 selftests: forwarding: gre_multipath: Fix flower filters
   ef52e2b9a621 selftests: forwarding: gre_multipath: Enable IPv4 forwarding
   192bbe9d57ed net: mvpp2: Don't check for 3 consecutive Idle frames for 10G links
   a1e5a76db8dd bonding: Force slave speed check after link state recovery for 802.3ad
   b7038c195fd1 selftests/bpf: fix sendmsg6_prog on s390
   e6dc6409f474 ASoC: dapm: Fix handling of custom_stop_condition on DAPM graph walks
   71305e8ee503 netfilter: ebtables: fix a memory leak bug in compat
   70b4edd74b6d mips: fix cacheinfo
   326175aa28fd MIPS: kernel: only use i8253 clocksource with periodic clockevent
   a6067c6e630f HID: Add 044f:b320 ThrustMaster, Inc. 2 in 1 DT
   def4c11b3131 Linux 4.19.68
   7c13983a2860 mmc: sdhci-of-arasan: Do now show error message in case of deffered probe
   447f5f48f4fa net/mlx5e: Use flow keys dissector to parse packets for ARFS
   fbd8ab680675 net/mlx5e: Only support tx/rx pause setting for port owner
   b3410f0f8505 xen/netback: Reset nr_frags before freeing skb
   cc4ff0f4f564 tipc: initialise addr_trail_end when setting node addresses
   e89bb758c030 team: Add vlan tx offload to hw_enc_features
   eeb148d20819 sctp: fix the transport error_count check
   227f204ad197 sctp: fix memleak in sctp_send_reset_streams
   154e6bc497c9 net/packet: fix race in tpacket_snd()
   f588dccfc137 net/mlx4_en: fix a memory leak bug
   8905a249448c net: dsa: Check existence of .port_mdb_add callback before calling it
   d61d8ea9ca12 bonding: Add vlan tx offload to hw_enc_features
   40933af400c5 bnx2x: Fix VF's VLAN reconfiguration in reload.
   03d54393e3d7 iommu/amd: Move iommu_init_pci() to .init section
   62e023ddd01a Input: psmouse - fix build error of multiple definition
   28ff7d3b3fda netfilter: conntrack: Use consistent ct id hash calculation
   30b9da0ec2a2 arm64: ftrace: Ensure module ftrace trampoline is coherent with I-side
   a1cd2f7015bd dm: disable DISCARD if the underlying storage no longer supports it
   4af28b2f19b0 drm/i915/cfl: Add a new CFL PCI ID.
   3ca5b7b4afee USB: serial: option: Add Motorola modem UARTs
   e480d6cf6f79 USB: serial: option: add the BroadMobi BM818 card
   8175fa2987a6 USB: serial: option: Add support for ZTE MF871A
   afb677b29995 USB: serial: option: add D-Link DWM-222 device ID
   487d66ae8f45 USB: CDC: fix sanity checks in CDC union parser
   c02c0249ce55 usb: cdc-acm: make sure a refcount is taken early enough
   f417f9715f4c usb: gadget: udc: renesas_usb3: Fix sysfs interface of "role"
   7f52d6d2a82d USB: core: Fix races in character device registration and deregistraion
   367d103a4a93 iio: adc: max9611: Fix temperature reading in probe
   dac96992f00a staging: comedi: dt3000: Fix rounding up of timer divisor
   2e394bcfdcf3 staging: comedi: dt3000: Fix signed integer overflow 'divider * base'
   8c7053d162d9 KVM: arm/arm64: Sync ICH_VMCR_EL2 back when about to block
   c8d95668c4ca arm64: KVM: regmap: Fix unexpected switch fall-through
   0755b6b152cb asm-generic: fix -Wtype-limits compiler warnings
   7113a1bc19fa ocfs2: remove set but not used variable 'last_hash'
   01d8d08f4cd4 Revert "kmemleak: allow to coexist with fault injection"
   cf9a18d7bcd0 drm/exynos: fix missing decrement of retry counter
   c256729f2695 drm: msm: Fix add_gpu_components
   b4f0fee7f77c IB/mad: Fix use-after-free in ib mad completion handling
   a0258ff4993f IB/mlx5: Fix MR registration flow to use UMR properly
   efb742ce4e27 IB/core: Add mitigation for Spectre V1
   4a0d2eeea27a arm64/mm: fix variable 'pud' set but not used
   6af9263f685d arm64: unwind: Prohibit probing on return_address()
   ffb1a76d1c29 arm64/efi: fix variable 'si' set but not used
   48522289bf50 kbuild: Check for unknown options with cc-option usage in Kconfig and clang
   b3aebdd46d63 kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules
   23bc01f0d955 ata: libahci: do not complain in case of deferred probe
   68340db992f6 drm/amdgpu: fix a potential information leaking bug
   02d4fe0193d5 scsi: qla2xxx: Fix possible fcport null-pointer dereferences
   3435e025ed71 scsi: hpsa: correct scsi command status issue after reset
   f833deae2a06 Btrfs: fix deadlock between fiemap and transaction commits
   202aa96f052a drm/bridge: lvds-encoder: Fix build error while CONFIG_DRM_KMS_HELPER=m
   f69fd790edf7 libata: zpodd: Fix small read overflow in zpodd_get_mech_type()
   0a19fff567a0 perf header: Fix use of unitialized value warning
   ab5aa579ca82 perf header: Fix divide by zero error if f_header.attr_size==0
   a5e40452c916 irqchip/irq-imx-gpcv2: Forward irq type to parent
   dcb73180de61 irqchip/gic-v3-its: Free unused vpt_page when alloc vpe table fail
   e72e6ba17ab4 xen/pciback: remove set but not used variable 'old_state'
   ca5b26a8f1d8 clk: renesas: cpg-mssr: Fix reset control race condition
   af2ed1a05a7a clk: sprd: Select REGMAP_MMIO to avoid compile errors
   3e5f29b66675 clk: at91: generated: Truncate divisor to GENERATED_MAX_DIV + 1
   28fd9b37b6bb riscv: Make __fstate_clean() work correctly.
   cef0e9eb2231 netfilter: ebtables: also count base chain policies
   07d92caeb945 net: usb: pegasus: fix improper read if get_registers() fail
   f13de3d677d1 Input: iforce - add sanity checks
   08b3af00a161 Input: kbtab - sanity check for endpoint type
   b545dc9debe6 HID: hiddev: do cleanup in failure of opening a device
   0aab1a4653a6 HID: hiddev: avoid opening a disconnected device
   537d957b144f HID: holtek: test for sanity of intfdata
   9585f4440cec ALSA: hda - Let all conexant codec enter D3 when rebooting
   e58ba88d6c60 ALSA: hda - Add a generic reboot_notify
   6c4a536ca97b ALSA: hda - Fix a memory leak bug
   1bf5f827564c ALSA: hda - Apply workaround for another AMD chip 1022:1487
   58b9f19ee438 ALSA: usb-audio: Fix an OOB bug in parse_audio_mixer_unit
   46f9a1bc60a4 ALSA: usb-audio: Fix a stack buffer overflow bug in check_input_term
   d5bb12402805 ALSA: hda/realtek - Add quirk for HP Envy x360
   61f6ecb75845 xtensa: add missing isync to the cpu_reset TLB code
   7c001e5aab6d cpufreq: schedutil: Don't skip freq update when limits change
   7f68aa2e3e1b Revert "pwm: Set class for exported channels in sysfs"
   056368fc3ef7 mm/usercopy: use memory range to be accessed for wraparound check
   c8282f1b5653 mm/memcontrol.c: fix use after free in mem_cgroup_iter()
   3c0cb90e9212 mm: mempolicy: handle vma with unmovable pages mapped correctly in mbind
   cd825d87140d mm: mempolicy: make the behavior consistent when MPOL_MF_MOVE* and MPOL_MF_STRICT were specified
   f0fed8283deb mm/hmm: fix bad subpage pointer in try_to_unmap_one
   3858cca150c6 seq_file: fix problem when seeking mid-record
   50d15197254a sh: kernel: hw_breakpoint: Fix missing break in switch statement
   a5aa80588fcd Linux 4.19.67
   ac2951114955 iwlwifi: mvm: fix version check for GEO_TX_POWER_LIMIT support
   6a81677a2e65 iwlwifi: mvm: don't send GEO_TX_POWER_LIMIT on version < 41
   80bac45e3ad8 iwlwifi: mvm: fix an out-of-bound access
   7626b510fc77 iwlwifi: don't unmap as page memory that was mapped as single
   b38c56b76dcc mwifiex: fix 802.11n/WPA detection
   2bc73d914114 KVM: Fix leak vCPU's VMCS value into other pCPU
   d1489f0b4de7 NFSv4: Fix an Oops in nfs4_do_setattr
   898c19f1b4c8 smb3: send CAP_DFS capability during session setup
   50831f1a2f57 SMB3: Fix deadlock in validate negotiate hits reconnect
   2afa6c13e498 dax: dax_layout_busy_page() should not unmap cow pages
   a566750c3a78 mac80211: don't WARN on short WMM parameters from AP
   af9d64f871cf ALSA: hda - Workaround for crackled sound on AMD controller (1022:1457)
   06f0bcaceb8c ALSA: hda - Don't override global PCM hw info flag
   1c286e4e13f2 ALSA: hiface: fix multiple memory leak bugs
   bc972b6b52e2 ALSA: firewire: fix a memory leak bug
   edc388566a1d drm/i915: Fix wrong escape clock divisor init for GLK
   a73027204ac5 hwmon: (nct7802) Fix wrong detection of in4 presence
   9ce1b3eb5489 can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices
   cab569a44a52 can: peak_usb: pcan_usb_pro: Fix info-leaks to USB devices
   d4d904e4e258 ALSA: usb-audio: fix a memory leak bug
   e0d262a57fc7 x86/purgatory: Do not use __builtin_memcpy and __builtin_memset
   118293070096 HID: sony: Fix race condition between rumble and device remove.
   5c4689cbe95a s390/dma: provide proper ARCH_ZONE_DMA_BITS value
   d768173982ec perf/core: Fix creating kernel counters for PMUs that override event->cpu
   06dc92142b5e tty/ldsem, locking/rwsem: Add missing ACQUIRE to read_failed sleep loop
   0ba69e96cc62 test_firmware: fix a memory leak bug
   cdd92ebe29c2 scsi: scsi_dh_alua: always use a 2 second delay before retrying RTPG
   b620c6d5779a scsi: ibmvfc: fix WARN_ON during event pool release
   f254faed4153 scsi: megaraid_sas: fix panic on loading firmware crashdump
   bb41940c89bd ARM: dts: bcm: bcm47094: add missing #cells for mdio-bus-mux
   19e7df3e4fe7 ARM: davinci: fix sleep.S build error on ARMv4
   bdce5621e6b0 nvme: fix multipath crash when ANA is deactivated
   b1689742ff4a ACPI/IORT: Fix off-by-one check in iort_dev_find_its_id()
   38c919ec7b30 drbd: dynamically allocate shash descriptor
   f4e2d182d6a6 perf probe: Avoid calling freeing routine multiple times for same pointer
   101a155436fe perf tools: Fix proper buffer size for feature processing
   b065f404c946 ALSA: compress: Be more restrictive about when a drain is allowed
   30dd700da7de ALSA: compress: Don't allow paritial drain operations on capture streams
   f1ea9a638770 ALSA: compress: Prevent bypasses of set_params
   b9e2fa1e15b7 ALSA: compress: Fix regression on compressed capture streams
   77868c0003cc s390/qdio: add sanity checks to the fast-requeue path
   8729fe83b0d5 cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()
   991c4756be69 drm: silence variable 'conn' set but not used
   ca1b1940a32a hwmon: (nct6775) Fix register address and added missed tolerance for nct6106
   56dc57c705ef allocate_flower_entry: should check for null deref
   f4cfdd46b356 mac80211: don't warn about CW params when not using them
   f2fd89817212 nl80211: fix NL80211_HE_MAX_CAPABILITY_LEN
   492c158ab2c0 iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND
   8d641499bf96 drm/amd/display: Increase size of audios array
   f9420bfa29f9 drm/amd/display: Only enable audio if speaker allocation exists
   3998e684463a drm/amd/display: Fix dc_create failure handling and 666 color depths
   e7a8a794109c drm/amd/display: use encoder's engine id to find matched free audio device
   2a5e21adc71b drm/amd/display: Wait for backlight programming completion in set backlight level
   056af94d6e10 scripts/sphinx-pre-install: fix script for RHEL/CentOS
   36b6458d8541 netfilter: nft_hash: fix symhash with modulus one
   6f1d7f0d6689 netfilter: conntrack: always store window size un-scaled
   307b6e5d90dc netfilter: Fix rpfilter dropping vrf packets by mistake
   6f9dff8d1d58 vfio-ccw: Set pa_nr to 0 if memory allocation fails for pa_iova_pfn
   bb312b4aa8b0 netfilter: nfnetlink: avoid deadlock due to synchronous request_module
   f61c4d3a1f18 can: peak_usb: fix potential double kfree_skb()
   0e9038a26c9b can: rcar_canfd: fix possible IRQ storm on high load
   9479a0589923 usb: typec: tcpm: Ignore unsupported/unknown alternate mode requests
   3f524b631db7 usb: typec: tcpm: Add NULL check before dereferencing config
   bbc2e8206012 usb: typec: tcpm: remove tcpm dir if no children
   2ec5c9b785f4 usb: typec: tcpm: free log buf memory when remove debug file
   33f2240acfa8 usb: yurex: Fix use-after-free in yurex_delete
   49888a4f0ebc usb: host: xhci-rcar: Fix timeout in xhci_suspend()
   21344f0575f0 gfs2: gfs2_walk_metadata fix
   b674f7914a64 x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS
   0a9e41e27659 perf record: Fix module size on s390
   f1f662894361 perf db-export: Fix thread__exec_comm()
   532db2b9756a perf annotate: Fix s390 gap between kernel end and module start
   46b306f3cd7b mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()
   9935d7ed8406 x86/mm: Sync also unmappings in vmalloc_sync_all()
   dd524d488f5b x86/mm: Check for pfn instead of page in vmalloc_sync_one()
   b8a2169bcad8 Input: synaptics - enable RMI mode for HP Spectre X360
   3d180fe5cd76 Input: elantech - enable SMBus on new (2018+) systems
   ce7d4fe4e52b Input: usbtouchscreen - initialize PM mutex before using it
   c9a1c10487b9 loop: set PF_MEMALLOC_NOIO for the worker thread
   d79d76f2bbb0 mmc: cavium: Add the missing dma unmap when the dma has finished.
   fd3f902dd1d5 mmc: cavium: Set the correct dma max segment size for mmc_host
   9575ba61ba19 sound: fix a memory leak bug
   d397091dbac0 usb: iowarrior: fix deadlock on disconnect
   b43611cd762c usb: usbfs: fix double-free of usb memory upon submiturb error
   6dbc3b74daeb crypto: ccp - Ignore tag length when decrypting GCM ciphertext
   30692edea30d crypto: ccp - Add support for valid authsize values less than 16
   1c4393df3622 crypto: ccp - Fix oops by properly managing allocated structures
   b9de21575a20 staging: android: ion: Bail out upon SIGKILL when allocating memory.
   6b8f93b5a4f7 staging: gasket: apex: fix copy-paste typo
   fcab37830177 iio: adc: max9611: Fix misuse of GENMASK macro
   805bd34ac269 iio: cros_ec_accel_legacy: Fix incorrect channel setting
   893af1c79e42 Linux 4.19.66
   48fcdaba7b0d spi: bcm2835: Fix 3-wire mode if DMA is enabled
   ebda41dd170f cgroup: Fix css_task_iter_advance_css_set() cset skip condition
   0a9abd277819 cgroup: css_task_iter_skip()'d iterators must be advanced before accessed
   4340d175b898 cgroup: Include dying leaders with live threads in PROCS iterations
   370b9e6399da cgroup: Implement css_task_iter_skip()
   7528e95b7519 cgroup: Call cgroup_release() before __exit_signal()
   e6e9bcef12ca compat_ioctl: pppoe: fix PPPOEIOCSFWD handling
   473430ed6117 r8169: don't use MSI before RTL8168d
   0ccf47265e4c net/mlx5e: Prevent encap flow counter update async to user query
   cd84a10792f0 net/mlx5: Fix modify_cq_in alignment
   f378724e10ce tun: mark small packets as owned by the tap sock
   5295d6515485 tipc: compat: allow tipc commands without arguments
   eaa34bd4f7b5 ocelot: Cancel delayed work before wq destruction
   cd7f02fecac1 NFC: nfcmrvl: fix gpio-handling regression
   ce58a3655121 net/smc: do not schedule tx_work in SMC_CLOSED state
   51d240a144a5 net: sched: use temporary variable for actions indexes
   cb20f74135df net sched: update vlan action for batched events operations
   d82dc254b967 net: sched: Fix a possible null-pointer dereference in dequeue_func()
   44b96a38c2b5 net: qualcomm: rmnet: Fix incorrect UL checksum offload logic
   c8b05980c4bf net: phylink: Fix flow control for fixed-link
   4dddd08b571d net/mlx5: Use reversed order when unregister devices
   858f82c63667 net/mlx5e: always initialize frag->last_in_page
   edb7ad69c439 net: fix ifindex collision during namespace removal
   a19d4e34f092 net: bridge: mcast: don't delete permanent entries when fast leave is enabled
   639239be11ad net: bridge: delete local fdb on device init failure
   b3645a487373 mvpp2: refactor MTU change code
   ffab47bf69df mvpp2: fix panic on module removal
   3c46905fb182 mlxsw: spectrum: Fix error path in mlxsw_sp_module_init()
   f186fb5ccf69 ipip: validate header length in ipip_tunnel_xmit
   1bb2dd37cb87 ip6_tunnel: fix possible use-after-free on xmit
   fdcefa46c5c2 ip6_gre: reload ipv6h in prepare_ip6gre_xmit_ipv6
   c4c8899376c2 ife: error out when nla attributes are empty
   774358df88f7 bnx2x: Disable multi-cos feature.
   cb4626784f39 atm: iphase: Fix Spectre v1 vulnerability
   8440cdc77577 IB: directly cast the sockaddr union to aockaddr
   608cfdfa9eb7 HID: Add quirk for HP X1200 PIXART OEM mouse
   e830c2c3c174 HID: wacom: fix bit shift for Cintiq Companion 2
   2364ed0d8ed1 libnvdimm/bus: Fix wait_nvdimm_bus_probe_idle() ABBA deadlock
   7f000e7b4490 libnvdimm/bus: Prepare the nd_ioctl() path to be re-entrant
   3248536919c1 libnvdimm/region: Register badblocks before namespaces
   d16bbdbbcb50 libnvdimm/bus: Prevent duplicate device_unregister() calls
   c23106d4276d drivers/base: Introduce kill_device()
   7c43f84efd6d driver core: Establish order of operations for device_add and device_del via bitflag
   a152a7b411a5 gcc-9: don't warn about uninitialized variable
   93d6f0841eef scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure
   cc4c818b2219 Linux 4.19.65
   7634b9cd27e8 Documentation: Add swapgs description to the Spectre v1 documentation
   b88241aef6f1 x86/speculation/swapgs: Exclude ATOMs from speculation through SWAPGS
   931b6bfe8af1 x86/entry/64: Use JMP instead of JMPQ
   23e7a7b3a75f x86/speculation: Enable Spectre v1 swapgs mitigations
   befb822c062b x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations
   b5dd7f61fce4 x86/cpufeatures: Combine word 11 and 12 into a new scattered features word
   16ad0b63f382 x86/cpufeatures: Carve out CQM features retrieval
   9e034c61951a scsi: mpt3sas: Use 63-bit DMA addressing on SAS35 HBA
   3732a473be54 x86/vdso: Prevent segfaults due to hoisted vclock reads
   8320768d26aa gcc-9: properly declare the {pv,hv}clock_page storage
   354887ae3168 objtool: Support GCC 9 cold subfunction naming scheme
   89f3896b658b ARC: enable uboot support unconditionally
   8dd376273fb4 eeprom: at24: make spd world-readable again
   a7340d31abac drm/i915/gvt: fix incorrect cache entry for guest page mapping
   a1c020ce2669 IB/hfi1: Check for error on call to alloc_rsm_map_table
   e9cd4962a85b IB/mlx5: Fix RSS Toeplitz setup to be aligned with the HW specification
   924308d2a6ea IB/mlx5: Fix clean_mr() to work in the expected order
   7e5ce9f3943c IB/mlx5: Move MRs to a kernel PD when freeing them to the MR cache
   3cfa1087a172 IB/mlx5: Use direct mkey destroy command upon UMR unreg failure
   41be1928053a IB/mlx5: Fix unreg_umr to ignore the mkey state
   04fdca1f2f65 xen/swiotlb: fix condition for calling xen_destroy_contiguous_region()
   eb828241b491 nbd: replace kill_bdev() with __invalidate_device() again
   8dfef0f442c7 arm64: cpufeature: Fix feature comparison for CTR_EL0.{CWG,ERG}
   2bddc985656a arm64: compat: Allow single-byte watchpoints on all addresses
   c385cda0e70a drivers/perf: arm_pmu: Fix failure path in PM notifier
   5f80ac50b98c parisc: Fix build of compressed kernel even with debug enabled
   001f93d95d6c cgroup: kselftest: relax fs_spec checks
   6cb9e0d9ad3e s390/dasd: fix endless loop after read unit address configuration
   beb0cc781b8e mm: vmscan: check if mem cgroup is disabled or not before calling memcg slab shrinker
   72651bbdf3d5 ALSA: hda: Fix 1-minute detection delay when i915 module is not available
   46650ac2e1d8 selinux: fix memory leak in policydb_init()
   e7bb4c81b3c7 mtd: rawnand: micron: handle on-die "ECC-off" devices correctly
   fafaeae4d356 IB/hfi1: Fix Spectre v1 vulnerability
   fdb0fb56addb gpiolib: fix incorrect IRQ requesting of an active-low lineevent
   7e3efb655012 mmc: meson-mx-sdio: Fix misuse of GENMASK macro
   29841b5c6ab1 mmc: dw_mmc: Fix occasional hang after tuning on eMMC
   50d700408a00 Btrfs: fix race leading to fs corruption after transaction abort
   009d7a4eb329 Btrfs: fix incremental send failure after deduplication
   4c5a442561e8 kbuild: initialize CLANG_FLAGS correctly in the top Makefile
   3736612d2582 kconfig: Clear "written" flag to avoid data loss
   4c6500b5328f drm/nouveau: fix memory leak in nouveau_conn_reset()
   84ce045222e9 x86, boot: Remove multiple copy of static function sanitize_boot_params()
   740e0167a382 x86/paravirt: Fix callee-saved function ELF sizes
   ba5c072fbf8b x86/kvm: Don't call kvm_spurious_fault() from .fixup
   11cb9f8700c9 xen/pv: Fix a boot up hang revealed by int3 self test
   d3e36788d9be mlxsw: spectrum_dcb: Configure DSCP map as the last rule is removed
   48c5c4f0a47f ipc/mqueue.c: only perform resource calculation if user valid
   f87314225294 drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings
   35ee8b844845 uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers
   dea2ee496a85 coda: fix build using bare-metal toolchain
   cf3ddc00a47d coda: add error handling for fget
   93b83005ea87 lib/test_string.c: avoid masking memset16/32/64 failures
   8e087a2abaf8 lib/test_overflow.c: avoid tainting the kernel and fix wrap size
   439c79ed7718 mm/cma.c: fail if fixed declaration can't be honored
   1b84e67496d3 x86: math-emu: Hide clang warnings for 16-bit overflow
   242666b2b7e2 x86/apic: Silence -Wtype-limits compiler warnings
   ade866ad5aed be2net: Signal that the device cannot transmit during reconfiguration
   c0cca0e97ce4 ACPI: fix false-positive -Wuninitialized warning
   80f58147da0f x86: kvm: avoid constant-conversion warning
   d60e8c0cbccb perf version: Fix segfault due to missing OPT_END()
   abfe761a5358 scsi: zfcp: fix GCC compiler warning emitted with -Wmaybe-uninitialized
   d5568763dd1d ACPI: blacklist: fix clang warning for unused DMI table
   c47e25526071 ceph: return -ERANGE if virtual xattr value didn't fit in buffer
   b39c377ea08f ceph: fix improper use of smp_mb__before_atomic()
   d29fbf677963 cifs: Fix a race condition with cifs_echo_request
   f96c70fa810d btrfs: qgroup: Don't hold qgroup_ioctl_lock in btrfs_qgroup_inherit()
   d9245dabfce1 btrfs: fix minimum number of chunk errors for DUP
   e7fcc587e076 clk: sprd: Add check for return value of sprd_clk_regmap_init()
   a093208b4c73 fs/adfs: super: fix use-after-free bug
   85d854b42113 clk: tegra210: fix PLLU and PLLU_OUT1
   cf0fcc7fe200 dmaengine: rcar-dmac: Reject zero-length slave DMA requests
   a3524486535a MIPS: lantiq: Fix bitfield masking
   cdee3f53510a firmware/psci: psci_checker: Park kthreads before stopping them
   09ec6c6783ff kernel/module.c: Only return -EEXIST for modules that have finished loading
   fd53e45a11e9 arm64: dts: rockchip: fix isp iommu clocks and power domain
   d8388cbd4327 dmaengine: tegra-apb: Error out if DMA_PREP_INTERRUPT flag is unset
   f486088d38ec ftrace: Enable trampoline when rec count returns back to one
   ea26b427cb91 ARM: dts: rockchip: Mark that the rk3288 timer might stop in suspend
   22befe671728 ARM: dts: rockchip: Make rk3288-veyron-mickey's emmc work again
   8c5a33d34be6 ARM: dts: rockchip: Make rk3288-veyron-minnie run at hs200
   3c1d1bad8a57 ARM: riscpc: fix DMA
   b3060a1a313f Linux 4.19.64
   4736bb277744 ip_tunnel: allow not to count pkts on tstats by setting skb's dev to NULL
   475f7781a804 scsi: core: Avoid that a kernel warning appears during system resume
   c58a6507363b block, scsi: Change the preempt-only flag into a counter
   9b17512d9165 ceph: hold i_ceph_lock when removing caps for freeing inode
   b6c3b6a2c662 Fix allyesconfig output.
   135e7737e21f drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl
   54695343b491 /proc/<pid>/cmdline: add back the setproctitle() special case
   54ffaa53e785 /proc/<pid>/cmdline: remove all the special cases
   a5a3915f17ab sched/fair: Use RCU accessors consistently for ->numa_group
   48046e092ad5 sched/fair: Don't free p->numa_faults with concurrent readers
   02cdc166128c vhost: scsi: add weight support
   239910101c4e vhost: vsock: add weight support
   3af3b843aee4 vhost_net: fix possible infinite loop
   ad5fc8953d61 vhost: introduce vhost_exceeds_weight()
   56966212e23f Bluetooth: hci_uart: check for missing tty operations
   3a0c22cbc5d0 iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA
   4fd0eb60bad1 iommu/vt-d: Don't queue_iova() if there is no flush queue
   b3836af8560e media: radio-raremono: change devm_k*alloc to k*alloc
   afb5340f9438 NFS: Cleanup if nfs_match_client is interrupted
   8edcabb2c2e9 media: pvrusb2: use a different format for warnings
   8b44cc225e60 media: cpia2_usb: first wake up, then free in disconnect
   693019ee7d98 ath10k: Change the warning message string
   3cf6a0707088 media: au0828: fix null dereference in error path
   f13ee5ae0b2f ISDN: hfcsusb: checking idx of ep configuration
   22068d49d09d binder: fix possible UAF when freeing buffer
   ba2c247a4515 arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ
   b544a6855dfb usb: dwc2: Fix disable all EP's on disconnect
   ec58bfa2d412 usb: dwc2: Disable all EP's on disconnect
   9e441c7844a6 NFSv4: Fix lookup revalidate of regular files
   24acd93f5995 NFS: Refactor nfs_lookup_revalidate()
   01eea1cbba9d NFS: Fix dentry revalidation on NFSv4 lookup
   8a474bc4e613 vsock: correct removal of socket from the list
   9d3586bcdae3 hv_sock: Add support for delayed close
   9a9de33a9dfa Linux 4.19.63
   408af82309a7 access: avoid the RCU grace period for the temporary subjective credentials
   1a547d24ec8a libnvdimm/bus: Stop holding nvdimm_bus_list_mutex over __nd_ioctl()
   b993a66d8ddc powerpc/tm: Fix oops on sigreturn on systems without TM
   b9310c56fcfb powerpc/xive: Fix loop exit-condition in xive_find_target_in_mask()
   c219444254cf ALSA: hda - Add a conexant codec entry to let mute led work
   491483ed70f1 ALSA: line6: Fix wrong altsetting for LINE6_PODHD500_1
   602744097b2e ALSA: ac97: Fix double free of ac97_codec_device
   9845fb5a3f90 hpet: Fix division by zero in hpet_time_div()
   e4c91583b39c mei: me: add mule creek canyon (EHL) device ids
   3d0a6926e610 fpga-manager: altera-ps-spi: Fix build error
   e907b1314481 binder: prevent transactions to context manager from its own process.
   7d20e3ba7072 x86/speculation/mds: Apply more accurate check on hypervisor platform
   5e87e8b4dc0c x86/sysfb_efi: Add quirks for some devices with swapped width and height
   e3dc9ea5464e btrfs: inode: Don't compress if NODATASUM or NODATACOW set
   1f37bec82f41 usb: pci-quirks: Correct AMD PLL quirk detection
   41d3dbb931c0 usb: wusbcore: fix unbalanced get/put cluster_id
   148959cc64e1 locking/lockdep: Hide unused 'class' variable
   b07687243d4a mm: use down_read_killable for locking mmap_sem in access_remote_vm
   4acb04ef5e42 locking/lockdep: Fix lock used or unused stats error
   af0883f9dcf6 proc: use down_read_killable mmap_sem for /proc/pid/maps
   0d72bb853afc cxgb4: reduce kernel stack usage in cudbg_collect_mem_region()
   6ecdcbcd3091 proc: use down_read_killable mmap_sem for /proc/pid/map_files
   3d617da8a956 proc: use down_read_killable mmap_sem for /proc/pid/clear_refs
   42beb7b3d446 proc: use down_read_killable mmap_sem for /proc/pid/pagemap
   1b3042d0d32b proc: use down_read_killable mmap_sem for /proc/pid/smaps_rollup
   a8c568fc4832 mm/mmu_notifier: use hlist_add_head_rcu()
   3062448e3ee2 memcg, fsnotify: no oom-kill for remote memcg charging
   041b127df733 mm/gup.c: remove some BUG_ONs from get_gate_page()
   fa099d6ddf68 mm/gup.c: mark undo_dev_pagemap as __maybe_unused
   8be4a30e2d34 9p: pass the correct prototype to read_cache_page
   071f2135cfec mm/kmemleak.c: fix check for softirq context
   7bd5902a1e18 sh: prevent warnings when using iounmap
   af50d6a1c245 block/bio-integrity: fix a memory leak bug
   7f775a67abe4 powerpc/eeh: Handle hugepages in ioremap space
   e7a41b276974 dlm: check if workqueues are NULL before flushing/destroying
   5d59e28c3d1b mailbox: handle failed named mailbox channel request
   2140a6b03a61 f2fs: avoid out-of-range memory access
   8a1a3d383923 block: init flush rq ref count to 1
   4b9dc73a0d4a powerpc/boot: add {get, put}_unaligned_be32 to xz_config.h
   549f726fb094 PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB
   367cc371a8e3 RDMA/rxe: Fill in wc byte_len with IB_WC_RECV_RDMA_WITH_IMM
   4fe7ea29e4a6 perf hists browser: Fix potential NULL pointer dereference found by the smatch tool
   915945f3bdc2 perf annotate: Fix dereferencing freed memory found by the smatch tool
   b305dcff1518 perf session: Fix potential NULL pointer dereference found by the smatch tool
   19cf571c64b7 perf top: Fix potential NULL pointer dereference detected by the smatch tool
   995527db41f6 perf stat: Fix use-after-freed pointer detected by the smatch tool
   3b8c4eae5541 perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning
   dd0a0c72a10f PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions
   270972df68fb PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers
   9eb4f2886db3 kallsyms: exclude kasan local symbols on s390
   4613f46ef472 PCI: mobiveil: Fix the Class Code field
   51308ec525cc PCI: mobiveil: Fix PCI base address in MEM/IO outbound windows
   05959ed85e34 arm64: assembler: Switch ESB-instruction with a vanilla nop if !ARM64_HAS_RAS
   007b01a27d4d IB/ipoib: Add child to parent list only if device initialized
   d48720bafd90 powerpc/mm: Handle page table allocation failures
   f14537bb81d1 IB/mlx5: Fixed reporting counters on 2nd port for Dual port RoCE
   d03aeb8d6b98 serial: sh-sci: Fix TX DMA buffer flushing and workqueue races
   48c73b8ee5c9 serial: sh-sci: Terminate TX DMA during buffer flushing
   ca730bf0cd67 RDMA/i40iw: Set queue pair state when being queried
   52373ab6a6c7 powerpc/4xx/uic: clear pending interrupt after irq type/pol change
   74520144700d um: Silence lockdep complaint about mmap_sem
   30edc7c1fed5 mm/swap: fix release_pages() when releasing devmap pages
   b4e77006d5a7 mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk
   9b1691c3f660 mfd: arizona: Fix undefined behavior
   d9c74176c275 mfd: core: Set fwnode for created devices
   7b24a4a363a9 mfd: madera: Add missing of table registration
   e00cf1dac30c recordmcount: Fix spurious mcount entries on powerpc
   9fac39480e39 powerpc/xmon: Fix disabling tracing while in xmon
   a80f67d5560c powerpc/cacheflush: fix variable set but not used
   b150423e0d5e iio: iio-utils: Fix possible incorrect mask calculation
   fc9c15c4e3ff PCI: xilinx-nwl: Fix Multi MSI data programming
   e3e2bb12c8a7 genksyms: Teach parser about 128-bit built-in types
   27f2335e1440 kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS
   1fa94381fdeb i2c: stm32f7: fix the get_irq error cases
   f930727faef2 PCI: sysfs: Ignore lockdep for remove attribute
   9d45fbee76af serial: mctrl_gpio: Check if GPIO property exisits before requesting it
   e7f206f42fb6 drm/msm: Depopulate platform on probe failure
   216462fa884f powerpc/pci/of: Fix OF flags parsing for 64bit BARs
   5d3ad905af43 mmc: sdhci: sdhci-pci-o2micro: Check if controller supports 8-bit width
   bf7cf9fb02db usb: gadget: Zero ffs_io_data
   ac380eb479de tty: serial_core: Set port active bit in uart_port_activate
   785e11c06db3 serial: imx: fix locking in set_termios()
   741f8b39b6d4 drm/rockchip: Properly adjust to a true clock in adjusted_mode
   fd0d171c7064 powerpc/pseries/mobility: prevent cpu hotplug during DT update
   6a7047471073 drm/amd/display: fix compilation error
   709ca46f1d46 phy: renesas: rcar-gen2: Fix memory leak at error paths
   725c7b781150 drm/virtio: Add memory barriers for capset cache.
   11b4e9f3695c drm/amd/display: Always allocate initial connector state state
   1a2425b597fa serial: 8250: Fix TX interrupt handling condition
   a0e7d6b7fa55 tty: serial: msm_serial: avoid system lockup condition
   e40f5a873fc7 tty/serial: digicolor: Fix digicolor-usart already registered warning
   5c0e54839d48 memstick: Fix error cleanup path of memstick_init
   0a50a272389f drm/crc-debugfs: Also sprinkle irqrestore over early exits
   26a66454541c drm/crc-debugfs: User irqsafe spinlock in drm_crtc_add_crc_entry
   4d14323a2eb5 gpu: host1x: Increase maximum DMA segment size
   f9bfd6bd8223 drm/bridge: sii902x: pixel clock unit is 10kHz instead of 1kHz
   7af9abd7d6bd drm/bridge: tc358767: read display_props in get_modes()
   49c7230d8f10 PCI: Return error if cannot probe VF
   2a18d76592e0 drm/edid: Fix a missing-check bug in drm_load_edid_firmware()
   210dfe630911 drm/amdkfd: Fix sdma queue map issue
   db64bc139440 drm/amdkfd: Fix a potential memory leak
   6b1d2871fe36 drm/amd/display: Disable ABM before destroy ABM struct
   c242a531bb06 drm/amdgpu/sriov: Need to initialize the HDP_NONSURFACE_BAStE
   147137f86b5b drm/amd/display: Fill prescale_params->scale for RGB565
   08b0bcc8076b tty: serial: cpm_uart - fix init when SMC is relocated
   c901780d9294 pinctrl: rockchip: fix leaked of_node references
   a9dfb6e43677 tty: max310x: Fix invalid baudrate divisors calculator
   b0084c1b5058 usb: core: hub: Disable hub-initiated U1/U2
   19755a124f4c staging: vt6656: use meaningful error code during buffer allocation
   b59f7650a507 iio: adc: stm32-dfsdm: missing error case during probe
   302e4cdca1f4 iio: adc: stm32-dfsdm: manage the get_irq error case
   586946ce83e4 drm/panel: simple: Fix panel_simple_dsi_probe
   49fb03de361d hvsock: fix epollout hang from race condition
   64f4694072aa Linux 4.19.62
   60e9babfda94 net: sched: verify that q!=NULL before setting q->flags
   c1d98b766ebe mm: vmscan: scan anonymous pages on file refaults
   7560e33369ed KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested
   967bc679c596 KVM: nVMX: do not use dangling shadow VMCS after guest reset
   3a17ca864baf ext4: allow directory holes
   caa4e08253eb ext4: use jbd2_inode dirty range scoping
   af3812b65c37 jbd2: introduce jbd2_inode dirty range scoping
   4becd6c11e9a mm: add filemap_fdatawait_range_keep_errors()
   c9ea4620a37f ext4: enforce the immutable flag on open files
   29171e82348c ext4: don't allow any modifications to an immutable file
   4a5cc64d8a8a perf/core: Fix race between close() and fork()
   75100ec5f079 perf/core: Fix exclusive events' grouping
   0e6ef184315d MIPS: lb60: Fix pin mappings
   dd5994ab1f00 gpio: davinci: silence error prints in case of EPROBE_DEFER
   c947cf3e9583 dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc
   95ee55cab118 dma-buf: balance refcount inbalance
   b72fb8dec183 net: bridge: stp: don't cache eth dest pointer before skb pull
   78701843ecc4 net: bridge: don't cache ether dest pointer on input
   41a8df71809e net: bridge: mcast: fix stale ipv6 hdr pointer when handling v6 query
   caf4488fc06e net: bridge: mcast: fix stale nsrcs pointer in igmp3/mld2 report handling
   bc9a2f36a7d6 sctp: not bind the socket in sctp_connect
   fde351aeff4a net/tls: make sure offload also gets the keys wiped
   d9571a9f5ec1 net_sched: unset TCQ_F_CAN_BYPASS when adding filters
   69cd58454615 netrom: hold sock when setting skb->destructor
   dc59a2abd33e netrom: fix a memory leak in nr_rx_frame()
   0c5cb5a12623 macsec: fix checksumming after decryption
   21252f49cddf macsec: fix use-after-free of skb during RX
   a8ba53da071e net/mlx5e: IPoIB, Add error path in mlx5_rdma_setup_rn
   a2aa162a6331 vrf: make sure skb->data contains ip header to make routing
   1b200acde418 tcp: Reset bytes_acked and bytes_received when disconnecting
   c60f57dfe995 tcp: fix tcp_set_congestion_control() use from bpf hook
   6323c238bb43 tcp: be more careful in tcp_fragment()
   b640ade07295 sky2: Disable MSI on ASUS P6T
   d9ee5afd9165 sctp: fix error handling on stream scheduler initialization
   bfa7913575b7 rxrpc: Fix send on a connected, but unbound socket
   3e4e6b71ece0 r8169: fix issue with confused RX unit after PHY power-down on RTL8411b
   97739e5c9e73 nfc: fix potential illegal memory access
   f47f68cc9d33 net: stmmac: Re-work the queue selection for TSO packets
   201d7d62a82a net: phy: sfp: hwmon: Fix scaling of RX power
   c60bce64615d net: openvswitch: fix csum updates for MPLS actions
   257441a07201 net: neigh: fix multiple neigh timer scheduling
   832d0ea751a8 net: make skb_dst_force return true when dst is refcounted
   6ab30a4cc5c6 net: dsa: mv88e6xxx: wait after reset deactivation
   5832ef4afd90 net: bcmgenet: use promisc for unsupported filters
   c0f4a6447977 ipv6: Unlink sibling route in case of failure
   0bd84505f16f ipv6: rt6_check should return NULL if 'from' is NULL
   47ce442783d7 ipv4: don't set IPv6 only flags to IPv4 addresses
   aee5dd00341b igmp: fix memory leak in igmpv3_del_delrec()
   9770fe1b202f hv_netvsc: Fix extra rcu_read_unlock in netvsc_recv_callback()
   d7cdac6dc418 caif-hsi: fix possible deadlock in cfhsi_exit_module()
   8fb37be12046 bnx2x: Prevent load reordering in tx completion processing
   7250956f6eaf Linux 4.19.61
   025eb12bb4b0 dm bufio: fix deadlock with loop device
   404f59e265ac dt-bindings: allow up to four clocks for orion-mdio
   03e6a668ea1f net: mvmdio: allow up to four clocks to be specified for orion-mdio
   dd87cc633ba5 blkcg: update blkcg_print_stat() to handle larger outputs
   73efdc5d7d3b blk-iolatency: clear use_delay when io.latency is set to zero
   1ab644bd02ab blk-throttle: fix zero wait time for iops throttled group
   91da712ff592 usb: Handle USB3 remote wakeup for LPM enabled devices correctly
   152ddf9f0458 Bluetooth: Add SMP workaround Microsoft Surface Precision Mouse bug
   98318cd31b95 intel_th: msu: Fix single mode with disabled IOMMU
   d6328d7c1a71 mtd: spinand: read returns badly if the last page has bitflips
   94f1db42a968 mtd: rawnand: mtk: Correct low level time calculation of r/w cycle
   30c6b34759f6 eCryptfs: fix a couple type promotion bugs
   92e23f5fc049 mmc: sdhci-msm: fix mutex while in spinlock
   01982f7bcc9d powerpc/pseries: Fix oops in hotplug memory notifier
   e725502b8548 powerpc/powernv/npu: Fix reference leak
   1e3b61cbc30d powerpc/watchpoint: Restore NV GPRs while returning from exception
   237ac0d73b55 powerpc/32s: fix suspend/resume when IBATs 4-7 are used
   7961981718d6 parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1
   a6a0daa775e8 parisc: Ensure userspace privilege for ptraced processes in regset functions
   ef5c2e165ab0 crypto: caam - limit output IV to CBC to work around CTR mode DMA issue
   376b80276d84 gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM
   ef30c0739439 xfs: abort unaligned nowait directio early
   669c867972c0 xfs: serialize unaligned dio writes against all other dio writes
   d61d885b17b0 xfs: fix reporting supported extra file attributes for statx()
   f614ef7a34b0 xfs: reserve blocks for ifree transaction during log recovery
   424543a53ae0 xfs: don't ever put nlink > 0 inodes on the unlinked list
   3a895cc066c0 xfs: rename m_inotbt_nores to m_finobt_nores
   2ab62234e823 xfs: don't overflow xattr listent buffer
   1dc8b13cc66d xfs: flush removing page cache in xfs_reflink_remap_prep
   788920d12b95 xfs: fix pagecache truncation prior to reflink
   41f64437f030 include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures
   afa3e571cde3 coda: pass the host file in vma->vm_file on mmap
   2c0222b48e77 libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields
   656d06dab4d6 HID: wacom: correct touch resolution x/y typo
   1c871b4006b2 HID: wacom: generic: Correct pad syncing
   46f71a15abe7 HID: wacom: generic: only switch the mode on devices with LEDs
   cb4c2b94f629 IB/mlx5: Report correctly tag matching rendezvous capability
   4bd953241d81 Btrfs: add missing inode version, ctime and mtime updates when punching hole
   fffedf5cf67e Btrfs: fix fsync not persisting dentry deletions due to inode evictions
   110850fffeb0 Btrfs: fix data loss after inode eviction, renaming it, and fsync it
   6b71c62ea9da PCI: qcom: Ensure that PERST is asserted for at least 100 ms
   529e71cae929 PCI: Do not poll for PME if the device is in D3cold
   4d8504004c86 PCI: hv: Fix a use-after-free bug in hv_eject_device_work()
   f0ff76a42ef5 intel_th: pci: Add Ice Lake NNPI support
   66a13b5e4e9c drm/edid: parse CEA blocks embedded in DisplayID
   9854e06842bc perf/x86/amd/uncore: Set the thread mask for F17h L3 PMCs
   82c46f7b0918 perf/x86/amd/uncore: Do not set 'ThreadMask' and 'SliceMask' for non-L3 PMCs
   a847a5225432 perf/x86/intel: Fix spurious NMI on fixed counter
   0d4c0bb70665 x86/boot: Fix memory leak in default_get_smp_config()
   b52807e607f1 9p/virtio: Add cleanup path in p9_virtio_init
   1253882d64d0 9p/xen: Add cleanup path in p9_trans_xen_init
   007e5aaf287c xen/events: fix binding user event channels to cpus
   e380170b3b3a dm zoned: fix zone state management race
   1e4247d7958b padata: use smp_mb in padata_reorder to avoid orphaned padata jobs
   0489d808a5f2 drm/nouveau/i2c: Enable i2c pads & busses during preinit
   c77cbc873586 kconfig: fix missing choice values in auto.conf
   2c7b50c7b1d0 fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys inodes.
   ba271659ad42 arm64: tegra: Fix AGIC register range
   ba27a25df6df KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed
   87bae91a0fe9 media: videobuf2-dma-sg: Prevent size from overflowing
   cb2e2b0ae554 media: videobuf2-core: Prevent size alignment wrapping buffer size to 0
   deb78bd24e0c media: coda: Remove unbalanced and unneeded mutex unlock
   fc0232e24541 media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom()
   a4c4c06f1755 ALSA: hda/realtek: apply ALC891 headset fixup to one Dell machine
   8ba78e4d564e ALSA: hda/realtek - Fixed Headphone Mic can't record on Dell platform
   c92212a81617 ALSA: seq: Break too long mutex context in the write loop
   eb6c84e4b4f2 raid5-cache: Need to do start() part job after adding journal device
   3f42c0000b23 ASoC: dapm: Adapt for debugfs API change
   677b2aa3be5c lib/scatterlist: Fix mapping iterator when sg->offset is greater than PAGE_SIZE
   0b174bac4e43 pnfs: Fix a problem where we gratuitously start doing I/O through the MDS
   f64ff5914f00 pNFS: Fix a typo in pnfs_update_layout
   603e7497bf27 pnfs/flexfiles: Fix PTR_ERR() dereferences in ff_layout_track_ds_error
   5347e61954fc NFSv4: Handle the special Linux file open access mode
   6825ff011c7c iwlwifi: fix RF-Kill interrupt while FW load for gen2 devices
   a32e2ceca0ef iwlwifi: don't WARN when calling iwl_get_shared_mem_conf with RF-Kill
   d9ce0788da91 iwlwifi: pcie: fix ALIVE interrupt handling for gen2 devices w/o MSI-X
   04c52c105a38 iwlwifi: pcie: don't service an interrupt that was masked
   7ebddd5fe217 arm64: tegra: Update Jetson TX1 GPU regulator timings
   042451b921b1 regulator: s2mps11: Fix buck7 and buck8 wrong voltages
   8da63aa46e26 Input: alps - fix a mismatch between a condition check and its comment
   81368a9a98d9 Input: synaptics - whitelist Lenovo T580 SMBus intertouch
   cfb9250619c8 Input: alps - don't handle ALPS cs19 trackpoint-only device
   d657077eda7b Input: gtco - bounds check collection indent level
   f11ba9df8eed bcache: destroy dc->writeback_write_wq if failed to create dc->writeback_thread
   2ab14861d2eb bcache: fix mistaken sysfs entry for io_error counter
   3c466df8fc59 bcache: ignore read-ahead request failure on backing device
   4fc48cd21a31 bcache: Revert "bcache: free heap cache_set->flush_btree in bch_journal_free"
   ab966241d59a bcache: Revert "bcache: fix high CPU occupancy during journal"
   58169c189bd6 Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()"
   c3b7d27f3746 crypto: crypto4xx - fix a potential double free in ppc4xx_trng_probe
   a9fd1795fee6 crypto: ccp/gcm - use const time tag comparison.
   561c4424f1e3 crypto: ccp - memset structure fields to zero before reuse
   13805a5df489 crypto: crypto4xx - block ciphers should only accept complete blocks
   17e63172d536 crypto: crypto4xx - fix blocksize for cfb and ofb
   4598094d24c7 crypto: crypto4xx - fix AES CTR blocksize value
   1c9b0a766513 crypto: chacha20poly1305 - fix atomic sleep when using async algorithm
   eb99c084da28 crypto: arm64/sha2-ce - correct digest for empty data in finup
   4230e09e61e6 crypto: arm64/sha1-ce - correct digest for empty data in finup
   52f07c1ac70e crypto: ccp - Validate the the error value used to index error messages
   bed97f646997 crypto: ghash - fix unaligned memory access in ghash_setkey()
   ce7ec07abaf7 scsi: mac_scsi: Fix pseudo DMA implementation, take 2
   de769c762626 scsi: mac_scsi: Increase PIO/PDMA transfer length threshold
   3e9534fa5046 scsi: megaraid_sas: Fix calculation of target ID
   1334a3e2d6d0 scsi: core: Fix race on creating sense cache
   58f59f6072ab Revert "scsi: ncr5380: Increase register polling limit"
   7cfded7a705c scsi: NCR5380: Always re-enable reselection interrupt
   d91baba81a6e scsi: NCR5380: Reduce goto statements in NCR5380_select()
   e73db096691e xen: let alloc_xenballooned_pages() fail if not enough memory free
   ff54c44f1038 floppy: fix out-of-bounds read in copy_buffer
   a9444d9d0f6f floppy: fix invalid pointer dereference in drive_name
   5b565f3276f3 floppy: fix out-of-bounds read in next_valid_format
   6e34fd07484a floppy: fix div-by-zero in setup_format_params
   7c16c5eae41a iavf: fix dereference of null rx_buffer pointer
   e9896b29d010 net: mvmdio: defer probe of orion-mdio if a clock is not ready
   5f6c5f5ae25e gtp: fix use-after-free in gtp_newlink()
   141222216438 gtp: fix use-after-free in gtp_encap_destroy()
   0a5eca2c949c gtp: fix Illegal context switch in RCU read-side critical section.
   e117a04133c6 gtp: fix suspicious RCU usage
   202de90df2b7 Bluetooth: validate BLE connection interval updates
   ca33af18b5fc gtp: add missing gtp_encap_disable_sock() in gtp_encap_enable()
   0fdb922d0ef0 Bluetooth: Check state in l2cap_disconnect_rsp
   3b57b7a3a82a perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64
   c814f618b799 Bluetooth: 6lowpan: search for destination address in all peers
   c82c4910e9e6 Bluetooth: Add new 13d3:3501 QCA_ROME device
   1cbce19bd697 Bluetooth: Add new 13d3:3491 QCA_ROME device
   578658df21d5 Bluetooth: hci_bcsp: Fix memory leak in rx_skb
   9d47bd217539 tools: bpftool: Fix json dump crash on powerpc
   2ad04d31bb3e gpiolib: Fix references to gpiod_[gs]et_*value_cansleep() variants
   157d1c7a1a00 bonding: validate ip header before check IPPROTO_IGMP
   88f751b066f2 selftests: bpf: fix inlines in test_lwt_seg6local
   ef5b204336b3 bpf, libbpf, smatch: Fix potential NULL pointer dereference
   0f2f2cebe64d rxrpc: Fix oops in tracepoint
   ca37b9a74689 net: usb: asix: init MAC address buffers
   51216937c319 bnx2x: Prevent ptp_task to be rescheduled indefinitely
   e358d2ab42f8 perf stat: Fix group lookup for metric group
   a64e018be77a perf stat: Make metric event lookup more robust
   7343178ccf7d bpf: fix uapi bpf_prog_info fields alignment
   af3790a46a55 iwlwifi: mvm: Drop large non sta frames
   036184af23e0 igb: clear out skb->tstamp after reading the txtime
   0024b12b776c net: mvpp2: prs: Don't override the sign bit in SRAM parser shift
   05592b9b7f25 ath10k: destroy sdio workqueue while remove sdio module
   26d86b29e806 net: hns3: add some error checking in hclge_tm module
   ddfdbcccd71a net: hns3: fix a -Wformat-nonliteral compile warning
   95d084809495 bcache: fix potential deadlock in cached_def_free()
   4b7758e9c4ed bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush()
   81b88c05bc45 bcache: acquire bch_register_lock later in cached_dev_free()
   d81080a0bcf8 bcache: check CACHE_SET_IO_DISABLE bit in bch_journal()
   57cfb755c356 bcache: check CACHE_SET_IO_DISABLE in allocator code
   e78d1d234469 EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec
   e54cc89e6f0a wil6210: drop old event after wmi_call timeout
   0388597d0627 crypto: asymmetric_keys - select CRYPTO_HASH where needed
   1dea395c9e12 crypto: serpent - mark __serpent_setkey_sbox noinline
   b346070c72cd ixgbe: Check DDM existence in transceiver before access
   0340c621eca8 rslib: Fix handling of of caller provided syndrome
   8ba93c59441a rslib: Fix decoding of shortened codes
   dad0b17e4a4e xsk: Properly terminate assignment in xskq_produce_flush_desc
   e69fac59c493 clocksource/drivers/exynos_mct: Increase priority over ARM arch timer
   12e20eca894b libata: don't request sense data on !ZAC ATA devices
   6e6bc34f8570 ASoC: Intel: hdac_hdmi: Set ops to NULL on remove
   1182ff224847 perf tools: Increase MAX_NR_CPUS and MAX_CACHES
   7201cc227d4a ath10k: fix PCIE device wake up failed
   8a808fadc9f7 ath10k: add missing error handling
   fe2ceeb4cffc ipvs: fix tinfo memory leak in start_sync_thread
   20de38d282b3 mt7601u: fix possible memory leak when the device is disconnected
   033577880135 x86/build: Add 'set -e' to mkcapflags.sh to delete broken capflags.c
   3f7952b275c8 mt7601u: do not schedule rx_tasklet when the device has been disconnected
   6f6e126e1995 rtlwifi: rtl8192cu: fix error handle when usb probe failed
   41864adfee2e net: stmmac: sun8i: force select external PHY when no internal one
   bce037abc29f media: hdpvr: fix locking and a missing msleep
   43b9fdc48377 media: vimc: cap: check v4l2_fill_pixfmt return value
   d562537dbf0d media: coda: increment sequence offset for the last returned frame
   3697c12c4425 media: coda: fix last buffer handling in V4L2_ENC_CMD_STOP
   6fd3e9f65db9 media: coda: fix mpeg2 sequence number handling
   c647c00f28af acpi/arm64: ignore 5.1 FADTs that are reported as 5.0
   b9f547b7bdd9 timer_list: Guard procfs specific code
   d86c0b73f75b ntp: Limit TAI-UTC offset
   8d8f0b9009d0 media: i2c: fix warning same module names
   6439110fbeee media: s5p-mfc: Make additional clocks optional
   57de3c78f0b7 ipvs: defer hook registration to avoid leaks
   06a3cd416224 ipsec: select crypto ciphers for xfrm_algo
   723ba7938492 arm64: Do not enable IRQs for ct_user_exit
   010bfbc93424 lightnvm: pblk: fix freeing of merged pages
   762bba1b7ee7 nvme-pci: set the errno on ctrl state change error
   c876a66553d7 nvme-pci: properly report state change failure in nvme_reset_work
   f0c83dd15ee1 nvme: fix possible io failures when removing multipathed ns
   10cc3a65a55b EDAC/sysfs: Fix memory leak when creating a csrow object
   f6502ce4f050 ACPICA: Clear status of GPEs on first direct enable
   3ae98dc2db1e blk-iolatency: only account submitted bios
   a952f7c384aa x86/cacheinfo: Fix a -Wtype-limits warning
   3252b29ea41b ipoib: correcly show a VF hardware address
   0e2af9b06c00 vhost_net: disable zerocopy by default
   4c57957ed6c8 perf evsel: Make perf_evsel__name() accept a NULL argument
   9e0bcb59b6c0 x86/atomic: Fix smp_mb__{before,after}_atomic()
   dd0260fd1e3a perf/x86/intel/uncore: Handle invalid event coding for free-running counter
   7fc96cd2b0de sched/fair: Fix "runnable_avg_yN_inv" not used warnings
   d8b7db6c5004 sched/core: Add __sched tag for io_schedule()
   930655b01367 xfrm: fix sa selector validation
   b7d66bbc8ad3 blkcg, writeback: dead memcgs shouldn't contribute to writeback ownership arbitration
   c8f75e753784 block: null_blk: fix race condition for null_del_dev
   1a3706d8f800 net: hns3: fix for skb leak when doing selftest
   6a47a42f51cf qed: iWARP - Fix tc for MPA ll2 connection
   670fb965da03 x86/cpufeatures: Add FDP_EXCPTN_ONLY and ZERO_FCS_FDS
   366ae49ed78c rcu: Force inlining of rcu_read_lock()
   1fb3ce14f28d ASoC: meson: axg-tdm: fix sample clock inversion
   32df4043aed4 x86/cpu: Add Ice Lake NNPI to Intel family
   914026d58100 selinux: fix empty write to keycreate file
   10e3788e6575 media: s5p-mfc: fix reading min scratch buffer size on MFC v6/v7
   7c10f8941b95 bpf: silence warning messages in core
   b01bf44c363d regmap: fix bulk writes on paged registers
   544cd592ca72 gpio: omap: ensure irq is enabled before wakeup
   ddeef7a00050 gpio: omap: fix lack of irqstatus_raw0 for OMAP4
   79644b600850 iommu: Fix a leak in iommu_insert_resv_region
   f2a4624be8f3 media: fdp1: Support M3N and E3 platforms
   63e53991d791 media: uvcvideo: Fix access to uninitialized fields on probe error
   c844f4da9b92 irqchip/meson-gpio: Add support for Meson-G12A SoC
   eac8b39d089a perf report: Fix OOM error in TUI mode on s390
   be32a9dc3f62 perf test 6: Fix missing kvm module load for s390
   3662d8bca087 perf cs-etm: Properly set the value of 'old' and 'head' in snapshot mode
   ac510285d40b ipset: Fix memory accounting for hash types on resize
   c7bf2df45044 net: sfp: add mutex to prevent concurrent state checks
   fa4059c5497e RAS/CEC: Fix pfn insertion
   99dcd701465f s390/qdio: handle PENDING state for QEBSM devices
   a76f32cbd38c net: axienet: Fix race condition causing TX hang
   9d643358386d net: fec: Do not use netdev messages too early
   403c43921479 crypto: inside-secure - do not rely on the hardware last bit for result descriptors
   50331c64f3dd net: stmmac: modify default value of tx-frames
   1a0a837afc41 net: stmmac: dwmac4: fix flow control issue
   713737cac327 perf jvmti: Address gcc string overflow warning for strncpy()
   fb83987cbe6b arm64: mm: make CONFIG_ZONE_DMA32 configurable
   c360eb592938 cpupower : frequency-set -r option misses the last cpu in related cpu list
   cac3032062e5 net: hns3: set ops to null when unregister ad_dev
   35407917b0bc media: wl128x: Fix some error handling in fm_v4l2_init_video_device()
   2fbde2746597 locking/lockdep: Fix merging of hlocks with non-zero references
   909034b8ac64 batman-adv: Fix duplicated OGMs on NETDEV_UP
   aa2ad8b6fb2f tua6100: Avoid build warnings.
   9072450736d0 crypto: talitos - Align SEC1 accesses to 32 bits boundaries.
   9d25aedef08f crypto: talitos - properly handle split ICV.
   fc25cfb03ea2 net: phy: Check against net_device being NULL
   ef10d46d04a5 media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails.
   e36f25627362 media: saa7164: fix remove_proc_entry warning
   ea904c9f6a33 media: mc-device.c: don't memset __user pointer contents
   a6dd4862b98f perf annotate TUI browser: Do not use member from variable within its own initialization
   71b029a5d908 fscrypt: clean up some BUG_ON()s in block encryption/decryption
   2c6acf7478aa xfrm: Fix xfrm sel prefix length validation
   0544b64ceb64 af_key: fix leaks in key_pol_get_resp and dump_sp.
   b397462a010d signal/pid_namespace: Fix reboot_pid_ns to use send_sig not force_sig
   1c8e736115cd qed: Set the doorbell address correctly
   df6680de7a20 net: stmmac: dwmac4/5: Clear unused address entries
   d3969670cb5a net: stmmac: dwmac1000: Clear unused address entries
   810441651a8a media: media_device_enum_links32: clean a reserved field
   6fb470ace862 media: vpss: fix a potential NULL pointer dereference
   70da38e80509 media: marvell-ccic: fix DMA s/g desc number calculation
   add712b63185 media: ov7740: avoid invalid framesize setting
   b0e199e13495 crypto: talitos - fix skcipher failure due to wrong output IV
   6452712f95e3 media: spi: IR LED: add missing of table registration
   94f2b518a788 media: dvb: usb: fix use after free in dvb_usb_device_exit
   8f855c09e2af batman-adv: fix for leaked TVLV handler.
   83d133c96aad regmap: debugfs: Fix memory leak in regmap_debugfs_init
   2b5b12c0c1b7 ath: DFS JP domain W56 fixed pulse type 3 RADAR detection
   da153c0c5746 wil6210: fix spurious interrupts in 3-msi
   a4bf4fecff16 ath10k: add peer id check in ath10k_peer_find_by_id
   83c911f4bd68 ath6kl: add some bounds checking
   42dcbf20e182 ath9k: Check for errors when reading SREV register
   7e19e658e535 ath10k: Do not send probe response template for mesh
   009edc622bba wil6210: fix potential out-of-bounds read
   09593c25b975 dmaengine: imx-sdma: fix use-after-free on probe error path
   06e15cf5aead scsi: iscsi: set auth_protocol back to NULL if CHAP_A value is not supported
   37cb02da44dc arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly
   73ebefc814ef MIPS: fix build on non-linux hosts
   7202df6be6ec MIPS: ath79: fix ar933x uart parity mode
   be9b6782a9eb Linux 4.19.60
   d173ce091c1a x86/entry/32: Fix ENDPROC of common_spurious
   466bdfc6c4d6 drm/udl: move to embedding drm device inside udl device.
   af48f7d79fae drm/udl: Replace drm_dev_unref with drm_dev_put
   cfd99eccede5 drm/udl: introduce a macro to convert dev to udl.
   8f14cf159e9f regmap-irq: do not write mask register if mask_base is zero
   820b010743ee crypto/NX: Set receive window credits to max number of CRBs in RxFIFO
   b24c6403633d crypto: talitos - fix hash on SEC1.
   ff1ce8ef1f88 crypto: talitos - move struct talitos_edesc into talitos.h
   b578b87bcab6 s390/qdio: don't touch the dsci in tiqdio_add_input_queues()
   b1d52630b12a s390/qdio: (re-)initialize tiqdio list entries
   02eb533e940a s390: fix stfle zero padding
   9db915738e40 ARC: hide unused function unw_hdr_alloc
   fc6975ee932b x86/irq: Seperate unused system vectors from spurious entry again
   9494cd392885 x86/irq: Handle spurious interrupt after shutdown gracefully
   7897f5a443fb x86/ioapic: Implement irq_get_irqchip_state() callback
   6074f6043c49 genirq: Add optional hardware synchronization for shutdown
   3f10ccc29780 genirq: Fix misleading synchronize_irq() documentation
   578db1aa595b genirq: Delay deactivation in free_irq()
   2656ee5a5ad5 linux/kernel.h: fix overflow for DIV_ROUND_UP_ULL
   9c875e8556d4 pinctrl: mediatek: Update cur_mask in mask/mask ops
   f6e01328cb0e cpu/hotplug: Fix out-of-bounds read when setting fail state
   fa99487a43cf pinctrl: mediatek: Ignore interrupts that are wake only during resume
   cd2646e57ec5 HID: multitouch: Add pointstick support for ALPS Touchpad
   9ea3b131441e HID: chicony: add another quirk for PixArt mouse
   94968c37b6d3 x86/boot/64: Add missing fixup_pointer() for next_early_pgt access
   729d25f43b64 x86/boot/64: Fix crash if kernel image crosses page table boundary
   136847140cc8 dm verity: use message limit for data block corruption message
   042be78692ae dm table: don't copy from a NULL pointer in realloc_argv()
   0fc080bc9a72 pinctrl: mcp23s08: Fix add_data and irqchip_add_nested call order
   00640eb0eafa ARM: dts: imx6ul: fix PWM[1-4] interrupts
   a8cc2a2c2841 sis900: fix TX completion
   3232bccddeba ppp: mppe: Add softdep to arc4
   5ec7753c7c9e be2net: fix link failure after ethtool offline test
   2a6ee36917f0 x86/apic: Fix integer overflow on 10 bit left shift of cpu_khz
   fdfff855cd36 afs: Fix uninitialised spinlock afs_volume::cb_break_lock
   d47f06ab0c0e ARM: omap2: remove incorrect __init annotation
   5d3c45538151 ARM: dts: gemini Fix up DNS-313 compatible string
   afda29dc5ac6 perf/core: Fix perf_sample_regs_user() mm check
   627fdcc9b718 efi/bgrt: Drop BGRT status field reserved bits check
   cf4deb2d4de6 clk: ti: clkctrl: Fix returning uninitialized data
   ff232a47567f irqchip/gic-v3-its: Fix command queue pointer comparison bug
   244db54441a1 firmware: improve LSM/IMA security behaviour
   079d7f16a973 drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT
   68048dce650e nilfs2: do not use unexported cpu_to_le32()/le32_to_cpu() in uapi header
   86859ef10d25 Input: synaptics - enable SMBUS on T480 thinkpad trackpad
   438a3dc6f2c3 e1000e: start network tx queue only when link is up
   8020568b404b Revert "e1000e: fix cyclic resets at link up with active tx"
   3bd837bfe431 Linux 4.19.59
   70bae382b3dc staging: rtl8712: reduce stack usage, again
   b46475ecd930 staging: bcm2835-camera: Handle empty EOS buffers whilst streaming
   0ee144effcc3 staging: bcm2835-camera: Remove check of the number of buffers supplied
   fcbc6ddcd624 staging: bcm2835-camera: Ensure all buffers are returned on disable
   4502c43d7f3b staging: bcm2835-camera: Replace spinlock protecting context_map with mutex
   22a20b9f6d9f staging: fsl-dpaa2/ethsw: fix memory leak of switchdev_work
   cc396afa1959 MIPS: Remove superfluous check for __linux__
   d202b5adccfb VMCI: Fix integer overflow in VMCI handle arrays
   486c32325caa carl9170: fix misuse of device driver API
   524ad00e80b7 binder: fix memory leak in error path
   294b893a41cd lkdtm: support llvm-objcopy
   5c90a2ecd08a HID: Add another Primax PIXART OEM mouse quirk
   c04c751bef87 staging: comedi: amplc_pci230: fix null pointer deref on interrupt
   4e49c6c91c18 staging: comedi: dt282x: fix a null pointer deref on interrupt
   8419fd562a09 drivers/usb/typec/tps6598x.c: fix 4CC cmd write
   63b3028cd590 drivers/usb/typec/tps6598x.c: fix portinfo width
   57e16e0d8c68 usb: renesas_usbhs: add a workaround for a race condition of workqueue
   aa9a8038ea8b usb: dwc2: use a longer AHB idle timeout in dwc2_core_reset()
   cac4a04202fb usb: gadget: ether: Fix race between gether_disconnect and rx_submit
   449a8d08a4bc p54usb: Fix race between disconnect and firmware loading
   135d9ba3b285 Revert "serial: 8250: Don't service RX FIFO if interrupts are disabled"
   0891268f36a2 USB: serial: option: add support for GosunCn ME3630 RNDIS mode
   0a1c811bf033 USB: serial: ftdi_sio: add ID for isodebug v1
   bb902b6c87ff mwifiex: Don't abort on small, spec-compliant vendor IEs
   ffbbd626e1ce mwifiex: Abort at too short BSS descriptor element
   a2a24b57c27a Documentation/admin: Remove the vsyscall=native documentation
   8a815007f5fe Documentation: Add section about CPU vulnerabilities for Spectre
   bd9604022eb3 x86/tls: Fix possible spectre-v1 in do_get_thread_area()
   68ff28291a4f x86/ptrace: Fix possible spectre-v1 in ptrace_get_debugreg()
   d8e26651ce8d perf pmu: Fix uncore PMU alias list for ARM64
   018524b75852 block, bfq: NULL out the bic when it's no longer valid
   ff75e5f41e88 ALSA: hda/realtek - Headphone Mic can't record after S3
   87c3262b00d8 ALSA: usb-audio: Fix parse of UAC2 Extension Units
   ef374f5a2731 media: stv0297: fix frequency range limit
   5db079eb0acd udf: Fix incorrect final NOT_ALLOCATED (hole) extent length
   0fc3e9b9b603 fscrypt: don't set policy for a dead directory
   e9f76b954336 net :sunrpc :clnt :Fix xps refcount imbalance on the error path
   810cfc3d9d2e NFS4: Only set creation opendata if O_CREAT
   7075654ce7d0 net: dsa: mv88e6xxx: fix shift of FID bits in mv88e6185_g1_vtu_loadpurge()
   606561e16186 quota: fix a problem about transfer quota
   5ad566af08c1 scsi: qedi: Check targetname while finding boot target information
   37232abb6ea3 net: lio_core: fix potential sign-extension overflow on large shift
   740b2ac49518 ip6_tunnel: allow not to count pkts on tstats by passing dev as NULL
   a02ac12d2d48 drm: return -EFAULT if copy_to_user() fails
   4c938a635fc3 bnx2x: Check if transceiver implements DDM before access
   270ae00a0346 md: fix for divide error in status_resync
   5533d9ed4112 mmc: core: complete HS400 before checking status
   2da80536f629 qmi_wwan: extend permitted QMAP mux_id value range
   dc84e98393f7 qmi_wwan: avoid RCU stalls on device disconnect when in QMAP mode
   dbc6a83cf2bc qmi_wwan: add support for QMAP padding in the RX path
   292ba5b1faf4 bpf, x64: fix stack layout of JITed bpf code
   4c2ce7addda8 bpf, devmap: Add missing RCU read lock on flush
   ab44f8bcf2e5 bpf, devmap: Add missing bulk queue free
   8d09e862103b bpf, devmap: Fix premature entry free on destroying map
   ba0afe520ee9 mac80211: do not start any work during reconfigure flow
   de8cf2c0bc64 mac80211: only warn once on chanctx_conf being NULL
   9c2dd6d47131 ARM: davinci: da8xx: specify dma_coherent_mask for lcdc
   3bbcc8b9ad37 ARM: davinci: da850-evm: call regulator_has_full_constraints()
   443250665388 mlxsw: spectrum: Disallow prio-tagged packets when PVID is removed
   512bbb114b99 KVM: arm/arm64: vgic: Fix kvm_device leak in vgic_its_destroy
   41420ac584d7 Input: imx_keypad - make sure keyboard can always wake up system
   b71f312e9bf7 riscv: Fix udelay in RV32.
   122c6a71c08d drm/vmwgfx: fix a warning due to missing dma_parms
   d3861d4ca94c drm/vmwgfx: Honor the sg list segment size limitation
   c0b12abd1828 s390/boot: disable address-of-packed-member warning
   e71daed5176f ARM: dts: am335x phytec boards: Fix cd-gpios active level
   822c2ee81c63 ibmvnic: Fix unchecked return codes of memory allocations
   0f06004d16be ibmvnic: Refresh device multicast list after reset
   e65dd528bb8e ibmvnic: Do not close unopened driver during reset
   374180b11b29 net: phy: rename Asix Electronics PHY driver
   473a75c7fab5 can: af_can: Fix error path of can_init()
   486954277fc1 can: m_can: implement errata "Needless activation of MRAF irq"
   270149f78b9c can: mcp251x: add support for mcp25625
   33672c74b484 dt-bindings: can: mcp251x: add mcp25625 support
   07c96e8e8021 soundwire: intel: set dai min and max channels correctly
   c7e427e28a3a mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies()
   8e115a079940 iwlwifi: Fix double-free problems in iwl_req_fw_callback()
   d4c0f752c1d2 mwifiex: Fix possible buffer overflows at parsing bss descriptor
   b8588a0981b7 mac80211: free peer keys before vif down in mesh
   acc42e5c2322 mac80211: mesh: fix RCU warning
   e3868c1a462f staging:iio:ad7150: fix threshold mode config bit
   6b1ce3971e05 soundwire: stream: fix out of boundary access on port properties
   6be857082611 bpf: sockmap, fix use after free from sleep in psock backlog workqueue
   bc84982f977d mac80211: fix rate reporting inside cfg80211_calculate_bitrate_he()
   3c24a931e972 samples, bpf: suppress compiler warning
   e7779115bbd9 samples, bpf: fix to change the buffer size for read()
   fe01e93c3fd1 Input: elantech - enable middle button support on 2 ThinkPads
   2883fc1ece69 soc: bcm: brcmstb: biuctrl: Register writes require a barrier
   2f1c962a7416 soc: brcmstb: Fix error path for unsupported CPUs
   e8250f730410 crypto: talitos - rename alternative AEAD algos.
   7a6bfa08b938 Linux 4.19.58
   f37de75cb8eb dmaengine: imx-sdma: remove BD_INTR for channel0
   018c968de710 dmaengine: qcom: bam_dma: Fix completed descriptors count
   870de1499505 MIPS: have "plain" make calls build dtbs for selected platforms
   8957895b35de MIPS: Add missing EHB in mtc0 -> mfc0 sequence.
   2b8f8a80ca8b MIPS: Fix bounds check virt_addr_valid
   80b25628ff26 svcrdma: Ignore source port when computing DRC hash
   8129a10ce78f nfsd: Fix overflow causing non-working mounts on 1 TB machines
   f25c06955f8d KVM: LAPIC: Fix pending interrupt in IRR blocked by software disable LAPIC
   f6472f50fbfc KVM: x86: degrade WARN to pr_warn_ratelimited
   ac0024baf073 netfilter: ipv6: nf_defrag: accept duplicate fragments again
   54e8cf41b20b bpf: fix bpf_jit_limit knob for PAGE_SIZE >= 64K
   e6c288f7307e net: hns: fix unsigned comparison to less than zero
   4f24801ef50b sc16is7xx: move label 'err_spi' to correct section
   318244f3641a netfilter: ipv6: nf_defrag: fix leakage of unqueued fragments
   a8891c5e2251 ip6: fix skb leak in ip6frag_expire_frag_queue()
   382bc84da904 rds: Fix warning.
   7e6af1fa80b8 ALSA: hda: Initialize power_state field properly
   c8c88293bf72 net: hns: Fixes the missing put_device in positive leg for roce reset
   6bf9677300f3 x86/boot/compressed/64: Do not corrupt EDX on EFER.LME=1 setting
   b91ec6ae14da selftests: fib_rule_tests: Fix icmp proto with ipv6
   e2851c3ee0be scsi: tcmu: fix use after free
   04096b3beace mac80211: mesh: fix missing unlock on error in table_path_del()
   e2379b044d67 f2fs: don't access node/meta inode mapping after iput
   e9fde78c3a4f drm/fb-helper: generic: Don't take module ref for fbcon
   7821bcce20aa media: s5p-mfc: fix incorrect bus assignment in virtual child device
   3ddc2a100706 net/smc: move unhash before release of clcsock
   cd54dc4cd37d mlxsw: spectrum: Handle VLAN device unlinking
   a8a296abee36 tty: rocket: fix incorrect forward declaration of 'rp_init()'
   fb814f215013 btrfs: Ensure replaced device doesn't have pending chunk allocation
   27ce6c2675f6 mm/vmscan.c: prevent useless kswapd loops
   c854d9b6ef8d ftrace/x86: Remove possible deadlock between register_kprobe() and ftrace_run_update_code()
   2e716c3b562d drm/imx: only send event on crtc disable if kept disabled
   8ec242fd431b drm/imx: notify drm core before sending event during crtc disable
   d2d061351d64 drm/etnaviv: add missing failure path to destroy suballoc
   ec5d99e18d30 drm/amdgpu/gfx9: use reset default for PA_SC_FIFO_SIZE
   ec6d8c9e6687 drm/amd/powerplay: use hardware fan control if no powerplay fan table
   b6d56f4f6a49 arm64: kaslr: keep modules inside module region when KASAN is enabled
   7cab3dfa6d74 ARM: dts: armada-xp-98dx3236: Switch to armada-38x-uart serial node
   c8790d7f76be tracing/snapshot: Resize spare buffer if size changed
   052b31810085 fs/userfaultfd.c: disable irqs for fault_pending and event locks
   ea38007107d6 lib/mpi: Fix karactx leak in mpi_powm
   7df1e2f59bde ALSA: hda/realtek - Change front mic location for Lenovo M710q
   899377c50e60 ALSA: hda/realtek: Add quirks for several Clevo notebook barebones
   d9b6936b134e ALSA: usb-audio: fix sign unintended sign extension on left shifts
   7f52af5e9baa ALSA: line6: Fix write on zero-sized buffer
   3663bf2baa97 ALSA: firewire-lib/fireworks: fix miss detection of received MIDI messages
   9d2ac58c1ef9 ALSA: seq: fix incorrect order of dest_client/dest_ports arguments
   ae3fa28f0938 crypto: cryptd - Fix skcipher instance memory leak
   015c20532ace crypto: user - prevent operating on larval algorithms
   54435b7fff7b ptrace: Fix ->ptracer_cred handling for PTRACE_TRACEME
   600d3712ae12 drm/i915/dmc: protect against reading random memory
   2b39351e3844 ftrace: Fix NULL pointer dereference in free_ftrace_func_mapper()
   938044171949 module: Fix livepatch/ftrace module text permissions race
   220adcc0e0ca tracing: avoid build warning with HAVE_NOP_MCOUNT
   79fccb9815db mm/mlock.c: change count_mm_mlocked_page_nr return type
   4fce0a79e985 scripts/decode_stacktrace.sh: prefix addr2line with $CROSS_COMPILE
   b7747ecb82be cpuset: restore sanity to cpuset_cpus_allowed_fallback()
   e33aeb9a7c0a i2c: pca-platform: Fix GPIO lookup code
   7cf431edfb71 platform/mellanox: mlxreg-hotplug: Add devm_free_irq call to remove flow
   c241f3fbfa1a platform/x86: mlx-platform: Fix parent device in i2c-mux-reg device registration
   f853112772b0 platform/x86: intel-vbtn: Report switch events when event wakes device
   2ac96173bee0 platform/x86: asus-wmi: Only Tell EC the OS will handle display hotkeys from asus_nb_wmi
   027e043f9c78 drm: panel-orientation-quirks: Add quirk for GPD MicroPC
   2446563dd6d7 drm: panel-orientation-quirks: Add quirk for GPD pocket2
   8be5629b9622 scsi: hpsa: correct ioaccel2 chaining
   c1bef204c70a SoC: rt274: Fix internal jack assignment in set_jack callback
   1023af0c069d ALSA: hdac: fix memory release for SST and SOF drivers
   26a6acde2a42 usb: gadget: udc: lpc32xx: allocate descriptor with GFP_ATOMIC
   9be058f5dd70 usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]
   5284327f4e17 x86/CPU: Add more Icelake model numbers
   74929087384f ASoC: sun4i-i2s: Add offset to RX channel select
   32475634e8a8 ASoC: sun4i-i2s: Fix sun8i tx channel offset mask
   7b7486398a32 ASoC: max98090: remove 24-bit format support if RJ is 0
   3b60f98ef496 drm/mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()
   34e5e1c4874f drm/mediatek: clear num_pipes when unbind driver
   a8a86e9a5533 drm/mediatek: call drm_atomic_helper_shutdown() when unbinding driver
   79e095d234bb drm/mediatek: unbind components in mtk_drm_unbind()
   319f4699bcaa drm/mediatek: fix unbind functions
   dbd94f4938c6 spi: bitbang: Fix NULL pointer dereference in spi_unregister_master
   3f8d3c9506a5 ASoC: ak4458: rstn_control - return a non-zero on error only
   3c3dd68c48e8 ASoC: soc-pcm: BE dai needs prepare when pause release after resume
   4c31b4b4ba65 ASoC: ak4458: add return value for ak4458_probe
   0c19bcdb0db9 ASoC : cs4265 : readable register too low
   c549680ed59b netfilter: nft_flow_offload: IPCB is only valid for ipv4 family
   041c181e6ba0 netfilter: nft_flow_offload: don't offload when sequence numbers need adjustment
   48f611ecea0e netfilter: nft_flow_offload: set liberal tracking mode for tcp
   3b2734bc839d netfilter: nf_flow_table: ignore DF bit setting
   869eec894663 md/raid0: Do not bypass blocking queue entered for raid0 bios
   c9d8d3e9d7a0 block: Fix a NULL pointer dereference in generic_make_request()
   5dd6139a0aa2 Bluetooth: Fix faulty expression for minimum encryption key size check

(From OE-Core rev: 71edff03db1a508ab9e1a919b5a5b90ee7316609)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 885eeb589ed3150a17a8ac62c44632cb02171478)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Anuj Mittal
496b5101b2 cpio: fix CVE-2019-14866
(From OE-Core rev: ea0553398a2882a7a6e3c276dd3d81129a417a25)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 3a9872c664cdc5c5a6ac712142ce1d28d6fcd6d1)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Lee Chee Yang
80df8a60bb 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: 0a88a86d92b294175c14c7c5a2533d4e418fec6a)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 842bd7ca21efc6378ba24a8d0bf065c4d0f54f1d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Rahul Chauhan
26ef016a3c libxml2: Fix CVE-2019-19956
(From OE-Core rev: 2be6ab4249c4f49c9ffcd9bb8fea964c8c5d449c)

Signed-off-by: Rahul Chauhan <rahulk@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21 09:44:05 +00:00
Richard Purdie
2ce6c7b190 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: d411b097d810c386d35dc561f8812bb3f35c9a36)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-18 13:59:11 +00:00
Jefro
4edf4eb9cc Adding memoriam to scottrif
Added a few comment lines in Makefile to commemorate Scott's
contributions

(From yocto-docs rev: 2259d897aa996a996656f87d39cafa52c40c652d)

Signed-off-by: Jefro <jefro@jefro.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-31 08:03:22 +00:00
Peter Kjellerstedt
2bd2f56d41 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: aa770081d7d3ff678b18117a4b4e9b3da09b72be)

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:10 +00:00
Peter Kjellerstedt
4fc93977e9 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: a63d59f64a2d1f450a7639426cae8e0373a2d764)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:02 +00:00
Peter Kjellerstedt
deb8463938 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: 9b92d5fbfdcf48a17efdd8c1edda4ad26def017f)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:02 +00:00
Anuj Mittal
5b7b426cff openssl: fix CVE-2019-1551
(From OE-Core rev: 392e0299fae170995229d30036ebe8e8a494f7dc)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:02 +00:00
Adrian Bunk
7a8ac5c1c9 openssl: Whitelist CVE-2019-0190
This is only a problem with older Apache versions.

(From OE-Core rev: 8e76d2508da411a1a67f3226465c83fec85dfe97)

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-28 11:15:02 +00:00
Khem Raj
cd1d971e25 openssl: Enable os option for with-rand-seed as well
with openSSL 1.1.1d we start seeing errors like

Error Generating Key
139979727451584:error:2406C06E:random number generator:RAND_DRBG_instantiate:error retrieving entropy:../openssl-1.1.1d/crypto/rand/drbg_lib.c:342:

when using openssl from openssl-native on build hosts, this is due to
limiting the random seed to devrandom, to support older hosts, since the
option allows to have a comma separated list of methods to try, we can
try the default first and if that fails then fallback to devrandom, this
will ensure that it keeps working with build systems which dont support
getrandom()

(From OE-Core rev: b9fb2913c72ec771e4da2931528f6f5425c14913)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:02 +00:00
Adrian Bunk
f664bebdbc openssl: Upgrade 1.1.1c -> 1.1.1d
(From OE-Core rev: d9f1bfe681f51f4cb2ad9515454162480993aadf)

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-28 11:15:02 +00:00
Adrian Bunk
d8b1898f8c openssl: Upgrade 1.1.1b -> 1.1.1c
Backported patch removed.

(From OE-Core rev: 3402c001bc585bacb6e00495a7c3c66c75d16e7c)

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-28 11:15:02 +00:00
Adrian Bunk
dc5fd540e7 systemd: Upgrade to a more recent snapshot from the 241 branch
Bugfix-only changes on the 241 stable branch,
including a fix for a breakage with OpenSSL >= 1.1.1c.

(From OE-Core rev: 9160dc4dbee6fb13f1a46963ced7961505154213)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:02 +00:00
Adrian Bunk
907bd3188b systemd: Whitelist CVE-2018-21029 CVE-2019-3843 CVE-2019-3844
One does not strictly apply to 241, for the other two a fix
was already backported to the 241 branch.

(From OE-Core rev: d328696acfd4967d19e32680033d9594dd00b92c)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:02 +00:00
Adrian Bunk
300234fd6a iputils: Whitelist CVE-2000-1213 CVE-2000-1214
(From OE-Core rev: 7c51ca8538f228d98a4b3411a15fde83516c0419)

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>
2020-01-28 11:15:02 +00:00
Adrian Bunk
a8df2dea8d lz4: Whitelist CVE-2014-4715
(From OE-Core rev: ca4fc78584ec5a7bbeac188f4ed935b3128eb6eb)

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>
2020-01-28 11:15:02 +00:00
Anuj Mittal
33bee3d59f sysstat: fix CVE-2019-19725
(From OE-Core rev: 7f8f018ea5ef6ecb80c5b5250df90a8b690e6f47)

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: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Mattias Hansson
ee75698371 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: 86f196dc077de7f3f6664e69703a96245b42ddc0)

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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Hongxu Jia
47de27d734 go: fix CVE-2019-17596
2017d88dbc

(From OE-Core rev: a8adb7d23172acb587c259a28aa0c9e2df83f228)

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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Anuj Mittal
d8da51bd3b nasm: fix CVE-2019-14248
See:
https://bugzilla.nasm.us/show_bug.cgi?id=3392576

(From OE-Core rev: 49dca79c6e5f631d1f55422864ee57c86cafe1a4)

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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Anuj Mittal
dbd22b6cd7 nasm: fix CVE-2018-19755
(From OE-Core rev: 021c8ae8e115ff6bab167146d97a340d4945118d)

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: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Adrian Bunk
707e2b9d7d glib-2.0: Backport the CVE-2019-12450 fix
(From OE-Core rev: 9c4d7a92f4f6e4070102b12de44d9bfe6f944735)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Adrian Bunk
057dcb3ee3 lighttpd: Backport the CVE-2019-11072 fix
(From OE-Core rev: abc2d1fad91f1378be3946e35d8f8f450823599e)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Anuj Mittal
ef2bec784b glibc: fix CVE-2019-19126
Backport from 2.30 stable branch and drop NEWS section.

(From OE-Core rev: de04ec5dcf72d76f2e8274af4bcddf27cb02e544)

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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Anuj Mittal
a2335757ba libarchive: fix CVE-2019-19221
Also see:
https://github.com/libarchive/libarchive/issues/1276

(From OE-Core rev: b4628dd1ef9d50e8778cadae09e6d31886bd47d2)

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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Vinay Kumar
c2644c6afc 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: 536a2656b44fbb98a3cdc60eed32f378184cce7c)

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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Adrian Bunk
60ce01fec8 bind: Whitelist CVE-2019-6470
(From OE-Core rev: a45f9d2047d7d1156fafc44554c4908a0c7d2647)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Trevor Gamblin
271da31a92 binutils: fix CVE-2019-17451
Backport upstream fix.

(From OE-Core rev: 02c54859c009be191958a19a5c3549a6635cc647)

Signed-off-by: Trevor Gamblin <trevor.gamblin@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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Trevor Gamblin
f4c9970227 binutils: fix CVE-2019-17450
Backport upstream fix.

(From OE-Core rev: dcd3406c79bdee46fabc2310c9e278918e26ce80)

Signed-off-by: Trevor Gamblin <trevor.gamblin@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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Ross Burton
eb25d2fc66 wpa-supplicant: fix CVE-2019-16275
(From OE-Core rev: 4b764c25d7396cba41c28c66a78a7a8f0ea3a5be)

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: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Joshua Watt
441f31d02f python3: RDEPEND on libgcc
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: 04297ee03f5f4e4edafaf332a6648465f52ba1eb)

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>
[ merged the fix to make it glibc only ]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Adrian Bunk
37e53c426b python3: Upgrade 3.7.5 -> 3.7.6
(From OE-Core rev: 262ac0c4d534b1858b81c7d69b6ff57c5d3a4559)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Adrian Bunk
78c2ea1877 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: a2507600fecdf815ad80da569c5e8ad65286b812)

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-01-28 11:15:01 +00:00
Adrian Bunk
57da5247c0 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: 1b69d141b73e46cc377f8566868da44dd5b1ea42)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:15:01 +00:00
Armin Kuster
a19e3961a4 stress: update SRC_URI
Fixes:
WARNING: stress-1.0.4-r0 do_fetch: Failed to fetch URL http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz, attempting MIRRORS if available

(From OE-Core rev: 279c4da2e5f46dccfeff0c898c2205940be9e174)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:53 +00:00
Ferry Toth
4c5f33c8fc sudo: Fix fetching sources
It looks like https://www.sudo.ws/download.html changed certificate
and directory structure. This breaks fetching sources.

(From OE-Core rev: adb6af60dcf098bfce64168e6443c26d124661c4)

Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit f02e9f46ce54fed3c7ddfad7d1003a2fb7ba3a67)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:53 +00:00
Alexander Kanavin
025e005d29 sudo: correct SRC_URI
The old URI returns 404, and has an invalid TLS certificate.

(From OE-Core rev: abb42b83e1a96cdc7dac73e223a87cf078979c49)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 73ff6aba0a53ffc3ee0a5859a3ad4c8021be4de0)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:53 +00:00
Oleksandr Kravchuk
178c487ed2 popt: fix SRC_URI
rpm5.org has been down for about a year now. Use linuxfromscratch.org
as an alternative reliable source instead.

(From OE-Core rev: 2e2fb4e9db2e328dcb771951feb7f7ab5c0c4dd6)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d9224014da9a512b1b8837e4e7a736d465c97be3)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:53 +00:00
Niko Mauno
8c7e02c9d1 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: 72c22b8791707480c380f49305c6d394578b2a4b)

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>
(cherry picked from commit c92b8804d6e59b2707332859957f0e6a46db0a73)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:53 +00:00
Ross Burton
c12415cc7c cve-check: fetch CVE data once at a time instead of in a single call
This code used to construct a single SQL statement that fetched the NVD data for
every CVE requested.  For recipes such as the kernel where there are over 2000
CVEs to report this can hit the variable count limit and the query fails with
"sqlite3.OperationalError: too many SQL variables".  The default limit is 999
variables, but some distributions such as Debian set the default to 250000.

As the NVD table has an index on the ID column, whilst requesting the data
CVE-by-CVE is five times slower when working with 2000 CVEs the absolute time
different is insignificant: 0.05s verses 0.01s on my machine.

(From OE-Core rev: 53d0cc1e9b7190fa66d7ff1c59518f91b0128d99)

(From OE-Core rev: 0f5b748a5b7fec41bac16bbc1346230e86bb99e3)

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-01-16 22:38:53 +00:00
Ross Burton
1ab16a1b7a cve-check: neaten get_cve_info
Remove obsolete Python 2 code, and use convenience methods for neatness.

(From OE-Core rev: f19253cc9e70c974a8e21a142086c13d7cde04ff)

(From OE-Core rev: 0ec6843bec3e817c3bc62d04adea5fd385307b32)

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-01-16 22:38:52 +00:00
Ross Burton
2ea29b7c24 cve-check: rewrite look to fix false negatives
A previous optimisation was premature and resulted in false-negatives in the report.

Rewrite the checking algorithm to first get the list of potential CVEs by
vendor:product, then iterate through every matching CPE for that CVE to
determine if the bounds match or not.  By doing this in two stages we can know
if we've checked every CPE, instead of accidentally breaking out of the scan too
early.

(From OE-Core rev: d61aff9e22704ad69df1f7ab0f8784f4e7cc0c69)

(From OE-Core rev: 9948dd86d100bec56e22e6c0bbf4759925a4b306)

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-01-16 22:38:52 +00:00
Ross Burton
1fb115f221 cve-update-db-native: clean up proxy handling
urllib handles adding proxy handlers if the proxies are set in the environment,
so call bb.utils.export_proxies() to do that and remove the manual setup.

(From OE-Core rev: 6b73004668b3b71c9c38814b79fbb58c893ed434)

(From OE-Core rev: 2ddf1c0bc4267d38069f9dbb0f716fdac29a49a9)

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-01-16 22:38:52 +00:00
Ross Burton
ee2c8e04b8 cve-update-db-native: add an index on the CVE ID column
Create an index on the PRODUCTS table which contains a row for each CPE,
drastically increasing the performance of lookups for a specific CVE.

(From OE-Core rev: b4048b05b3a00d85c40d09961f846eadcebd812e)

(From OE-Core rev: 9abd2b5c4ddfb98f3b8574954e1fd0e95a47ebcc)

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-01-16 22:38:52 +00:00
Ross Burton
55bec749c0 cve-update-db-native: don't hardcode the database name
Don't hardcode the database filename, there's a variable for this in
cve-check.bbclass.

(From OE-Core rev: 0d188a9dc4ae64c64cd661e9d9c3841e86f226ab)

(From OE-Core rev: f774665ee4dcdc5a1fe1f51384d82fb8e1b219e1)

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-01-16 22:38:52 +00:00
Ross Burton
933a0a255f cve-update-db-native: don't refresh more than once an hour
We already fetch the yearly CVE metadata and check that for updates before
downloading the full data, but we can speed up CVE checking further by only
checking the CVE metadata once an hour.

(From OE-Core rev: 50d898fd360c58fe85460517d965f62b7654771a)

(From OE-Core rev: fd16e1bb582d3135411e2e3dad46731114d2b955)

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-01-16 22:38:52 +00:00
Ross Burton
df244d25f0 cve-check: we don't actually need to unpack to check
The patch scanner works with patch files in the layer, not in the workdir, so it
doesn't need to unpack.

(From OE-Core rev: 2cba6ada970deb5156e1ba0182f4f372851e3c17)

(From OE-Core rev: 8bfe83d53c39e4a88f808af617db7db091694841)

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-01-16 22:38:52 +00:00
Ross Burton
50b6a611ea cve-check: failure to parse versions should be more visible
(From OE-Core rev: d1a16e6f0edda5d9f03191d187788fc8b666bd7f)

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-16 22:38:52 +00:00
Ross Burton
0be3c68cf4 cve-check: ensure all known CVEs are in the report
CVEs that are whitelisted or were not vulnerable when there are version
comparisons were not included in the report, so alter the logic to ensure that
all relevant CVEs are in the report for completeness.

(From OE-Core rev: 98256ff05fcfe9d5ccad360582c36eafb577c264)

(From OE-Core rev: 430e95cd819577d4d71fe6d579a175b8776aa467)

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-01-16 22:38:52 +00:00
Khem Raj
665aea195a sdk: Install nativesdk locales for all TCLIBC variants
install_locales() here is actually operating on nativesdk and only glibc
is the default library for nativesdk, since thats what most of
desktop/server distros use, therefore bailing out based on TCLIBC is not
needed here, since nativesdk-glibc would be required for all non-glibc
targetting SDKs as well.

Fixes SDK install time error

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

(From OE-Core rev: 7b8f6388e0a1e1eab35918a3764e98553a2452f4)

Signed-off-by: Khem Raj <raj.khem@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-01-16 22:38:52 +00:00
Zang Ruochen
366e5937f3 libpcap: upgrade 1.9.0 -> 1.9.1
-libpcap/0001-pcap-usb-linux.c-add-missing-limits.h-for-musl-syste.patch
 Removed since this is included in 1.9.1.

(From OE-Core rev: d0e3d1f9437b2e2c6284d9fad51bb11ebe72a46c)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[CVE-2018-16301 CVE-2019-15161 CVE-2019-15162 CVE-2019-15163 CVE-2019-15164 CVE-2019-15165]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Ross Burton
2969279a63 procps: whitelist CVE-2018-1121
This CVE is about race conditions in 'ps' which make it unsuitable for security
audits.  As these race conditions are unavoidable ps shouldn't be used for
security auditing, so this isn't a valid CVE.

(From OE-Core rev: afc529aa689daed18af29ecc64f3dae1fcbdc282)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Chen Qi
5982129110 webkitgtk: set CVE_PRODUCT
(From OE-Core rev: 5fbf5eead50ab5a8cbacf277ddfff2eeca26f738)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Ross Burton
0931ac5431 libsndfile1: whitelist CVE-2018-13419
This is a memory leak that nobody else can replicate and has been rejected by
upstream.

(From OE-Core rev: 583990fc583a96dbf0655bff1630b2ebe199021d)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Chen Qi
33840314df libxfont2: set CVE_PRODUCT
(From OE-Core rev: ab5cc4a6119527e48299d7d6b7fac440c4b9bb6c)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Ross Burton
c1b31a5ce3 libpam: set CVE_PRODUCT
(From OE-Core rev: c214c6c7c0f011c933da8b271630fd6833d84685)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Ross Burton
10662c6c3a boost: set CVE vendor to Boost
There's a Boost module for Drupal.

(From OE-Core rev: e8ffa02f3efcf5303b8cf57eb29e498e816e63c0)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Ross Burton
fdbff91642 ed: set CVE vendor to avoid false positives
(From OE-Core rev: 154e286042c289cbd225ba82aaf1247714aee857)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Ross Burton
7ee04f2c4b subversion: set CVE vendor to Apache
There's a Jenkins plugin for Subversion.

(From OE-Core rev: 9b5437f9afb4dd1366d5e21ea861f683d8cd2a09)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Ross Burton
804ed96384 git: set CVE vendor to git-scm
There's a Jenkins plugin for Git.

(From OE-Core rev: 44d4dda6db56107d7ce900730b370a2ec81d9c30)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Ross Burton
775170b45c flex: set CVE_PRODUCT to include vendor
There are many projects called Flex and they have CVEs, so also set the vendor
to remove these false positives.

(From OE-Core rev: e128bd76ae9f4b30948e6b8fc68f4374e03c7bec)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Anuj Mittal
6b3469324e openssl: set CVE vendor to openssl
Differentiate it from openssl gem for Ruby.

(From OE-Core rev: 925482bef72e80622e904ce437c5ebe8e78be338)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Alexander Kanavin
cc7bd25951 python: update to 2.7.17
Drop backports, rebase a couple of patches.

This is the second last release of py 2.x; upstream support ends on
1 January 2020, there will be one final 2.x afterwards.

Note that the only thing that still needs python 2.x in oe-core is
u-boot; when the next u-boot update arrives, we should find out
where the py3 migration is for that component before merging the
update.

(From OE-Core rev: 184b60eb905bb75ecc7a0c29a175e624d8555fac)

(From OE-Core rev: 7009d823a0799ce7132bd77329b273a476718c8c)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
[Minor fixup for warrior context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Anuj Mittal
c8342197f8 python: fix CVE-2018-20852
(From OE-Core rev: 98cc3bfc6656b8648da591dcb64de8472e6c97e0)

Signed-off-by: Anuj Mittal <anuj.mittal@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-01-16 22:38:52 +00:00
Chen Qi
b9f8dfd5ac python: fix CVE-2019-16935
(From OE-Core rev: 1a7593bcdaf8a8cf15259aee8a0e2686247f2987)

(From OE-Core rev: 27fea8ea1da28bb3163b5d503e6d16948c50f2ae)

Signed-off-by: Chen Qi <Qi.Chen@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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:38:52 +00:00
Kai Kang
56fc8c117d bind: fix CVE-2019-6471 and CVE-2018-5743
Backport patches to fix CVE-2019-6471 and CVE-2018-5743 for bind.
CVE-2019-6471 is fixed by 0001-bind-fix-CVE-2019-6471.patch and the
other 6 patches are for CVE-2018-5743. And backport one more patch to
fix compile error on arm caused by these 6 commits.

(From OE-Core rev: 3c39d4158677b97253df63f23b74c3a9dd5539f6)

(From OE-Core rev: 230a96ddecf940a7caee9e9268b21aa5f65a7f14)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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-01-16 22:38:52 +00:00
Scott Rifenbark
023ff85a9a mega-manual: Fixed broken mega-manual build for 2.7.2
Fixes YOCTO #13553

This bug is where the mega-manual will not build because the
mega-manual.xml file is looking in the wrong directory in a
poky checkout such as a customer would have.  It worked in my
local development environment for the manuals.  I fixed by
updating mega-manual.xml pathname used to construct the mega-manual
to look in $HOME/yocto-docs/bitbake for the HTML files that
make up the mega-manual. Prior, it was looking in $HOME/bitbake.

This also meant that I changed my production environment to use
$HOME/yocto-docs as the folder in which to keep the local bitbake
repo.

(From yocto-docs rev: ee29f61b92c5ca7dd56393cef5fcd3ff3fe243aa)

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

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-09 12:03:01 +00:00
Ross Burton
c9a1a608f5 file: fix CVE-2019-18218
(From OE-Core rev: 0a1b1e88b936177344392e185fbd077622d88b3e)

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>
2019-11-18 14:42:13 +00:00
Ross Burton
e612e9c933 patch: the CVE-2019-13638 fix also handles CVE-2018-20969
(From OE-Core rev: fec797a6ae981efa81896fd915933621699bca4e)

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>
2019-11-18 14:42:13 +00:00
Richard Purdie
bf363493fe pseudo: Add statx support to fix fedora30 issues
Modern distros (e.g. fedora30) are starting to use the new statx() syscall through
the newly exposed glibc wrapper function in software like coreutils (e.g. the ls
command). Add support to intercept this to pseudo.

(From OE-Core rev: 1c09e45f966d553f1fea3795ef9122dd9957be67)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for warrior context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:13 +00:00
Richard Purdie
9ee9089816 pseudo: Drop static linking to sqlite3
Back in 2010[1] we made pseudo statically link against sqlite3. Since then
the world has changed, pseudo now has separate processes for the database
in the server and the client and they have separate linking commands.

Also, whilst there were concerns about needing specific versions of sqlite3,
in the OE environment, this is always the case.

[1] http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ad0ac0ecd38fc77daf42485489fccc10a5e1e3e7

The static sqlite3-native is causing us problems, in particular:

tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+060058bb29-r0/recipe-sysroot-native/usr/lib/libsqlite3.a(sqlite3.o):(.data.rel+0xb0): undefined reference to `fcntl64'

which occurs if sqlite3-native was built on a machine with glibc 2.28 or later
and pseudo-native is being built on glibc before that. With dyanmical linking,
libc is backwards compatible and works but with static linking it does not.

There appears to be no easy way to avoid this other than adding a copy of
sqlite3 into the pseudo recipe. Given the static linking doesn't seem to
be required any longer due to the separate processes, drop that to fix
those issues.

(From OE-Core rev: c8c13ceafa3b12d2676b86182cb422681d465004)

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>
2019-11-18 14:42:13 +00:00
Jason Wessel
d487ce8829 pseudo: Fix openat() with a symlink pointing to a directory
While working with ostree disk generation in conjunction with wic, I
found a problem with pseudo where it tried to resolve a symlink when
it shouldn't, based on openat() flags. A C program has been
constructed to test pseudo to show that it is working properly with
the correct behavior around openat().

 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <dirent.h>
 #include <unistd.h>
 #include <fcntl.h>

int main()
{
    /*
     * Tested with: gcc -Wall -o app app.c ; echo "no pseudo" ;
     * ./app ; echo "pseudo"; pseudo ./app
     */
    system("rm -rf tdir tlink");
    system("mkdir tdir");
    system("ln -s tdir tlink");
    DIR *dir = opendir(".");
    int dfd = dirfd(dir);

    int target_dfd = openat (dfd, "tlink", O_RDONLY | O_NONBLOCK |
                             O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW);
    if (target_dfd == -1) {
        printf("Test 1 good\n");
    } else {
        printf("Test 1 failed\n");
        close(target_dfd);
    }
    target_dfd = openat (dfd, "tlink", O_RDONLY | O_NONBLOCK |
                         O_DIRECTORY | O_CLOEXEC);
    if (target_dfd == -1) {
        printf("Test 2 failed\n");
    } else {
        printf("Test 2 good\n");
        close(target_dfd);
    }
    /* Test 3 make sure the owner of the link is root  */
    struct stat sbuf;
    if (!lstat("tlink", &sbuf) && sbuf.st_uid == 0) {
        printf("Test 3 good\n");
    } else {
        printf("Test 3 failed\n");
    }
    /* Test 4 tests open with the "rb" flag, owner should not change */
    int ofd = openat(dfd,"./tlink", O_RDONLY|O_CLOEXEC);
    if (ofd >= 0) {
        if (fstat(ofd, &sbuf) != 0)
            printf("ERROR in fstat test 4\n");
        else if (sbuf.st_uid == 0)
            printf("Test 4 good\n");
        close(ofd);
    } else {
        printf("Test 4 failed with openat()\n");
    }
    /* Test pseudo db to see the fstat() above did not delete the DB entry */
    if (!lstat("tlink", &sbuf) && sbuf.st_uid == 0)
        printf("Test 5 good\n");
    else
        printf("Test 5 failed... tlink is owned by %i and not 0\n", sbuf.st_uid);
    return 0;
}

int main()
{
    /* Tested with: gcc -Wall -o app app.c ; echo "no pseudo" ; ./app ; echo "pseudo"; pseudo ./app */
    system("rm -rf tdir tlink");
    system("mkdir tdir");
    system("ln -s tdir tlink");
    DIR *dir = opendir(".");
    int dfd = dirfd(dir);

    int target_dfd = openat (dfd, "tlink", O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW);
    if (target_dfd == -1) {
        printf("This is right\n");
    } else {
        printf("This is broken\n");
    }
    return 0;
}

Many thanks to Peter Seebach for fixing the problem in the pseudo code
to use the same logic which was already there for the
AT_SYMLINK_NOFOLLOW.

Also updated is the license MD5 checksum since the master branch of
pseudo has had the SPDX data updated.

(From OE-Core rev: d1788e865d9bcd70b36d0f239647aeffb0ea8b85)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:13 +00:00
Adrian Bunk
d865ce7154 python3: Upgrade 3.7.4 -> 3.7.5
Backported patch removed.

3.7.5 also includes the fix for CVE-2019-16935.

(From OE-Core rev: deabbb60b98418bd4fcf97adc3293b65d3ff306e)

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: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:13 +00:00
Chen Qi
66f4295cbf python3: CVE-2019-16056
(From OE-Core rev: 8818a7e878644d1c695385eb256f53a34179fbbb)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-11-18 14:42:13 +00:00
Mingli Yu
3370830012 python3: fix the test_locale output format
Before this patch:
 # python3 -m test -v test_locale
 [snip]
 test_getsetlocale_issue1813 (test.test_locale.TestMiscellaneous) ... testing with ('tr_TR', 'ISO8859-9') ok
 [snip]

 After this patch:
 # python3 -m test -v test_locale
 [snip]
 test_getsetlocale_issue1813 (test.test_locale.TestMiscellaneous) ... testing with ('tr_TR', 'ISO8859-9')... ok
 [snip]

Make the test ended with "... ok" is common in python
unittest world, we should make it keep consistent
with other test cases in case it may be ignored to
record in the report if we use the common filter
"... ok".

[YOCTO #13298]

(From OE-Core rev: 5b8022db53d9ef50ea35b034a6e27477038a508b)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:13 +00:00
Joshua Watt
a2d2dba0bd python3: Fix .pyc file reproduciblility
Applies a patch to python that makes the pre-compiled .pyc files
generated during the build reproducible.

(From OE-Core rev: c2c6f30554f96e551b71b3d66fb599a5d28a10bb)

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>
2019-11-18 14:42:13 +00:00
Joshua Watt
0cec926058 python3: Reformat sysconfig
Reformats the sysconfig file when packaging. This file is output by
using the python pprint function. This function will wrap long lines at
80 characters by default, and will even split strings at whitespace
boundaries to do so, e.g.:

 'A': 'B is really'
    ' long'

This causes a problem for reproducibility however because there might be
lines of differing lengths depending on the build path. These
non-reproducible paths are removed, but their effect on string wrapping
from pprint remains.

To correct this, reformat the entire sysconfig file by re-printing using
pprint with an (effectively) unlimited line length.

(From OE-Core rev: 01e4409e81c3d037fcba82fbcb3273dd1118490b)

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>
2019-11-18 14:42:13 +00:00
Ricardo Ribalda Delgado
099d62754c python3: python3: Fix build error x86->x86
When building x86->x86 the system will try to execute .so and related items
from the default PYTHONPATH.  This will fail if the target CPU contains
instructions that the host CPU does not have, add CROSSPYTHONPATH
into PYTHONPATH so we can prepend the list to find correct libs.

Fixes:

Illegal instruction (core dumped)
Makefile:625: recipe for target 'sharedmods' failed
make: *** [sharedmods] Error 132
make: *** Waiting for unfinished jobs....

(From OE-Core rev: 2f8086ce87bbb62ef971be4da80c2c2b9d8c9c66)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.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>
2019-11-18 14:42:13 +00:00
Matthias Schoepfer via Openembedded-core
7a5f14778e python3: fix build on softfloat mips
This patch originally only meant to correct the python3 build for mips
with softfloat, as the original test only checked for mips hardfloat.

Replaced custom C Program for triplet detection with autotools triplet
detection.

(From OE-Core rev: f3326309c7c22a6034917f6eee21908c61f44a2f)

Signed-off-by: Matthias Schoepfer <matthias.schoepfer@ithinx.io>
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>
2019-11-18 14:42:13 +00:00
Changqing Li
143c790fca python3: fix do_install fail for parallel buiild
When using make -j with the 'install' target, it's possible for altbininstall
(which normally creates BINDIR) and libainstall (which doesn't, though it
installs python-config there) to race, resulting in a failure due to
attempting to install python-config into a nonexistent BINDIR. Ensure it also
exists in the libainstall target.

(From OE-Core rev: dc84f40fd485863fb6c77e641d76135b21867d39)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:13 +00:00
Joe Slater
58e85c5395 libxslt: fix CVE-2019-18197
Use patch from upstream after 1.1.33 release.

(From OE-Core rev: aa88f0f3b7f70ddc88f187c91860505b256aeda3)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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>
2019-11-18 14:42:13 +00:00
Joe Slater
3b86def5ed libtiff: fix CVE-2019-17546
Apply unmodified patch from upstream.

(From OE-Core rev: 9cba3d02d00df23a3d0f830cb7d11752142f7d82)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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>
2019-11-18 14:42:13 +00:00
Trevor Gamblin
ee860651e9 tiff: fix CVE-2019-14973
CVE reference: https://nvd.nist.gov/vuln/detail/CVE-2019-14973
Upstream merge: https://gitlab.com/libtiff/libtiff/commit/2218055c

(From OE-Core rev: cf26271c34fcbd76f90831955040020c3ee91b6b)

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
[fixup for Warrior context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Peter Kjellerstedt
bacc8e1617 lib/oe/lsb: Make sure the distro ID is always lowercased
In commit 8689e561 (lib/oe/lsb: attempt to ensure consistent distro id
regardless of source), the distro ID returned by
oe.lsb.distro_identifier() was lowercased, but only if a release
version is also present.

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

(From OE-Core rev: c552c9f0fe0f8aaa230a4c6a410a00e8b99a74ae)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Peter Kjellerstedt
1a33ae9cc7 devtool: finish: Add suppport for the --no-clean option
This works just like the already existing --no-clean option to the
`devtool reset` command.

(From OE-Core rev: 950168bce4ee69b04d7679d9e2d164e2f5c36953)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Niclas Svensson
e2e2e4390b devtool: finish: Keep patches ordered when updating bbappend
The _get_patchset_revs() function returns the patches in an
OrderedDict to keep them ordered. However, this information was lost
when the patches were added to the bbappend file.

(From OE-Core rev: 62f79dbbc656dc72423a7788ed7439e7d730fd81)

Signed-off-by: Niclas Svensson <niclas.svensson@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Peter Kjellerstedt
2bfa6ffb66 tzdata: Correct the packaging of /etc/localtime and /etc/timezone
During restructuring of the packaging in 2af4d6eb (tzdata: Install
everything by default), these two files remained in the tzdata
package, which is supposed to be empty. Move them to tzdata-core where
they belong.

Also simplify the definition of CONFFILES_tzdata-core. As its value
only takes effect for files that actually exist, there is no need to
complicate its definition by checking if a file is created before
adding it to the list of configuration files.

(From OE-Core rev: 50e64732585e0d3abe0a8e589d2122a7dc06c826)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Peter Kjellerstedt
0d773abbb5 package_rpm.bbclass: Remove a misleading bb.note()
It should have been removed in 3db9d865 (classes/package_rpm.bbclass:
Enhance diagnostic messages) when it was split in two new notes.

Also change the casing of two other notes to align them with the other
notes.

(From OE-Core rev: b6ef5f2c84b34622280112c48cb2efbc1467e3d0)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Peter Kjellerstedt
229dfc0d9c devtool: Avoid failure for recipes with S == WORKDIR and no local files
When extracting the sources for a recipe that has S == WORKDIR and no
local files in the SRC_URI (which, e.g., can happen for a recipe with
a URI that has the unpack=false attribute), the extraction fails with
the following backtrace:

  Traceback (most recent call last):
    File ".../scripts/devtool", line 344, in <module>
      ret = main()
    File ".../scripts/devtool", line 331, in main
      ret = args.func(args, config, basepath, workspace)
    File ".../poky/scripts/lib/devtool/standard.py", line 762, in
    modify
      initial_rev, _ = _extract_source(srctree, args.keep_temp,
      args.branch, False, config, basepath, workspace,
      args.fixed_setup, rd, tinfoil, no_overrides=args.no_overrides)
    File ".../poky/scripts/lib/devtool/standard.py", line 647, in
    _extract_source
      bb.process.run('git %s commit -a -m "Committing local file
      symlinks\n\n%s"' % (' '.join(useroptions),
      oe.patch.GitApplyTree.ignore_commit_prefix), cwd=srctree)
    File ".../poky/bitbake/lib/bb/process.py", line 178, in run
      raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
  bb.process.ExecutionError: Execution of 'git commit -a -m
  "Committing local file symlinks

  %% ignore"' failed with exit code 1:
  On branch devtool
  nothing to commit, working tree clean

This is because no files were found in the oe-local-files directory
and consequently no symbolic links were added using `git add`, but the
`git commit` command was still executed.

(From OE-Core rev: 025091692e73b78c36bd4095288b9f3fc7ee1811)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Peter Kjellerstedt
d16e35442f nativesdk-meson: Remove some unused variables
(From OE-Core rev: ec563bf0009e1124adb966130f610b9df291fa19)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Peter Kjellerstedt
f61f37bef1 meson.bbclass: Remove the MESON_*_ARGS variables
The options in ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} are already passed
via ${CC}/${CXX} and there is no reason to pass them a second time. Thus
we can remove MESON_TOOLCHAIN_ARGS. And when it is removed, the other
MESON_*_ARGS variables revert to the standard CFLAGS, CXXFLAGS and
LDFLAGS, so just use them directly instead.

Apart from the obvious improvement with not passing a lot of options
twice, this also solves a problem where -pie would be passed on the
command line in a way that it would prevent building any dynamic
libraries using meson if using a toolchain that is not built with
--enable-default-pie and if security_flags.inc is used.

(From OE-Core rev: 650aa572f96266ea532666b5896d259ceb0dc1da)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Peter Kjellerstedt
8855a1ec4d meson: Backport patch to handle strings in cross file args
This allows <language>_args and <language>_link_args properties, e.g.,
c_link_args, in meson.cross to be specified as either a string or a
list.

(From OE-Core rev: 1913e688ad95d465e9b9d16ad57f2bdef2b50d93)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Khem Raj
40ca39df1b go-1.12: update to 1.12.9 minor release
(From OE-Core rev: 03b303dbc92521606ff4051bd253f8acc01fd9e5)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Adrian Bunk
644beadc0b go: Upgrade 1.12.5 -> 1.12.6
(From OE-Core rev: 8dfe441fd3ad46732c2775b817de1a0d816a87e4)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Alexander Kanavin
d579ff2fa6 go: update 1.12.1->1.12.5
(From OE-Core rev: 4e642e6f7b6e51c64e990b74aff3d84b78cd894e)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-18 14:42:12 +00:00
Richard Purdie
d9879a1f60 bitbake: fetch2: Ensure cached url data is matched to a datastore
There was a weird error in OE-Core where "devtool modify virtual/kernel"
was showing basehash mismatch errors. This was due to SRCPV sometimes being:
AUTOINC+b867b78b50_47b80ef7bd and sometimes AUTOINC+b867b78b50_255a750d28.

The latter hash comes from KBRANCH and meant sometimes the correct branch
was seen, sometimes it was not. The issue was complicated by the execution
using a remote datastore over tinfoil.

The problem turns out to be a fetcher caching error. If the datastore
changes, the cached url data may not be valid.

We therefore ensure we match cached url data against the datastore that
generated it, which appears to fix this issue.

(Bitbake rev: 4ce50bbd34eefeabfeca89a6a66c71598d3c58f6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-13 22:00:27 +00:00
Ivan Efimov
b021992106 bitbake: bitbake-worker child process create group before registering SIGTERM handler
The bitbake-worker child on the SIGTERM signal handling send the SIGTERM to all
processes in it's process group. In cases when the bitbake-worker child got
SIGTERM after registering own SIGTERM handler and before the os.setsid() call
it can send SIGTERM to unwanted processes.

In the worst case during SIGTERM processing the bitbake-worker child can be in
the group of the process that started BitBake itself. As a result it can kill
processes that not related to BitBake at all.

(Bitbake rev: b7483a7738daf69902ef590a8144a557576bbce0)

Signed-off-by: Ivan Efimov <i.efimov@inango-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-07 19:46:57 +00:00
Richard Purdie
8279f9693b build-appliance-image: Update to warrior head revision
(From OE-Core rev: 726c3b92298981f5aa2f2449ceeec7b4bf84ed29)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-07 19:46:57 +00:00
Richard Purdie
d0f7312155 poky.conf: Bump version for 2.7.2 warrior release
(From meta-yocto rev: a6f2b72a6044dc8c48a331e21afe7a83a113e038)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:55:49 +00:00
Armin Kuster
4e1e733e06 qemu: update to 3.1.1.1
bug fix only update.

Drop patches included in update.

For full set of changes, see: https://git.qemu.org/?p=qemu.git;a=shortlog;h=refs/tags/v3.1.1.1

(From OE-Core rev: 14f04e6b6c1fa40a1c39cd186627b4b8442f2d5e)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:55 +00:00
Chen Qi
9111972adb go: fix CVE-2019-16276
(From OE-Core rev: 5fc9b154754e67553296a00a39ed16ab6a1d59de)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e31f87e289dfd3bbca961e927447a9c7ba816d3f)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit e02e8fa2e82cceaaa6a433466f52f97b0984762a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:55 +00:00
Changqing Li
eb54600df1 sudo: fix CVE-2019-14287
In Sudo before 1.8.28, an attacker with access to a Runas ALL sudoer
account can bypass certain policy blacklists and session PAM modules,
and can cause incorrect logging, by invoking sudo with a crafted user
ID. For example, this allows bypass of !root configuration, and USER=
logging, for a "sudo -u \#$((0xffffffff))" command.

(From OE-Core rev: 650dd9486d6e5410665d5376be30732c7625396d)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4e11cd561f2bdaa6807cf02ee7c9870881826308)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit b1e0149c41e3c344a0496e64ab3b0c9dd4685ea4)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Yi Zhao
c8125e68c6 libgcrypt: fix CVE-2019-12904
In Libgcrypt 1.8.4, the C implementation of AES is vulnerable to a
flush-and-reload side-channel attack because physical addresses are
available to other processes. (The C implementation is used on platforms
where an assembly-language implementation is unavailable.)

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2019-12904

Patches from:
1374254c29
daedbbb554
a4c561aab1

(From OE-Core rev: a981d9b753a13e100af1f654fb3384f0bcda0b65)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 37e390ff05b6a4509019db358ed496731d80cc51)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 4c207cb1ad46c0d2005ab3eae70d78c937e084b5)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
George McCollister
77a4470733 openssl: make OPENSSL_ENGINES match install path
Set OPENSSL_ENGINES to the path where engines are actually installed.

(From OE-Core rev: 041fb2743a94d7fb065b073efbe5fe5cf46cde53)

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 59565fec0b3f3e24eb01c03b671913599cd3134d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 578f41124565a7cda738c7fe3d25702ee41b08ed)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Changqing Li
f29207ae99 python: Fix CVE-2019-10160
(From OE-Core rev: 23d48f2bea2d358bd8d7d4efd07792bc1f3666bd)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit b4240b585d7fcac2fdbf33a8e72d48cb732eb696)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 10d87a3085665a959a5fda64ae3895cb27ddf343)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Chen Qi
0e55cd3815 python: CVE-2019-16056
(From OE-Core rev: 49ff6c7ef1d366007c49083f4e5faaf5a9eb086f)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 27be9cf71a6fe906a23e81b56f1cc18a6fc9ef97)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Yi Zhao
cd8a048b62 python: add tk-lib as runtime dependency for python-tkinter
Fixes:
ERROR: python-2.7.16-r0 do_package_qa: QA Issue:
/usr/lib/python2.7/lib-dynload/_tkinter.so contained in package
python-tkinter requires libtk8.6.so, but no providers found in
RDEPENDS_python-tkinter? [file-rdeps]

(From OE-Core rev: f83ecbabb911c46de77708ede759a0b768928ea2)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit f78248a2380bbbbf271b5bb02c762f5bc7a3a92e)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Anuj Mittal
9cb405a3eb python: include CVE patches for python-native as well
Also avoids maintaining a different set of patches for both.

(From OE-Core rev: e73d5bb4a21497ed645e2a0a4b88c2eeaf65080a)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b3b1c00cc46b33ddbf7e008267032220e1e298af)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Muminul Islam
2559517faf libcroco: Fix two CVEs
CVE: CVE-2017-8834 CVE-2017-8871

(From OE-Core rev: fe2d5b0d56201110323911d206243fdcc7f80115)

Signed-off-by: Muminul Islam <muislam@microsoft.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Alexander Kanavin
f3eae2a4f7 linux-yocto: add drm-bochs support
This allows better modesetting support for the '-vga std'
emulated hardware provided by Qemu, which we want to
standardize on.

See here for background:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13466

(From OE-Core rev: 569d3f5d0454ed31f2f6df29f1703246a3dcd715)

(From OE-Core rev: 132fb930109f4930acfc8524bcc40faa3ba6d3d9)

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>
2019-10-30 13:47:54 +00:00
Bruce Ashfield
098385a227 linux-yocto/4.19: make drm-bochs feature available
The other active kernel versions have this feature available. To
consistently enable the same video output for qemu, we can cherry
pick the feature to 4.19.

(From OE-Core rev: a777e0f34e106455f963bd58fd8728a16c588c4d)

(From OE-Core rev: 2b7444e41e47e462a8aae0e3e1e95b04cdbaff22)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Bruce Ashfield
34f1a3dda4 kernel-yocto: import security fragments from meta-security
Adding the following fragments from meta-security to make them
centrally available and easier to maintain:

   283939d5c9e kernel-cache: add yama security fragments
   0b86f3fa241 kernel-cache: add ima fragments
   731b466654d kernel-cache: add smack
   813afe8ff47 kernel-cache: add apparmor fragments

(From OE-Core rev: 3063d64984e993d3e7dc2f4c80fb74005f5d6d7e)

(From OE-Core rev: f5ae4010dd29484627a169b8ab02b1012d1dd1d4)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Bruce Ashfield
e869cd4ccb linux-yocto: arch/x86/boot: use prefix map to avoid embedded paths
>From the kernel patch:

[
    It was observed that the kernel embeds the path in the x86 boot
    artifacts.

    From https://bugzilla.yoctoproject.org/show_bug.cgi?id=13458:

    [
       If you turn on the buildpaths QA test, or try a reproducible build, you
       discover that the kernel image contains build paths.

       $ strings bzImage-5.0.19-yocto-standard |grep tmp/
       out of pgt_buf in
       /data/poky-tmp/reproducible/tmp/work-shared/qemux86-64/kernel-source/arch/x86/boot/compressed/kaslr_64.c!?

       But what's this in the top-level Makefile:

       $ git grep prefix-map
       Makefile:KBUILD_CFLAGS  += $(call
       cc-option,-fmacro-prefix-map=$(srctree)/=)

       So the __FILE__ shouldn't be using the full path.  However
       arch/x86/boot/compressed/Makefile has this:

       KBUILD_CFLAGS := -m$(BITS) -O2

       So that clears KBUILD_FLAGS, removing the -fmacro-prefix-map option.
    ]

    Other architectures do not clear the flags, but instead prune before
    adding boot or specific options. There's no obvious reason why x86 isn't
    doing the same thing (pruning vs clearing) and no build or boot issues
    have been observed.

    So we make x86 can do the same thing, and we no longer have embedded paths.
]

This issue has been reported upstream, and a patch submission is
pending, but for now, we'll soak the proposed patch in linux-yocto to
see if any issues are found

[YOCTO: #13458]

(From OE-Core rev: 78b0ff5960814af935a8089ec49c51d76f148149)

(From OE-Core rev: a45a6e12d6ce3a531ad924d3e548de8a95055866)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Bruce Ashfield
463a49da05 linux-yocto: bsp/beaglebone: support qemu -machine virt
While we don't normally do a dual h/w and virt BSP (since they
tend to have conflicting requirements over time). A minimal overhead
option to do this was submitted to linux-yocto. Since it has no
impact on the h/w reference, has SDK testing value and can serve
as a template on how to do this for other arm boards, it is worth
making the configuration available.

The original commit log follows:

[

   If the kernel supports Qemu's virt machine, runqemu works almost for free.
   The device tree for machine virt is included in Qemu, which simplifies
   everything quite a bit.
   This change adds ARCH_VIRT=y and some drivers to the beaglebone kernel
   configuration which allows to:

     export MACHINE="beaglebone-yocto"
     bitbake core-image-minimale
     runqemu

   This also works out of an eSDK. Whithout this feature usually two
   different SDKs need to be compiled and maintained. One SDK is used for development
   in Qemu, another one is used to develop for the real target hardware.

   Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
]

(From OE-Core rev: cc1fca6d464775daa15032f11c02d16b99759407)

(From OE-Core rev: 61eed761a51fcb5ac293b76b4dc6edbd6dbbb32f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Bruce Ashfield
ee52ee1d64 linux-yocto/5.0: make scsi-debug include scsi core configs
Updating the scsi-debug fragment to include the core scsi config
options. This allows standalone use of the fragment, since all
supporting options will be enabled simply by including the top
level config in a BSP.

This also removes a configuration warning on qemuarm, since we
will no longer have missing / unavailable options during the
config audit.

(From OE-Core rev: c65826e96a77928938fef69fc0cbc65ec7431cb2)

(From OE-Core rev: 6c2c6bed0bd5f0a303b9aacfab7db6daec3ee878)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Bruce Ashfield
314f062519 linux-yocto/5.0: bsp: add basic xilinx zynqmp support
Zumeng Chen has added core/basic support for the zynqmp that is bootable
using the 5.0 and 5.2-rcX kernels. This makes the fragments available
for future refinement and factoring. A bootlog follows:

    ZynqMP> setenv bootargs console=ttyPS0,115200 root=/dev/mmcblk0p3 rw
    rootwait earlycon=cdns,mmio,0xFF000000 clk_ignore_unused ip=dhcp
    ZynqMP> tftpboot 0x10000000 Image; tftpboot 0x11800000 dtb; booti
    0x10000000 - 0x11800000
    Using ethernet@ff0e0000 device

    Filename 'Image'.
    Load address: 0x10000000
    Loading:
	      ###########
	      11.3 MiB/s
    done
    Bytes transferred = 16378368 (f9ea00 hex)
    Using ethernet@ff0e0000 device
    TFTP from server 128.224.162.211; our IP address is 128.224.162.99
    Filename 'dtb'.
    Load address: 0x11800000
    Loading: ##
	      4.7 MiB/s
    done
    Bytes transferred = 19746 (4d22 hex)
	Booting using the fdt blob at 0x11800000
	Loading Device Tree to 0000000007ff8000, end 0000000007fffd21 ... OK

    Starting kernel ...

    Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    Linux version 5.2.0-rc3-yoctodev-standard (oe-user@oe-host) (gcc version
    9.1.0 (GCC)) #1 SMP PREEMPT Thu Jun 6 00:53:26 UTC 2019
    Machine model: ZynqMP ZCU102 Rev1.0
    earlycon: cdns0 at MMIO 0x00000000ff000000 (options '')
    printk: bootconsole [cdns0] enabled
    efi: Getting EFI parameters from FDT:
    efi: UEFI not found.
    cma: Reserved 16 MiB at 0x000000007ec00000
    psci: probing for conduit method from DT.
    psci: PSCIv1.1 detected in firmware.
    psci: Using standard PSCI v0.2 function IDs
    psci: MIGRATE_INFO_TYPE not supported.
    psci: SMC Calling Convention v1.1
    percpu: Embedded 30 pages/cpu s83416 r8192 d31272 u122880
    Detected VIPT I-cache on CPU0
    CPU features: detected: ARM erratum 845719
    Speculative Store Bypass Disable mitigation not required
    Built 1 zonelists, mobility grouping on.  Total pages: 1031940
    Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p3 rw
    rootwait earlycon=cdns,mmio,0xFF000000 clk_ignore_unused ip=dhcp
    Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
    Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
    software IO TLB: mapped [mem 0x7ac00000-0x7ec00000] (64MB)
    Memory: 4013572K/4193280K available (10748K kernel code, 1210K rwdata,
    2764K rodata, 1216K init, 757K bss, 163324K reserved, 16384K
    cma-reserved)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    ftrace: allocating 36121 entries in 142 pages
    rcu: Preemptible hierarchical RCU implementation.
    rcu:    RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
	     Tasks RCU enabled.
    rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    GIC: Adjusting CPU interface base to 0x00000000f902f000
    GIC: Using split EOI/Deactivate mode
    random: get_random_bytes called from start_kernel+0x328/0x4c4 with
    crng_init=0
    arch_timer: cp15 timer(s) running at 99.99MHz (phys).
    clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles:
    0x170f8de2d3, max_idle_ns: 440795206112 ns
    sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every
    4398046511101ns
    Console: colour dummy device 80x25
    Calibrating delay loop (skipped), value calculated using timer
    frequency.. 199.98 BogoMIPS (lpj=399960)
    pid_max: default: 32768 minimum: 301
    LSM: Security Framework initializing
    Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
    Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
    *** VALIDATE proc ***
    *** VALIDATE cgroup1 ***
    *** VALIDATE cgroup2 ***
    ASID allocator initialised with 32768 entries
    rcu: Hierarchical SRCU implementation.
    EFI services will not be available.
    smp: Bringing up secondary CPUs ...
    Detected VIPT I-cache on CPU1
    CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    Detected VIPT I-cache on CPU2
    CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    Detected VIPT I-cache on CPU3
    CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    smp: Brought up 1 node, 4 CPUs
    SMP: Total of 4 processors activated.
    CPU features: detected: 32-bit EL0 Support
    CPU features: detected: CRC32 instructions
    CPU: All CPU(s) started at EL2
    alternatives: patching kernel code
    devtmpfs: initialized
    clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff,
    max_idle_ns: 7645041785100000 ns
    futex hash table entries: 1024 (order: 4, 65536 bytes)
    xor: measuring software checksum speed
	8regs     :  2360.000 MB/sec
	32regs    :  2706.000 MB/sec
	arm64_neon:  2018.000 MB/sec
    xor: using function: 32regs (2706.000 MB/sec)
    DMI not present or invalid.
    NET: Registered protocol family 16
    cpuidle: using governor ladder
    hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    DMA: preallocated 256 KiB pool for atomic allocations
    ��ɥ��ѭ console [ttyPS0] enabled 0xff000000 (irq = 33, base_baud =
    6250000) is a xuartps
    printk: console [ttyPS0] enabled
    printk: bootconsole [cdns0] disabled
    printk: bootconsole [cdns0] disabled
    ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 34, base_baud =
    6250000) is a xuartps
    HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
    HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
    HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
    raid6: neonx8   gen()  1518 MB/s
    raid6: neonx8   xor()  1442 MB/s
    raid6: neonx4   gen()  1471 MB/s
    raid6: neonx4   xor()  1409 MB/s
    raid6: neonx2   gen()  1128 MB/s
    raid6: neonx2   xor()  1175 MB/s
    raid6: neonx1   gen()   737 MB/s
    raid6: neonx1   xor()   887 MB/s
    raid6: int64x8  gen()  1166 MB/s
    raid6: int64x8  xor()   763 MB/s
    raid6: int64x4  gen()   983 MB/s
    raid6: int64x4  xor()   739 MB/s
    raid6: int64x2  gen()   683 MB/s
    raid6: int64x2  xor()   601 MB/s
    raid6: int64x1  gen()   452 MB/s
    raid6: int64x1  xor()   462 MB/s
    raid6: using algorithm neonx8 gen() 1518 MB/s
    raid6: .... xor() 1442 MB/s, rmw enabled
    raid6: using neon recovery algorithm
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    media: Linux media interface: v0.10
    videodev: Linux video capture interface: v2.00
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
    <giometti@linux.it>
    PTP clock support registered
    EDAC MC: Ver: 3.0.0
    FPGA manager framework
    clocksource: Switched to clocksource arch_sys_counter
    *** VALIDATE hugetlbfs ***
    NET: Registered protocol family 2
    tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768
    bytes)
    TCP established hash table entries: 32768 (order: 6, 262144 bytes)
    TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
    TCP: Hash tables configured (established 32768 bind 32768)
    UDP hash table entries: 2048 (order: 4, 65536 bytes)
    UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    PCI: CLS 0 bytes, default 64
    hw perfevents: no interrupt-affinity property for /pmu, guessing.
    hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
    kprobes: failed to populate blacklist: -22
    Please take care of using kprobes.
    workingset: timestamp_bits=46 max_order=20 bucket_order=0
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    jffs2: version 2.2. �© 2001-2006 Red Hat, Inc.
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    io scheduler mq-deadline registered
    io scheduler kyber registered
    nwl-pcie fd0e0000.pcie: Link is DOWN
    nwl-pcie fd0e0000.pcie: host bridge /amba/pcie@fd0e0000 ranges:
    nwl-pcie fd0e0000.pcie:   MEM 0xe0000000..0xefffffff -> 0xe0000000
    nwl-pcie fd0e0000.pcie:   MEM 0x600000000..0x7ffffffff -> 0x600000000
    nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00
    pci_bus 0000:00: root bus resource [bus 00-ff]
    pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
    pci_bus 0000:00: root bus resource [mem 0x600000000-0x7ffffffff pref]
    pci 0000:00:00.0: [10ee:d021] type 01 class 0x060400
    pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
    pci 0000:00:00.0: PCI bridge to [bus 01-0c]
    pcieport 0000:00:00.0: PME: Signaling with IRQ 37
    xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
    xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
    xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
    xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
    xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
    xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
    xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
    xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
    cacheinfo: Unable to detect cache hierarchy for CPU 0
    brd: module loaded
    loop: module loaded
    ahci-ceva fd0c0000.ahci: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl
    platform mode
    ahci-ceva fd0c0000.ahci: flags: 64bit ncq sntf pm clo only pmp fbs pio
    slum part ccc sds apst
    scsi host0: ahci-ceva
    scsi host1: ahci-ceva
    ata1: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x100 irq
    31
    ata2: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x180 irq
    31
    libphy: Fixed MDIO Bus: probed
    CAN device driver interface
    libphy: MACB_mii_bus: probed
    Generic PHY ff0e0000.ethernet-ffffffff:0c: attached PHY driver [Generic
    PHY] (mii_bus:phy_addr=ff0e0000.ethernet-ffffffff:0c, irq=POLL)
    macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000
    irq 20 (00:0a:35:04:9a:86)
    dwc3 fe200000.usb: Failed to get clk 'ref': -2
    dwc3 fe200000.usb: Configuration mismatch. dr_mode forced to host
    xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    xhci-hcd xhci-hcd.0.auto: hcc params 0x0238f625 hci version 0x100 quirks
    0x0000000002010010
    xhci-hcd xhci-hcd.0.auto: irq 35, io mem 0xfe200000
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0  SuperSpeed
    usb usb2: We don't know the algorithms for LPM for this host, disabling
    LPM.
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    usbcore: registered new interface driver usb-storage
    rtc_zynqmp ffa60000.rtc: registered as rtc0
    pca953x 0-0020: 0-0020 supply vcc not found, using dummy regulator
    GPIO line 322 (sel0) hogged as output/low
    GPIO line 323 (sel1) hogged as output/high
    GPIO line 324 (sel2) hogged as output/high
    GPIO line 325 (sel3) hogged as output/high
    pca953x 0-0021: 0-0021 supply vcc not found, using dummy regulator
    cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 22
    cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 23
    i2c i2c-0: Added multiplexed i2c bus 2
    i2c i2c-0: Added multiplexed i2c bus 3
    i2c i2c-0: Added multiplexed i2c bus 4
    i2c i2c-0: Added multiplexed i2c bus 5
    pca954x 0-0075: registered 4 multiplexed busses for I2C mux pca9544
    at24 6-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
    i2c i2c-1: Added multiplexed i2c bus 6
    i2c i2c-7: of_i2c: modalias failure on
    /amba/i2c@ff030000/i2c-mux@74/i2c@1/clock-generator@36
    i2c i2c-7: Failed to create I2C device for
    /amba/i2c@ff030000/i2c-mux@74/i2c@1/clock-generator@36
    i2c i2c-1: Added multiplexed i2c bus 7
    si570 8-005d: registered, current frequency 300000000 Hz
    i2c i2c-1: Added multiplexed i2c bus 8
    si570 9-005d: clock registration failed
    si570: probe of 9-005d failed with error -17
    i2c i2c-1: Added multiplexed i2c bus 9
    i2c i2c-10: of_i2c: modalias failure on
    /amba/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69
    i2c i2c-10: Failed to create I2C device for
    /amba/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69
    i2c i2c-1: Added multiplexed i2c bus 10
    i2c i2c-1: Added multiplexed i2c bus 11
    i2c i2c-1: Added multiplexed i2c bus 12
    i2c i2c-1: Added multiplexed i2c bus 13
    pca954x 1-0074: registered 8 multiplexed busses for I2C switch pca9548
    i2c i2c-1: Added multiplexed i2c bus 14
    i2c i2c-1: Added multiplexed i2c bus 15
    i2c i2c-1: Added multiplexed i2c bus 16
    i2c i2c-1: Added multiplexed i2c bus 17
    i2c i2c-1: Added multiplexed i2c bus 18
    i2c i2c-1: Added multiplexed i2c bus 19
    i2c i2c-1: Added multiplexed i2c bus 20
    i2c i2c-1: Added multiplexed i2c bus 21
    pca954x 1-0075: registered 8 multiplexed busses for I2C switch pca9548
    ina2xx 2-0040: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 2-0041: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 2-0042: power monitor ina226 (Rshunt = 5000 uOhm)
    ata1: SATA link down (SStatus 0 SControl 330)
    ina2xx 2-0043: power monitor ina226 (Rshunt = 5000 uOhm)
    ata2: SATA link down (SStatus 0 SControl 330)
    ina2xx 2-0044: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 2-0045: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 2-0046: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 2-0047: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 2-004a: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 2-004b: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 3-0040: power monitor ina226 (Rshunt = 2000 uOhm)
    ina2xx 3-0041: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 3-0042: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 3-0043: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 3-0044: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 3-0045: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 3-0046: power monitor ina226 (Rshunt = 5000 uOhm)
    ina2xx 3-0047: power monitor ina226 (Rshunt = 5000 uOhm)
    cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer at (____ptrval____)
    with timeout 10s
    device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised:
    dm-devel@redhat.com
    EDAC MC: ECC not enabled
    cpu cpu0: failed to get clock: -2
    cpufreq-dt: probe of cpufreq-dt failed with error -2
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    sdhci-pltfm: SDHCI platform and OF driver helper
    mmc0: SDHCI controller on ff170000.mmc [ff170000.mmc] using ADMA 64-bit
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    u32 classifier
	 Actions configured
    NET: Registered protocol family 10
    Segment Routing with IPv6
    sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    NET: Registered protocol family 17
    can: controller area network core (rev 20170425 abi 9)
    NET: Registered protocol family 29
    can: raw protocol (rev 20170425)
    can: broadcast manager protocol (rev 20170425 t)
    can: netlink gateway (rev 20170425) max_hops=1
    Key type dns_resolver registered
    registered taskstats version 1
    Btrfs loaded, crc32c=crc32c-generic
    Key type encrypted registered
    printk: console [netcon0] enabled
    netconsole: network logging started
    rtc_zynqmp ffa60000.rtc: setting system clock to 2019-06-06T03:39:58 UTC
    (1559792398)
    macb ff0e0000.ethernet eth0: link up (1000/Full)
    pps pps0: new PPS source ptp0
    macb ff0e0000.ethernet: gem-ptp-timer ptp clock registered.
    IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    mmc0: Problem switching card into high-speed mode!
    mmc0: new SDHC card at address 0001
    mmcblk0: mmc0:0001 SD16G 14.5 GiB
    Sending DHCP requests .
      mmcblk0: p1 p2 p3
    , OK
    IP-Config: Complete:
	  device=eth0, hwaddr=00:0a:35:04:9a:86, ipaddr=xxxxx,
    mask=255.255.254.0
	  host=xxx, domain=corp.ad.wrs.com, nis-domain=swamp
	  bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=

    clk: Not disabling unused clocks
    md: Waiting for all devices to be available before autodetect
    md: If you don't use raid, use raid=noautodetect
    md: Autodetecting RAID arrays.
    md: autorun ...
    md: ... autorun DONE.
    EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts:
    (null)
    VFS: Mounted root (ext4 filesystem) on device 179:3.
    devtmpfs: mounted
    Freeing unused kernel memory: 1216K
    Run /sbin/init as init process
    random: fast init done
    systemd[1]: systemd 242-19-gdb2e367+ running in system mode. (+PAM
    -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP
    -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN
    -)
    systemd[1]: Detected architecture arm64.

    Welcome to Wind River Linux development 19.23 Update 0!

    systemd[1]: Set hostname to <xilinx-zynqmp>.
    random: systemd: uninitialized urandom read (16 bytes read)
    systemd[1]: Initializing machine ID from random generator.
    systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
    systemd[1]: /lib/systemd/system/dbus.socket:4: ListenStream= references
    a path below legacy directory /var/run/, updating
    /var/run/dbus/system_bus_socket �→ /run/dbus/system_bus_socket; please
    update the unit f.
    systemd[1]: /lib/systemd/system/rpcbind.socket:4: ListenStream=
    references a path below legacy directory /var/run/, updating
    /var/run/rpcbind.sock �→ /run/rpcbind.sock; please update the unit file
    accordingly.
    random: systemd: uninitialized urandom read (16 bytes read)
    systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    random: systemd: uninitialized urandom read (16 bytes read)
    systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Created slice User and Session Slice.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [  OK  ] Reached target Swap.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Reached target Slices.
    [  OK  ] Listening on Journal Socket.
	      Starting udev Coldplug all Devices...
	      Mounting POSIX Message Queue File System...
	      Mounting Temporary Directory (/tmp)...
	      Starting Journal Service...
	      Starting Remount Root and Kernel File Systems...
	      Mounting Kernel Debug File System...
    EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
	      Starting Create list of re�…odes for the current kernel...
    [  OK  ] Started Forward Password R�…uests to Wall Directory Watch.
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Listening on Network Service Netlink Socket.
	      Starting Apply Kernel Variables...
    [  OK  ] Started Dispatch Password �…ts to Console Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Created slice system-getty.slice.
	      Mounting Huge Pages File System...
    [  OK  ] Started Journal Service.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Remount Root and Kernel File Systems.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Started Create list of req�… nodes for the current kernel.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Mounted Huge Pages File System.
	      Starting Create System Users...
	      Starting Rebuild Hardware Database...
	      Starting Flush Journal to Persistent Storage...
    [  OK  ] Started udev Coldplug all Devices.
    systemd-journald[148]: Received request to flush runtime journal from
    PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Create System Users.
	      Starting Create Static Device Nodes in /dev...
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Reached target Local File Systems (Pre).
	      Mounting /var/volatile...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Reached target Local File Systems.
	      Starting Create Volatile Files and Directories...
	      Starting Load/Save Random Seed...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
	      Starting Network Time Synchronization...
	      Starting Rebuild Journal Catalog...
	      Starting Update UTMP about System Boot/Shutdown...
	      Starting Run pending postinsts...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started Rebuild Journal Catalog.
    [  OK  ] Started Run pending postinsts.
    [  OK  ] Started Rebuild Hardware Database.
	      Starting udev Kernel Device Manager...
	      Starting Update is Completed...
    [  OK  ] Started Update is Completed.
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Reached target System Initialization.
	      Starting Console System Startup Logging...
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started System Logging Service.
    [  OK  ] Started Dynamic Host Configuration Protocol (DHCP).
    [  OK  ] Started Kernel Logging Service.
	      Starting Login Service...
    [  OK  ] Started D-Bus System Message Bus.
    [  OK  ] Started Xserver startup without a display manager.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
	      Starting Telephony service...
	      Starting Network Service...
    [  OK  ] Started Console System Startup Logging.
    [  OK  ] Found device /dev/ttyPS0.
    [  OK  ] Listening on Load/Save RF �…itch Status /dev/rfkill Watch.
    [  OK  ] Started Network Service.
	      Starting Network Name Resolution...
    [  OK  ] Started Login Service.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Started Telephony service.
    [  OK  ] Reached target Network.
	      Starting Berkeley Internet Name Domain (DNS)...
	      Starting /etc/rc.local Compatibility...
	      Starting Permit User Sessions...
	      Starting Avahi mDNS/DNS-SD Stack...
    [  OK  ] Started /etc/rc.local Compatibility.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyPS0.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Berkeley Internet Name Domain (DNS).
    [  OK  ] Reached target Host and Network Name Lookups.

    Wind River Linux development 19.23 Update 0 xilinx-zynqmp ttyPS0

    xilinx-zynqmp login: root
    root@xilinx-zynqmp:~# uname 0a
    uname: extra operand '0a'
    Try 'uname --help' for more information.
    root@xilinx-zynqmp:~# uname -a
    Linux xilinx-zynqmp 5.2.0-rc3-yoctodev-standard #1 SMP PREEMPT Thu Jun 6
    00:53:26 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

(From OE-Core rev: b0dc58f535a27be6c649dcf336c7dc0cdb23d96b)

(From OE-Core rev: 47196abf511d96d9d6c6b561430dc1827484c742)

Signed-off-by: Zumeng Chen <zchen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Zang Ruochen
b5626d15c8 gnutls:upgrade 3.6.7 -> 3.6.8
-Upgrade from gnutls_3.6.7.bb to gnutls_3.6.8.bb.

(From OE-Core rev: c5d2ca323a255f09c7b3378af5956671205867f4)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b34486a616ab4d4b30247a5dff58a18ef26ed709)
[Bug fix only update.
Including: CVE-2019-3836 CVE-2019-3829
https://lists.gnupg.org/pipermail/gnutls-help/2019-May/004527.html]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Dmitry Eremin-Solenikov
5f67715b7a kernel.bbclass: fix installation of modules signing certificates
If one has provided external key/certificate for modules signing, Kbuild
will skip creating signing_key.pem and will write only signing_key.x509
certificate. Thus we have to check for .x509 file existence rather than
.pem one.

(From OE-Core rev: 6ab0206b8252755367f2357f49007dd78336fec0)

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2527e731eba43bd36d0ea268aca6b03155376134)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-30 13:47:54 +00:00
Scott Rifenbark
4ada58f74c Documenation: Prepared for the 2.7.2 release
Entails all the cover pages for the release date.  Used
November 2019 for now.  Updated poky.ent and the
mega-manual.sed file.  Good to go.

(From yocto-docs rev: f7bf30b96ba7feaf33df544162a713204520b389)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-23 17:30:38 +01:00
Scott Rifenbark
c1b94791e6 ref-manual, dev-manual: Added CMake toolchain files.
Fixes [YOCTO #12760]

Updated the cmake.bbclass description to tell what directory
to insall custom CMake toolchain files into.  Also, updated
the two areas in the "Writing a New Recipe" section that
mention CMake.  Placed a couple notes there concerning the
same directory stuff.

(From yocto-docs rev: cacdedf4e1186a96ce00f94e0f42817dfb724ac7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-23 17:30:38 +01:00
Scott Rifenbark
25b88e7072 ref-manual: Updated the BUSYBOX_SPLIT_SUID variable.
Fixes [YOCTO #13596]

(From yocto-docs rev: e6c9e9511221d47397e97e26d9f7002d4b918dce)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-23 17:30:38 +01:00
Scott Rifenbark
aafa34cda5 ref-manual: Removed deprecated link to ref-classes-bluetooth
This was in a moving to YP version 1.8 migration section.

(From yocto-docs rev: 76e63455276aff8a03c00e2fd12c728c5aeb6e2c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-23 17:30:38 +01:00
Scott Rifenbark
2c152f790a dev-manual: Added info to "Selecting an Initialization Manager"
(From yocto-docs rev: 4d5c70b394cfd7d7f189d719b4391f784bd57733)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-23 17:30:38 +01:00
Ross Burton
a6d1001b2a kernel-dev: don't use _append +=
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-23 17:30:38 +01:00
Ross Burton
79a850a10a conf/poky: add Fedora 30 and Opensuse Leap 15.1 to supported distributions
(From meta-yocto rev: 2fd2aea930253ec6d3bcdde25d02484c89586f79)

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>
2019-10-14 09:49:27 +01:00
Ross Burton
1e8ef6520a conf/poky: add debian-10 to the supported distribution list
Debian 10 is the new stable release and is being tested on the autobuilder, so
add this to the supported distribution list.

[ YOCTO #13432 ]

(From meta-yocto rev: 71bc73ae48188ee52a40b4f69044f1fd281b4d72)

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>
2019-10-14 09:49:27 +01:00
Kevin Hao
7c08b5a91f meta-yocto-bsp: Bump to the latest stable kernel for all the BSP
Boot test for all these boards.

(From meta-yocto rev: 126f95e7702370c3c5803afbe99a6a86878ed12a)

Signed-off-by: Kevin Hao <kexin.hao@windriver.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>
2019-10-14 09:49:27 +01:00
Joshua Watt
07d4569049 bitbake: cookerdata: Add mc conffiles hashes to cache hash
The variable values that result from parsing multiconfig should be
included in the cooker data hash, otherwise changes to these files won't
be detected, which will allow the parsing cache to be loaded with the
old values for the multiconfigs. This can either manifest as the
variable values simply not updating, or getting basehash changed errors
when building.

This bug was previously undetected because all of the multiconfig base
files were a direct file dependency in all parsed recipes. This was
fixed in 34137a00f60 ("bitbake: bitbake: cooker: Rename __depends in all
multiconfigs"), exposing this bug.

[YOCTO #13541]

(Bitbake rev: 75d6648f232a06b99c54a1e33324a7fc1cd15b38)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-10 16:53:33 +01:00
Michael Halstead
1153a954e6 uninative: Update to 2.7 release
The 2.7 release updates glibc to version 2.30. Recently added to openSUSE
Tumbleweed and needed for Fedora Core 31.

(From OE-Core rev: b6e17afc06d7a44dc9774ee98de7f186580ddf0d)

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
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>
2019-10-08 22:51:35 +01:00
Ricardo Ribalda Delgado
ee1ab63ef3 meson: Fix native patch to python3
Fixes:

  File "/workdir/build/tmp/work/dbfp4-poky-linux/qv4l2/1.17.0+gitAUTOINC+95f39aae48-r0/recipe-sysroot-native/usr/lib/python3.7/site-packages/mesonbuild/dependencies/base.py", line 574, in _call_pkgbin
    cache[(self.pkgbin, targs, fenv)] = self._call_pkgbin_real(args, env, use_native)
  File "/workdir/build/tmp/work/dbfp4-poky-linux/qv4l2/1.17.0+gitAUTOINC+95f39aae48-r0/recipe-sysroot-native/usr/lib/python3.7/site-packages/mesonbuild/dependencies/base.py", line 556, in _call_pkgbin_real
    cmd = self.pkgbin.get_command() + "-native" + args
TypeError: can only concatenate list (not "str") to list

(From OE-Core rev: 9051c10e46960a357f0339e347618f5d83923fe4)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.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>
2019-10-08 22:51:35 +01:00
Armin Kuster
cf840f4e0c qemu: fix build issue on new hosts with glibc 2.30
This fixes the following error:

TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:254:16: error: static declaration of ‘gettid’ follows non-static declaration
 254 | _syscall0(int, gettid)
 |                ^~~~~~
 TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:185:13: note: in definition of macro ‘_syscall0’
 185 | static type name (void)   \
 |             ^~~~
 In file included from /usr/include/unistd.h:1170,
 from TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/include/qemu/osdep.h:90,
 from TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:20:
 /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ was here
 34 | extern __pid_t gettid (void) __THROW;
 |                ^~~~~~

(From OE-Core rev: fbedc2d73ff472c89ba273a890408f93015e8f17)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-08 22:51:35 +01:00
Jan Klare
2797993ea5 systemd: update SRCREV for systemd v241-stable
Currently systemd 241 does break for kernels 5.2+ with the error described here:
* https://github.com/systemd/systemd/issues/12784

The issue has been fixed in master and will be fixed in the release 243. The
necessary patches have been backported to systemd/systemd-stable in the branch
v241-stable, but currently in warrior an old version of that branch is pulled
in.

This patch updates the SRCREV to the latest commit from that branch and
therefore pulls in the needed fix to run systemd 241 on 5.2+ kernels.

(From OE-Core rev: 8b9703454cb2a8a0aa6b7942498f191935d547ea)

Signed-off-by: Jan Klare <jan.klare@bisdn.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-08 22:51:35 +01:00
Andrii Bordunov via Openembedded-core
5cfe5f0f7b classes/image-live.bbclass: Don't hardcode cpio.gz
There's INITRAMFS_FSTYPES that can be set differently.

(From OE-Core rev: 66c05bb2ca6ecdb621ae1e5bdf28e7aa768d9aba)

Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-08 22:51:35 +01:00
Dan Tran
88de1b03a0 unzip: Fix CVE-2019-13232
(From OE-Core rev: 8bc35e7b23ca0f10f4a2f3c4f7137d3dedc051fb)

Signed-off-by: Dan Tran <dantran@microsoft.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-08 22:51:35 +01:00
Dan Tran
fd8df1bd0f qemu: Fix CVE-2019-8934
(From OE-Core rev: 7f13e4e9ef51bf62729a9a955967aa4752d0d2e8)

Signed-off-by: Dan Tran <dantran@microsoft.com>
[Fix up against lastest warrior]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-08 22:51:35 +01:00
Adrian Bunk
959edeb83d json-c: Don't --enable-rdrand
In recent years AMD CPUs have had various problems with RDRAND
giving either non-random data or no result at all, which is
problematic if either build or target machine has a CPU with
this problem.

The fallback is /dev/urandom, and I'd trust the kernel here.

--enable-rdrand was added in an upgrade to a new upstream
version without mentioning any reason.

[YOCTO #13534]

(From OE-Core rev: 07b19cd9ef127ec87f727e154eda62272a828275)

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>
2019-10-08 22:51:35 +01:00
Anuj Mittal
eacd4b0f0c python3: upgrade 3.7.3 -> 3.7.4
Also fixes CVE-2019-9740, CVE-2019-9948. For details, see:

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

(From OE-Core rev: 6b7604c536a7a2da99490a7550f997a8e35ca043)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[ Backported patch removed. ]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
[Bug fix only update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-08 22:51:35 +01:00
Alexander Kanavin
d1a785686f python: update to 3.7.3
License-update: copyright years

(From OE-Core rev: 845b9a4ed2b83d716688a7b0d8bf13f37e79a025)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[ Backported patches removed. ]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
[Bug fix only update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-08 22:51:35 +01:00
Richard Purdie
b58c50811b runqemu: Add support for kvm on aarch64
The main issue is to make the x86 checks apply to x86 targets only. We may
end up with better checks on other architectures but this adapts the code to
allow for that and its still controlled by whether QB_CPU_KVM is set.

The code needed minor refactoring so the qemu-system-XXX name is set
earlier so the kvm code can use it.

(From OE-Core rev: acc0f4a6a99fe9367e57a5c2a4f995b6f4db4a9f)

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>
2019-10-01 10:48:59 +01:00
Richard Purdie
40e28b6b9a qemuarm64: Add QB_CPU_KVM to allow kvm acceleration
This allows kvm acceleration on arm systems that support it. "host" is the
best option I can find right now to attempt to use the acceleration. It
potentially might not be correct but arm systems are sensitive to the
correct values and I don't want to encode the autobuilders CPU type here.

(From OE-Core rev: 20a61476a45d5116dc7081e802b2aaa0bab7e77f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f13788541f64774a586971ed57699e4397b38b32)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-01 10:48:59 +01:00
Ross Burton
411624fa50 cve-check: backport rewrite from master
As detailed at [1] the XML feeds provided by NIST are being discontinued on
October 9th 2019.  As cve-check-tool uses these feeds, cve-check.bbclass will be
inoperable after this date.

To ensure that cve-check continues working, backport the following commits from
master to move away from the unmaintained cve-check-tool to our own Python code
that fetches the JSON:

546d14135c5 cve-update-db: New recipe to update CVE database
bc144b028f6 cve-check: Remove dependency to cve-check-tool-native
7f62a20b32a cve-check: Manage CVE_PRODUCT with more than one name
3bf63bc6084 cve-check: Consider CVE that affects versions with less than operator
c0eabd30d7b cve-update-db: Use std library instead of urllib3
27eb839ee65 cve-check: be idiomatic
09be21f4d17 cve-update-db: Manage proxy if needed.
975793e3825 cve-update-db: do_populate_cve_db depends on do_fetch
0325dd72714 cve-update-db: Catch request.urlopen errors.
4078da92b49 cve-check: Depends on cve-update-db-native
f7676e9a38d cve-update-db: Use NVD CPE data to populate PRODUCTS table
bc0195be1b1 cve-check: Update unpatched CVE matching
c807c2a6409 cve-update-db-native: Skip recipe when cve-check class is not loaded.
07bb8b25e17 cve-check: remove redundant readline CVE whitelisting
5388ed6d137 cve-check-tool: remove
270ac00cb43 cve-check.bbclass: initialize to_append
e6bf9000987 cve-check: allow comparison of Vendor as well as Product
91770338f76 cve-update-db-native: use SQL placeholders instead of format strings
7069302a4cc cve-check: Replace CVE_CHECK_CVE_WHITELIST by CVE_CHECK_WHITELIST
78de2cb39d7 cve-update-db-native: Remove hash column from database.
4b301030cf9 cve-update-db-native: use os.path.join instead of +
f0d822fad2a cve-update-db: actually inherit native
b309840b6aa cve-update-db-native: use executemany() to optimise CPE insertion
bb4e53af33d cve-update-db-native: improve metadata parsing
94227459792 cve-update-db-native: clean up JSON fetching
95438d52b73 cve-update-db-native: fix https proxy issues
1f9a963b9ff glibc: exclude child recipes from CVE scanning

[1] https://nvd.nist.gov/General/News/XML-Vulnerability-Feed-Retirement

(From OE-Core rev: 8c87e78547c598cada1bce92e7b25d85b994e2eb)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Bedel, Alban
5be20f94d6 kernel-uboot: compress arm64 kernels
AArch64 images are not self-decompressing, thus usually much larger.
Boot times can be reduced by compressing them in FIT and uImages.

This commit is a backport of commit a725d188b5 (kernel-uboot: compress
arm64 kernels) and commit 60bc7e180e (kernel-uboot: remove useless
special casing of arm64 Image) from master. Both commit were melted
into one to avoid some useless churn.

(From OE-Core rev: 91c42f92cd978a922fff87cb1d0f358c7d9747ea)

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Will Page
c046ff7d09 uboot: fixes to uboot-extlinux-config attribute values
The way this class uses overrides to support generation of multiple
sections is subject to two different issues: 1) labels that conflict
with existing override names causing the value for the conflicting label
to be set for all labels, and 2) reusing the override list through each
iteration, prepending each new label to the list of overrides makes
earlier labels' value take precedence over later labels, making later
labels virtually impossible to customize.

The first issue is resolved by removing all label names from overrides
before iterating over labels.  The second issue is resolved by
generating a fresh list of overrides with only the current label added.

The current label is also appended to the list of overrides instead of
prepended, which makes it the highest priority override.  This is
matches the behavior of devtool-source.bbclass, which similarly
monkey-patches overrides.

Closes https://bugzilla.yoctoproject.org/show_bug.cgi?id=13469 .

(From OE-Core rev: 933a85e45c3edd65cdcc00cb18e17524e0411a09)

Signed-off-by: Will Page <wpage@polysync.io>
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>
2019-09-30 16:44:42 +01:00
Richard Purdie
a58e84987d useradd: Ensure do_populate_sysroot has dependency on useradd variables
The do_populate_sysroot task doesn't rerun if you change any of the USERADD_PARAM
or GROUPADD_PARAM variables, only do_package will.

If another task depends on the recipe, this means it won't see any updated changes.

This patch adds in the missing vardeps ensuring the code is deterministic.

[YOCTO #13232]

(From OE-Core rev: 7f98309c856e0a54dc9dafda91c9db0a33e57425)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 37d0382a3c67f47f8cfdd977a041069bf912b8c3)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Richard Purdie
bcdafed2db useradd: Fix build architecture corruption of sstate artefacts
When mixing aarch64 and x86_64 host builds with common sstate, useradd failures
were found. This was due to references to:

/home/pokybuild/yocto-worker/qemuarm/build/build/tmp/sysroots-components/aarch64/pseudo-native/usr/bin/pseudo
or
/home/pokybuild/yocto-worker/qemuarm/build/build/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo

on the wrong architecture within the useradd postinst files.

Instead of using COMPONENTS_DIR as the FIXME, use PSEUDO_SYSROOT which contains
the arch component as well to avoid this.

Add extra comments to cause the relavent sstate to be rebuilt.

(From OE-Core rev: 441a2b8979e69c20e7ed0178cdb210eecdec91e1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0384622f72a6c0bd8225cf06f692340fdef67d4a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Robert Yang
dabc1206b5 multilib.bbclass: Reduce ALTERNATIVE_PRIORITY for extended recipes
Fixed:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

$ bitbake core-image-minimal
update-alternatives: libtool has multiple providers with the same priority,
please check
/path/to/rootfs/usr/lib/opkg/alternatives/libtool for details

Both libtool and lib32-libtool have the same priority (as they're the same
recipe), so update-alternatives won't deterministically pick a provider. This
means you could end up with an image using a 32-bit pkgconfig and 64-bit
libtool, for example.

Make extended recipes reduce priority by 1 (or 2, 3 ... when there are multiple
variants in MULTILIB_VARIANTS) to fix the problem.

[YOCTO #13418]

(From OE-Core rev: 51730928df4dbecac72b56e9f843885674b4d18a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Armin Kuster
4802bed8ce gcc: Security fix for CVE-2019-15847
Affects <= 9.2.0

Dropped Changelog changes

(From OE-Core rev: a579b111349fd9ad91b2d40a51f194fd25af723a)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Armin Kuster
1b9559de4b Curl: Security fix for CVE-2019-5482
Source: curl.org
MR: 99905
Type: Security Fix
Disposition: Backport from facb0e4662
ChangeID: e0c807da8937f687a4b2e28eaa6b4b5a51845bc5
Description:

Fixes CVE-2019-5482
- Affected versions: libcurl >= 7.19.4 to and including 7.65.3
- Not affected versions: libcurl < 7.19.4

(From OE-Core rev: d2e5558133f970a8a196c545dd00af9315c1a06a)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Sean Nyekjaer
c6720451a8 libgpg-error: Fix build with gawk 5.x
Based on poky master, but for version 1.35

(From OE-Core rev: 4e110b7d3b6e84015249f4174766dd3790f9bbbe)

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Adrian Bunk
86beba7ac3 libxcrypt: Fix the build with -Os
| In file included from ../git/lib/alg-des.c:66:
| ../git/lib/alg-des.c: In function '_crypt_des_set_key':
| ../git/lib/byteorder.h:24:1: error: inlining failed in call to 'be32_to_cpu': call is unlikely and code size would grow [-Werror=inline]
|  be32_to_cpu (const unsigned char *buf)
|  ^~~~~~~~~~~
| ../git/lib/alg-des.c:81:13: note: called from here
|    rawkey1 = be32_to_cpu (&key[4]);
|              ^~~~~~~~~~~~~~~~~~~~~

(From OE-Core rev: 9a271cf62d7fc7f2f15c3287831383c2cb3b5dd5)

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>
2019-09-30 16:44:42 +01:00
Bruce Ashfield
5d9457135f kernel-devsrc: tweak for v5.3+
The 5.3 kernel has two changes that require tweaks to the minimal
kernel-devsrc package.

- 4ce97317f [x86/purgatory: Do not use __builtin_memcpy and __builtin_memset]

  This change removes the need for arch/x86/purgatory/string.c and
  instead reuses a copy in arch/x86/boot/compressed/, so we can't copy
  the file anymore. To support older kernels, we make the copy survive
  the non-existence of the file.

- b1663d7e [docs: Kbuild/Makefile: allow check for missing docs at build time]

  This change adds the sourceing of Documentation/Kbuild to the top
  level Kbuild file. So we now leave the copy of Documention/'s Kbuild
  in the devsrc.

(From OE-Core rev: ef7a387c8045af08e5db171e944656b9bf15f598)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Jun Nie
56d33a456b kernel-fitimage: uboot-sign: fix missing signature
u-boot.bin with dtb & signature should be placed in ${B} so that
it can be deployed by u-boot as expected. Otherwise, the version
without signature is installed.

(From OE-Core rev: 6b4c4fbaef8b4655efbc542fb7b97081dbaed8ce)

Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Armin Kuster
feb1ac93fd gcc-8.3: Security fix for CVE-2019-14250
Affects < 9.2

(From OE-Core rev: 125c77be468adf8b3be8d00f99d80bd77f7d2e1e)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Jason Wessel
b174d936e9 glibc / glibc-locale: Fix stash_locale determinism problems
When using sstate, or performing an incremental build any change to
the do_stash_locale() will cause a build failure because
do_stash_locale() was destroying the results obtained from the
do_install() with several mv operations.  A recent change to
do_stash_locale() for a different problem illustrated a number of
build failures for users in the community.

To fix the problem, do_stash_locale() must use copy operations instead
of the mv operations.  Because this is changed to a copy, the sysroot
and package stage need to remove the files that would have been
previously removed.  The correct "fixup" code to deal with the removal
already existed in the previous do_poststash_install_cleanup().  All
that needed change was the path to where to remove the files
from the sysroot and package stages.

In order to force a re-compilation of glibc some unused white space
was removed from do_compile() for glibc.  I could not find any other
way around this and we don't want to have all the community folks to
have another iteration where they have to remove their tmp directories
or purge some portion of the sstate.  It also makes this change
bisectable. If the change to the glibc is not included, it will fail
with the following message:

=====
| DEBUG: Executing shell function do_prep_locale_tree
| tar: i18n: Cannot stat: No such file or directory
| tar: Exiting with failure status due to previous errors
| gzip: /poky/build/tmp/work/core2-64-poky-linux/glibc-locale/2.29-r0/locale-tree//usr/share/i18n/charmaps/*gz.gz: No such file or directory
=====

After this one time change I tested changing only the
do_stash_locale() function and it now works well because it is
deterministically operating off the sstate data or a local build.

(From OE-Core rev: 7e62ca2a518f1fe6e2f3c7098d17ed0b73ece48c)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Jason Wessel
648d939192 glibc/glibc-locale: Fix do_stash_locale to work with usrmerge and multilibs
The do_stash_locale was not working consistently across the 4 build
configurations and the multilib, usrmerge configuration would fail
entirely with the obscure message:

| DEBUG: Executing shell function do_prep_locale_tree
| tar: i18n: Cannot stat: No such file or directory
| tar: Exiting with failure status due to previous errors
| gzip: /poky/build/tmp/work/core2-64-poky-linux/glibc-locale/2.29-r0/locale-tree//usr/share/i18n/charmaps/*gz.gz: No such file or directory
| WARNING: /poky/build/tmp/work/core2-64-poky-linux/glibc-locale/2.29-r0/temp/run.do_prep_locale_tree.124690:1 exit 1 from 'gunzip $i'

Here is the 4 build configurations without the patch applied:

A) x86-64 no multilibs, no usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
909
B) x86-64 no multilibs, usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
909
C) x86-64 multilibs, no usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
885
D) x86-64 multilibs, usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
864

The issue here is that all the moves should be processed first, then a
copy should be made of the lib directories, but only in the case they
are different when using the usrmerge feature.  Even though the build
worked for the multilib configuration without usrmerge, the content
was not the same.

After applying the patch the same number of files are in all the
configurations.  The list of files was also diffed, after normalizing
the directory names to ensure all the correct files were copied.

Ultimately there are probably additional files that should be pruned
from what is copied to the stated_locale, but the purpose of this
patch is make it 100% consistent between the build types and fix the
builds.

(From OE-Core rev: 36c223ecc5349478821a7a64a4ff14bbeae0a7da)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Jason Wessel
c887c1b217 glibc-locale: Fix build error with PACKAGE_NO_GCONV = "1"
When the PACKAGE_NO_GCONV is set to 1 an empty directory is left behind from the do_install rule:

=====
ERROR: glibc-locale-2.29-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/locale
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
glibc-locale: 2 installed and not shipped files. [installed-vs-shipped]
ERROR: glibc-locale-2.29-r0 do_package: Fatal QA errors found, failing task.
=====

The simple fix is to prune the empty directory.

(From OE-Core rev: f7a581264d0f73f0951253a887e380326ffd6180)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Jason Wessel
e973b8d7e2 glibc: Fix multilibs + usrmerge builds
The build of glibc fails when you have multilibs enabled + the distro
feature usrmerge.  Here is an example configuration:

===
MACHINE = "qemux86-64"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_append = " systemd "
DISTRO_FEATURES_append += " usrmerge"

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

This will fail with the following error:

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: glibc-2.28-r0 do_poststash_install_cleanup: Function failed: do_poststash_install_cleanup (log file is located at /poky/build/tmp/work/core2-64-poky-linux/glibc/2.28-r0/temp/log.do_poststash_install_cleanup.107893)
ERROR: Logfile of failure stored in: /poky/build/tmp/work/core2-64-poky-linux/glibc/2.28-r0/temp/log.do_poststash_install_cleanup.107893

The fix is to not perform the rmdir check when using the multilib + usr/merge, namely:

if [ "${libdir}" != "${exec_prefix}/lib" ] && [ "${root_prefix}/lib" != "${exec_prefix}/lib" ]; then

This will evaluate as follows (collecting the output from bitbake -e glibc)

* no multilibs no usrmerge
        if [ "/usr/lib" != "/usr/lib" ] && [ "/lib" != "/usr/lib" ]; then
* no multilibs yes usrmerge
        if [ "/usr/lib" != "/usr/lib" ] && [ "/usr/lib" != "/usr/lib" ]; then
* yes multilibs no usrmerge
        if [ "/usr/lib64" != "/usr/lib" ] && [ "/lib" != "/usr/lib" ]; then
* yes multilibs yes user merge
        if [ "/usr/lib64" != "/usr/lib" ] && [ "/usr/lib" != "/usr/lib" ]; then

(From OE-Core rev: 273571804567a4520f1e17f5f8a28b85325d0eb2)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Nathan Rossi
556d54a9ae binutils: Fix mips patch which changes default emulation
The patch incorrectly removes 'mips_elf32_ntrad_le_vec' from the
'targ_selvecs' replacing it with duplicate entries for
'mips_elf32_ntrad_be_vec'. Correct this so that the default binutils can
still handle 'mips_elf32_ntrad_le_vec' binaries.

(From OE-Core rev: 21c59450d1c891dadfe1484337bd0a6007a4aa01)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.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>
2019-09-30 16:44:42 +01:00
Zhixiong Chi
0f3e9bf070 gcc: CVE-2018-12886
Backprot CVE patch from the upstream:
https://github.com/gcc-mirror/gcc.git [commit f98495d]
https://nvd.nist.gov/vuln/detail/CVE-2018-12886

(From OE-Core rev: a3b083f8b2566bdb4e6b7db15d2a1e000bda57dd)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.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>
2019-09-30 16:44:42 +01:00
Zhixiong Chi
b475bfa446 gcc: reduce the variables in symtab
Backport the patch from upstream:
https://github.com/gcc-mirror/gcc.git [commit beb921e]
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=269925

Add the premark_used_variables function, meanwhile do not mark
not premarked external variables in prune_unused_types_walk.

(From OE-Core rev: 7edf5725631e69c22627e41ecf5de3222f1d624b)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.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>
2019-09-30 16:44:42 +01:00
Anuj Mittal
a217ea667d glib-2.0: fix CVE-2019-13012
(From OE-Core rev: b7bc9c12219f5c48eb6698e4537f6c0be94ac06a)

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>
2019-09-30 16:44:42 +01:00
Anuj Mittal
e7649d187e pango: fix CVE-2019-1010238
(From OE-Core rev: d2ce91ddd66d2c646b0fe273e66538f2724a5cdb)

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>
2019-09-30 16:44:42 +01:00
Anuj Mittal
b3f4f862a7 binutils: fix CVE-2019-14250 CVE-2019-14444
(From OE-Core rev: 41579d569738a23b80d4599fd6ec082488c6cfee)

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>
2019-09-30 16:44:42 +01:00
Martin Jansa
6438f794f6 powertop: import a fix from buildroot
(From OE-Core rev: efd32b0e627fe5c8e9963c40c0e1abbd0b9ac8fc)

Signed-off-by: Martin Jansa <Martin.Jansa@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>
2019-09-30 16:44:42 +01:00
Martin Jansa
5c9a02ed67 meson: backport fix for builds with -Werror=return-type
(From OE-Core rev: 0ccf907992a0e3560897ac300ee6b1352d969c42)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Martin Jansa
cf77c4ae24 icecc.bbclass: catch subprocess.CalledProcessError
* this might be related to:
  commit d2fcaeb153fdc3f8d7143ea823139f1537055ff1
  Author: Douglas Royds <douglas.royds@taitradio.com>
  Date:   Thu Dec 20 11:59:47 2018 +1300

    icecc: Don't generate recipe-sysroot symlinks at recipe-parsing time

* it's still a bit unclear when and why this happends, but I'm seeing
  random tasks sometimes failing with:

WARNING: Exception during build_dependencies for set_icecc_env
WARNING: Error during finalise of /build/meta-oe/meta-python/recipes-devtools/python/python-markupsafe_1.0.bb
ERROR: Traceback (most recent call last):
  File "/build/bitbake/lib/bb/data_smart.py", line 411, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/build/bitbake/lib/bb/data_smart.py", line 136, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d), {'d' : self.d})
  File "/build/bitbake/lib/bb/utils.py", line 421, in better_eval
    return eval(source, ctx, locals)
  File "Var <set_icecc_env>", line 1, in <module>
  File "/build/oe-core/meta/classes/icecc.bbclass", line 287, in icecc_get_and_check_tool
    link_path = icecc_get_tool_link(t, d)
  File "/build/oe-core/meta/classes/icecc.bbclass", line 246, in icecc_get_tool_link
    return subprocess.check_output("readlink -f %s" % tool, shell=True).decode("utf-8")[:-1]
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'readlink -f /build/BUILD/work/qemux86-oe-linux/python-markupsafe/1.0-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-g++' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/build/bitbake/bin/bitbake-worker", line 239, in child
    the_data = bb_cache.loadDataFull(fn, appends)
  File "/build/bitbake/lib/bb/cache.py", line 327, in loadDataFull
    bb_data = self.load_bbfile(virtualfn, appends, virtonly=True)
  File "/build/bitbake/lib/bb/cache.py", line 340, in load_bbfile
    datastores = parse_recipe(bb_data, bbfile, appends, mc)
  File "/build/bitbake/lib/bb/cache.py", line 303, in parse_recipe
    bb_data = bb.parse.handle(bbfile, bb_data)
  File "/build/bitbake/lib/bb/parse/__init__.py", line 107, in handle
    return h['handle'](fn, data, include)
  File "/build/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 142, in handle
    return ast.multi_finalize(fn, d)
  File "/build/bitbake/lib/bb/parse/ast.py", line 386, in multi_finalize
    finalize(fn, d)
  File "/build/bitbake/lib/bb/parse/ast.py", line 351, in finalize
    bb.parse.siggen.finalise(fn, d, variant)
  File "/build/bitbake/lib/bb/siggen.py", line 147, in finalise
    taskdeps = self._build_data(fn, d)
  File "/build/bitbake/lib/bb/siggen.py", line 118, in _build_data
    tasklist, gendeps, lookupcache = bb.data.generate_dependencies(d)
  File "/build/bitbake/lib/bb/data.py", line 388, in generate_dependencies
    deps[dep], values[dep] = build_dependencies(dep, keys, shelldeps, varflagsexcl, d)
  File "/build/bitbake/lib/bb/data.py", line 317, in build_dependencies
    value, parsedvar = d.getVarFlag(key, "_content", False, retparser=True)
  File "/build/bitbake/lib/bb/data_smart.py", line 802, in getVarFlag
    parser = self.expandWithRefs(value, cachename)
  File "/build/bitbake/lib/bb/data_smart.py", line 424, in expandWithRefs
    raise ExpansionError(varname, s, exc).with_traceback(tb) from exc
  File "/build/bitbake/lib/bb/data_smart.py", line 411, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/build/bitbake/lib/bb/data_smart.py", line 136, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d), {'d' : self.d})
  File "/build/bitbake/lib/bb/utils.py", line 421, in better_eval
    return eval(source, ctx, locals)
  File "Var <set_icecc_env>", line 1, in <module>
  File "/build/oe-core/meta/classes/icecc.bbclass", line 287, in icecc_get_and_check_tool
    link_path = icecc_get_tool_link(t, d)
  File "/build/oe-core/meta/classes/icecc.bbclass", line 246, in icecc_get_tool_link
    return subprocess.check_output("readlink -f %s" % tool, shell=True).decode("utf-8")[:-1]
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
bb.data_smart.ExpansionError: Failure expanding variable set_icecc_env, expression was     if [ "${@use_icecc(bb, d)}" = "no" ]
    then
        return
    fi
    ICECC_VERSION="${@icecc_version(bb, d)}"
    if [ "x${ICECC_VERSION}" = "x" ]
    then
        bbwarn "Cannot use icecc: could not get ICECC_VERSION"
        return
    fi

    ICE_PATH="${@icecc_path(bb, d)}"
    if [ "x${ICE_PATH}" = "x" ]
    then
        bbwarn "Cannot use icecc: could not get ICE_PATH"
        return
    fi

    ICECC_BIN="${@get_icecc(d)}"
    if [ -z "${ICECC_BIN}" ]; then
        bbwarn "Cannot use icecc: icecc binary not found"
        return
    fi
    if [ -z "$(which patchelf patchelf-uninative)" ]; then
        bbwarn "Cannot use icecc: patchelf not found"
        return
    fi

    # Create symlinks to icecc in the recipe-sysroot directory
    mkdir -p ${ICE_PATH}
    if [ -n "${KERNEL_CC}" ]; then
        compilers="${@get_cross_kernel_cc(bb,d)}"
    else
        compilers="x86_64-oe-linux-gcc x86_64-oe-linux-g++"
    fi
    for compiler in $compilers; do
        ln -sf ${ICECC_BIN} ${ICE_PATH}/$compiler
    done

    ICECC_CC="${@icecc_get_and_check_tool(bb, d, "gcc")}"
    ICECC_CXX="${@icecc_get_and_check_tool(bb, d, "g++")}"
    # cannot use icecc_get_and_check_tool here because it assumes as without target_sys prefix
    ICECC_WHICH_AS="${@bb.utils.which(os.getenv('PATH'), 'as')}"
    if [ ! -x "${ICECC_CC}" -o ! -x "${ICECC_CXX}" ]
    then
        bbwarn "Cannot use icecc: could not get ICECC_CC or ICECC_CXX"
        return
    fi

    ICE_VERSION=`$ICECC_CC -dumpversion`
    ICECC_VERSION=`echo ${ICECC_VERSION} | sed -e "s/@VERSION@/$ICE_VERSION/g"`
    if [ ! -x "/build/BUILD/work/qemux86-oe-linux/python-markupsafe/1.0-r0/recipe-sysroot-native/usr/bin/icecc-create-env" ]
    then
        bbwarn "Cannot use icecc: invalid ICECC_ENV_EXEC"
        return
    fi

    ICECC_AS="`${ICECC_CC} -print-prog-name=as`"
    # for target recipes should return something like:
    # /OE/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/arm920tt-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.8.2/as
    # and just "as" for native, if it returns "as" in current directory (for whatever reason) use "as" from PATH
    if [ "`dirname "${ICECC_AS}"`" = "." ]
    then
        ICECC_AS="${ICECC_WHICH_AS}"
    fi

    if [ ! -f "${ICECC_VERSION}.done" ]
    then
        mkdir -p "`dirname "${ICECC_VERSION}"`"

        # the ICECC_VERSION generation step must be locked by a mutex
        # in order to prevent race conditions
        if flock -n "${ICECC_VERSION}.lock" \
            /build/BUILD/work/qemux86-oe-linux/python-markupsafe/1.0-r0/recipe-sysroot-native/usr/bin/icecc-create-env  "${ICECC_CC}" "${ICECC_CXX}" "${ICECC_AS}" "${ICECC_VERSION}"
        then
            touch "${ICECC_VERSION}.done"
        elif ! wait_for_file "${ICECC_VERSION}.done" 30
        then
            # locking failed so wait for ${ICECC_VERSION}.done to appear
            bbwarn "Timeout waiting for ${ICECC_VERSION}.done"
            return
        fi
    fi

    # Don't let ccache find the icecream compiler links that have been created, otherwise
    # it can end up invoking icecream recursively.
    export CCACHE_PATH="$PATH"
    export CCACHE_DISABLE="1"

    export ICECC_VERSION ICECC_CC ICECC_CXX
    export PATH="$ICE_PATH:$PATH"

    bbnote "Using icecc path: $ICE_PATH"
    bbnote "Using icecc tarball: $ICECC_VERSION"
 which triggered exception CalledProcessError: Command 'readlink -f /build/BUILD/work/qemux86-oe-linux/python-markupsafe/1.0-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-g++' returned non-zero exit status 1.

ERROR: Task (virtual:multilib:lib32:/build/meta-oe/meta-python/recipes-devtools/python/python-markupsafe_1.0.bb:do_patch) failed with exit code '1'

(From OE-Core rev: 612a4c4df7e9f2e1039d82d1f55492a904dce91a)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Ricardo Ribalda Delgado
add1a327cf dpkg: Use less as pager
Debian traditionaly uses /usr/bin/pager as the system pager, which is a
link to the user preferred pager. This is a Debianism.

Without this patch:

root@qt5122:~# dpkg -l
sh: pager: command not found
dpkg-query: error: showing package list on pager subprocess returned error exit status 127

(From OE-Core rev: 51fb10275cd9013e3c5fcb94f88e3529e2b8f069)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Anuj Mittal
a110e1f586 patch: backport fixes
The original fix for CVE-2018-1000156 was incomplete. Backport more
fixes done later for a complete fix.

Also see:
https://savannah.gnu.org/bugs/index.php?53820

(From OE-Core rev: 1a3527231d3c0fa42d16c5b1980c07d68105fea2)

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>
2019-09-30 16:44:42 +01:00
Trevor Gamblin
729064626e patch: fix CVE-2019-13638
(From OE-Core rev: b59b1222b3f73f982286222a583de09c661dc781)

(From OE-Core rev: 87106ff3f2d24b58a90767e288f783aa92c25748)

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.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>
2019-09-30 16:44:42 +01:00
Anuj Mittal
c5463adc43 rsync: fix CVEs for included zlib
rsync includes its own copy of zlib and doesn't recommend linking with
the system version [1].

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

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

(From OE-Core rev: a55fbb4cb489853dfb0b4553f6e187c3f3633f48)

(From OE-Core rev: 93ce13106abc05f4a68a6265590e3770f0bf49a2)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-09-30 16:44:42 +01:00
Bedel, Alban
5743d1591b boost: Fix build and enable context and coroutines on aarch64
Like for ARM bjam need some hints about the ABI to properly build on
aarch64. While at it also enable context and coroutine as these are
supported on aarch64.

(From OE-Core rev: 219befc2dad0c6df171f46725c995ce0038fa4f8)

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Bruce Ashfield
b472d5bf26 linux-yocto/4.19: update to v4.19.61
Integrating the korg -stable commits that comprise the following
changes:

   7250956f6eaf Linux 4.19.61
   025eb12bb4b0 dm bufio: fix deadlock with loop device
   404f59e265ac dt-bindings: allow up to four clocks for orion-mdio
   03e6a668ea1f net: mvmdio: allow up to four clocks to be specified for orion-mdio
   dd87cc633ba5 blkcg: update blkcg_print_stat() to handle larger outputs
   73efdc5d7d3b blk-iolatency: clear use_delay when io.latency is set to zero
   1ab644bd02ab blk-throttle: fix zero wait time for iops throttled group
   91da712ff592 usb: Handle USB3 remote wakeup for LPM enabled devices correctly
   152ddf9f0458 Bluetooth: Add SMP workaround Microsoft Surface Precision Mouse bug
   98318cd31b95 intel_th: msu: Fix single mode with disabled IOMMU
   d6328d7c1a71 mtd: spinand: read returns badly if the last page has bitflips
   94f1db42a968 mtd: rawnand: mtk: Correct low level time calculation of r/w cycle
   30c6b34759f6 eCryptfs: fix a couple type promotion bugs
   92e23f5fc049 mmc: sdhci-msm: fix mutex while in spinlock
   01982f7bcc9d powerpc/pseries: Fix oops in hotplug memory notifier
   e725502b8548 powerpc/powernv/npu: Fix reference leak
   1e3b61cbc30d powerpc/watchpoint: Restore NV GPRs while returning from exception
   237ac0d73b55 powerpc/32s: fix suspend/resume when IBATs 4-7 are used
   7961981718d6 parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1
   a6a0daa775e8 parisc: Ensure userspace privilege for ptraced processes in regset functions
   ef5c2e165ab0 crypto: caam - limit output IV to CBC to work around CTR mode DMA issue
   376b80276d84 gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM
   ef30c0739439 xfs: abort unaligned nowait directio early
   669c867972c0 xfs: serialize unaligned dio writes against all other dio writes
   d61d885b17b0 xfs: fix reporting supported extra file attributes for statx()
   f614ef7a34b0 xfs: reserve blocks for ifree transaction during log recovery
   424543a53ae0 xfs: don't ever put nlink > 0 inodes on the unlinked list
   3a895cc066c0 xfs: rename m_inotbt_nores to m_finobt_nores
   2ab62234e823 xfs: don't overflow xattr listent buffer
   1dc8b13cc66d xfs: flush removing page cache in xfs_reflink_remap_prep
   788920d12b95 xfs: fix pagecache truncation prior to reflink
   41f64437f030 include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures
   afa3e571cde3 coda: pass the host file in vma->vm_file on mmap
   2c0222b48e77 libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields
   656d06dab4d6 HID: wacom: correct touch resolution x/y typo
   1c871b4006b2 HID: wacom: generic: Correct pad syncing
   46f71a15abe7 HID: wacom: generic: only switch the mode on devices with LEDs
   cb4c2b94f629 IB/mlx5: Report correctly tag matching rendezvous capability
   4bd953241d81 Btrfs: add missing inode version, ctime and mtime updates when punching hole
   fffedf5cf67e Btrfs: fix fsync not persisting dentry deletions due to inode evictions
   110850fffeb0 Btrfs: fix data loss after inode eviction, renaming it, and fsync it
   6b71c62ea9da PCI: qcom: Ensure that PERST is asserted for at least 100 ms
   529e71cae929 PCI: Do not poll for PME if the device is in D3cold
   4d8504004c86 PCI: hv: Fix a use-after-free bug in hv_eject_device_work()
   f0ff76a42ef5 intel_th: pci: Add Ice Lake NNPI support
   66a13b5e4e9c drm/edid: parse CEA blocks embedded in DisplayID
   9854e06842bc perf/x86/amd/uncore: Set the thread mask for F17h L3 PMCs
   82c46f7b0918 perf/x86/amd/uncore: Do not set 'ThreadMask' and 'SliceMask' for non-L3 PMCs
   a847a5225432 perf/x86/intel: Fix spurious NMI on fixed counter
   0d4c0bb70665 x86/boot: Fix memory leak in default_get_smp_config()
   b52807e607f1 9p/virtio: Add cleanup path in p9_virtio_init
   1253882d64d0 9p/xen: Add cleanup path in p9_trans_xen_init
   007e5aaf287c xen/events: fix binding user event channels to cpus
   e380170b3b3a dm zoned: fix zone state management race
   1e4247d7958b padata: use smp_mb in padata_reorder to avoid orphaned padata jobs
   0489d808a5f2 drm/nouveau/i2c: Enable i2c pads & busses during preinit
   c77cbc873586 kconfig: fix missing choice values in auto.conf
   2c7b50c7b1d0 fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys inodes.
   ba271659ad42 arm64: tegra: Fix AGIC register range
   ba27a25df6df KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed
   87bae91a0fe9 media: videobuf2-dma-sg: Prevent size from overflowing
   cb2e2b0ae554 media: videobuf2-core: Prevent size alignment wrapping buffer size to 0
   deb78bd24e0c media: coda: Remove unbalanced and unneeded mutex unlock
   fc0232e24541 media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom()
   a4c4c06f1755 ALSA: hda/realtek: apply ALC891 headset fixup to one Dell machine
   8ba78e4d564e ALSA: hda/realtek - Fixed Headphone Mic can't record on Dell platform
   c92212a81617 ALSA: seq: Break too long mutex context in the write loop
   eb6c84e4b4f2 raid5-cache: Need to do start() part job after adding journal device
   3f42c0000b23 ASoC: dapm: Adapt for debugfs API change
   677b2aa3be5c lib/scatterlist: Fix mapping iterator when sg->offset is greater than PAGE_SIZE
   0b174bac4e43 pnfs: Fix a problem where we gratuitously start doing I/O through the MDS
   f64ff5914f00 pNFS: Fix a typo in pnfs_update_layout
   603e7497bf27 pnfs/flexfiles: Fix PTR_ERR() dereferences in ff_layout_track_ds_error
   5347e61954fc NFSv4: Handle the special Linux file open access mode
   6825ff011c7c iwlwifi: fix RF-Kill interrupt while FW load for gen2 devices
   a32e2ceca0ef iwlwifi: don't WARN when calling iwl_get_shared_mem_conf with RF-Kill
   d9ce0788da91 iwlwifi: pcie: fix ALIVE interrupt handling for gen2 devices w/o MSI-X
   04c52c105a38 iwlwifi: pcie: don't service an interrupt that was masked
   7ebddd5fe217 arm64: tegra: Update Jetson TX1 GPU regulator timings
   042451b921b1 regulator: s2mps11: Fix buck7 and buck8 wrong voltages
   8da63aa46e26 Input: alps - fix a mismatch between a condition check and its comment
   81368a9a98d9 Input: synaptics - whitelist Lenovo T580 SMBus intertouch
   cfb9250619c8 Input: alps - don't handle ALPS cs19 trackpoint-only device
   d657077eda7b Input: gtco - bounds check collection indent level
   f11ba9df8eed bcache: destroy dc->writeback_write_wq if failed to create dc->writeback_thread
   2ab14861d2eb bcache: fix mistaken sysfs entry for io_error counter
   3c466df8fc59 bcache: ignore read-ahead request failure on backing device
   4fc48cd21a31 bcache: Revert "bcache: free heap cache_set->flush_btree in bch_journal_free"
   ab966241d59a bcache: Revert "bcache: fix high CPU occupancy during journal"
   58169c189bd6 Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()"
   c3b7d27f3746 crypto: crypto4xx - fix a potential double free in ppc4xx_trng_probe
   a9fd1795fee6 crypto: ccp/gcm - use const time tag comparison.
   561c4424f1e3 crypto: ccp - memset structure fields to zero before reuse
   13805a5df489 crypto: crypto4xx - block ciphers should only accept complete blocks
   17e63172d536 crypto: crypto4xx - fix blocksize for cfb and ofb
   4598094d24c7 crypto: crypto4xx - fix AES CTR blocksize value
   1c9b0a766513 crypto: chacha20poly1305 - fix atomic sleep when using async algorithm
   eb99c084da28 crypto: arm64/sha2-ce - correct digest for empty data in finup
   4230e09e61e6 crypto: arm64/sha1-ce - correct digest for empty data in finup
   52f07c1ac70e crypto: ccp - Validate the the error value used to index error messages
   bed97f646997 crypto: ghash - fix unaligned memory access in ghash_setkey()
   ce7ec07abaf7 scsi: mac_scsi: Fix pseudo DMA implementation, take 2
   de769c762626 scsi: mac_scsi: Increase PIO/PDMA transfer length threshold
   3e9534fa5046 scsi: megaraid_sas: Fix calculation of target ID
   1334a3e2d6d0 scsi: core: Fix race on creating sense cache
   58f59f6072ab Revert "scsi: ncr5380: Increase register polling limit"
   7cfded7a705c scsi: NCR5380: Always re-enable reselection interrupt
   d91baba81a6e scsi: NCR5380: Reduce goto statements in NCR5380_select()
   e73db096691e xen: let alloc_xenballooned_pages() fail if not enough memory free
   ff54c44f1038 floppy: fix out-of-bounds read in copy_buffer
   a9444d9d0f6f floppy: fix invalid pointer dereference in drive_name
   5b565f3276f3 floppy: fix out-of-bounds read in next_valid_format
   6e34fd07484a floppy: fix div-by-zero in setup_format_params
   7c16c5eae41a iavf: fix dereference of null rx_buffer pointer
   e9896b29d010 net: mvmdio: defer probe of orion-mdio if a clock is not ready
   5f6c5f5ae25e gtp: fix use-after-free in gtp_newlink()
   141222216438 gtp: fix use-after-free in gtp_encap_destroy()
   0a5eca2c949c gtp: fix Illegal context switch in RCU read-side critical section.
   e117a04133c6 gtp: fix suspicious RCU usage
   202de90df2b7 Bluetooth: validate BLE connection interval updates
   ca33af18b5fc gtp: add missing gtp_encap_disable_sock() in gtp_encap_enable()
   0fdb922d0ef0 Bluetooth: Check state in l2cap_disconnect_rsp
   3b57b7a3a82a perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64
   c814f618b799 Bluetooth: 6lowpan: search for destination address in all peers
   c82c4910e9e6 Bluetooth: Add new 13d3:3501 QCA_ROME device
   1cbce19bd697 Bluetooth: Add new 13d3:3491 QCA_ROME device
   578658df21d5 Bluetooth: hci_bcsp: Fix memory leak in rx_skb
   9d47bd217539 tools: bpftool: Fix json dump crash on powerpc
   2ad04d31bb3e gpiolib: Fix references to gpiod_[gs]et_*value_cansleep() variants
   157d1c7a1a00 bonding: validate ip header before check IPPROTO_IGMP
   88f751b066f2 selftests: bpf: fix inlines in test_lwt_seg6local
   ef5b204336b3 bpf, libbpf, smatch: Fix potential NULL pointer dereference
   0f2f2cebe64d rxrpc: Fix oops in tracepoint
   ca37b9a74689 net: usb: asix: init MAC address buffers
   51216937c319 bnx2x: Prevent ptp_task to be rescheduled indefinitely
   e358d2ab42f8 perf stat: Fix group lookup for metric group
   a64e018be77a perf stat: Make metric event lookup more robust
   7343178ccf7d bpf: fix uapi bpf_prog_info fields alignment
   af3790a46a55 iwlwifi: mvm: Drop large non sta frames
   036184af23e0 igb: clear out skb->tstamp after reading the txtime
   0024b12b776c net: mvpp2: prs: Don't override the sign bit in SRAM parser shift
   05592b9b7f25 ath10k: destroy sdio workqueue while remove sdio module
   26d86b29e806 net: hns3: add some error checking in hclge_tm module
   ddfdbcccd71a net: hns3: fix a -Wformat-nonliteral compile warning
   95d084809495 bcache: fix potential deadlock in cached_def_free()
   4b7758e9c4ed bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush()
   81b88c05bc45 bcache: acquire bch_register_lock later in cached_dev_free()
   d81080a0bcf8 bcache: check CACHE_SET_IO_DISABLE bit in bch_journal()
   57cfb755c356 bcache: check CACHE_SET_IO_DISABLE in allocator code
   e78d1d234469 EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec
   e54cc89e6f0a wil6210: drop old event after wmi_call timeout
   0388597d0627 crypto: asymmetric_keys - select CRYPTO_HASH where needed
   1dea395c9e12 crypto: serpent - mark __serpent_setkey_sbox noinline
   b346070c72cd ixgbe: Check DDM existence in transceiver before access
   0340c621eca8 rslib: Fix handling of of caller provided syndrome
   8ba93c59441a rslib: Fix decoding of shortened codes
   dad0b17e4a4e xsk: Properly terminate assignment in xskq_produce_flush_desc
   e69fac59c493 clocksource/drivers/exynos_mct: Increase priority over ARM arch timer
   12e20eca894b libata: don't request sense data on !ZAC ATA devices
   6e6bc34f8570 ASoC: Intel: hdac_hdmi: Set ops to NULL on remove
   1182ff224847 perf tools: Increase MAX_NR_CPUS and MAX_CACHES
   7201cc227d4a ath10k: fix PCIE device wake up failed
   8a808fadc9f7 ath10k: add missing error handling
   fe2ceeb4cffc ipvs: fix tinfo memory leak in start_sync_thread
   20de38d282b3 mt7601u: fix possible memory leak when the device is disconnected
   033577880135 x86/build: Add 'set -e' to mkcapflags.sh to delete broken capflags.c
   3f7952b275c8 mt7601u: do not schedule rx_tasklet when the device has been disconnected
   6f6e126e1995 rtlwifi: rtl8192cu: fix error handle when usb probe failed
   41864adfee2e net: stmmac: sun8i: force select external PHY when no internal one
   bce037abc29f media: hdpvr: fix locking and a missing msleep
   43b9fdc48377 media: vimc: cap: check v4l2_fill_pixfmt return value
   d562537dbf0d media: coda: increment sequence offset for the last returned frame
   3697c12c4425 media: coda: fix last buffer handling in V4L2_ENC_CMD_STOP
   6fd3e9f65db9 media: coda: fix mpeg2 sequence number handling
   c647c00f28af acpi/arm64: ignore 5.1 FADTs that are reported as 5.0
   b9f547b7bdd9 timer_list: Guard procfs specific code
   d86c0b73f75b ntp: Limit TAI-UTC offset
   8d8f0b9009d0 media: i2c: fix warning same module names
   6439110fbeee media: s5p-mfc: Make additional clocks optional
   57de3c78f0b7 ipvs: defer hook registration to avoid leaks
   06a3cd416224 ipsec: select crypto ciphers for xfrm_algo
   723ba7938492 arm64: Do not enable IRQs for ct_user_exit
   010bfbc93424 lightnvm: pblk: fix freeing of merged pages
   762bba1b7ee7 nvme-pci: set the errno on ctrl state change error
   c876a66553d7 nvme-pci: properly report state change failure in nvme_reset_work
   f0c83dd15ee1 nvme: fix possible io failures when removing multipathed ns
   10cc3a65a55b EDAC/sysfs: Fix memory leak when creating a csrow object
   f6502ce4f050 ACPICA: Clear status of GPEs on first direct enable
   3ae98dc2db1e blk-iolatency: only account submitted bios
   a952f7c384aa x86/cacheinfo: Fix a -Wtype-limits warning
   3252b29ea41b ipoib: correcly show a VF hardware address
   0e2af9b06c00 vhost_net: disable zerocopy by default
   4c57957ed6c8 perf evsel: Make perf_evsel__name() accept a NULL argument
   9e0bcb59b6c0 x86/atomic: Fix smp_mb__{before,after}_atomic()
   dd0260fd1e3a perf/x86/intel/uncore: Handle invalid event coding for free-running counter
   7fc96cd2b0de sched/fair: Fix "runnable_avg_yN_inv" not used warnings
   d8b7db6c5004 sched/core: Add __sched tag for io_schedule()
   930655b01367 xfrm: fix sa selector validation
   b7d66bbc8ad3 blkcg, writeback: dead memcgs shouldn't contribute to writeback ownership arbitration
   c8f75e753784 block: null_blk: fix race condition for null_del_dev
   1a3706d8f800 net: hns3: fix for skb leak when doing selftest
   6a47a42f51cf qed: iWARP - Fix tc for MPA ll2 connection
   670fb965da03 x86/cpufeatures: Add FDP_EXCPTN_ONLY and ZERO_FCS_FDS
   366ae49ed78c rcu: Force inlining of rcu_read_lock()
   1fb3ce14f28d ASoC: meson: axg-tdm: fix sample clock inversion
   32df4043aed4 x86/cpu: Add Ice Lake NNPI to Intel family
   914026d58100 selinux: fix empty write to keycreate file
   10e3788e6575 media: s5p-mfc: fix reading min scratch buffer size on MFC v6/v7
   7c10f8941b95 bpf: silence warning messages in core
   b01bf44c363d regmap: fix bulk writes on paged registers
   544cd592ca72 gpio: omap: ensure irq is enabled before wakeup
   ddeef7a00050 gpio: omap: fix lack of irqstatus_raw0 for OMAP4
   79644b600850 iommu: Fix a leak in iommu_insert_resv_region
   f2a4624be8f3 media: fdp1: Support M3N and E3 platforms
   63e53991d791 media: uvcvideo: Fix access to uninitialized fields on probe error
   c844f4da9b92 irqchip/meson-gpio: Add support for Meson-G12A SoC
   eac8b39d089a perf report: Fix OOM error in TUI mode on s390
   be32a9dc3f62 perf test 6: Fix missing kvm module load for s390
   3662d8bca087 perf cs-etm: Properly set the value of 'old' and 'head' in snapshot mode
   ac510285d40b ipset: Fix memory accounting for hash types on resize
   c7bf2df45044 net: sfp: add mutex to prevent concurrent state checks
   fa4059c5497e RAS/CEC: Fix pfn insertion
   99dcd701465f s390/qdio: handle PENDING state for QEBSM devices
   a76f32cbd38c net: axienet: Fix race condition causing TX hang
   9d643358386d net: fec: Do not use netdev messages too early
   403c43921479 crypto: inside-secure - do not rely on the hardware last bit for result descriptors
   50331c64f3dd net: stmmac: modify default value of tx-frames
   1a0a837afc41 net: stmmac: dwmac4: fix flow control issue
   713737cac327 perf jvmti: Address gcc string overflow warning for strncpy()
   fb83987cbe6b arm64: mm: make CONFIG_ZONE_DMA32 configurable
   c360eb592938 cpupower : frequency-set -r option misses the last cpu in related cpu list
   cac3032062e5 net: hns3: set ops to null when unregister ad_dev
   35407917b0bc media: wl128x: Fix some error handling in fm_v4l2_init_video_device()
   2fbde2746597 locking/lockdep: Fix merging of hlocks with non-zero references
   909034b8ac64 batman-adv: Fix duplicated OGMs on NETDEV_UP
   aa2ad8b6fb2f tua6100: Avoid build warnings.
   9072450736d0 crypto: talitos - Align SEC1 accesses to 32 bits boundaries.
   9d25aedef08f crypto: talitos - properly handle split ICV.
   fc25cfb03ea2 net: phy: Check against net_device being NULL
   ef10d46d04a5 media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails.
   e36f25627362 media: saa7164: fix remove_proc_entry warning
   ea904c9f6a33 media: mc-device.c: don't memset __user pointer contents
   a6dd4862b98f perf annotate TUI browser: Do not use member from variable within its own initialization
   71b029a5d908 fscrypt: clean up some BUG_ON()s in block encryption/decryption
   2c6acf7478aa xfrm: Fix xfrm sel prefix length validation
   0544b64ceb64 af_key: fix leaks in key_pol_get_resp and dump_sp.
   b397462a010d signal/pid_namespace: Fix reboot_pid_ns to use send_sig not force_sig
   1c8e736115cd qed: Set the doorbell address correctly
   df6680de7a20 net: stmmac: dwmac4/5: Clear unused address entries
   d3969670cb5a net: stmmac: dwmac1000: Clear unused address entries
   810441651a8a media: media_device_enum_links32: clean a reserved field
   6fb470ace862 media: vpss: fix a potential NULL pointer dereference
   70da38e80509 media: marvell-ccic: fix DMA s/g desc number calculation
   add712b63185 media: ov7740: avoid invalid framesize setting
   b0e199e13495 crypto: talitos - fix skcipher failure due to wrong output IV
   6452712f95e3 media: spi: IR LED: add missing of table registration
   94f2b518a788 media: dvb: usb: fix use after free in dvb_usb_device_exit
   8f855c09e2af batman-adv: fix for leaked TVLV handler.
   83d133c96aad regmap: debugfs: Fix memory leak in regmap_debugfs_init
   2b5b12c0c1b7 ath: DFS JP domain W56 fixed pulse type 3 RADAR detection
   da153c0c5746 wil6210: fix spurious interrupts in 3-msi
   a4bf4fecff16 ath10k: add peer id check in ath10k_peer_find_by_id
   83c911f4bd68 ath6kl: add some bounds checking
   42dcbf20e182 ath9k: Check for errors when reading SREV register
   7e19e658e535 ath10k: Do not send probe response template for mesh
   009edc622bba wil6210: fix potential out-of-bounds read
   09593c25b975 dmaengine: imx-sdma: fix use-after-free on probe error path
   06e15cf5aead scsi: iscsi: set auth_protocol back to NULL if CHAP_A value is not supported
   37cb02da44dc arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly
   73ebefc814ef MIPS: fix build on non-linux hosts
   7202df6be6ec MIPS: ath79: fix ar933x uart parity mode
   be9b6782a9eb Linux 4.19.60
   d173ce091c1a x86/entry/32: Fix ENDPROC of common_spurious
   466bdfc6c4d6 drm/udl: move to embedding drm device inside udl device.
   af48f7d79fae drm/udl: Replace drm_dev_unref with drm_dev_put
   cfd99eccede5 drm/udl: introduce a macro to convert dev to udl.
   8f14cf159e9f regmap-irq: do not write mask register if mask_base is zero
   820b010743ee crypto/NX: Set receive window credits to max number of CRBs in RxFIFO
   b24c6403633d crypto: talitos - fix hash on SEC1.
   ff1ce8ef1f88 crypto: talitos - move struct talitos_edesc into talitos.h
   b578b87bcab6 s390/qdio: don't touch the dsci in tiqdio_add_input_queues()
   b1d52630b12a s390/qdio: (re-)initialize tiqdio list entries
   02eb533e940a s390: fix stfle zero padding
   9db915738e40 ARC: hide unused function unw_hdr_alloc
   fc6975ee932b x86/irq: Seperate unused system vectors from spurious entry again
   9494cd392885 x86/irq: Handle spurious interrupt after shutdown gracefully
   7897f5a443fb x86/ioapic: Implement irq_get_irqchip_state() callback
   6074f6043c49 genirq: Add optional hardware synchronization for shutdown
   3f10ccc29780 genirq: Fix misleading synchronize_irq() documentation
   578db1aa595b genirq: Delay deactivation in free_irq()
   2656ee5a5ad5 linux/kernel.h: fix overflow for DIV_ROUND_UP_ULL
   9c875e8556d4 pinctrl: mediatek: Update cur_mask in mask/mask ops
   f6e01328cb0e cpu/hotplug: Fix out-of-bounds read when setting fail state
   fa99487a43cf pinctrl: mediatek: Ignore interrupts that are wake only during resume
   cd2646e57ec5 HID: multitouch: Add pointstick support for ALPS Touchpad
   9ea3b131441e HID: chicony: add another quirk for PixArt mouse
   94968c37b6d3 x86/boot/64: Add missing fixup_pointer() for next_early_pgt access
   729d25f43b64 x86/boot/64: Fix crash if kernel image crosses page table boundary
   136847140cc8 dm verity: use message limit for data block corruption message
   042be78692ae dm table: don't copy from a NULL pointer in realloc_argv()
   0fc080bc9a72 pinctrl: mcp23s08: Fix add_data and irqchip_add_nested call order
   00640eb0eafa ARM: dts: imx6ul: fix PWM[1-4] interrupts
   a8cc2a2c2841 sis900: fix TX completion
   3232bccddeba ppp: mppe: Add softdep to arc4
   5ec7753c7c9e be2net: fix link failure after ethtool offline test
   2a6ee36917f0 x86/apic: Fix integer overflow on 10 bit left shift of cpu_khz
   fdfff855cd36 afs: Fix uninitialised spinlock afs_volume::cb_break_lock
   d47f06ab0c0e ARM: omap2: remove incorrect __init annotation
   5d3c45538151 ARM: dts: gemini Fix up DNS-313 compatible string
   afda29dc5ac6 perf/core: Fix perf_sample_regs_user() mm check
   627fdcc9b718 efi/bgrt: Drop BGRT status field reserved bits check
   cf4deb2d4de6 clk: ti: clkctrl: Fix returning uninitialized data
   ff232a47567f irqchip/gic-v3-its: Fix command queue pointer comparison bug
   244db54441a1 firmware: improve LSM/IMA security behaviour
   079d7f16a973 drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT
   68048dce650e nilfs2: do not use unexported cpu_to_le32()/le32_to_cpu() in uapi header
   86859ef10d25 Input: synaptics - enable SMBUS on T480 thinkpad trackpad
   438a3dc6f2c3 e1000e: start network tx queue only when link is up
   8020568b404b Revert "e1000e: fix cyclic resets at link up with active tx"
   3bd837bfe431 Linux 4.19.59
   70bae382b3dc staging: rtl8712: reduce stack usage, again
   b46475ecd930 staging: bcm2835-camera: Handle empty EOS buffers whilst streaming
   0ee144effcc3 staging: bcm2835-camera: Remove check of the number of buffers supplied
   fcbc6ddcd624 staging: bcm2835-camera: Ensure all buffers are returned on disable
   4502c43d7f3b staging: bcm2835-camera: Replace spinlock protecting context_map with mutex
   22a20b9f6d9f staging: fsl-dpaa2/ethsw: fix memory leak of switchdev_work
   cc396afa1959 MIPS: Remove superfluous check for __linux__
   d202b5adccfb VMCI: Fix integer overflow in VMCI handle arrays
   486c32325caa carl9170: fix misuse of device driver API
   524ad00e80b7 binder: fix memory leak in error path
   294b893a41cd lkdtm: support llvm-objcopy
   5c90a2ecd08a HID: Add another Primax PIXART OEM mouse quirk
   c04c751bef87 staging: comedi: amplc_pci230: fix null pointer deref on interrupt
   4e49c6c91c18 staging: comedi: dt282x: fix a null pointer deref on interrupt
   8419fd562a09 drivers/usb/typec/tps6598x.c: fix 4CC cmd write
   63b3028cd590 drivers/usb/typec/tps6598x.c: fix portinfo width
   57e16e0d8c68 usb: renesas_usbhs: add a workaround for a race condition of workqueue
   aa9a8038ea8b usb: dwc2: use a longer AHB idle timeout in dwc2_core_reset()
   cac4a04202fb usb: gadget: ether: Fix race between gether_disconnect and rx_submit
   449a8d08a4bc p54usb: Fix race between disconnect and firmware loading
   135d9ba3b285 Revert "serial: 8250: Don't service RX FIFO if interrupts are disabled"
   0891268f36a2 USB: serial: option: add support for GosunCn ME3630 RNDIS mode
   0a1c811bf033 USB: serial: ftdi_sio: add ID for isodebug v1
   bb902b6c87ff mwifiex: Don't abort on small, spec-compliant vendor IEs
   ffbbd626e1ce mwifiex: Abort at too short BSS descriptor element
   a2a24b57c27a Documentation/admin: Remove the vsyscall=native documentation
   8a815007f5fe Documentation: Add section about CPU vulnerabilities for Spectre
   bd9604022eb3 x86/tls: Fix possible spectre-v1 in do_get_thread_area()
   68ff28291a4f x86/ptrace: Fix possible spectre-v1 in ptrace_get_debugreg()
   d8e26651ce8d perf pmu: Fix uncore PMU alias list for ARM64
   018524b75852 block, bfq: NULL out the bic when it's no longer valid
   ff75e5f41e88 ALSA: hda/realtek - Headphone Mic can't record after S3
   87c3262b00d8 ALSA: usb-audio: Fix parse of UAC2 Extension Units
   ef374f5a2731 media: stv0297: fix frequency range limit
   5db079eb0acd udf: Fix incorrect final NOT_ALLOCATED (hole) extent length
   0fc3e9b9b603 fscrypt: don't set policy for a dead directory
   e9f76b954336 net :sunrpc :clnt :Fix xps refcount imbalance on the error path
   810cfc3d9d2e NFS4: Only set creation opendata if O_CREAT
   7075654ce7d0 net: dsa: mv88e6xxx: fix shift of FID bits in mv88e6185_g1_vtu_loadpurge()
   606561e16186 quota: fix a problem about transfer quota
   5ad566af08c1 scsi: qedi: Check targetname while finding boot target information
   37232abb6ea3 net: lio_core: fix potential sign-extension overflow on large shift
   740b2ac49518 ip6_tunnel: allow not to count pkts on tstats by passing dev as NULL
   a02ac12d2d48 drm: return -EFAULT if copy_to_user() fails
   4c938a635fc3 bnx2x: Check if transceiver implements DDM before access
   270ae00a0346 md: fix for divide error in status_resync
   5533d9ed4112 mmc: core: complete HS400 before checking status
   2da80536f629 qmi_wwan: extend permitted QMAP mux_id value range
   dc84e98393f7 qmi_wwan: avoid RCU stalls on device disconnect when in QMAP mode
   dbc6a83cf2bc qmi_wwan: add support for QMAP padding in the RX path
   292ba5b1faf4 bpf, x64: fix stack layout of JITed bpf code
   4c2ce7addda8 bpf, devmap: Add missing RCU read lock on flush
   ab44f8bcf2e5 bpf, devmap: Add missing bulk queue free
   8d09e862103b bpf, devmap: Fix premature entry free on destroying map
   ba0afe520ee9 mac80211: do not start any work during reconfigure flow
   de8cf2c0bc64 mac80211: only warn once on chanctx_conf being NULL
   9c2dd6d47131 ARM: davinci: da8xx: specify dma_coherent_mask for lcdc
   3bbcc8b9ad37 ARM: davinci: da850-evm: call regulator_has_full_constraints()
   443250665388 mlxsw: spectrum: Disallow prio-tagged packets when PVID is removed
   512bbb114b99 KVM: arm/arm64: vgic: Fix kvm_device leak in vgic_its_destroy
   41420ac584d7 Input: imx_keypad - make sure keyboard can always wake up system
   b71f312e9bf7 riscv: Fix udelay in RV32.
   122c6a71c08d drm/vmwgfx: fix a warning due to missing dma_parms
   d3861d4ca94c drm/vmwgfx: Honor the sg list segment size limitation
   c0b12abd1828 s390/boot: disable address-of-packed-member warning
   e71daed5176f ARM: dts: am335x phytec boards: Fix cd-gpios active level
   822c2ee81c63 ibmvnic: Fix unchecked return codes of memory allocations
   0f06004d16be ibmvnic: Refresh device multicast list after reset
   e65dd528bb8e ibmvnic: Do not close unopened driver during reset
   374180b11b29 net: phy: rename Asix Electronics PHY driver
   473a75c7fab5 can: af_can: Fix error path of can_init()
   486954277fc1 can: m_can: implement errata "Needless activation of MRAF irq"
   270149f78b9c can: mcp251x: add support for mcp25625
   33672c74b484 dt-bindings: can: mcp251x: add mcp25625 support
   07c96e8e8021 soundwire: intel: set dai min and max channels correctly
   c7e427e28a3a mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies()
   8e115a079940 iwlwifi: Fix double-free problems in iwl_req_fw_callback()
   d4c0f752c1d2 mwifiex: Fix possible buffer overflows at parsing bss descriptor
   b8588a0981b7 mac80211: free peer keys before vif down in mesh
   acc42e5c2322 mac80211: mesh: fix RCU warning
   e3868c1a462f staging:iio:ad7150: fix threshold mode config bit
   6b1ce3971e05 soundwire: stream: fix out of boundary access on port properties
   6be857082611 bpf: sockmap, fix use after free from sleep in psock backlog workqueue
   bc84982f977d mac80211: fix rate reporting inside cfg80211_calculate_bitrate_he()
   3c24a931e972 samples, bpf: suppress compiler warning
   e7779115bbd9 samples, bpf: fix to change the buffer size for read()
   fe01e93c3fd1 Input: elantech - enable middle button support on 2 ThinkPads
   2883fc1ece69 soc: bcm: brcmstb: biuctrl: Register writes require a barrier
   2f1c962a7416 soc: brcmstb: Fix error path for unsupported CPUs
   e8250f730410 crypto: talitos - rename alternative AEAD algos.
   7a6bfa08b938 Linux 4.19.58
   f37de75cb8eb dmaengine: imx-sdma: remove BD_INTR for channel0
   018c968de710 dmaengine: qcom: bam_dma: Fix completed descriptors count
   870de1499505 MIPS: have "plain" make calls build dtbs for selected platforms
   8957895b35de MIPS: Add missing EHB in mtc0 -> mfc0 sequence.
   2b8f8a80ca8b MIPS: Fix bounds check virt_addr_valid
   80b25628ff26 svcrdma: Ignore source port when computing DRC hash
   8129a10ce78f nfsd: Fix overflow causing non-working mounts on 1 TB machines
   f25c06955f8d KVM: LAPIC: Fix pending interrupt in IRR blocked by software disable LAPIC
   f6472f50fbfc KVM: x86: degrade WARN to pr_warn_ratelimited
   ac0024baf073 netfilter: ipv6: nf_defrag: accept duplicate fragments again
   54e8cf41b20b bpf: fix bpf_jit_limit knob for PAGE_SIZE >= 64K
   e6c288f7307e net: hns: fix unsigned comparison to less than zero
   4f24801ef50b sc16is7xx: move label 'err_spi' to correct section
   318244f3641a netfilter: ipv6: nf_defrag: fix leakage of unqueued fragments
   a8891c5e2251 ip6: fix skb leak in ip6frag_expire_frag_queue()
   382bc84da904 rds: Fix warning.
   7e6af1fa80b8 ALSA: hda: Initialize power_state field properly
   c8c88293bf72 net: hns: Fixes the missing put_device in positive leg for roce reset
   6bf9677300f3 x86/boot/compressed/64: Do not corrupt EDX on EFER.LME=1 setting
   b91ec6ae14da selftests: fib_rule_tests: Fix icmp proto with ipv6
   e2851c3ee0be scsi: tcmu: fix use after free
   04096b3beace mac80211: mesh: fix missing unlock on error in table_path_del()
   e2379b044d67 f2fs: don't access node/meta inode mapping after iput
   e9fde78c3a4f drm/fb-helper: generic: Don't take module ref for fbcon
   7821bcce20aa media: s5p-mfc: fix incorrect bus assignment in virtual child device
   3ddc2a100706 net/smc: move unhash before release of clcsock
   cd54dc4cd37d mlxsw: spectrum: Handle VLAN device unlinking
   a8a296abee36 tty: rocket: fix incorrect forward declaration of 'rp_init()'
   fb814f215013 btrfs: Ensure replaced device doesn't have pending chunk allocation
   27ce6c2675f6 mm/vmscan.c: prevent useless kswapd loops
   c854d9b6ef8d ftrace/x86: Remove possible deadlock between register_kprobe() and ftrace_run_update_code()
   2e716c3b562d drm/imx: only send event on crtc disable if kept disabled
   8ec242fd431b drm/imx: notify drm core before sending event during crtc disable
   d2d061351d64 drm/etnaviv: add missing failure path to destroy suballoc
   ec5d99e18d30 drm/amdgpu/gfx9: use reset default for PA_SC_FIFO_SIZE
   ec6d8c9e6687 drm/amd/powerplay: use hardware fan control if no powerplay fan table
   b6d56f4f6a49 arm64: kaslr: keep modules inside module region when KASAN is enabled
   7cab3dfa6d74 ARM: dts: armada-xp-98dx3236: Switch to armada-38x-uart serial node
   c8790d7f76be tracing/snapshot: Resize spare buffer if size changed
   052b31810085 fs/userfaultfd.c: disable irqs for fault_pending and event locks
   ea38007107d6 lib/mpi: Fix karactx leak in mpi_powm
   7df1e2f59bde ALSA: hda/realtek - Change front mic location for Lenovo M710q
   899377c50e60 ALSA: hda/realtek: Add quirks for several Clevo notebook barebones
   d9b6936b134e ALSA: usb-audio: fix sign unintended sign extension on left shifts
   7f52af5e9baa ALSA: line6: Fix write on zero-sized buffer
   3663bf2baa97 ALSA: firewire-lib/fireworks: fix miss detection of received MIDI messages
   9d2ac58c1ef9 ALSA: seq: fix incorrect order of dest_client/dest_ports arguments
   ae3fa28f0938 crypto: cryptd - Fix skcipher instance memory leak
   015c20532ace crypto: user - prevent operating on larval algorithms
   54435b7fff7b ptrace: Fix ->ptracer_cred handling for PTRACE_TRACEME
   600d3712ae12 drm/i915/dmc: protect against reading random memory
   2b39351e3844 ftrace: Fix NULL pointer dereference in free_ftrace_func_mapper()
   938044171949 module: Fix livepatch/ftrace module text permissions race
   220adcc0e0ca tracing: avoid build warning with HAVE_NOP_MCOUNT
   79fccb9815db mm/mlock.c: change count_mm_mlocked_page_nr return type
   4fce0a79e985 scripts/decode_stacktrace.sh: prefix addr2line with $CROSS_COMPILE
   b7747ecb82be cpuset: restore sanity to cpuset_cpus_allowed_fallback()
   e33aeb9a7c0a i2c: pca-platform: Fix GPIO lookup code
   7cf431edfb71 platform/mellanox: mlxreg-hotplug: Add devm_free_irq call to remove flow
   c241f3fbfa1a platform/x86: mlx-platform: Fix parent device in i2c-mux-reg device registration
   f853112772b0 platform/x86: intel-vbtn: Report switch events when event wakes device
   2ac96173bee0 platform/x86: asus-wmi: Only Tell EC the OS will handle display hotkeys from asus_nb_wmi
   027e043f9c78 drm: panel-orientation-quirks: Add quirk for GPD MicroPC
   2446563dd6d7 drm: panel-orientation-quirks: Add quirk for GPD pocket2
   8be5629b9622 scsi: hpsa: correct ioaccel2 chaining
   c1bef204c70a SoC: rt274: Fix internal jack assignment in set_jack callback
   1023af0c069d ALSA: hdac: fix memory release for SST and SOF drivers
   26a6acde2a42 usb: gadget: udc: lpc32xx: allocate descriptor with GFP_ATOMIC
   9be058f5dd70 usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]
   5284327f4e17 x86/CPU: Add more Icelake model numbers
   74929087384f ASoC: sun4i-i2s: Add offset to RX channel select
   32475634e8a8 ASoC: sun4i-i2s: Fix sun8i tx channel offset mask
   7b7486398a32 ASoC: max98090: remove 24-bit format support if RJ is 0
   3b60f98ef496 drm/mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()
   34e5e1c4874f drm/mediatek: clear num_pipes when unbind driver
   a8a86e9a5533 drm/mediatek: call drm_atomic_helper_shutdown() when unbinding driver
   79e095d234bb drm/mediatek: unbind components in mtk_drm_unbind()
   319f4699bcaa drm/mediatek: fix unbind functions
   dbd94f4938c6 spi: bitbang: Fix NULL pointer dereference in spi_unregister_master
   3f8d3c9506a5 ASoC: ak4458: rstn_control - return a non-zero on error only
   3c3dd68c48e8 ASoC: soc-pcm: BE dai needs prepare when pause release after resume
   4c31b4b4ba65 ASoC: ak4458: add return value for ak4458_probe
   0c19bcdb0db9 ASoC : cs4265 : readable register too low
   c549680ed59b netfilter: nft_flow_offload: IPCB is only valid for ipv4 family
   041c181e6ba0 netfilter: nft_flow_offload: don't offload when sequence numbers need adjustment
   48f611ecea0e netfilter: nft_flow_offload: set liberal tracking mode for tcp
   3b2734bc839d netfilter: nf_flow_table: ignore DF bit setting
   869eec894663 md/raid0: Do not bypass blocking queue entered for raid0 bios
   c9d8d3e9d7a0 block: Fix a NULL pointer dereference in generic_make_request()
   5dd6139a0aa2 Bluetooth: Fix faulty expression for minimum encryption key size check

(From OE-Core rev: e199538cae5177b5b0ab52b0f6417345cf8dca17)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Bruce Ashfield
64b0e0380f linux-yocto/4.19: update to 4.19.57 and -rt22
Updating the linux-yocto 4.19 recipe to the latest -stable and -rt
releases.

We also integrate a configuration change to support ptests on scsci
targets:

  scsi-debug: include core scsi support for standalone inclusion

The -stable changes comprise the following commits:

   1a0592436669 Linux 4.19.57
   3919d91f4d36 arm64: insn: Fix ldadd instruction encoding
   9c423fd89a2b usb: dwc3: Reset num_trbs after skipping
   2bbb6b547fbe tipc: pass tunnel dev as NULL to udp_tunnel(6)_xmit_skb
   89c49e7b6b0a RDMA: Directly cast the sockaddr union to sockaddr
   a319c8ff4f09 futex: Update comments and docs about return values of arch futex code
   4423a82cbde3 bpf, arm64: use more scalable stadd over ldxr / stxr loop in xadd
   436869e0cd6d arm64: futex: Avoid copying out uninitialised stack in failed cmpxchg()
   ba6340a7297f bpf: udp: ipv6: Avoid running reuseport's bpf_prog from __udp6_lib_err
   79c6a8c09978 bpf: udp: Avoid calling reuseport's bpf_prog from udp_gro
   613bc37f74c9 bpf: fix unconnected udp hooks
   a7177b94aff4 bpf: fix nested bpf tracepoints with per-cpu data
   4992d4af5881 bpf: lpm_trie: check left child of last leftmost node for NULL
   5e558f9a6d7b bpf: simplify definition of BPF_FIB_LOOKUP related flags
   7d2c0ec20cb2 tun: wake up waitqueues after IFF_UP is set
   a08b915457d6 tipc: check msg->req data len in tipc_nl_compat_bearer_disable
   fdf3e98e1fd9 tipc: change to use register_pernet_device
   32b711f57ce7 team: Always enable vlan tx offload
   eeb770d6ab77 sctp: change to hold sk after auth shkey is created successfully
   9b7b0aab4750 net: stmmac: set IC bit when transmitting frames with HW timestamp
   a373bf728188 net: stmmac: fixed new system time seconds value calculation
   7d76fc211609 net: remove duplicate fetch in sock_getsockopt
   05dceb60e5dd net/packet: fix memory leak in packet_set_ring()
   7c92f3efbad0 ipv4: Use return value of inet_iif() for __raw_v4_lookup in the while loop
   0f3451723ddc bonding: Always enable vlan tx offload
   a4709127e5dd af_packet: Block execution of tasks waiting for transmit to complete in AF_PACKET
   64032e2d9ba8 eeprom: at24: fix unexpected timeout under high load
   c22cea5a21b2 irqchip/mips-gic: Use the correct local interrupt map registers
   dd9f2fb59e01 SUNRPC: Clean up initialisation of the struct rpc_rqst
   b78ad2169282 cpu/speculation: Warn on unsupported mitigations= parameter
   27380331755f NFS/flexfiles: Use the correct TCP timeout for flexfiles I/O
   01a02a98ab1c KVM: x86/mmu: Allocate PAE root array when using SVM's 32-bit NPT
   327460322c7c x86/resctrl: Prevent possible overrun during bitmap operations
   1746dc529104 x86/microcode: Fix the microcode load on CPU hotplug for real
   690049eddb0c x86/speculation: Allow guests to use SSBD even if host does not
   ee71e97285c2 scsi: vmw_pscsi: Fix use-after-free in pvscsi_queue_lck()
   2ba0a5009607 dm log writes: make sure super sector log updates are written in order
   87cf811ab6fb mm/page_idle.c: fix oops because end_pfn is larger than max_pfn
   1192fb703d09 mm: hugetlb: soft-offline: dissolve_free_huge_page() return zero on !PageHuge
   aab629188848 mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails
   bcfed145e583 clk: socfpga: stratix10: fix divider entry for the emac clocks
   75f5d78d9fbe fs/binfmt_flat.c: make load_flat_shared_library() work
   49e9b499a34d mm/mempolicy.c: fix an incorrect rebind node in mpol_rebind_nodemask
   6a811c099186 fs/proc/array.c: allow reporting eip/esp for all coredumping threads
   385cacd953b9 usb: dwc3: gadget: Clear req->needs_extra_trb flag on cleanup
   6edcdd0e6d8f usb: dwc3: gadget: remove wait_end_transfer
   d7ff2e3ff0e0 usb: dwc3: gadget: move requests to cancelled_list
   bba5f9878f67 usb: dwc3: gadget: introduce cancelled_list
   65e1f3403108 usb: dwc3: gadget: extract dwc3_gadget_ep_skip_trbs()
   56092bd50eb9 usb: dwc3: gadget: use num_trbs when skipping TRBs on ->dequeue()
   2a2b1c4dc510 usb: dwc3: gadget: track number of TRBs per request
   420b1237c79f usb: dwc3: gadget: combine unaligned and zero flags
   62805d31969b Revert "usb: dwc3: gadget: Clear req->needs_extra_trb flag on cleanup"
   3726d8d0b60f qmi_wwan: Fix out-of-bounds read
   cfbe930c7142 net/9p: include trans_common.h to fix missing prototype warning.
   6518b4126b3f 9p/trans_fd: put worker reqs on destroy
   6fad469c84fc 9p/trans_fd: abort p9_read_work if req status changed
   39bf142ae0ca 9p: potential NULL dereference
   6490cdf9d29d 9p: p9dirent_read: check network-provided name length
   e48e7e27e4df 9p/rdma: remove useless check in cm_event_handler
   fb0cbbd8dec7 9p: acl: fix uninitialized iattr access
   3dc511c9ccb9 9p: Rename req to rreq in trans_fd
   04ee7e7b4795 9p/rdma: do not disconnect on down_interruptible EAGAIN
   3665a4d9dca1 9p: Add refcount to p9_req_t
   fa3625794f1a 9p: rename p9_free_req() function
   be87f21e6b25 9p: add a per-client fcall kmem_cache
   1555583b63b3 9p: embed fcall in req to round down buffer allocs
   3ea4cf422323 9p: Use a slab for allocating requests
   f8bc5f1a3aba 9p/xen: fix check for xenbus_read error in front_probe
   a8782ce02687 IB/hfi1: Close PSM sdma_progress sleep window
   fec1a13bdfa9 Revert "x86/uaccess, ftrace: Fix ftrace_likely_update() vs. SMAP"
   85a3b1ef969b arm64: Don't unconditionally add -Wno-psabi to KBUILD_CFLAGS
   6461a4543b34 perf header: Fix unchecked usage of strncpy()
   0bf5d53b53c8 perf help: Remove needless use of strncpy()
   6e75d9272c92 perf ui helpline: Use strlcpy() as a shorter form of strncpy() + explicit set nul
   aec3002d07fd Linux 4.19.56
   cd3e49394cb0 powerpc/mm/64s/hash: Reallocate context ids on fork
   8c4fe20091cd x86/resctrl: Don't stop walking closids when a locksetup group is found
   d451b505b676 mac80211: Do not use stack memory with scatterlist for GMAC
   72dc6786d77a nl80211: fix station_info pertid memory leak
   1e1007ac47d8 mac80211: handle deauthentication/disassociation from TDLS peer
   ccf6a155844b {nl,mac}80211: allow 4addr AP operation on crypto controlled devices
   0e879ef1cb5b mac80211: drop robust management frames from unknown TA
   17d941dc3033 cfg80211: fix memory leak of wiphy device name
   5293c79c6f60 SMB3: retry on STATUS_INSUFFICIENT_RESOURCES instead of failing write
   db7f1076c0bd Bluetooth: Fix regression with minimum encryption key size alignment
   5e9a6c68de0f Bluetooth: Align minimum encryption key size for LE and BR/EDR connections
   64e370233a07 staging: erofs: add requirements field in superblock
   e6803ce36d49 drm/vmwgfx: Use the backdoor port if the HB port is not available
   7499528bb078 arm64: ssbd: explicitly depend on <linux/prctl.h>
   3e16b5c25466 arm64/sve: <uapi/asm/ptrace.h> should not depend on <uapi/linux/prctl.h>
   2296fd59eb30 ARM: dts: am57xx-idk: Remove support for voltage switching for SD card
   cc87ab841bb1 ARM: dts: dra76x: Update MMC2_HS200_MANUAL1 iodelay values
   03426208d1f9 ARM: imx: cpuidle-imx6sx: Restrict the SW2ISO increase to i.MX6SX
   48ee85dc9c52 powerpc/bpf: use unsigned division instruction for 64-bit operations
   a96ac5cb8a56 riscv: mm: synchronize MMU after pte change
   5ad9a23e6dae can: purge socket error queue on sock destruct
   4ea81cc49c59 can: flexcan: fix timeout when set small bitrate
   f6a2c8b3c24a can: xilinx_can: use correct bittiming_const for CAN FD core
   c592b1c3a994 btrfs: start readahead also in seed devices
   17f1dca21d16 nvme: Fix u32 overflow in the number of namespace list calculation
   71d019a6dae9 arm64: Silence gcc warnings about arch ABI drift
   d72a4c78c124 hwmon: (pmbus/core) Treat parameters as paged if on multiple pages
   6029e5818805 hwmon: (core) add thermal sensors only if dev->of_node is present
   153f2d97d0d7 s390/qeth: fix VLAN attribute in bridge_hostnotify udev event
   cedb209bfa5a net: ipvlan: Fix ipvlan device tso disabled while NETIF_F_IP_CSUM is set
   5327e985e61e scsi: smartpqi: unlock on error in pqi_submit_raid_request_synchronous()
   04ceb1348973 scsi: ufs: Check that space was properly alloced in copy_query_response
   e1a101a9dae9 scripts/checkstack.pl: Fix arm64 wrong or unknown architecture
   1f74977c2740 nvmet: fix data_len to 0 for bdev-backed write_zeroes
   8388af891e0e drm/arm/hdlcd: Allow a bit of clock tolerance
   7c7c88deb14d drm/arm/hdlcd: Actually validate CRTC modes
   1fcb0e389538 drm/arm/mali-dp: Add a loop around the second set CVAL and try 5 times
   377958c3ff2c net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled
   ee2f9878bc04 net: ethernet: mediatek: Use hw_feature to judge if HWLRO is supported
   16cdab63987c sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD
   7b460a9bb13d mdesc: fix a missing-check bug in get_vdev_port_node_info()
   6bf97a6cb6ce net: hns: Fix loopback test failed at copper ports
   4336ba249b7d net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0
   bf51ec92a35e selftests: vm: install test_vmalloc.sh for run_vmtests
   a0e8215eb9f8 kselftest/cgroup: fix incorrect test_core skip
   59243d6fb45c kselftest/cgroup: fix unexpected testing failure on test_core
   9c2eebe31d75 kselftest/cgroup: fix unexpected testing failure on test_memcontrol
   ae0d1c08843d xtensa: Fix section mismatch between memblock_reserve and mem_reserve
   3089c0ea8a1f MIPS: uprobes: remove set but not used variable 'epc'
   63542eb24ab9 IB/hfi1: Validate page aligned for a given virtual address
   4d61fc383bb5 IB/{qib, hfi1, rdmavt}: Correct ibv_devinfo max_mr value
   830991121773 IB/hfi1: Insure freeze_work work_struct is canceled on shutdown
   3fe551cc9e4e IB/rdmavt: Fix alloc_qpn() WARN_ON()
   3333e0409424 parisc: Fix compiler warnings in float emulation code
   f9dd0f0928a3 parport: Fix mem leak in parport_register_dev_model
   4c950c8bb31a fpga: dfl: Add lockdep classes for pdata->lock
   505de32ea952 fpga: dfl: afu: Pass the correct device to dma_mapping_error()
   7b2145e22247 ARC: [plat-hsdk]: Add missing FIFO size entry in GMAC node
   15004afd9845 ARC: [plat-hsdk]: Add missing multicast filter bins number to GMAC node
   8f3793bfa3ea dmaengine: sprd: Fix block length overflow
   e478abd4ebf7 dmaengine: dw-axi-dmac: fix null dereference when pointer first is null
   4c21b761b40e ARC: fix build warnings
   d64f99ef010d brcmfmac: sdio: Don't tune while the card is off
   0ad82f2eb3f6 brcmfmac: sdio: Disable auto-tuning around commands expected to fail
   31c99580687a apparmor: enforce nullbyte at end of tag string
   eb2b0bf5c4a4 apparmor: fix PROFILE_MEDIATES for untrusted input
   1d08fe254fd6 Input: silead - add MSSL0017 to acpi_device_id
   ebd7dda84ec2 Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD
   9f3559e4f6cd Input: synaptics - enable SMBus on ThinkPad E480 and E580
   e61e41ffcfeb iio: temperature: mlx90632 Relax the compatibility check
   303386b31bfb IB/hfi1: Silence txreq allocation warnings
   7cc9c9930947 IB/hfi1: Validate fault injection opcode user input
   17027034a47b usb: xhci: Don't try to recover an endpoint if port is in error state.
   d606a82ccc0a xhci: detect USB 3.2 capable host controllers correctly
   e6563039674d usb: chipidea: udc: workaround for endpoint conflict issue
   0746b2f50142 scsi: ufs: Avoid runtime suspend possibly being blocked forever
   98467b8fda41 mmc: core: Prevent processing SDIO IRQs when the card is suspended
   0349dbebbb0b mmc: core: Add sdio_retune_hold_now() and sdio_retune_release()
   7ed49e1bf5b3 mmc: core: API to temporarily disable retuning for SDIO CRC errors
   4b6d290cc1c1 mmc: sdhci: sdhci-pci-o2micro: Correctly set bus width when tuning
   4c15ded55979 s390/ap: rework assembler functions to use unions for in/out register variables
   fb48fb155e1b s390/jump_label: Use "jdd" constraint on gcc9
   0319ef1d40ff ovl: fix bogus -Wmaybe-unitialized warning
   639e8c2f0910 ovl: don't fail with disconnected lower NFS
   f1c5aa5eda08 ovl: detect overlapping layers
   a00f405e133f ovl: make i_ino consistent with st_ino in more cases
   d6623379d895 ovl: fix wrong flags check in FS_IOC_FS[SG]ETXATTR ioctls
   3cb5d7fa8f7d ovl: support the FS_IOC_FS[SG]ETXATTR ioctls
   76343a1363f8 gcc-9: silence 'address-of-packed-member' warning
   6a997c3a239a objtool: Support per-function rodata sections
   c493ead38adb tracing: Silence GCC 9 array bounds warning
   78778071092e Linux 4.19.55
   dad3a9314ac9 tcp: refine memory limit test in tcp_fragment()
   63bbbcd8ed53 Linux 4.19.54
   e8e448b08450 Abort file_remove_privs() for non-reg. files
   465ce9a50f8a coredump: fix race condition between collapse_huge_page() and core dumping
   c7fb6b75def2 ocfs2: fix error path kobject memory leak
   fedb1b9c9191 mlxsw: spectrum: Prevent force of 56G
   114e8135ae00 scsi: libsas: delete sas port if expander discover failed
   89ede9d8b5b8 scsi: scsi_dh_alua: Fix possible null-ptr-deref
   cb7c6c33d3bb scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask
   214c5933ffcf scsi: libcxgbi: add a check for NULL pointer in cxgbi_check_route()
   7b9e10944f0d net: phy: dp83867: Set up RGMII TX delay
   7698ad8c14c7 net: phylink: ensure consistent phy interface mode
   8fb2c7969009 net: sh_eth: fix mdio access in sh_eth_close() for R-Car Gen2 and RZ/A1 SoCs
   467f902643f5 arm64: use the correct function type for __arm64_sys_ni_syscall
   98fd62e0a157 arm64: use the correct function type in SYSCALL_DEFINE0
   c5fdfaedecc2 arm64: fix syscall_fn_t type
   df6384e0f42e KVM: PPC: Book3S HV: Don't take kvm->lock around kvm_for_each_vcpu
   b376683f6ab1 KVM: PPC: Book3S: Use new mutex to synchronize access to rtas token list
   4acce744284c xenbus: Avoid deadlock during suspend due to open transactions
   66f33b2bd2d8 xen/pvcalls: Remove set but not used variable
   d92ebe0c1d26 ia64: fix build errors by exporting paddr_to_nid()
   60a3e3b9e5ec perf record: Fix s390 missing module symbol and warning for non-root users
   be0e62666da1 perf namespace: Protect reading thread's namespace
   7d523e33f4b6 perf data: Fix 'strncat may truncate' build failure with recent gcc
   e9fcebe01822 configfs: Fix use-after-free when accessing sd->s_dentry
   ab7a3d9accae ALSA: hda - Force polling mode on CNL for fixing codec communication
   7bea5618eaf9 i2c: dev: fix potential memory leak in i2cdev_ioctl_rdwr
   197501af7ff3 net: aquantia: fix LRO with FCS error
   388534d45f04 net: aquantia: tx clean budget logic error
   b7ca3f331d57 drm/etnaviv: lock MMU while dumping core
   ee61fb4de955 ACPI/PCI: PM: Add missing wakeup.flags.valid checks
   bc19b50b80ca net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE()
   9a3208b66cc1 net: stmmac: update rx tail pointer register to fix rx dma hang issue.
   3fbcef3350ab gpio: fix gpio-adp5588 build errors
   991ea848a5c9 perf/ring-buffer: Always use {READ,WRITE}_ONCE() for rb->user_page data
   c133c9db233d perf/ring_buffer: Add ordering to rb->nest increment
   cca19ab29a1a perf/ring_buffer: Fix exposing a temporarily decreased data_head
   a35e78220a9f x86/CPU/AMD: Don't force the CPB cap when running under a hypervisor
   8e5666cdb36b mISDN: make sure device name is NUL terminated
   f3885eecd253 usb: xhci: Fix a potential null pointer dereference in xhci_debugfs_create_endpoint()
   930d31a6f344 powerpc/powernv: Return for invalid IMC domain
   00ed897d618e clk: ti: clkctrl: Fix clkdm_clk handling
   ef4ffa0f0b67 selftests: netfilter: missing error check when setting up veth interface
   61c83de6e622 ipvs: Fix use-after-free in ip_vs_in
   883ce78cded5 netfilter: nf_queue: fix reinject verdict handling
   5a9c29cc2140 perf/x86/intel/ds: Fix EVENT vs. UEVENT PEBS constraints
   dd9b6de79b67 Staging: vc04_services: Fix a couple error codes
   97605ba68790 net: mvpp2: prs: Use the correct helpers when removing all VID filters
   b6a1eabf72a0 net: mvpp2: prs: Fix parser range for VID filtering
   4642a659ab96 net/mlx5: Avoid reloading already removed devices
   1b201b63b647 vsock/virtio: set SOCK_DONE on peer shutdown
   b86a5ccda5c3 tipc: purge deferredq list for each grp member in tipc_group_delete
   e1b0c311b790 sunhv: Fix device naming inconsistency between sunhv_console and sunhv_reg
   d7fcb54ed2a9 sctp: Free cookie before we memdup a new one
   4bb4ba362cc1 nfc: Ensure presence of required attributes in the deactivate_target handler
   7530c3f3d5b9 net: openvswitch: do not free vport if register_netdevice() is failed.
   fc762c999768 net: dsa: rtl8366: Fix up VLAN filtering
   103835df6821 neigh: fix use-after-free read in pneigh_get_next
   2980196db6c1 lapb: fixed leak of control-blocks.
   7eadfacd2be2 ipv6: flowlabel: fl6_sock_lookup() must use atomic_inc_not_zero
   a5ae5920426e hv_netvsc: Set probe mode to sync
   674dc77bd3ec be2net: Fix number of Rx queues used for flow hashing
   10faaa359b41 ax25: fix inconsistent lock state in ax25_destroy_timer
   9f31eb60d7a2 Linux 4.19.53
   90fc261d509e rtc: pcf8523: don't return invalid date when battery is low
   04757d0e3789 drm: add fallback override/firmware EDID modes workaround
   29a6026624cd drm/edid: abstract override/firmware EDID retrieval
   e93ce57f60ca x86/resctrl: Prevent NULL pointer dereference when local MBM is disabled
   0257fc9aa53f x86/mm/KASLR: Compute the size of the vmemmap section properly
   5e3d10d9375d x86/kasan: Fix boot with 5-level paging and KASAN
   ecec31ce4f33 x86/microcode, cpuhotplug: Add a microcode loader CPU hotplug callback
   fa982c692b2f RAS/CEC: Fix binary search function
   e40db40e45cc RAS/CEC: Convert the timer callback to a workqueue
   ca4c34037bb9 timekeeping: Repair ktime_get_coarse*() granularity
   0fcd1432f8b0 USB: serial: option: add Telit 0x1260 and 0x1261 compositions
   5080fb4b3828 USB: serial: option: add support for Simcom SIM7500/SIM7600 RNDIS mode
   d5f20ee10ac0 USB: serial: pl2303: add Allied Telesis VT-Kit3
   c00cd066a024 USB: usb-storage: Add new ID to ums-realtek
   3c7439e2eab9 USB: Fix chipmunk-like voice when using Logitech C270 for recording audio.
   f05b0bf073ef usb: dwc2: host: Fix wMaxPacketSize handling (fix webcam regression)
   63feb7e69fdc usb: dwc2: Fix DMA cache alignment issues
   15bc8e8d4dad drm/vmwgfx: NULL pointer dereference from vmw_cmd_dx_view_define()
   328648ac6aa5 drm/vmwgfx: integer underflow in vmw_cmd_dx_set_shader() leading to an invalid read
   2399b2ac2be7 tools/kvm_stat: fix fields filter for child events
   f69f5679ff8f KVM: s390: fix memory slot handling for KVM_SET_USER_MEMORY_REGION
   9d8f338c92cc KVM: x86/pmu: do not mask the value that is written to fixed PMUs
   04d2a113a283 KVM: x86/pmu: mask the result of rdpmc according to the width of the counters
   60b300975e5f KVM: arm/arm64: Move cc/it checks under hyp's Makefile to avoid instrumentation
   9366f5dc8409 usbnet: ipheth: fix racing condition
   86895090621c tracing: Prevent hist_field_var_ref() from accessing NULL tracing_map_elts
   b64df8133c2e selftests/timers: Add missing fflush(stdout) calls
   3e1d7417b4d6 selftests: fib_rule_tests: fix local IPv4 address typo
   90a564549b4a libnvdimm: Fix compilation warnings with W=1
   ccc9ba8d2508 scsi: bnx2fc: fix incorrect cast to u64 on shift operation
   d7a32c8a1ce1 platform/x86: pmc_atom: Add several Beckhoff Automation boards to critclk_systems DMI table
   1a80d9ff8253 platform/x86: pmc_atom: Add Lex 3I380D industrial PC to critclk_systems DMI table
   c0d3e166e16a nvme: fix memory leak for power latency tolerance
   ddda7e850bf1 nvme: release namespace SRCU protection before performing controller ioctls
   3188fcebbcbd nvme: merge nvme_ns_ioctl into nvme_ioctl
   54261634bdf8 nvme: remove the ifdef around nvme_nvm_ioctl
   a6515af9b839 nvme: fix srcu locking on error return in nvme_get_ns_from_disk
   c4e97af6bff4 arm64/mm: Inhibit huge-vmap with ptdump
   0e50da1e7ced scsi: lpfc: add check for loss of ndlp when sending RRQ
   334d1a2373af scsi: lpfc: correct rcu unlock issue in lpfc_nvme_info_show
   32d3f7d9dec1 scsi: qedi: remove set but not used variables 'cdev' and 'udev'
   f3a7a1137ffc scsi: qedi: remove memset/memcpy to nfunc and use func instead
   ae3787d433f7 f2fs: fix to avoid accessing xattr across the boundary
   32f26da4b769 Drivers: misc: fix out-of-bounds access in function param_set_kgdbts_var
   fcc1ce5b4f42 s390/kasan: fix strncpy_from_user kasan checks
   eddfe9672ed2 Revert "ALSA: seq: Protect in-kernel ioctl calls with mutex"
   731ebeeda51f ALSA: seq: Fix race of get-subscription call vs port-delete ioctls
   b52fd8af8db3 ALSA: seq: Protect in-kernel ioctl calls with mutex
   82055ad3d3ed x86/uaccess, kcov: Disable stack protector
   b08ec06c94fc drm/i915/sdvo: Implement proper HDMI audio support for SDVO
   b7398f45e3d6 ASoC: fsl_asrc: Fix the issue about unsupported rate
   d7d15ac38ba6 ASoC: cs42xx8: Add regcache mask dirty
   c3b85bda41f0 cgroup: Use css_tryget() instead of css_tryget_online() in task_get_css()
   e599bfe54305 bcache: only set BCACHE_DEV_WB_RUNNING when cached device attached
   973fc2b3434b bcache: fix stack corruption by PRECEDING_KEY()
   da3b915a57c3 i2c: acorn: fix i2c warning
   d3e58022c017 iommu/arm-smmu: Avoid constant zero in TLBI writes
   31e216cf9dc2 ptrace: restore smp_rmb() in __ptrace_may_access()
   662b831dde61 signal/ptrace: Don't leak unitialized kernel memory with PTRACE_PEEK_SIGINFO
   54a20289cbfb mm/vmscan.c: fix trying to reclaim unevictable LRU page
   6b9aa7ac48d7 fs/ocfs2: fix race in ocfs2_dentry_attach_lock()
   553a1f0d3c69 mm/list_lru.c: fix memory leak in __memcg_init_list_lru_node
   b7f8bbbbb973 libata: Extend quirks for the ST1000LM024 drives with NOLPM quirk
   88fe03076062 ALSA: firewire-motu: fix destruction of data for isochronous resources
   786b1b40dfb9 ALSA: hda/realtek - Update headset mode for ALC256
   27effeff4533 ALSA: oxfw: allow PCM capture for Stanton SCS.1m
   b59c93226489 Revert "ALSA: hda/realtek - Improve the headset mic for Acer Aspire laptops"
   9fbd67c56529 HID: wacom: Sync INTUOSP2_BT touch state after each frame if necessary
   dd1d71ad57a4 HID: wacom: Correct button numbering 2nd-gen Intuos Pro over Bluetooth
   529013533d73 HID: wacom: Send BTN_TOUCH in response to INTUOSP2_BT eraser contact
   3e9c0eb15932 HID: wacom: Don't report anything prior to the tool entering range
   52a7d604615a HID: wacom: Don't set tool type until we're in range
   fa212dd5a604 HID: multitouch: handle faulty Elo touch device
   9ae306d8dbc8 nouveau: Fix build with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT disabled
   d54e1b848e99 drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)
   6500aa436df4 Linux 4.19.52
   59222807fcc9 tcp: enforce tcp_min_snd_mss in tcp_mtu_probing()
   7f9f8a37e563 tcp: add tcp_min_snd_mss sysctl
   ec83921899a5 tcp: tcp_fragment() should apply sane memory limits
   c09be31461ed tcp: limit payload size of sacked skbs
   7aa823a959e1 Linux 4.19.51
   b323914cd033 ALSA: seq: Cover unsubscribe_port() in list_mutex
   3af96f3497b7 drm/vc4: fix fb references in async update
   afec706807cd ovl: support stacked SEEK_HOLE/SEEK_DATA
   22dac6cc9549 ovl: check the capability before cred overridden
   b616b9dbc5f6 Revert "drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)"
   8e5483aeae0d Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections"
   526972e95ef9 percpu: do not search past bitmap when allocating an area
   d4d5dce6d329 gpio: vf610: Do not share irq_chip
   28229df6ad13 soc: renesas: Identify R-Car M3-W ES1.3
   db54e08c5832 usb: typec: fusb302: Check vconn is off when we start toggling
   ce183fad3aa8 ARM: exynos: Fix undefined instruction during Exynos5422 resume
   384642ff6465 pwm: Fix deadlock warning when removing PWM device
   7905b2331338 ARM: dts: exynos: Always enable necessary APIO_1V8 and ABB_1V8 regulators on Arndale Octa
   78002e383be7 pwm: tiehrpwm: Update shadow register for disabling PWMs
   9fdcb04e80e1 dmaengine: idma64: Use actual device for DMA transfers
   da00c89fce7a ice: Add missing case in print_link_msg for printing flow control
   456e3563725a gpio: gpio-omap: add check for off wake capable gpios
   47d281bbbff9 PCI: xilinx: Check for __get_free_pages() failure
   b5a185ee30d7 block, bfq: increase idling for weight-raised queues
   e06d7a92796c video: imsttfb: fix potential NULL pointer dereferences
   1f2611af4581 video: hgafb: fix potential NULL pointer dereference
   5957f6f5aaa6 scsi: qla2xxx: Reset the FCF_ASYNC_{SENT|ACTIVE} flags
   c2c7b6fee389 PCI: rcar: Fix 64bit MSI message address handling
   dd54e70c47de PCI: rcar: Fix a potential NULL pointer dereference
   272f8c3ddd31 net: hns3: return 0 and print warning when hit duplicate MAC
   5a286ced4911 power: supply: max14656: fix potential use-before-alloc
   901daed2f173 platform/x86: intel_pmc_ipc: adding error handling
   613752b3a8fb ARM: OMAP2+: pm33xx-core: Do not Turn OFF CEFUSE as PPA may be using it
   668440f6ee3f drm/amd/display: Use plane->color_space for dpp if specified
   671fc9007c48 PCI: rpadlpar: Fix leaked device_node references in add/remove paths
   b531acbd86d2 ARM: dts: imx6qdl: Specify IMX6QDL_CLK_IPG as "ipg" clock to SDMA
   584cabc69aee ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ipg" clock to SDMA
   02936545fbea ARM: dts: imx6ul: Specify IMX6UL_CLK_IPG as "ipg" clock to SDMA
   36a7fda0595b ARM: dts: imx7d: Specify IMX7D_CLK_IPG as "ipg" clock to SDMA
   c84911bb39d1 ARM: dts: imx6sll: Specify IMX6SLL_CLK_IPG as "ipg" clock to SDMA
   a2e661f99c4d ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ahb" clock to SDMA
   461f4183926c ARM: dts: imx53: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
   998860d0384d ARM: dts: imx50: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
   70465bbbaeae ARM: dts: imx51: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
   57f89084a7e1 soc: rockchip: Set the proper PWM for rk3288
   b16594860a30 clk: rockchip: Turn on "aclk_dmac1" for suspend on rk3288
   8e9dd864d6a7 soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher
   f7c0e67054d8 PCI: keystone: Prevent ARM32 specific code to be compiled for ARM64
   a357310a5774 platform/chrome: cros_ec_proto: check for NULL transfer function
   b78a9b2818d5 i40e: Queues are reserved despite "Invalid argument" error
   aeb743dbe936 x86/PCI: Fix PCI IRQ routing table memory leak
   47e6a354e248 net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending
   31aa2a7a8566 switchtec: Fix unintended mask of MRPC event
   4b19a45eed4d iommu/arm-smmu-v3: Don't disable SMMU in kdump kernel
   f7883f9b5a67 vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING"
   806e83958482 nfsd: avoid uninitialized variable warning
   b4330e4a7c12 nfsd: allow fh_want_write to be called twice
   ae35c325d8fd fuse: retrieve: cap requested size to negotiated max_write
   1c2e974628d1 nvmem: sunxi_sid: Support SID on A83T and H5
   0412a8857198 nvmem: core: fix read buffer in place
   962ce4023178 ALSA: hda - Register irq handler after the chip initialization
   028b3d8d549e netfilter: nf_flow_table: fix netdev refcnt leak
   650a4b7c5d66 netfilter: nf_flow_table: check ttl value in flow offload data path
   52d7b067fadf nvme-pci: shutdown on timeout during deletion
   6ce2ad24ae9c nvme-pci: unquiesce admin queue on shutdown
   e9db931283fd PCI: designware-ep: Use aligned ATU window for raising MSI interrupts
   a7f27994b207 misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test
   ed6efdb74438 iommu/vt-d: Set intel_iommu_gfx_mapped correctly
   525b5265fd75 blk-mq: move cancel of requeue_work into blk_mq_release
   d6c80b609d81 watchdog: fix compile time error of pretimeout governors
   0f50c30c8470 watchdog: imx2_wdt: Fix set_timeout for big timeout values
   dc58e4027430 netfilter: nf_tables: fix base chain stat rcu_dereference usage
   2d433cc9bd31 mips: Make sure dt memory regions are valid
   2aed9dfe1e5d netfilter: nf_conntrack_h323: restore boundary check correctness
   d0941980fd81 netfilter: nf_flow_table: fix missing error check for rhashtable_insert_fast
   217ec4a6e4ef mmc: mmci: Prevent polling for busy detection in IRQ context
   06382ad6cf31 ovl: do not generate duplicate fsnotify events for "fake" path
   5fbe39bfd1e0 PCI: dwc: Free MSI IRQ page in dw_pcie_free_msi()
   a6b79e2c7c02 PCI: dwc: Free MSI in dw_pcie_host_init() error path
   a4aa02826701 uml: fix a boot splat wrt use of cpu_all_mask
   4dc146d47fea configfs: fix possible use-after-free in configfs_register_group
   5329dcafead2 percpu: remove spurious lock dependency between percpu and sched
   8d7ebdd109b4 f2fs: fix to do checksum even if inode page is uptodate
   640248545436 f2fs: fix to do sanity check on valid block count of segment
   101e48feb661 f2fs: fix to use inline space only if inline_xattr is enable
   45624f0e8142 f2fs: fix to avoid panic in dec_valid_block_count()
   47a92acf9ebf f2fs: fix to clear dirty inode in error path of f2fs_iget()
   ca9fcbc5a5f5 f2fs: fix to do sanity check on free nid
   f3aa313d0d4f f2fs: fix to avoid panic in f2fs_remove_inode_page()
   0325c5cce544 f2fs: fix to avoid panic in f2fs_inplace_write_data()
   8490bf2d6176 f2fs: fix to avoid panic in do_recover_data()
   0b50d08c5d85 ntp: Allow TAI-UTC offset to be set to zero
   102f6e1249fb mailbox: stm32-ipcc: check invalid irq
   c5b2c8249ff3 pwm: meson: Use the spin-lock only to protect register modifications
   689fe88d51aa EDAC/mpc85xx: Prevent building as a module
   f9ee13ce21db bpf: fix undefined behavior in narrow load handling
   991b51048c49 drm/nouveau/kms/gv100-: fix spurious window immediate interlocks
   20e1a16702d9 objtool: Don't use ignore flag for fake jumps
   124c23dca3ac drm/bridge: adv7511: Fix low refresh rate selection
   2a3f2b43a9e3 drm/nouveau/kms/gf119-gp10x: push HeadSetControlOutputResource() mthd when encoders change
   f9706dd945e9 perf/x86/intel: Allow PEBS multi-entry in watermark mode
   5540d0146151 mfd: twl6040: Fix device init errors for ACCCTL register
   3b8892bea9eb drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration
   e9a8c9805f58 mfd: intel-lpss: Set the device in reset state when init
   12c57327a128 mfd: tps65912-spi: Add missing of table registration
   1196b79a20f7 drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER
   fd77a5117721 thermal: rcar_gen3_thermal: disable interrupt in .remove
   c50c4fb0cb62 kernel/sys.c: prctl: fix false positive in validate_prctl_map()
   515d18ced8e1 mm/slab.c: fix an infinite loop in leaks_show()
   13e1ea0881da mm/cma_debug.c: fix the break condition in cma_maxchunk_get()
   38c5fce7fc48 mm: page_mkclean vs MADV_DONTNEED race
   77a01e33570c mm/cma.c: fix the bitmap status to show failed allocation reason
   25511676362d initramfs: free initrd memory if opening /initrd.image fails
   e5f8857ea972 mm/cma.c: fix crash on CMA allocation if bitmap allocation fails
   5094a85d6d93 mem-hotplug: fix node spanned pages when we have a node with only ZONE_MOVABLE
   ffaafd27b067 hugetlbfs: on restore reserve error path retain subpool reservation
   85e1a6c4b3e5 mm/hmm: select mmu notifier when selecting HMM
   e0c3fc1f8fe3 ARM: prevent tracing IPI_CPU_BACKTRACE
   4d3811a60e10 drm/pl111: Initialize clock spinlock early
   20de754a7d88 ipc: prevent lockup on alloc_msg and free_msg
   91ae202e2c88 sysctl: return -EINVAL if val violates minmax
   5b6619b4d206 fs/fat/file.c: issue flush after the writeback of FAT
   2a89e4c5ee2e rapidio: fix a NULL pointer dereference when create_workqueue() fails
   768292d05361 Linux 4.19.50
   51dc284e2a87 ethtool: check the return value of get_regs_len
   645fa685bb20 ipv4: Define __ipv4_neigh_lookup_noref when CONFIG_INET is disabled
   ec8a9eb2a6c1 TTY: serial_core, add ->install
   6bdc692f5c9e drm/i915/gvt: Initialize intel_gvt_gtt_entry in stack
   fbb7e114e6e6 drm: don't block fb changes for async plane updates
   6600ec2600d6 drm/i915: Maintain consistent documentation subsection ordering
   360e00e290a3 drm/i915/fbc: disable framebuffer compression on GeminiLake
   554f4253700e drm/i915: Fix I915_EXEC_RING_MASK
   f3dcc88d531f drm/amdgpu: remove ATPX_DGPU_REQ_POWER_FOR_DISPLAYS check when hotplug-in
   84c82ab8f133 drm/radeon: prefer lower reference dividers
   748a97ec6c15 drm/amdgpu/psp: move psp version specific function pointers to early_init
   98a8cb0282ab drm: add non-desktop quirks to Sensics and OSVR headsets.
   610382337557 drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)
   490290b0415f drm: add non-desktop quirk for Valve HMDs
   ac222e8a50af drm/msm: fix fb references in async update
   6470aa05ae15 drm/gma500/cdv: Check vbt config bits when detecting lvds panels
   7fbcb7d1031d test_firmware: Use correct snprintf() limit
   67bdeb0c6f5c genwqe: Prevent an integer overflow in the ioctl
   221c44d2d7fa Revert "MIPS: perf: ath79: Fix perfcount IRQ assignment"
   2d9d3ab541a6 MIPS: pistachio: Build uImage.gz by default
   eee609635076 MIPS: Bounds check virt_addr_valid
   b9b75a460076 xen-blkfront: switch kcalloc to kvcalloc for large array allocation
   7aad9269a6e8 s390/mm: fix address space detection in exception handling
   7737eff01711 i2c: xiic: Add max_read_len quirk
   b598ddc7b9fc x86/insn-eval: Fix use-after-free access to LDT entry
   4d166206cf41 x86/power: Fix 'nosmt' vs hibernation triple fault during resume
   f4d0227ff170 pstore/ram: Run without kernel crash dump region
   aa73a3b205a4 pstore: Set tfm to NULL on free_buf_for_compression
   d4128a1b580c pstore: Convert buf_lock to semaphore
   c63ce7166daf pstore: Remove needless lock during console writes
   a3b8b4ad6db7 fuse: fallocate: fix return with locked inode
   56e3f73e838a NFSv4.1: Fix bug only first CB_NOTIFY_LOCK is handled
   ea0327b47754 NFSv4.1: Again fix a race where CB_NOTIFY_LOCK fails to wake a waiter
   384c1d931b5e parisc: Use implicit space register selection for loading the coherence index of I/O pdirs
   6726307d2008 rcu: locking and unlocking need to always be at least barriers
   39e597d283b0 mtd: spinand: macronix: Fix ECC Status Read
   2488b9f9afde ipv6: fix EFAULT on sendto with icmpv6 and hdrincl
   0b16d956ee5b ipv6: use READ_ONCE() for inet->hdrincl as in ipv4
   d769853dbdaa Revert "fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied"
   396244b6ecf0 pktgen: do not sleep with the thread lock held.
   da096fe1a6a4 packet: unconditionally free po->rollover
   be0343af1291 net/tls: replace the sleeping lock around RX resync with a bit lock
   9740f4ff1a66 net: sfp: read eeprom in maximum 16 byte increments
   7700d5afff30 net: rds: fix memory leak in rds_ib_flush_mr_pool
   c6a020e0117f net: mvpp2: Use strscpy to handle stat strings
   d305d61fcf96 net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query
   831d6d077874 net: ethernet: ti: cpsw_ethtool: fix ethtool ring param set
   893e2a5f5cf6 neighbor: Call __ipv4_neigh_lookup_noref in neigh_xmit
   9fd19a3b4f61 ipv6: fix the check before getting the cookie in rt6_get_cookie
   daa11cc841d6 ipv4: not do cache for local delivery if bc_forwarding is enabled
   05b933f25a83 Fix memory leak in sctp_process_init
   d6782b8c5c18 ethtool: fix potential userspace buffer overflow
   bb7b450e61a1 Linux 4.19.49
   9861e2cd4616 media: uvcvideo: Fix uvc_alloc_entity() allocation alignment
   b52ca352489b of: overlay: set node fields from properties when add new overlay node
   15151d0013c9 of: overlay: validate overlay properties #address-cells and #size-cells
   26dace362e7f scsi: lpfc: Fix backport of faf5a744f4f8 ("scsi: lpfc: avoid uninitialized variable warning")
   ca309fef7a69 x86/kprobes: Set instruction page as executable
   b49ca4bf1b9c x86/ftrace: Set trampoline pages as executable
   6fa953c94882 x86/ftrace: Do not call function graph from dynamic trampolines
   9d57cfd4e9d8 binder: fix race between munmap() and direct reclaim
   137c838f177b Revert "binder: fix handling of misaligned binder object"
   385dab299c8a Revert "x86/build: Move _etext to actual end of .text"
   9468870f7cbd include/linux/module.h: copy __init/__exit attrs to init/cleanup_module
   2a0f719db71c Compiler Attributes: add support for __copy (gcc >= 9)
   390a0fd31b02 drm/lease: Make sure implicit planes are leased
   699f0e9d24c8 drm/rockchip: shutdown drm subsystem on shutdown
   1ca811507e41 drm/sun4i: Fix sun8i HDMI PHY configuration for > 148.5 MHz
   1f1372206e0b drm/sun4i: Fix sun8i HDMI PHY clock initialization
   3a20515c3c44 drm/vmwgfx: Don't send drm sysfs hotplug events on initial master set
   1715a46322fa drm/tegra: gem: Fix CPU-cache maintenance for BO's allocated using get_pages()
   132137d1bfa1 gcc-plugins: Fix build failures under Darwin host
   873041930dab Revert "lockd: Show pid of lockd for remote locks"
   297a251062c0 CIFS: cifs_read_allocate_pages: don't iterate through whole page array on ENOMEM
   32d57c0c063c cifs: fix memory leak of pneg_inbuf on -EOPNOTSUPP ioctl case
   f6a39f877feb staging: wlan-ng: fix adapter initialization failure
   27a4b6c8c1cf staging: vc04_services: prevent integer overflow in create_pagelist()
   3078e80b03c8 serial: sh-sci: disable DMA for uart_console
   ff818b449a5b vt/fbcon: deinitialize resources in visual_init() after failed memory allocation
   6e322a9e42cd evm: check hash algorithm passed to init_desc()
   f85b87a9a2a8 ima: show rules with IMA_INMASK correctly
   21158982f6b7 doc: Cope with Sphinx logging deprecations
   c0742228bba6 doc: Cope with the deprecation of AutoReporter
   301b18edbf56 docs: Fix conf.py for Sphinx 2.0
   871953434bd9 arm64: Fix the arm64_personality() syscall wrapper redirection
   6f8d26270ce3 kernel/signal.c: trace_signal_deliver when signal_group_exit
   8b057ad846c5 memcg: make it work on sparse non-0-node systems
   4e29e2ecf186 tty: max310x: Fix external crystal register setup
   a071517b85cc tty: serial: msm_serial: Fix XON/XOFF
   bb03290431bc i2c: synquacer: fix synquacer_i2c_doxfer() return value
   d2d8f6401254 i2c: mlxcpld: Fix wrong initialization order in probe
   88ad86b80782 drm/nouveau/i2c: Disable i2c bus access after ->fini()
   6a2fbec70766 KVM: s390: Do not report unusabled IDs via KVM_CAP_MAX_VCPU_ID
   3834630ef4d3 ALSA: hda/realtek - Improve the headset mic for Acer Aspire laptops
   9cfd6c36759b ALSA: hda/realtek - Set default power save node to 0
   eb2eeec920fb ALSA: line6: Assure canceling delayed work at disconnection
   ca221cf9ab6f powerpc/perf: Fix MMCRA corruption by bhrb_filter
   55a94d81f536 KVM: PPC: Book3S HV: XIVE: Do not clear IRQ data of passthrough interrupts
   badbe1abbd59 s390/crypto: fix possible sleep during spinlock aquired
   83c874cf6861 s390/crypto: fix gcm-aes-s390 selftest failures
   5dede5c9e605 iio: adc: ti-ads8688: fix timestamp is not updated in buffer
   06c5ec6fd0b1 iio: dac: ds4422/ds4424 fix chip verification
   8a652fd142c3 Btrfs: incremental send, fix file corruption when no-holes feature is enabled
   a81071110d25 Btrfs: fix fsync not persisting changed attributes of a directory
   37fe038328a2 Btrfs: fix race updating log root item during fsync
   7301bbeae98f Btrfs: fix wrong ctime and mtime of a directory after log replay
   da32e0303d5f tracing: Avoid memory leak in predicate_parse()
   9756c7e0cdc7 scsi: zfcp: fix to prevent port_remove with pure auto scan LUNs (only sdevs)
   e8bd0dffe816 scsi: zfcp: fix missing zfcp_port reference put on -EBUSY from port_remove
   c18a0ecc411a brcmfmac: fix NULL pointer derefence during USB disconnect
   1f64751af190 media: smsusb: better handle optional alignment
   e6df98cafc9c media: usb: siano: Fix false-positive "uninitialized variable" warning
   35b104456652 media: usb: siano: Fix general protection fault in smsusb
   b4c1b4a61f78 USB: rio500: fix memory leak in close after disconnect
   d2d93077bac3 USB: rio500: refuse more than one device at a time
   d8c1703932bc USB: Add LPM quirk for Surface Dock GigE adapter
   d27ea5e9eb4a USB: sisusbvga: fix oops in error path of sisusb_probe
   a43bb9e83155 USB: Fix slab-out-of-bounds write in usb_get_bos_descriptor
   2fc485b0008e usbip: usbip_host: fix stub_dev lock context imbalance regression
   e3724d69b732 usbip: usbip_host: fix BUG: sleeping function called from invalid context
   9690202da222 usb: xhci: avoid null pointer deref when bos field is NULL
   8e30ba04a20a xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()
   32adfa3d92e7 xhci: Use %zu for printing size_t type
   eebcff780603 xhci: update bounce buffer with correct sg num
   759766bf2aec include/linux/bitops.h: sanitize rotate primitives
   89156c1005d2 sparc64: Fix regression in non-hypervisor TLB flush xcall
   e109a984cf38 Linux 4.19.48
   ca75a9fc5ba4 tipc: fix modprobe tipc failed after switch order of device registration
   ab69a2304210 Revert "tipc: fix modprobe tipc failed after switch order of device registration"
   99dcf4a4dd2e xen/pciback: Don't disable PCI_COMMAND on PCI device reset.
   0276ebf16675 jump_label: move 'asm goto' support test to Kconfig
   753328727cab compiler.h: give up __compiletime_assert_fallback()
   fd45cd4530eb include/linux/compiler*.h: define asm_volatile_goto
   2bb9c7e42836 crypto: vmx - ghash: do nosimd fallback manually
   fb6cf4f3704b net/tls: don't ignore netdev notifications if no TLS features
   fb69403ec2ff net/tls: fix state removal with feature flags off
   27d8ad1d8ea9 bnxt_en: Fix aggregation buffer leak under OOM condition.
   a1a926fc68c7 net: stmmac: dma channel control register need to be init first
   1db0bcc27c78 net/mlx5e: Disable rxhash when CQE compress is enabled
   e0d95806b05d net/mlx5: Allocate root ns memory using kzalloc to match kfree
   4421d31753ec tipc: Avoid copying bytes beyond the supplied data
   06442f45e5cf net/mlx5: Avoid double free in fs init error unwinding path
   fb836d014e37 usbnet: fix kernel crash after disconnect
   191989817df9 net: stmmac: fix reset gpio free missing
   6ab968473140 net: sched: don't use tc_action->order during action dump
   33f737a4307d net: phy: marvell10g: report if the PHY fails to boot firmware
   c2d4b2feb057 net: mvpp2: fix bad MVPP2_TXQ_SCHED_TOKEN_CNTR_REG queue value
   de9d6a730cc0 net: mvneta: Fix err code path of probe
   39fd0dc4a556 net-gro: fix use-after-free read in napi_gro_frags()
   4294c3475035 net: fec: fix the clk mismatch in failed_reset path
   566dc17b993d net: dsa: mv88e6xxx: fix handling of upper half of STATS_TYPE_PORT
   2d04f32c8861 llc: fix skb leak in llc_build_and_send_ui_pkt()
   442176668ecf ipv6: Fix redirect with VRF
   ed753b394321 ipv6: Consider sk_bound_dev_if when binding a raw socket to an address
   46702dd5d504 ipv4/igmp: fix build error if !CONFIG_IP_MULTICAST
   e9f94e480f3e ipv4/igmp: fix another memory leak in igmpv3_del_delrec()
   07480da0c8a1 inet: switch IP ID generator to siphash
   9c9144e78996 cxgb4: offload VLAN flows regardless of VLAN ethtype
   3cde0a250845 bonding/802.3ad: fix slave link initialization transition states
   0df021b2e841 Linux 4.19.47
   26433652f0e4 NFS: Fix a double unlock from nfs_match,get_client
   1a686177acde drm/sun4i: dsi: Enforce boundaries on the start delay
   6956c0e3cf33 vfio-ccw: Prevent quiesce function going into an infinite loop
   476e87eb7f78 drm/sun4i: dsi: Change the start delay calculation
   00734a9e7329 drm: Wake up next in drm_read() chain if we are forced to putback the event
   d6dea92a4862 drm/drv: Hold ref on parent device during drm_device lifetime
   473bc1af7a22 drm/v3d: Handle errors from IRQ setup.
   b9c8f86f50ac ASoC: davinci-mcasp: Fix clang warning without CONFIG_PM
   cc211863ac79 spi: Fix zero length xfer bug
   8f7f333af9f6 spi: imx: stop buffer overflow in RX FIFO flush
   3ae1817a29e7 spi: rspi: Fix sequencer reset during initialization
   676aec9b8f11 drm/omap: dsi: Fix PM for display blank with paired dss_pll calls
   bdc095631d50 spi : spi-topcliff-pch: Fix to handle empty DMA buffers
   98eb1b80fea7 scsi: lpfc: Fix SLI3 commands being issued on SLI4 devices
   755dc83020a5 media: saa7146: avoid high stack usage with clang
   584e06c0ed20 scsi: lpfc: Fix fc4type information for FDMI
   aecb245fdd90 scsi: lpfc: Fix FDMI manufacturer attribute value
   4192c77f50dc media: vimc: zero the media_device on probe
   fd1ade15f299 media: go7007: avoid clang frame overflow warning with KASAN
   6d16d2e130e4 media: gspca: do not resubmit URBs when streaming has stopped
   acf41fb8df45 media: vimc: stream: fix thread state before sleep
   aeea87865aa7 scsi: ufs: fix a missing check of devm_reset_control_get
   62e79f4c6bc0 drm/amd/display: Set stream->mode_changed when connectors change
   fc5293ab6c48 drm/amd/display: Fix Divide by 0 in memory calculations
   91435fce9b24 media: staging: davinci_vpfe: disallow building with COMPILE_TEST
   f51db48c1220 media: m88ds3103: serialize reset messages in m88ds3103_set_frontend
   e93677055a5a media: dvbsky: Avoid leaking dvb frontend
   ab934f0ac158 media: si2165: fix a missing check of return value
   561bd5615604 igb: Exclude device from suspend direct complete optimization
   b6bc20249423 tinydrm/mipi-dbi: Use dma-safe buffers for all SPI transfers
   5ec9ba494db2 e1000e: Disable runtime PM on CNP+
   495e34e62c3b thunderbolt: property: Fix a NULL pointer dereference
   70611b1b81c4 drm/amd/display: fix releasing planes when exiting odm
   988dab7f5778 thunderbolt: Fix to check for kmemdup failure
   877a202f9b27 thunderbolt: Fix to check return value of ida_simple_get
   b9291078edce hwrng: omap - Set default quality
   6b2d1934d1f9 dmaengine: tegra210-adma: use devm_clk_*() helpers
   25204fe6a3f8 batman-adv: allow updating DAT entry timeouts on incoming ARP Replies
   a2ace9b24387 selinux: avoid uninitialized variable warning
   c7595096daf9 scsi: lpfc: avoid uninitialized variable warning
   ac9149bc1402 scsi: qla4xxx: avoid freeing unallocated dma memory
   239156e0c04a usb: core: Add PM runtime calls to usb_hcd_platform_shutdown
   506b28fb9982 rcuperf: Fix cleanup path for invalid perf_type strings
   75a96196d4c4 x86/mce: Handle varying MCA bank counts
   aa7919e37fee rcutorture: Fix cleanup path for invalid torture_type strings
   3d036cbaab92 x86/mce: Fix machine_check_poll() tests for error types
   3c2b1ae4410c overflow: Fix -Wtype-limits compilation warnings
   19ae270d1ce0 tty: ipwireless: fix missing checks for ioremap
   3392cc5f3ce3 virtio_console: initialize vtermno value for ports
   e819d4a13688 scsi: qedf: Add missing return in qedf_post_io_req() in the fcport offload check
   dc0f37b780e9 timekeeping: Force upper bound for setting CLOCK_REALTIME
   ee40c8a3efc2 thunderbolt: Fix to check the return value of kmemdup
   c8eecd658220 thunderbolt: property: Fix a missing check of kzalloc
   1de8f9653585 efifb: Omit memory map check on legacy boot
   356f05fdd490 media: gspca: Kill URBs on USB device disconnect
   2a9331ced525 media: wl128x: prevent two potential buffer overflows
   6b5693f20dd8 media: video-mux: fix null pointer dereferences
   bc75207a54dd kobject: Don't trigger kobject_uevent(KOBJ_REMOVE) twice.
   ba906246e38b spi: tegra114: reset controller on probe
   2cd236c27157 HID: logitech-hidpp: change low battery level threshold from 31 to 30 percent
   fb2c65b4a279 cxgb3/l2t: Fix undefined behaviour
   71efe4c70afc ASoC: fsl_utils: fix a leaked reference by adding missing of_node_put
   b6b7a78cf997 ASoC: eukrea-tlv320: fix a leaked reference by adding missing of_node_put
   69f67200cfd6 HID: core: move Usage Page concatenation to Main item
   256f63c6806d sh: sh7786: Add explicit I/O cast to sh7786_mm_sel()
   8ea279184619 RDMA/hns: Fix bad endianess of port_pd variable
   65ec64f28a88 chardev: add additional check for minor range overlap
   fc242af86d07 x86/uaccess: Fix up the fixup
   5007453c7144 x86/ia32: Fix ia32_restore_sigcontext() AC leak
   4614b0bb8f65 x86/uaccess, signal: Fix AC=1 bloat
   1a3188d737ce x86/uaccess, ftrace: Fix ftrace_likely_update() vs. SMAP
   da30c277c4fd wil6210: fix return code of wmi_mgmt_tx and wmi_mgmt_tx_ext
   e667aef54f8a arm64: cpu_ops: fix a leaked reference by adding missing of_node_put
   e3980dbef43a drm/panel: otm8009a: Add delay at the end of initialization
   cb5946e5c86a scsi: ufs: Avoid configuring regulator with undefined voltage range
   31318d4ae3ae scsi: ufs: Fix regulator load and icc-level configuration
   c9e44a1a734a rtlwifi: fix potential NULL pointer dereference
   bd2ab045df4a rtc: xgene: fix possible race condition
   e29aba14e8db brcmfmac: fix Oops when bringing up interface during USB disconnect
   8a412ed97184 brcmfmac: fix race during disconnect when USB completion is in progress
   ce55a5941ed4 brcmfmac: fix WARNING during USB disconnect in case of unempty psq
   4b2f0ebc306b brcmfmac: convert dev_init_lock mutex to completion
   59ec3ad30ab8 b43: shut up clang -Wuninitialized variable warning
   7c9d97f3b11d brcmfmac: fix missing checks for kmemdup
   a27ce4840f89 mwifiex: Fix mem leak in mwifiex_tm_cmd
   7be8d4251bf7 rtlwifi: fix a potential NULL pointer dereference
   f8f54929bd23 selftests/bpf: ksym_search won't check symbols exists
   ef8e5a78406d iio: adc: ti-ads7950: Fix improper use of mlock
   36a59a036896 iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data
   dd106d198dee iio: hmc5843: fix potential NULL pointer dereferences
   d7c773412f4b iio: ad_sigma_delta: Properly handle SPI bus locking vs CS assertion
   ce59174d4e69 drm/pl111: fix possible object reference leak
   e758471be038 x86/build: Keep local relocations with ld.lld
   2b18febc8cdc block: sed-opal: fix IOC_OPAL_ENABLE_DISABLE_MBR
   9d8b1d5db780 cpufreq: kirkwood: fix possible object reference leak
   f9ead9f4d145 cpufreq: pmac32: fix possible object reference leak
   513a7f8e8929 cpufreq/pasemi: fix possible object reference leak
   9612f4040f05 cpufreq: ppc_cbe: fix possible object reference leak
   f8a91441b2a1 qmi_wwan: Add quirk for Quectel dynamic config
   1b6141cd052b selftests: cgroup: fix cleanup path in test_memcg_subtree_control()
   9c594cae285c s390: cio: fix cio_irb declaration
   c3c614380548 s390/mm: silence compiler warning when compiling without CONFIG_PGSTE
   a07de9b98fbf x86/microcode: Fix the ancient deprecated microcode loading method
   a3713f2cebdc s390: zcrypt: initialize variables before_use
   e91146984939 clk: rockchip: Make rkpwm a critical clock on rk3288
   c9aa87e5f345 extcon: arizona: Disable mic detect if running when driver is removed
   822342658459 clk: rockchip: Fix video codec clocks on rk3288
   cbaab786ee67 PM / core: Propagate dev->power.wakeup_path when no callbacks
   d8a36f841803 drm/amdgpu: fix old fence check in amdgpu_fence_emit
   e107bc69cc59 mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support
   019ca0bf8d91 mmc: sdhci-of-esdhc: add erratum A-009204 support
   80118cba1f78 mmc: sdhci-of-esdhc: add erratum eSDHC5 support
   fa291e89997a mmc_spi: add a status check for spi_sync_locked
   059c2f5326a0 mmc: core: make pwrseq_emmc (partially) support sleepy GPIO controllers
   aa06e61237ab scsi: libsas: Do discovery on empty PHY to update PHY info
   4e98f3b11a7a hwmon: (f71805f) Use request_muxed_region for Super-IO accesses
   8cfe000d0a69 hwmon: (pc87427) Use request_muxed_region for Super-IO accesses
   48b31e8a025f hwmon: (smsc47b397) Use request_muxed_region for Super-IO accesses
   e7dbe597ea55 hwmon: (smsc47m1) Use request_muxed_region for Super-IO accesses
   fbdce79e7c3b hwmon: (vt1211) Use request_muxed_region for Super-IO accesses
   1cd4902d9088 perf/x86/intel/cstate: Add Icelake support
   ea6ff1bb3d00 perf/x86/intel/rapl: Add Icelake support
   3a9a1fd14b27 perf/x86/msr: Add Icelake support
   9754bab2057e RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure
   b0f6ac8c81e0 arm64: vdso: Fix clock_getres() for CLOCK_REALTIME
   9082058b549a ACPI/IORT: Reject platform device creation on NUMA node mapping failure
   4a9c84499e11 i40e: don't allow changes to HW VLAN stripping on active port VLANs
   e3e8cdacdcce i40e: Able to add up to 16 MAC filters on an untrusted VF
   267b3c6b3f45 phy: mapphone-mdm6600: add gpiolib dependency
   3ecda6884660 phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode
   63b4f89d03c2 drm: etnaviv: avoid DMA API warning when importing buffers
   f843f848c567 x86/irq/64: Limit IST stack overflow check to #DB stack
   97abdfa81f1c USB: core: Don't unbind interfaces following device reset failure
   3711c9885278 s390/qeth: handle error from qeth_update_from_chp_desc()
   5d5652b51c87 thunderbolt: Take domain lock in switch sysfs attribute callbacks
   afee27f38253 irq_work: Do not raise an IPI when queueing work on the local CPU
   dee2faf0ac0c drm/msm: a5xx: fix possible object reference leak
   e0b75a798651 staging: vc04_services: handle kzalloc failure
   355673f80835 sched/core: Handle overflow in cpu_shares_write_u64
   7053046e350f sched/rt: Check integer overflow at usec to nsec conversion
   925275d0cc5d sched/core: Check quota and period overflow at usec to nsec conversion
   4e4d5cea79a7 cgroup: protect cgroup->nr_(dying_)descendants by css_set_lock
   944c58523731 random: add a spinlock_t to struct batched_entropy
   6fa6381a2da0 random: fix CRNG initialization when random.trust_cpu=1
   fec8a09f79ec powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX
   f488832c2099 powerpc/numa: improve control of topology updates
   ad393793794e block: fix use-after-free on gendisk
   30f8da71c730 iio: adc: stm32-dfsdm: fix unmet direct dependencies detected
   11ad52770a42 media: pvrusb2: Prevent a buffer overflow
   a90ce66af211 media: au0828: Fix NULL pointer dereference in au0828_analog_stream_enable()
   2096b3ba3274 media: stm32-dcmi: fix crash when subdev do not expose any formats
   6c21fa849a5a audit: fix a memory leak bug
   9fcfaab61420 media: ov2659: make S_FMT succeed even if requested format doesn't match
   e3a9d646ecf2 media: au0828: stop video streaming only when last user stops
   3ccd89123b67 media: ov6650: Move v4l2_clk_get() to ov6650_video_probe() helper
   81a0b6ff0209 media: coda: clear error return value before picture run
   83544b04a406 dmaengine: at_xdmac: remove BUG_ON macro in tasklet
   bfb9e836cf26 perf/arm-cci: Remove broken race mitigation
   2d1df7fada2d clk: rockchip: undo several noc and special clocks as critical on rk3288
   86a1de9c8d76 pinctrl: samsung: fix leaked of_node references
   c3933fd4a8ee pinctrl: pistachio: fix leaked of_node references
   12e7faac49e2 HID: logitech-hidpp: use RAP instead of FAP to get the protocol version
   1eafabe144f4 Bluetooth: hci_qca: Give enough time to ROME controller to bootup.
   189b396a2580 mm/uaccess: Use 'unsigned long' to placate UBSAN warnings on older GCC versions
   f46ae1cd7cec x86/mm: Remove in_nmi() warning from 64-bit implementation of vmalloc_fault()
   3dc1e338ae5f smpboot: Place the __percpu annotation correctly
   0fcb3cd5af98 x86/build: Move _etext to actual end of .text
   58a0c2194bac vfio-ccw: Release any channel program when releasing/removing vfio-ccw mdev
   8c1c78109a74 vfio-ccw: Do not call flush_workqueue while holding the spinlock
   e0d25d17841a RDMA/cma: Consider scope_id while binding to ipv6 ll address
   06740892db92 bcache: avoid clang -Wunintialized warning
   330b67980381 bcache: add failure check to run_cache_set() for journal replay
   cd83c78897d5 bcache: fix failure in journal relplay
   29b166da7a4e bcache: return error immediately in bch_journal_replay()
   8034a6b89990 bcache: avoid potential memleak of list of journal_replay(s) in the CACHE_SYNC branch of run_cache_set
   e82df5f1e54a crypto: sun4i-ss - Fix invalid calculation of hash end
   213e152316ed nvme-rdma: fix a NULL deref when an admin connect times out
   c24860f40b66 nvme: set 0 capacity if namespace block size exceeds PAGE_SIZE
   31de7f1d07b5 net: cw1200: fix a NULL pointer dereference
   eacec4367998 rsi: Fix NULL pointer dereference in kmalloc
   9d54cca8f939 mwifiex: prevent an array overflow
   c2582f213897 ASoC: fsl_sai: Update is_slave_mode with correct value
   67d812fbe303 slimbus: fix a potential NULL pointer dereference in of_qcom_slim_ngd_register
   0cbef22f67ba libbpf: fix samples/bpf build failure due to undefined UINT32_MAX
   ca5b9d63e9b1 mac80211/cfg80211: update bss channel on channel switch
   1d057fefa045 dmaengine: pl330: _stop: clear interrupt status
   cadb16d9e0f3 s390: qeth: address type mismatch warning
   99079ceefb7c w1: fix the resume command API
   07da741d48c4 sched/nohz: Run NOHZ idle load balancer on HK_FLAG_MISC CPUs
   216155aab507 s390/kexec_file: Fix detection of text segment in ELF loader
   6697d0b3f5b5 scsi: qedi: Abort ep termination if offload not scheduled
   bc90af686912 rtc: stm32: manage the get_irq probe defer case
   7fd0d9d10e5d rtc: 88pm860x: prevent use-after-free on device remove
   0ea8b7cf9436 iwlwifi: pcie: don't crash on invalid RX interrupt
   bd3d8f4cb956 btrfs: Don't panic when we can't find a root key
   431cbaec1287 btrfs: fix panic during relocation after ENOSPC before writeback happens
   1084fc9afbe3 Btrfs: fix data bytes_may_use underflow with fallocate due to failed quota reserve
   8715ce033eb3 x86/modules: Avoid breaking W^X while loading modules
   34f3a58f06da scsi: qla2xxx: Fix hardirq-unsafe locking
   6ce116871011 scsi: qla2xxx: Avoid that lockdep complains about unsafe locking in tcm_qla2xxx_close_session()
   55b95ce89ce7 scsi: qla2xxx: Fix abort handling in tcm_qla2xxx_write_pending()
   de3cd35f5195 scsi: qla2xxx: Fix a qla24xx_enable_msix() error path
   73026db866db sched/cpufreq: Fix kobject memleak
   0fe8ed038e88 powerpc/watchdog: Use hrtimers for per-CPU heartbeat
   efa336f785df arm64: Fix compiler warning from pte_unmap() with -Wunused-but-set-variable
   9152b0815430 ARM: vdso: Remove dependency with the arch_timer driver internals
   2d2017675b1a media: stm32-dcmi: return appropriate error codes during probe
   5744fd7fa1d1 drm/nouveau/bar/nv50: ensure BAR is mapped
   07bb9a71ee27 ACPI / property: fix handling of data_nodes in acpi_get_next_subnode()
   c00f0fbd2e85 brcm80211: potential NULL dereference in brcmf_cfg80211_vndr_cmds_dcmd_handler()
   57667dc86bef spi: pxa2xx: fix SCR (divisor) calculation
   5cf668cf1110 ASoC: imx: fix fiq dependencies
   b8bd069f855f powerpc/perf: Fix loop exit condition in nest_imc_event_init
   1a6767f5f152 powerpc/boot: Fix missing check of lseek() return value
   741853944fea powerpc/perf: Return accordingly on invalid chip-id in
   49c0fa1f35c1 ASoC: hdmi-codec: unlock the device on startup errors
   663411719895 usb: dwc3: move synchronize_irq() out of the spinlock protected block
   1a7be0fe0777 usb: dwc2: gadget: Increase descriptors count for ISOC's
   fc8c5907d8fc ASoC: Intel: kbl_da7219_max98357a: Map BTN_0 to KEY_PLAYPAUSE
   b676f6c0b552 pinctrl: zte: fix leaked of_node references
   8603d49906b2 Bluetooth: Ignore CC events not matching the last HCI command
   6d9cfab853ca hv_netvsc: fix race that may miss tx queue wakeup
   83eaba87e73e net: ena: gcc 8: fix compilation warning
   19c2dd5025bb dmaengine: tegra210-dma: free dma controller in remove()
   7ffd692bfce7 bpftool: exclude bash-completion/bpftool from .gitignore pattern
   6d9f8909e540 selftests/bpf: set RLIMIT_MEMLOCK properly for test_libbpf_open.c
   f3ed010f2bfe tools/bpf: fix perf build error with uClibc (seen on ARC)
   d96a6c31e42e mmc: core: Verify SD bus width
   c4b51dbcccfc gfs2: Fix occasional glock use-after-free
   fa4aaa09d17e IB/hfi1: Fix WQ_MEM_RECLAIM warning
   36296b0034ae NFS: make nfs_match_client killable
   506961a7a4ef cxgb4: Fix error path in cxgb4_init_module
   bac852089281 gfs2: Fix lru_count going negative
   06a67c0f4abb Revert "btrfs: Honour FITRIM range constraints during free space trim"
   7c2bcb3cca03 acct_on(): don't mess with freeze protection
   7d562a90a88b at76c50x-usb: Don't register led_trigger if usb_register_driver failed
   363aa80a51c9 batman-adv: mcast: fix multicast tt/tvlv worker locking
   003e2d74c554 bpf: devmap: fix use-after-free Read in __dev_map_entry_free
   3de79cb0ceb2 ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit
   c8275cbe2bd8 media: vivid: use vfree() instead of kfree() for dev->bitmap_cap
   0595e0d173f0 media: vb2: add waiting_in_dqbuf flag
   aec118ecf579 media: serial_ir: Fix use-after-free in serial_ir_init_module
   bdf3da72ae79 media: cpia2: Fix use-after-free in cpia2_exit
   de2d09ebff2f fbdev: fix WARNING in __alloc_pages_nodemask bug
   86c43c40fe05 ovl: relax WARN_ON() for overlapping layers use case
   9c0339dd381d btrfs: honor path->skip_locking in backref code
   2eefb4a3894e arm64: errata: Add workaround for Cortex-A76 erratum #1463225
   8783c4128c37 brcmfmac: add subtype check for event handling in data path
   cc240e057c1d brcmfmac: assure SSID length from firmware is limited
   43caa29c99db bpf: add bpf_jit_limit knob to restrict unpriv allocations
   cc1afc1050a9 NFSv4.1 fix incorrect return value in copy_file_range
   e1eed6928b3e NFSv4.2 fix unnecessary retry in nfs4_copy_file_range
   0bad28e92ced fbdev: fix divide error in fb_var_to_videomode
   b8304d918c02 udlfb: fix some inconsistent NULL checking
   94e1f96667b4 btrfs: sysfs: don't leak memory when failing add fsid
   946ad2ecef61 btrfs: sysfs: Fix error path kobject memory leak
   92f907d7d63b Btrfs: fix race between ranged fsync and writeback of adjacent ranges
   4f9a774dda97 Btrfs: avoid fallback to transaction commit during fsync of files with holes
   7ec747c811ab Btrfs: do not abort transaction at btrfs_update_root() after failure to COW path
   ce21e6586eec btrfs: don't double unlock on error in btrfs_punch_hole
   fdc78eedc54d gfs2: Fix sign extension bug in gfs2_update_stats
   53cd8ae3eeb1 arm64/iommu: handle non-remapped addresses in ->mmap and ->get_sgtable
   9c15fff28194 arm64/kernel: kaslr: reduce module randomization range to 2 GB
   ee6d3eb31112 libnvdimm/pmem: Bypass CONFIG_HARDENED_USERCOPY overhead
   709a93054118 kvm: svm/avic: fix off-by-one in checking host APIC ID
   5b69ceee2196 mmc: sdhci-iproc: Set NO_HISPD bit to fix HS50 data hold time problem
   227e01537baf mmc: sdhci-iproc: cygnus: Set NO_HISPD bit to fix HS50 data hold time problem
   792d65fc49a7 crypto: vmx - CTR: always increment IV as quadword
   136b8cef4e4f Revert "scsi: sd: Keep disk read-only when re-reading partition"
   ac7480a5b504 sbitmap: fix improper use of smp_mb__before_atomic()
   b78255d6cffb bio: fix improper use of smp_mb__before_atomic()
   432ec4fa6cd2 KVM: x86: fix return value for reserved EFER
   70d33cce97f0 f2fs: Fix use of number of devices
   5220582c427b ext4: wait for outstanding dio during truncate in nojournal mode
   71e430fd593b ext4: do not delete unlinked inode from orphan list on failed truncate
   1d84eb87efce x86: Hide the int3_emulate_call/jmp functions from UML
   8b2fc0058255 Linux 4.19.46
   fcac71697a15 fbdev: sm712fb: fix memory frequency by avoiding a switch/case fallthrough
   107e215c2962 bpf, lru: avoid messing with eviction heuristics upon syscall lookup
   2bb3c5470aaf bpf: add map_lookup_elem_sys_only for lookups from syscall side
   3ded3aaa4aa8 bpf: relax inode permission check for retrieving bpf program
   c33563e9ec87 Revert "selftests/bpf: skip verifier tests for unsupported program types"
   90110ffd86ae driver core: Postpone DMA tear-down until after devres release for probe failure
   430908054540 md/raid: raid5 preserve the writeback action after the parity check
   3d25b7f5c3be Revert "Don't jump to compute_result state from check_result state"
   a0b1dde1e686 perf/x86/intel: Fix race in intel_pmu_disable_event()
   7aea2f94cc64 perf bench numa: Add define for RUSAGE_THREAD if not present
   a06fdd99a339 ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour
   f037116fe05b x86/mm/mem_encrypt: Disable all instrumentation for early SME setup
   290da8e79c83 sched/cpufreq: Fix kobject memleak
   2da19da7abb8 iwlwifi: mvm: check for length correctness in iwl_mvm_create_skb()
   7341daa0548e qmi_wwan: new Wistron, ZTE and D-Link devices
   c1528193f643 bpf: Fix preempt_enable_no_resched() abuse
   aea54f613534 power: supply: sysfs: prevent endless uevent loop with CONFIG_POWER_SUPPLY_DEBUG
   a1251522a522 KVM: arm/arm64: Ensure vcpu target is unset on reset failure
   36ae546a0046 net: ieee802154: fix missing checks for regmap_update_bits
   9c045d8c9739 mac80211: Fix kernel panic due to use of txq after free
   a0a49d8712de x86: kvm: hyper-v: deal with buggy TLB flush requests from WS2012
   a469646862aa PCI: Fix issue with "pci=disable_acs_redir" parameter being ignored
   b21ca2769b0f apparmorfs: fix use-after-free on symlink traversal
   9a0467e1f671 securityfs: fix use-after-free on symlink traversal
   900bf351dd84 power: supply: cpcap-battery: Fix division by zero
   b7771cb0143b clk: sunxi-ng: nkmp: Avoid GENMASK(-1, 0)
   a654a73de29f xfrm4: Fix uninitialized memory read in _decode_session4
   6faa62060624 xfrm: Honor original L3 slave device in xfrmi policy lookup
   3716c2625099 esp4: add length check for UDP encapsulation
   d410ef75886a xfrm: clean up xfrm protocol checks
   159269cc6456 vti4: ipip tunnel deregistration fixes.
   64f214ce563f xfrm6_tunnel: Fix potential panic when unloading xfrm6_tunnel module
   c9516503fe53 xfrm: policy: Fix out-of-bound array accesses in __xfrm_policy_unlink
   fea685000caf fuse: Add FOPEN_STREAM to use stream_open()
   f9eccf6ca1e0 dm mpath: always free attached_handler_name in parse_path()
   9407680a7bb7 dm integrity: correctly calculate the size of metadata area
   3b92ff729cb3 dm delay: fix a crash when invalid device is specified
   90cc71127a3c dm zoned: Fix zone report handling
   ff0699a5e5d0 dm cache metadata: Fix loading discard bitset
   d5c352305d42 PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratum
   b51a033317cd PCI: Factor out pcie_retrain_link() function
   7bc992e215c8 PCI: rcar: Add the initialization of PCIe link in resume_noirq()
   2e7574982502 PCI/AER: Change pci_aer_init() stub to return void
   8c30e1499335 PCI: Init PCIe feature bits for managed host bridge alloc
   29d031402718 PCI: Mark Atheros AR9462 to avoid bus reset
   f4be6b7ee294 PCI: Mark AMD Stoney Radeon R7 GPU ATS as broken
   2cf1dce1bfa5 fbdev: sm712fb: fix crashes and garbled display during DPMS modesetting
   27968d821368 fbdev: sm712fb: use 1024x768 by default on non-MIPS, fix garbled display
   f1c97f633375 fbdev: sm712fb: fix support for 1024x768-16 mode
   b415308ae49a fbdev: sm712fb: fix crashes during framebuffer writes by correctly mapping VRAM
   02f89dd99c83 fbdev: sm712fb: fix boot screen glitch when sm712fb replaces VGA
   7e1b9659a43a fbdev: sm712fb: fix white screen of death on reboot, don't set CR3B-CR3F
   b0f08070903d fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75
   d30768975973 fbdev: sm712fb: fix brightness control on reboot, don't set SR30
   702156cd1a9a fbdev/efifb: Ignore framebuffer memmap entries that lack any memory types
   e738fb38cf2e objtool: Allow AR to be overridden with HOSTAR
   9ae0f86ceaa7 MIPS: perf: Fix build with CONFIG_CPU_BMIPS5000 enabled
   05fab3457210 perf intel-pt: Fix sample timestamp wrt non-taken branches
   ba86f8f84fd5 perf intel-pt: Fix improved sample timestamp
   3ed850ab2a9c perf intel-pt: Fix instructions sampling rate
   5e011f3319fe memory: tegra: Fix integer overflow on tick value calculation
   fb8c9c900d4e tracing: Fix partial reading of trace event's id file
   07b487eb5762 ftrace/x86_64: Emulate call function while updating in breakpoint handler
   ba246f64b0a5 x86_64: Allow breakpoints to emulate call instructions
   01b6fdcecd5a x86_64: Add gap to int3 to allow for call emulation
   77ca91441696 ceph: flush dirty inodes before proceeding with remount
   b18339bc1d05 iommu/tegra-smmu: Fix invalid ASID bits on Tegra30/114
   a9676c96e7e0 ovl: fix missing upper fs freeze protection on copy up for ioctl
   979d2433b873 fuse: honor RLIMIT_FSIZE in fuse_file_fallocate
   a452f733f93e fuse: fix writepages on 32bit
   42f59b83f0cf udlfb: introduce a rendering mutex
   fb36a97654a7 udlfb: fix sleeping inside spinlock
   1b8c955691d4 udlfb: delete the unused parameter for dlfb_handle_damage
   3487804cf6dc clk: rockchip: fix wrong clock definitions for rk3328
   fe082b99d57b clk: mediatek: Disable tuner_en before change PLL rate
   5bfba9529cea clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider
   1a7adc2edb98 clk: hi3660: Mark clk_gate_ufs_subsys as critical
   04f34b76368f PNFS fallback to MDS if no deviceid found
   d3dd6057d2d6 NFS4: Fix v4.0 client state corruption when mount
   5e7f9e905ff8 media: imx: Clear fwnode link struct for each endpoint iteration
   ef12f5b54da4 media: imx: csi: Allow unknown nearest upstream entities
   77e178708136 media: ov6650: Fix sensor possibly not detected on probe
   86d67dbdf0a0 phy: ti-pipe3: fix missing bit-wise or operator when assigning val
   939db6fdbea6 cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_level()
   a29b8829291e of: fix clang -Wunsequenced for be32_to_cpu()
   a36430769ee5 p54: drop device reference count if fails to enable device
   88cfd822f9d0 intel_th: msu: Fix single mode with IOMMU
   c939121b5435 dcache: sort the freeing-without-RCU-delay mess for good.
   10cb519c3e34 md: add mddev->pers to avoid potential NULL pointer dereference
   3deaa1dc2f70 md: batch flush requests.
   7f6b9285cada Revert "MD: fix lock contention for flush bios"
   7928396df91e proc: prevent changes to overridden credentials
   bbd559ad3ca7 brd: re-enable __GFP_HIGHMEM in brd_insert_page()
   d9ec75d048d7 stm class: Fix channel bitmap on 32-bit systems
   44bc4e8815a4 stm class: Fix channel free in stm output free path
   85b94de88046 parisc: Rename LEVEL to PA_ASM_LEVEL to avoid name clash with DRBD code
   e5621f7e13f6 parisc: Use PA_ASM_LEVEL in boot code
   615260c947b4 parisc: Skip registering LED when running in QEMU
   9aabffe8c2a6 parisc: Export running_on_qemu symbol for modules
   b11efd3262ef net/mlx5e: Fix ethtool rxfh commands when CONFIG_MLX5_EN_RXNFC is disabled
   79742133aff2 net/mlx5: Imply MLXFW in mlx5_core
   9f12f4c922d4 vsock/virtio: Initialize core virtio vsock before registering the driver
   4b900077784f tipc: fix modprobe tipc failed after switch order of device registration
   4af8a327aeba vsock/virtio: free packets during the socket release
   2f7025b0a3b3 tipc: switch order of device registration to fix a crash
   2636da604e76 rtnetlink: always put IFLA_LINK for links with a link-netnsid
   c73ed24c385a ppp: deflate: Fix possible crash in deflate_init
   e4a6df16b441 nfp: flower: add rcu locks when accessing netdev for tunnels
   948cd616504c net: usb: qmi_wwan: add Telit 0x1260 and 0x1261 compositions
   3620e546b177 net: test nouarg before dereferencing zerocopy pointers
   0495c8b03545 net/mlx4_core: Change the error print to info print
   746f8cd570ba net: avoid weird emergency message
   466cadba6013 net: Always descend into dsa/
   6bc3240adde5 ipv6: prevent possible fib6 leaks
   81a61a95812e ipv6: fix src addr routing with the exception table
   c3a072597748 Linux 4.19.45
   e8816d3bc595 ext4: don't update s_rev_level if not required
   6172ae55a187 ext4: fix compile error when using BUFFER_TRACE
   953e826e8d0f pstore: Refactor compression initialization
   fea8b84765a1 pstore: Allocate compression during late_initcall()
   f4bf101be366 pstore: Centralize init/exit routines
   627bb2d93b4d iov_iter: optimize page_copy_sane()
   866f011181ff libnvdimm/namespace: Fix label tracking error
   756eda9bc8b7 xen/pvh: set xen_domain_type to HVM in xen_pvh_init
   98bdd33883db kbuild: turn auto.conf.cmd into a mandatory include file
   38f114887ca4 KVM: lapic: Busy wait for timer to expire when using hv_timer
   3b5ea2df6cf6 KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes
   5b8567682489 jbd2: fix potential double free
   95482af27161 ALSA: hda/realtek - Fix for Lenovo B50-70 inverted internal microphone bug
   e0e1dc65bb13 ALSA: hda/realtek - Fixup headphone noise via runtime suspend
   ae3155123704 ALSA: hda/realtek - Corrected fixup for System76 Gazelle (gaze14)
   316063bf7d11 ext4: avoid panic during forced reboot due to aborted journal
   c19db366c0a8 ext4: fix use-after-free in dx_release()
   0db24122bd7f ext4: fix data corruption caused by overlapping unaligned and aligned IO
   25d010f4e0ec ext4: zero out the unused memory region in the extent tree block
   c907ce3fd552 tty: Don't force RISCV SBI console as preferred console
   986d3453bee4 fs/writeback.c: use rcu_barrier() to wait for inflight wb switches going into workqueue when umount
   a80da82d0840 crypto: ccm - fix incompatibility between "ccm" and "ccm_base"
   f6de0a3b1e66 ipmi:ssif: compare block number correctly for multi-part return messages
   88681649ed8c bcache: never set KEY_PTRS of journal key to 0 in journal_reclaim()
   ecfc882f6441 bcache: fix a race between cache register and cacheset unregister
   8a8f671b3dad Btrfs: do not start a transaction at iterate_extent_inodes()
   0388d45afc50 Btrfs: do not start a transaction during fiemap
   74ca0a7671cc Btrfs: send, flush dellaloc in order to avoid data loss
   8b13bb911f0c btrfs: Honour FITRIM range constraints during free space trim
   87dcf0c61985 btrfs: Correctly free extent buffer in case btree_read_extent_buffer_pages fails
   d8925a1fee71 btrfs: Check the first key and level for cached extent buffer
   45123ae534e0 ext4: fix ext4_show_options for file systems w/o journal
   f795247578aa ext4: actually request zeroing of inode table after grow
   2a18c9c76718 ext4: fix use-after-free race with debug_want_extra_isize
   b12a8d80a46e ext4: avoid drop reference to iloc.bh twice
   f0f805f8b9e7 ext4: ignore e_value_offs for xattrs with value-in-ea-inode
   71478ef67d7c ext4: make sanity check in mballoc more strict
   001fe0dab4ea jbd2: check superblock mapped prior to committing
   0fd2df64f142 tty/vt: fix write/write race in ioctl(KDSKBSENT) handler
   d90824ecb887 tty: vt.c: Fix TIOCL_BLANKSCREEN console blanking if blankinterval == 0
   6a01793e0763 mtd: spi-nor: intel-spi: Avoid crossing 4K address boundary on read/write
   dc6d69bde829 mfd: max77620: Fix swapped FPS_PERIOD_MAX_US values
   5185672f2acf mfd: da9063: Fix OTP control register names to match datasheets for DA9063/63L
   770e46b38ebe ACPI: PM: Set enable_for_wake for wakeup GPEs during suspend-to-idle
   8bae43985571 userfaultfd: use RCU to free the task struct when fork fails
   3574bc98e2fe ocfs2: fix ocfs2 read inode data panic in ocfs2_iget
   a3ccc156f365 hugetlb: use same fault hash key for shared and private mappings
   0b16b09a723e mm/hugetlb.c: don't put_page in lock of hugetlb_lock
   58db3813680e mm/huge_memory: fix vmf_insert_pfn_{pmd, pud}() crash, handle unaligned addresses
   f580a54bbd52 mm/mincore.c: make mincore() more conservative
   681f3695d514 crypto: ccree - handle tee fips error during power management resume
   4fb3d87ee7b7 crypto: ccree - add function to handle cryptocell tee fips error
   65f5c14a6011 crypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend
   1a4fc3d29632 crypto: ccree - pm resume first enable the source clk
   120ab825c6fd crypto: ccree - don't map AEAD key and IV on stack
   ca687cdb6159 crypto: ccree - use correct internal state sizes for export
   766121a0a798 crypto: ccree - don't map MAC key on stack
   7560c0adad34 crypto: ccree - fix mem leak on error path
   642de1c00a14 crypto: ccree - remove special handling of chained sg
   1bfceb375034 bpf, arm64: remove prefetch insn in xadd mapping
   f3714257c422 ASoC: codec: hdac_hdmi add device_link to card device
   975ef5c2f6ca ASoC: fsl_esai: Fix missing break in switch statement
   df9f111db871 ASoC: RT5677-SPI: Disable 16Bit SPI Transfers
   7295359bd6ac ASoC: max98090: Fix restore of DAPM Muxes
   e13bac4031eb ALSA: hdea/realtek - Headset fixup for System76 Gazelle (gaze14)
   d33f6063b7c3 ALSA: hda/realtek - EAPD turn on later
   4ac6316a7c0f ALSA: hda/hdmi - Consider eld_valid when reporting jack event
   8c827cda2864 ALSA: hda/hdmi - Read the pin sense from register when repolling
   30dda277333e ALSA: usb-audio: Fix a memory leak bug
   741e3efd8174 ALSA: line6: toneport: Fix broken usage of timer for delayed execution
   003cf675eb07 mmc: core: Fix tag set memory leak
   d42d342022b1 crypto: arm64/aes-neonbs - don't access already-freed walk.iv
   69b9d32d5139 crypto: arm/aes-neonbs - don't access already-freed walk.iv
   b7d2adfd0512 crypto: rockchip - update IV buffer to contain the next IV
   9a61ab689867 crypto: gcm - fix incompatibility between "gcm" and "gcm_base"
   63efe31cf544 crypto: arm64/gcm-aes-ce - fix no-NEON fallback code
   e7fd8a2862e0 crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest()
   7a19a4bef218 crypto: crct10dif-generic - fix use via crypto_shash_digest()
   aabf86f24d9f crypto: skcipher - don't WARN on unprocessed data after slow walk step
   66f5de68cb61 crypto: vmx - fix copy-paste error in CTR mode
   07d677ae4db4 crypto: ccp - Do not free psp_master when PLATFORM_INIT fails
   fe632ee5ade8 crypto: chacha20poly1305 - set cra_name correctly
   3b5ddd5ea016 crypto: salsa20 - don't access already-freed walk.iv
   7a32ad34b889 crypto: crypto4xx - fix cfb and ofb "overran dst buffer" issues
   c1ec6beac625 crypto: crypto4xx - fix ctr-aes missing output IV
   2ea1a37d0138 sched/x86: Save [ER]FLAGS on context switch
   d8d751efec28 arm64: Save and restore OSDLR_EL1 across suspend/resume
   f273cd16554a arm64: Clear OSDLR_EL1 on CPU boot
   26e7d2ad97b9 arm64: compat: Reduce address limit
   6d696ceb15a3 arm64: arch_timer: Ensure counter register reads occur with seqlock held
   222abad906ba arm64: mmap: Ensure file offset is treated as unsigned
   592127e9c1bb power: supply: axp288_fuel_gauge: Add ACEPC T8 and T11 mini PCs to the blacklist
   26eb5e7fa08d power: supply: axp288_charger: Fix unchecked return value
   921bc15462e2 ARM: exynos: Fix a leaked reference by adding missing of_node_put
   6eaeee1e7845 mmc: sdhci-of-arasan: Add DTS property to disable DCMDs.
   e2c436d9268f ARM: dts: exynos: Fix audio (microphone) routing on Odroid XU3
   abea1fb53266 ARM: dts: exynos: Fix interrupt for shared EINTs on Exynos5260
   8cf1bbca4467 arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller.
   7b72ca6312ab objtool: Fix function fallthrough detection
   b185029f5c41 x86/speculation/mds: Improve CPU buffer clear documentation
   393ca9ea37fb x86/speculation/mds: Revert CPU buffer clear on double fault exit
   7761dbf58d22 locking/rwsem: Prevent decrement of reader count before increment
   dafc674bbcb1 Linux 4.19.44
   9fa23ea14e8f PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(), if necessary
   76888d135c4e PCI: hv: Add hv_pci_remove_slots() when we unload the driver
   a47e0054253f PCI: hv: Fix a memory leak in hv_eject_device_work()
   4179b8580219 powerpc/booke64: set RI in default MSR
   71b20cdb4353 powerpc/powernv/idle: Restore IAMR after idle
   69c2b71cb0c1 powerpc/book3s/64: check for NULL pointer in pgd_alloc()
   e9ec5073c90d drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
   ee3b53d89967 drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
   afa485dc6f17 tipc: fix hanging clients using poll with EPOLLOUT flag
   98652e0b0a1b isdn: bas_gigaset: use usb_fill_int_urb() properly
   17d8a9ebaa99 tuntap: synchronize through tfiles array instead of tun->numqueues
   9c79732f98a8 tuntap: fix dividing by zero in ebpf queue selection
   737713e6d835 vrf: sit mtu should not be updated when vrf netdev is the link
   e38406070729 vlan: disable SIOCSHWTSTAMP in container
   dfdfad3d188f selinux: do not report error on connect(AF_UNSPEC)
   9f51d6f72063 packet: Fix error path in packet_init
   2e95eb9c92f7 net: ucc_geth - fix Oops when changing number of buffers in the ring
   210057b79e71 net: seeq: fix crash caused by not set dev.parent
   dfd919285f27 net: macb: Change interrupt and napi enable order in open
   68df8383f3ca net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering
   9284895b7ee6 net: dsa: Fix error cleanup path in dsa_init_module
   da2e770f0c4a ipv4: Fix raw socket lookup for local traffic
   947fec630c41 fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied
   c7b5e55be825 dpaa_eth: fix SG frame cleanup
   a79feef32392 bridge: Fix error path for kobject_init_and_add()
   9c2cda31196a bonding: fix arp_validate toggling in active-backup mode
   0dc9ad4e904d powerpc/64s: Include cpu header
   db1b4aa651df um: Don't hardcode path as it is architecture dependent
   85f347944a6b Don't jump to compute_result state from check_result state
   ace28a8efdd4 rtlwifi: rtl8723ae: Fix missing break in switch statement
   d756d1dea670 mwl8k: Fix rate_idx underflow
   c300c98a94b4 cw1200: fix missing unlock on error in cw1200_hw_scan()
   575260507647 x86/kprobes: Avoid kretprobe recursion bug
   322a57551d06 nfc: nci: Potential off by one in ->pipes[] array
   f5e60565e6bd NFC: nci: Add some bounds checking in nci_hci_cmd_received()
   21e9515b7d16 net: strparser: partially revert "strparser: Call skb_unclone conditionally"
   85b9e8694f9c net/tls: fix the IV leaks
   e38c6748d1cc mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
   835ae6cc28d9 mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered workqueue
   880a328e197b mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
   a80f62f781c2 mlxsw: spectrum_switchdev: Add MDB entries in prepare phase
   fb7c783b3139 net: fec: manage ahb clock in runtime pm
   c18731c2786c netfilter: nf_tables: add missing ->release_ops() in error path of newrule()
   5014aa937422 netfilter: nf_tables: use-after-free in dynamic operations
   9965da064e9a usb: typec: Fix unchecked return value
   68321994225d mm/memory.c: fix modifying of page protection by insert_pfn()
   bc3361461fcb net: dsa: mv88e6xxx: fix few issues in mv88e6390x_port_set_cmode
   19f4f94fdb2a powerpc/smp: Fix NMI IPI xmon timeout
   f8bd34d1d399 powerpc/smp: Fix NMI IPI timeout
   6a60fb62c82a mm/memory_hotplug.c: drop memory device reference after find_memory_block()
   fb67c97c4e2f RDMA/hns: Bugfix for mapping user db
   afc7cebbbb5e Input: synaptics-rmi4 - fix possible double free
   f621bc1bd7f4 drm/sun4i: Unbind components before releasing DRM and memory
   21b71e191bd8 spi: ST ST95HF NFC: declare missing of table
   09185e359827 spi: Micrel eth switch: declare missing of table
   3835cb5a911f ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled
   521ae4da71cc drm/imx: don't skip DP channel disable for background plane
   df3a97d197a3 gpu: ipu-v3: dp: fix CSC handling
   3a53fa469d60 netfilter: fix nf_l4proto_log_invalid to log invalid packets
   5bc3d4491821 selftests/net: correct the return value for run_netsocktests
   24b1c849ce9d drm/sun4i: Fix component unbinding and component master deletion
   1973df1ec5bc drm/sun4i: Set device driver data at bind time for use in unbind
   005325b7f026 s390: ctcm: fix ctcm_new_device error return code
   ca8648816e3d MIPS: perf: ath79: Fix perfcount IRQ assignment
   743a5a951d4d netfilter: nf_tables: prevent shift wrap in nft_chain_parse_hook()
   7b115755fb9d netfilter: ctnetlink: don't use conntrack/expect object addresses as id
   4e1994ef6365 ipvs: do not schedule icmp errors from tunnels
   cb9a11d017c6 selftests: netfilter: check icmp pkttoobig errors are set as related
   74e9b761fba0 init: initialize jump labels before command line option parsing
   6536de8232c8 mm: fix inactive list balancing between NUMA nodes and cgroups
   1134736869ef scsi: aic7xxx: fix EISA support
   ba87f547b0f7 ocelot: Don't sleep in atomic context (irqs_disabled())
   9e4fd5e0b81a ipmi: ipmi_si_hardcode.c: init si_type array to fix a crash
   7d4d8683e925 tools lib traceevent: Fix missing equality check for strcmp
   0c8afd514df0 KVM: x86: avoid misreporting level-triggered irqs as edge-triggered in tracing
   d39f3cc71382 KVM: fix spectrev1 gadgets
   4074bc379b1f x86/reboot, efi: Use EFI reboot for Acer TravelMate X514-51T
   3b51d71365e0 x86/build/lto: Fix truncated .bss with -fdata-sections
   8eb64692d6e2 s390/pkey: add one more argument space for debug feature entry
   e360515f41fc drm/amd/display: If one stream full updates, full update all planes
   58be7c109cea afs: Unlock pages for __pagevec_release()
   08f2c299b38c qede: fix write to free'd pointer error and double free of ptp
   090b74020014 vxge: fix return of a free'd memblock on a failed dma mapping
   f83beff28048 mISDN: Check address length before reading address family
   e4525c9d9ada selftests: fib_tests: Fix 'Command line is not complete' errors
   7828986b84ba clocksource/drivers/oxnas: Fix OX820 compatible
   6a414ef36840 clocksource/drivers/npcm: select TIMER_OF
   068d1cce7801 drm/amd/display: extending AUX SW Timeout
   2773e7454f4f s390/3270: fix lockdep false positive on view->lock
   4c8c9d514917 libnvdimm/pmem: fix a possible OOB access when read and write pmem
   f2565d0e5277 nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands
   1d918120e37d mac80211: fix memory accounting with A-MSDU aggregation
   9d4da01f7d66 cfg80211: Handle WMM rules in regulatory domain intersection
   35e2abbaffa2 mac80211: Increase MAX_MSG_LEN
   bbe1ab38e1a2 mac80211: fix unaligned access in mesh table hash function
   e28e5055eacd s390/dasd: Fix capacity calculation for large volumes
   af5b7a150ef8 libnvdimm/btt: Fix a kmemdup failure check
   f7ab4818f74e HID: input: add mapping for "Toggle Display" key
   bbdccc170adf HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys
   dc30867da997 HID: input: add mapping for Expose/Overview key
   e94f852e2034 libnvdimm/namespace: Fix a potential NULL pointer dereference
   5f72e3a021a6 acpi/nfit: Always dump _DSM output payload
   f07db1f1f54c iio: adc: xilinx: prevent touching unclocked h/w on remove
   6400212ae3b6 iio: adc: xilinx: fix potential use-after-free on probe
   06d5ea398e55 iio: adc: xilinx: fix potential use-after-free on remove
   5640d0781267 USB: serial: fix unthrottle races
   4c416eef65a7 virt: vbox: Sanity-check parameter types for hgcm-calls coming from userspace
   e361ccccdd51 kernfs: fix barrier usage in __kernfs_new_node()
   f1917f21c8f6 hwmon: (pwm-fan) Disable PWM if fetching cooling data fails
   87cc345aefc9 platform/x86: dell-laptop: fix rfkill functionality
   381eaca5017f platform/x86: thinkpad_acpi: Disable Bluetooth for some machines
   efe6802e812b platform/x86: sony-laptop: Fix unintentional fall-through
   824c212908b6 bfq: update internal depth state when queue depth changes
   3351e9d39947 Linux 4.19.43
   b21bde49d386 x86/speculation/mds: Fix documentation typo
   8e65568e9d23 Documentation: Correct the possible MDS sysfs values
   2e4c54890226 x86/mds: Add MDSUM variant to the MDS documentation
   12a0dad799fb x86/speculation/mds: Add 'mitigations=' support for MDS
   59a14fb5832c s390/speculation: Support 'mitigations=' cmdline option
   74857f69fec5 powerpc/speculation: Support 'mitigations=' cmdline option
   af5332dd991e x86/speculation: Support 'mitigations=' cmdline option
   8cb932aca5d6 cpu/speculation: Add 'mitigations=' cmdline option
   7ba793ae7b9f x86/speculation/mds: Print SMT vulnerable on MSBDS with mitigations off
   e9ae32266605 x86/speculation/mds: Fix comment
   b9faa4652867 x86/speculation/mds: Add SMT warning message
   b3a63d9c7453 x86/speculation: Move arch_smt_update() call to after mitigation decisions
   f7a119a762ef x86/speculation/mds: Add mds=full,nosmt cmdline option
   cfaa3d76301e Documentation: Add MDS vulnerability documentation
   e3803099d2f4 Documentation: Move L1TF to separate directory
   c50e81fe8a13 x86/speculation/mds: Add mitigation mode VMWERV
   8230c2028dce x86/speculation/mds: Add sysfs reporting for MDS
   2951067089a3 x86/speculation/mds: Add mitigation control for MDS
   4df98b3f3161 x86/speculation/mds: Conditionally clear CPU buffers on idle entry
   b39dc9a8cced x86/kvm/vmx: Add MDS protection when L1D Flush is not active
   e4fa775b5606 x86/speculation/mds: Clear CPU buffers on exit to user
   1f7c31be1e04 x86/speculation/mds: Add mds_clear_cpu_buffers()
   de89ff6f1674 x86/kvm: Expose X86_FEATURE_MD_CLEAR to guests
   aca9e8d8e2ce x86/speculation/mds: Add BUG_MSBDS_ONLY
   2e9104aa2633 x86/speculation/mds: Add basic bug infrastructure for MDS
   00b76324bd35 x86/speculation: Consolidate CPU whitelists
   e09450ffa980 x86/msr-index: Cleanup bit defines
   ca0056d97840 kvm: x86: Report STIBP on GET_SUPPORTED_CPUID
   1f1bc8222ce7 x86/cpu: Sanitize FAM6_ATOM naming
   34aae15cb179 Documentation/l1tf: Fix small spelling typo

(From OE-Core rev: cd6de424a1f5ca62d87a0d3c8f8547fc087e8276)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:42 +01:00
Armin Kuster
1eb6e018a3 qemu: fix CVE-2018-20815
(From OE-Core rev: 0b73e48c64cb8e651c81b19ddabdd108e4024697)

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:41 +01:00
Fabio Berton
271c0c2dc1 mesa: Update 19.0.1 -> 19.0.8
This commit adds the following changes:

Updates from 19.0.8:

  - Mesa 19.0.8 is an emergency bug fix release which fixes a critical
    bug found in the 19.0.7 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.8.html

Updates from 19.0.7:

  - Mesa 19.0.7 is a bug fix release which fixes bugs found since the
    19.0.6 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.7.html

Updates from 19.0.6:

  - Mesa 19.0.6 is a bug fix release which fixes bugs found since the
    19.0.5 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.6.html

Updates from 19.0.5:

  - Mesa 19.0.5 is a bug fix release which fixes bugs found since the
    19.0.4 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.5.html

Updates from 19.0.4:

  - Mesa 19.0.4 is a bug fix release which fixes bugs found since the
    19.0.3 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.4.html

Updates from 19.0.3:

  - Mesa 19.0.3 is a bug fix release which fixes bugs found since the
    19.0.2 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.3.html

Updates from 19.0.2:

  - Mesa 19.0.2 is a bug fix release which fixes bugs found since the
    19.0.1 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.2.html

(From OE-Core rev: 6387d3ad8cad2d608b88fac17edb8008032c8462)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:41 +01:00
Bartosz Golaszewski
0570ef5a5e qemu: add a patch fixing the native build on newer kernels
The build fails on qemu-native if we're using kernels after commit
0768e17073dc527ccd18ed5f96ce85f9985e9115. This adds an upstream
patch that fixes the issue.

(From OE-Core rev: a898245271e8d5c5a5b11041fc0442ac60931ee9)

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.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>
2019-09-30 16:44:41 +01:00
Joël Esponde
1895bf4915 package.bbclass: fix directories setuid and setgid bits
populate_packages relies on ``mkdir`` to both create a directory and set
its permissions. However, ``mkdir`` honors the ``umask`` value.
Therefore, some bits may be lost in the operation. In our case, the
setgid bit on the directories were lost.

This commit fixes this by having a distinct call to create the directory
and to set the permissions.

(From OE-Core rev: fe6546aab208e5fa2e238aa266db0ea66ad520a1)

Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@easymile.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:41 +01:00
Jason Wessel
5a44c81061 psmisc: Fix dependency for USE_NLS=no
When using USE_NLS="no" in the local.conf psmisc will fail to
compile as follows:

| autoreconf: Entering directory `.'
| autoreconf: running: autopoint --force
| autoreconf: failed to run autopoint: No such file or directory
| autoreconf: autopoint is needed because this package uses Gettext
| ERROR: autoreconf execution failed.

This is because the gettext.bbclass returns gettext-minimal-native for
the host dependency which does not include autopoint.  The autopoint
utility is required to build psmisc, so it needs to list
gettext-native as a dependency.

(From OE-Core rev: 423115b70a4a2cdef4b3882ad4491446b84a1f1e)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:41 +01:00
Bedel, Alban
95632e679d rng-tools: fix very long shutdown delay with systemd
The systemd service file has DefaultDependencies=no but is not
properly configured to also stop the unit. Because of this the unit
keep running after shutdown but systemd still waits for it to finish to
then later resort to a hard kill. All this take 1m30s with the default
configuration.

To fix this problem add the missing Before=shutdown.target and
Conflicts=shutdown.target to have systemd stop the unit on shutdown.

(From OE-Core rev: b6daf8a5755842c0e38b1a88687a18432138a45a)

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:41 +01:00
Naveen Saini
bd1ccd4c28 ghostscript: fix CVE-2019-3839
(From OE-Core rev: 4f608782e43accb23aa144339ed9169b1718c4f0)

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-30 16:44:41 +01:00
Anuj Mittal
787ec750a2 python3: fix CVE-2019-9740
CVE-2019-9947 is same as CVE-2019-9740 and mark it as such. See:

https://bugs.python.org/issue30458

(From OE-Core rev: 86626171f5a8734c96e9b683f6fec5b779cd20e9)

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>
2019-09-30 16:44:41 +01:00
Anuj Mittal
70fa47b5e0 patch: fix CVE-2019-13636
(From OE-Core rev: 78193d3037c5ce7333b344e651c78e6e2e5ca371)

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>
2019-09-30 16:44:41 +01:00
Richard Purdie
f691e4104f package: Improve determinism
Its possible in cases with multiple shlib providers we were not being
deterministic. Add in a couple of sorted() calls to fix the shlibs and
pkgconfig cases with this potential issue.

(From OE-Core rev: bbbd16f96f4db392e0bd38da4c2ef8fbb4883938)

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>
2019-09-30 16:44:41 +01:00
Anuj Mittal
6bf811e9bd gstreamer1.0-vaapi: backport jpeg encode/decode fixes
Backport patches from 1.15 to fix JPEG encode/decode issues when
using VAAPI with Intel media-driver. See for details:

https://bugzilla.gnome.org/show_bug.cgi?id=796705
https://bugzilla.gnome.org/show_bug.cgi?id=796505

(From OE-Core rev: 507135276293287deed972d49feed511c21391a0)

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>
2019-09-30 16:44:41 +01:00
Anuj Mittal
a5528d9010 libsdl: CVE fixes
Fixes CVE-2019-7572, CVE-2019-7574, CVE-2019-7575, CVE-2019-7576,
CVE-2019-7577, CVE-2019-7578, CVE-2019-7635, CVE-2019-7637,
CVE-2019-7638.

(From OE-Core rev: 522ac5ff7aa51ecd5bd0f07c942f350dcaeeb09a)

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>
2019-09-30 16:44:41 +01:00
Ross Burton
5ad2773072 tiff: fix CVE-2019-7663
(From OE-Core rev: d06d6910d1ec9374bb15e02809e64e81198731b6)

(From OE-Core rev: 3c036ee32a8080c12a8c31abed6f0e989c06a306)

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>
2019-09-30 16:44:41 +01:00
Ross Burton
7e2b96aae0 tiff: fix CVE-2019-6128
(From OE-Core rev: 7293e417dd9bdd04fe0fec177a76c9286234ed46)

(From OE-Core rev: c4fcc2dfefb304ac59f8c49acaad149e239de260)

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>
2019-09-30 16:44:41 +01:00
Ross Burton
1fc478aa88 libid3tag: CVE-2017-11551 is the same as CVE-2004-2779
(From OE-Core rev: 0663e5f8f906803685f018061d51fd6277916e50)

(From OE-Core rev: 203439837077275d632a62050f6606bd203c2484)

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>
2019-09-30 16:44:41 +01:00
Ross Burton
93ba4bb6a1 libid3tag: handle unknown encodings (CVE-2017-11550)
(From OE-Core rev: 5090afc1b07e62f70ebcf63a7abb75b8552f0a52)

(From OE-Core rev: 9be34806ddfbe0e8d214290e0623f2b9779a14b7)

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>
2019-09-30 16:44:41 +01:00
Anuj Mittal
df4f089cbf glibc: CVE-2018-20796 is same as CVE-2019-9169
See:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34141
https://www.securityfocus.com/bid/107160

(From OE-Core rev: 7e90506534ed2a70680382cf28614f02fdb98409)

(From OE-Core rev: 408950d64fe02350acc0ac2ad5a0ea019dbf8945)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-09-30 16:44:41 +01:00
Anuj Mittal
7401aef349 libxslt: fix CVE-2019-13117 CVE-2019-13118
(From OE-Core rev: 7dc3048fec88dd62ef49ef16517b7382ab7cf2a5)

(From OE-Core rev: 7a3b5f260c498da39ecedb313898d1f5482ddd2f)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-09-30 16:44:41 +01:00
Anuj Mittal
d1c75cb784 python: fix CVE-2019-9740
(From OE-Core rev: 8eddac3305b7b428565103cde88cba444e3f0dd0)

(From OE-Core rev: feb8ba6821da5c5ccb7b3f9d71eb9f8859006d23)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-09-30 16:44:41 +01:00
Anuj Mittal
0840b9dce3 binutils: CVE-2019-9070 is same as CVE-2019-9071
See:

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

(From OE-Core rev: cef180de3684491f1ac4180ddbcc102121222181)

(From OE-Core rev: 789be0bd85bfcd6ee27d68fa53f67bd221f8286b)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-09-30 16:44:41 +01:00
Anuj Mittal
552d3d8e1f binutils: fix CVE-2019-12972 CVE-2019-9071
(From OE-Core rev: 093f0914f261a27d58ecba9c1e9d3b78a35af012)

(From OE-Core rev: 9422bf471953c8e548a369574d960791ceb28a24)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-09-30 16:44:41 +01:00
Armin Kuster
6d2e12e792 bitbake: tests/fetch: Resolve fetch error in bitbake-selftest
FAIL: test_wget_latest_versionstring (bb.tests.fetch.FetchLatestVersionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest/build/bitbake/lib/bb/tests/fetch.py", line 1229, in test_wget_latest_versionstring
      self.assertTrue(verstring, msg="Could not find upstream version for %s" % k[0])
      AssertionError: '' is not true : Could not find upstream version for db

[YOCTO #13496]

The Oracle UPSTREAM_CHECK_URI used changed and does not work with logic in wget.

Update UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to match the ones used in the
recipe. Also change the version being checked.

(Bitbake rev: 164c0df429fc9be771c54c241b17d7afb8849afc)

Signed-off-by: Armin Kuster <akuster808@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>
2019-09-09 09:58:02 +01:00
Scott Rifenbark
e4ceb7fcdc ref-manual: Updates to "Building Your Recipe"
(From yocto-docs rev: aa68a20154dca8541dfbff8c5694c35bdbf51037)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-06 12:00:00 +01:00
Scott Rifenbark
c4680d0c06 ref-manual: Updated the "AS" variable
(From yocto-docs rev: f41496026f55de8d530b203024c52cffd27f2a2b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-06 12:00:00 +01:00
Martin Jansa
78ac8af785 bitbake: fetch2: show warning when renaming the archive with bad checksum failed
* noticed on read-only sshfs premirror
* it was showing the warning about renaming the file:
  WARNING: laser-geometry-1.6.4-r0 do_fetch: Renaming /jenkins/mjansa/sshfs/webos-ose-thud/downloads/laser_geometry-1.6.4.tar.gz to /jenkins/mjansa/sshfs/webos-ose-thud/downloads/laser_geometry-1.6.4.tar.gz_bad-checksum_1ee7479b8c5914b4ffae996945121441

  and then failed because of movefile() issue with python3 (fixed in previous commit):
  ERROR: laser-geometry-1.6.4-r0 do_fetch: Error executing a python function in exec_python_func() autogenerated:

  with movefile() fixed, it let do_fetch continue and re-fetch locally with the right
  checksum, but still the renamed file didn't exist, because of movefile failure - add
  another warning when the movefile fails - for whatever reason - unfortunately movefile
  prints error messages with just print() so the real error is hidden only in log.do_fetch
  in this case:
  movefile: Failed to move /jenkins/mjansa/sshfs/webos-ose-thud/downloads/laser_geometry-1.6.4.tar.gz to /jenkins/mjansa/sshfs/webos-ose-thud/downloads/laser_geometry-1.6.4.tar.gz_bad-checksum_1ee7479b8c5914b4ffae996945121441 [Errno 30] Read-only file system: '/jenkins/mjansa/sshfs/webos-ose-thud/downloads/laser_geometry-1.6.4.tar.gz' -> '/jenkins/mjansa/sshfs/webos-ose-thud/downloads/laser_geometry-1.6.4.tar.gz_bad-checksum_1ee7479b8c5914b4ffae996945121441'

(Bitbake rev: 24e44c412ac36987c1f65ced50030064ec58100d)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-06 11:58:50 +01:00
Martin Jansa
6cd3eee5fa bitbake: utils: Fix movefile() exception handling with python3
* with python3 this fails with:
  File: 'bitbake/lib/bb/utils.py', lineno: 799, function: movefile
       0795:        try:
       0796:            os.rename(src, destpath)
       0797:            renamefailed = 0
       0798:        except Exception as e:
   *** 0799:            if e[0] != errno.EXDEV:
       0800:                # Some random error.
       0801:                print("movefile: Failed to move", src, "to", dest, e)
       0802:                return None
       0803:            # Invalid cross-device-link 'bind' mounted or actually Cross-Device
  Exception: TypeError: 'OSError' object is not subscriptable

(Bitbake rev: 16415c6e0f9e3d5c9fd81c9aabaea11d61b14187)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-06 11:58:50 +01:00
Anuj Mittal
01b8a8b54b curl: fix CVE-2019-5435 CVE-2019-5436
(From OE-Core rev: 952bfcc3f4b9ee5ba584da0f991f95e80654355a)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-29 23:50:49 +01:00
Anuj Mittal
9773b89a2f python3: fix CVE-2018-20852 CVE-2019-9636
(From OE-Core rev: eb415873caad54dbf332f9ebf5f3164da3459953)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-29 23:50:49 +01:00
Anuj Mittal
b692ba5eaf bzip2: fix CVE-2019-12900
Also include a patch to fix regression caused by it. See:

https://gitlab.com/federicomenaquintero/bzip2/issues/24

(From OE-Core rev: 91798737ec0aadcb5313c4c140393933420b066d)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-29 23:50:49 +01:00
Anuj Mittal
31057d6dcc wget: fix CVE-2019-5953
(From OE-Core rev: db17c2467af57a802f29a423ce1e9f0508bff5fe)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-29 23:50:49 +01:00
Anuj Mittal
1ccb3bd2dc gstreamer1.0-plugins-base: fix CVE-2019-9928
(From OE-Core rev: ff6db726440e911358fc222ab21ee36a77004782)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-29 23:50:49 +01:00
Anuj Mittal
4626a7f6d1 vim: fix CVE-2019-12735
(From OE-Core rev: c7efa41e7fed263413d5f55d5ed5d17e874623a3)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-29 23:50:49 +01:00
Anuj Mittal
069cfba445 expat: fix CVE-2018-20843
(From OE-Core rev: 355b6168b722b10eddeb36d5b389128733fbcb64)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-29 23:50:49 +01:00
Scott Rifenbark
51223035e6 poky.ent: Updated release date to July 2019
This propogates throughout the manual set's.
"Current" is now 2.7.1.

(From yocto-docs rev: 25fc59f280c6140e44e3f94b666b41b451be57d3)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-18 12:17:00 +01:00
Scott Rifenbark
fc3688b874 ref-manual: Fixed typo for BBMULTICONFIG variable.
There was a typo in the BBMULTICONFIG variable description.
It appeared as "BBMULTIFONFIG". I fixed it.

(From yocto-docs rev: 3e00ab7a7b16f3aba5bf78e015b9073d2a79698a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-18 12:17:00 +01:00
Scott Rifenbark
fb14f0a952 Documentation: Prepared for 2.7.1 release
* Updated all variables in poky.ent
 * Updated all *.xml files for manual history
 * Updated the mega-manual.sed file for 2.7.1

(From yocto-docs rev: 7e20c42cbcdab63e02eab4ad316385d18b7beb68)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-18 12:17:00 +01:00
Scott Rifenbark
2bb7aabf24 overview-manual: Updated manual history table.
The 2.7 release was inadvertantly left out and the date for the
2.6 release was what should have been for the 2.7 release.

(From yocto-docs rev: 67c5c84df5c61c2fa7919b1825e4720f0b0565a6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-18 12:17:00 +01:00
Richard Purdie
38d5c8ea98 build-appliance-image: Update to warrior head revision
(From OE-Core rev: 886deb4d0919c7a81036ea14fb8fd0f1619dd3a3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-30 22:42:10 +01:00
Richard Purdie
2070a08cdd poky.conf: Bump version for 2.7.1 warrior release
(From meta-yocto rev: c16082ffa61f485e120670fbdf075f3fa8597494)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-30 22:42:00 +01:00
Richard Purdie
c4519c01df gpg_sign/selftest: Fix secmem parameter handling
We keep seeing "cannot allocate memory" errors from rpm when signing packages
on the autobuilder. The following were tried:

* checking locked memory use (isn't hitting limits)
* Restricting RPM_GPG_SIGN_CHUNK to 1
* Limiting to 10 parallel do_package_write_rpm tasks
* Allowing unlimied memory overcommit
* Disabling rpm parallel compression

and the test still failed. Further invetigation showed that the --auto-expand-secmem
wasn't being passed to gpg-agent which meant the secmem couldn't be expanded hence the
errors when there was pressure on the agent.

The reason this happens is that some of the early gpg commands can start the agent
without the option and it sticks around in memory so a version with the correct
option may or may not get started.

We therefore add the option to all the key gpg calls.

(From OE-Core rev: 028475f5b6ae9c9b181812c0c8a6aa382640f4bf)

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>
2019-06-30 22:34:23 +01:00
Adrian Bunk
ee0e9eaafe wpa-supplicant: Fix CVE-2019-9494 CVE-2019-9495 CVE-2019-9496 CVE-2019-9497 CVE-2019-9498 CVE-2019-9499 CVE-2019-11555
(From OE-Core rev: ae8e0440fc1177bf44e46804e1f5927cb86f8324)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-30 22:34:23 +01:00
Peter Kjellerstedt
76c220e5fe package.bbclass: Clean up writing of runtime pkgdata files
This introduces a variable, PKGDATA_VARS, that contains the names of
the variables that are to be output in the runtime pkgdata files.

(From OE-Core rev: e9565e986d574b4dbe2fc2449dee15b4d02c9fa2)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-30 22:34:23 +01:00
Peter Kjellerstedt
5155d08e7e texinfo-dummy-native: Rewrite template.py to use argparse
The original version of template.py parses the arguments manually. This
fails when looking for the -E option if, e.g., an -I option is specified
without any space before its argument, and that argument contains the
letter 'E'.

A minor difference to the original version is that it parsed the
arguments in the order they were specified on the command line whereas
this version will always handle -E before -o.

(From OE-Core rev: c4949e0109cc823101f56fc192474d3ceaa7d916)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-30 22:34:23 +01:00
Peter Kjellerstedt
ed73797188 texinfo-dummy-native: A little clean up of template.py
This is mainly whitespace clean up, plus using the with statement when
writing files.

(From OE-Core rev: b2c4a3571c9311ee7fca165817ccad6d77ecac7c)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-30 22:34:23 +01:00
Adrian Bunk
3dc1065b8d libxslt: Fix CVE-2019-11068
(From OE-Core rev: 7fa78955448aa371d3e032c12fe078e5ddfd68a0)

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>
2019-06-30 22:34:23 +01:00
Richard Purdie
0fa7de662c uninative: Update to 2.6 release
The 2.6 release contains both libcrypt.so.1 and libcrypt.so.2 which fixes
compatibility with recent fedora/suse releases.

The difference is one is built with obsolete APIs enabled and one disabled.
We now ship both in uninative for compatibility regardless of which distro
a binary is built on.

(From OE-Core rev: 683020a6292b4a7fe1bdda16e681fb5074eea2b2)

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>
2019-06-30 22:34:23 +01:00
Ross Burton
d6bceaab25 oeqa/logparser: ignore test failure commentary
The output format for Python and GLib both can be of this form:

FAIL: foobar (Segmentation fault)

In this case the test is called foobar not foobar_segmentation_fault.

(From OE-Core rev: 95031da4f08295ad81efac1c082c48dd5c330fb0)

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>
2019-06-30 22:34:23 +01:00
Ricardo Ribalda Delgado
a60c94d89f rootfs: Fix dependency for every dpkg run
Avoid getting a warning on do_rootfs.

Fixes:

NOTE: Installing the following packages: libgdk-pixbuf-2.0-locale-en-gb glibc-locale-en-gb libatspi-locale-en-gb gstreamer1.0-locale-en-gb gtk+3-locale-en libatk-1.0-locale-en-gb gtk+3-locale-en-gb gstreamer1.0-plugins-good-locale-en-gb gstreamer1.0-plugins-base-locale-en-gb gstreamer1.0-plugins-bad-locale-en-gb libglib-2.0-locale-en-gb avahi-locale-en-gb vte-locale-en-gb xkeyboard-config-locale-en-gb
WARNING: Unable to install packages. Command '/workdir/build/tmp/work/qt5122-poky-linux/bottlecam-image/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --force-yes --allow-unauthenticated libgdk-pixbuf-2.0-locale-en-gb glibc-locale-en-gb libatspi-locale-en-gb gstreamer1.0-locale-en-gb gtk+3-locale-en libatk-1.0-locale-en-gb gtk+3-locale-en-gb gstreamer1.0-plugins-good-locale-en-gb gstreamer1.0-plugins-base-locale-en-gb gstreamer1.0-plugins-bad-locale-en-gb libglib-2.0-locale-en-gb avahi-locale-en-gb vte-locale-en-gb xkeyboard-config-locale-en-gb' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...

(From OE-Core rev: 747d80a496741090f9925c007b03cd68501ef131)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.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>
2019-06-30 22:34:23 +01:00
Chen Qi
e963ab193b manifest.py: fix test_SDK_manifest_entries
TOOLCHAIN_OUTPUTNAME could be overridden. So use this variable directly
instead of its default value ${SDK_NAME}-toolchain-${SDK_VERSION}.

(From OE-Core rev: eb32dd2956da99813136842acdb010c8471f5e3c)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-06-30 22:34:23 +01:00
Kai Kang
0d992ed7f8 openssl: fix failure of ptest test_shlibload
It fails to run ptest case test_shlibload which requires libcrypto.so
and libssl.so with version numbers now.

(From OE-Core rev: 8b7f9583b360d5f524f32532aba2e41c2212c778)

Signed-off-by: Kai Kang <kai.kang@windriver.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>
2019-06-30 22:34:23 +01:00
Randy MacLeod
852f90451d ptest-runner: enable child procs as session leader
When running the run-execscript bash ptest as a user rather than root, a warning:
  bash: cannot set terminal process group (16036): Inappropriate ioctl for device
  bash: no job control in this shell
contaminates the bash log files causing the test to fail. This happens only
when run under ptest-runner and not when interactively testing!

The changes made to fix this include:
1. Get the process group id (pgid) before forking,
2. Set the pgid in both the parent and child to avoid a race,
3. Find, open and set permission on the child tty, and
4. Allow the child to attach to controlling tty.

(From OE-Core rev: 25121d92f1a4cd70223038e09a719fec94355ee6)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.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>
2019-06-30 22:34:23 +01:00
Sakib Sajal
3ee2004f36 ptest-runner: update SRCREV to latest HEAD on ptest-runner2 repo
63d097c Add SPDX-License-Identifier: GPL-2.0-or-later in source files (HEAD)
   fb93c99 utils.c: close all file descriptors after completing a ptest

(From OE-Core rev: 884e0d80d0113e8af5bdbd7988e391c1292e37c2)

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Randy Macleod <randy.macleod@windriver.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>
2019-06-30 22:34:23 +01:00
Chen Qi
32e8d2d345 context.py: fix skipping function
The current codes to skip test cases are logically correct, but they
do not work correctly in reality. It does skip the tests as the command
line argument specifies, but the related information is wrong.
e.g.
$ oe-selftest -R archiver bblayers runtime_test
2019-06-17 09:24:53,764 - oe-selftest - WARNING - meta-selftest layer not found in BBLAYERS, adding it
2019-06-17 09:25:06,309 - oe-selftest - INFO - Adding layer libraries:
2019-06-17 09:25:06,310 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta/lib
2019-06-17 09:25:06,310 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta-yocto-bsp/lib
2019-06-17 09:25:06,310 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta-selftest/lib
2019-06-17 09:25:06,312 - oe-selftest - INFO - Running bitbake -e to test the configuration is valid/parsable
2019-06-17 09:25:10,521 - oe-selftest - INFO - Adding: "include selftest.inc" in /buildarea5/chenqi/SWAT/poky/build-selftest/conf/local.conf
2019-06-17 09:25:10,521 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2019-06-17 09:25:10,522 - oe-selftest - INFO - test_archiver_allows_to_filter_on_recipe_name (archiver.Archiver)
2019-06-17 09:25:10,522 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "runtime_test"'
2019-06-17 09:25:10,522 - oe-selftest - INFO - Skip by the command line argument "runtime_test"
2019-06-17 09:25:10,523 - oe-selftest - INFO - test_archiver_filters_by_type (archiver.Archiver)
2019-06-17 09:25:10,523 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "runtime_test"'
2019-06-17 09:25:10,523 - oe-selftest - INFO - Skip by the command line argument "runtime_test"

The archiver.Archiver.xxx tests should be skipped by 'archiver' command line
argument, not 'runtime_test'.

Change to use a function generator to achieve the desired effect. After the change,
the effect is as follows.

$ oe-selftest -R archiver bblayers runtime_test
2019-06-17 09:19:06,223 - oe-selftest - WARNING - meta-selftest layer not found in BBLAYERS, adding it
2019-06-17 09:19:19,598 - oe-selftest - INFO - Adding layer libraries:
2019-06-17 09:19:19,599 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta/lib
2019-06-17 09:19:19,599 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta-yocto-bsp/lib
2019-06-17 09:19:19,599 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta-selftest/lib
2019-06-17 09:19:19,602 - oe-selftest - INFO - Running bitbake -e to test the configuration is valid/parsable
2019-06-17 09:19:24,368 - oe-selftest - INFO - Adding: "include selftest.inc" in /buildarea5/chenqi/SWAT/poky/build-selftest/conf/local.conf
2019-06-17 09:19:24,368 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2019-06-17 09:19:24,369 - oe-selftest - INFO - test_archiver_allows_to_filter_on_recipe_name (archiver.Archiver)
2019-06-17 09:19:24,369 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "archiver"'
2019-06-17 09:19:24,369 - oe-selftest - INFO - Skip by the command line argument "archiver"
2019-06-17 09:19:24,369 - oe-selftest - INFO - test_archiver_filters_by_type (archiver.Archiver)
2019-06-17 09:19:24,370 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "archiver"'
2019-06-17 09:19:24,370 - oe-selftest - INFO - Skip by the command line argument "archiver"
2019-06-17 09:19:24,370 - oe-selftest - INFO - test_archiver_filters_by_type_and_name (archiver.Archiver)
2019-06-17 09:19:24,370 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "archiver"'
2019-06-17 09:19:24,371 - oe-selftest - INFO - Skip by the command line argument "archiver"
2019-06-17 09:19:24,371 - oe-selftest - INFO - test_archiver_srpm_mode (archiver.Archiver)
2019-06-17 09:19:24,371 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "archiver"'
2019-06-17 09:19:24,372 - oe-selftest - INFO - Skip by the command line argument "archiver"
2019-06-17 09:19:24,372 - oe-selftest - INFO - test_bitbakelayers_add_remove (bblayers.BitbakeLayers)
2019-06-17 09:19:24,373 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "bblayers"'
2019-06-17 09:19:24,373 - oe-selftest - INFO - Skip by the command line argument "bblayers"
2019-06-17 09:19:24,373 - oe-selftest - INFO - test_bitbakelayers_createlayer (bblayers.BitbakeLayers)
2019-06-17 09:19:24,373 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "bblayers"'
2019-06-17 09:19:24,374 - oe-selftest - INFO - Skip by the command line argument "bblayers"
[snip]

(From OE-Core rev: efdde9ee80f17a302e2b435b6a1103b001c612dc)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-06-30 22:34:23 +01:00
Jaewon Lee
dcb4fec1d2 devicetree.bbclass: Combine stderr into stdout to see actual dtc error
Previously the subprocess command to run dtc was not properly displaying
the error on console. Combining stderr into stdout for the dtc subprocess
so the actual error can be seen on console without having to open the
do_compile log.

For example, previously on a dtc error, just the following stack trace
and dtc command was being shown on console:

File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:devicetree_do_compile(d)
     0003:
File:
function: devicetree_do_compile
     0127:            if not(os.path.isfile(dtspath)) or
not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
     0128:                continue # skip non-.dts files and non-overlay
files
     0129:        except:
     0130:            continue # skip if can't determine if overlay
 *** 0131:        devicetree_compile(dtspath, includes, d)

    ...

Exception: subprocess.CalledProcessError: Command '['dtc', '-R', '8',
'-b', '0', '-p', '0x1000', '-i', '${INCLUDES}, '-o', 'system-top.dtb',
'-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit
status 1

with this patch, the actual error from the dtc command will be appended
like the following:

Subprocess output:
Error: Label or path not found
FATAL ERROR: Syntax error parsing input tree

(From OE-Core rev: a0b7fe6a79932a27d1b6ef4b9122609b9c266676)

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.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>
2019-06-30 22:34:22 +01:00
Hongxu Jia
b734917ebc diffutils/run-ptest: support to run at arbitrary path
1. Run run-ptest at arbitrary path

2. Fix large-subopt.in1 not found
...
|diff: /lib32-diffutils/3.7-r0/build/../diffutils-3.7/tests/large-subopt.in1:
No such file or directory
|diff: /lib32-diffutils/3.7-r0/build/../diffutils-3.7/tests/large-subopt.in2:
No such file or directory
...

(From OE-Core rev: ba4e54609e80abe12939bc01871d78d1914fdbaf)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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>
2019-06-30 22:34:22 +01:00
Oleksandr Kravchuk
a4d9c34bb8 selftest/devtool: fix URI to MarkupSafe package
PyPi packages are now hosted at files.pythonhosted.org.

[YOCTO #13243]

(From OE-Core rev: d498a41d89adcead8995668f54c01a175c081bca)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.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>
2019-06-30 22:34:22 +01:00
Mariano López
7f8cad5b1a util-linux: Stop udevd to run ptests
The util-linux's ptest uses the SCSI_DEBUG kernel module to create
virtual SCSI disks. The automount feature of udevd will try to mount
these disks by default. Because udevd controls the mount of the disks,
the eject/mount tests will fail or be skipped. This change will stop
udevd before executing the util-linux's ptest and start the daemon
again after all the tests.

This is for eudevd only, systemd-udevd doesn't present this problem
because there are no automount rules.

[YOCTO #13301]

(From OE-Core rev: 3d62aaa8d06387053f98e4156dc8920e2e97feea)

Signed-off-by: Mariano López <just.another.mariano@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>
2019-06-30 22:34:22 +01:00
Richard Purdie
048c1467e2 bitbake: bitbake: Drop duplicate license boilerplace text
With the introduction of SPDX-License-Identifier headers, we don't need a ton
of header boilerplate in every file. Simplify the files and rely on the top
level for the full licence text.

(Bitbake rev: 34ed28a412af642a993642c14bd8b95d5ef22cd8)

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>
2019-06-19 18:04:01 +01:00
Richard Purdie
e1db6a1690 bitbake: bitbake: Add initial pass of SPDX license headers to source code
This adds the SPDX-License-Identifier license headers to the majority of
our source files to make it clearer exactly which license files are under.

The bulk of the files are under GPL v2.0 with one found to be under V2.0
or later, some under MIT and some have dual license. There are some files
which are potentially harder to classify where we've imported upstream code
and those can be handled specifically in later commits.

The COPYING file is replaced with LICENSE.X files which contain the full
license texts.

(Bitbake rev: ac556588fac55e91b7ce4839a975eb9ebb5aa192)

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>
2019-06-19 18:04:01 +01:00
Matthias Schiffer
b164f0dc3e bitbake: fetch2: runfetchcmd(): unset _PYTHON_SYSCONFIGDATA_NAME
Since warrior, python3native.bbclass sets _PYTHON_SYSCONFIGDATA_NAME;
unfortunately, this also affects Python scripts run as fetch commands like
git-make-shallow, breaking it with a message like

    Failed to import the site module
    Traceback (most recent call last):
      File "/usr/lib/python3.6/site.py", line 570, in <module>
        main()
      File "/usr/lib/python3.6/site.py", line 556, in main
        known_paths = addusersitepackages(known_paths)
      File "/usr/lib/python3.6/site.py", line 288, in addusersitepackages
        user_site = getusersitepackages()
      File "/usr/lib/python3.6/site.py", line 264, in getusersitepackages
        user_base = getuserbase() # this will also set USER_BASE
      File "/usr/lib/python3.6/site.py", line 254, in getuserbase
        USER_BASE = get_config_var('userbase')
      File "/usr/lib/python3.6/sysconfig.py", line 607, in get_config_var
        return get_config_vars().get(name)
      File "/usr/lib/python3.6/sysconfig.py", line 550, in get_config_vars
        _init_posix(_CONFIG_VARS)
      File "/usr/lib/python3.6/sysconfig.py", line 421, in _init_posix
        _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
    ModuleNotFoundError: No module named '_sysconfigdata'

on an Ubuntu 18.04 system (and likely others) when building with
BB_GIT_SHALLOW and BB_GENERATE_SHALLOW_TARBALLS.

Unset _PYTHON_SYSCONFIGDATA_NAME in runfetchcmd() to work around this.

(Bitbake rev: 6783104f18a8a14ddd88932720cd80dffeada63d)

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 17:00:37 +01:00
Mark Hatle
12a8a51e96 bitbake: gitsm: Fix a bug where the wrong path was used for the submodule init
Because we are trying to avoid network activity and use our own fetcher,
the system emulates the behavior of 'git submodule init'.

git submodule init uses the .gitmodules file, where typically the module
name and path are the same.  However, in this case the module name and
path (in the tree) were different. i.e.:

[submodule "edgelet/hsm-sys/azure-iot-hsm-c/deps/azure-c-shared-utility"]
        path = edgelet/hsm-sys/azure-iot-hsm-c/deps/c-shared
        url = https://github.com/Azure/azure-c-shared-utility.git

Previously the code assumed the 'path' was both the checkout location
under .git/modules, as well as the path to extract the components.  This
proved to be incorrect as the .git/modules path needs to match the submodule
'name'.  This causes the components that were fetched to be initialized in
the wrong location, which later caused the 'git submodule update' process to
skip not properly initialized modules.

A test case was added for this specific case to ensure a regression does
not appear in the future.

(Bitbake rev: 2a823584a5dbc2427060352f3b4798dbb2640cfd)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:43:22 +01:00
Scott Rifenbark
33f9b99a47 dev-manual: Fixed grammar issue.
Fixed in "Selecting an Initialization Manager" section.
Extraneous word needed removed.

(From yocto-docs rev: eb49c13a50fe9ee3554819fb3e65367c450c3814)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
6c30d92537 overview-manual: Updated SCM section
Fixes [YOCTO #10098]

I updated the "Source Control Managers (Optional)" section
to reference the "Fetchers" section in the BB manuual.

(From yocto-docs rev: 3bc281e4092207dc5b757b9da50f7d80cb2f4c6a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
421f346ad6 ref-manual: Updated "npm.bbclass" section.
I provided a general link to the wiki on npm software.
Also, updated the section to point to the new section on how to
create NPM packages, which is in the dev-manual.

(From yocto-docs rev: 23d1cef7323b1b7ada7a7c8378a42db18b82626e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
2ec0aac70b dev-manual: Updated the "Working with Packages" list
I added the "Creating node package manager (NPM) packages
section link to the list.  Also, made some edits to make
the capitalization consistent in the list items.

(From yocto-docs rev: ff2f9c5d5ed680e61b6db1c977b3a70e0d048f0b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
88763b56c3 Makefile: Updated to support new NPM package creation section
The newly created section on how to create NPM packages
required a figure.  I added the figure to both the dev-manual
and mega-manual tarballs creation areas.

(From yocto-docs rev: 8180e6b1e94431efc9e439386ab227328f7cea21)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
255e6178ca dev-manual: Added new section for creating NPM packages
Fixes [YOCTO #10098]

This is a new section in the development tasks manual that describes
how to create Node Package Manager (NPM) packages.  I put the
section in the "Working with Packages" section.

(From yocto-docs rev: 18082c8e3d0a7550fd6f0f059bb466bcb26cfba9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
c273249593 poky.ent: Updated METINTELVERSION variable to 11.0
(From yocto-docs rev: b4ee868f8e6a673e9263834283df06c6e8543af8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
bd9baabe5f ref-manual: Grammar correction
I left out the word "not" in a key sentence in the new
"Checking on the Upgrade Status of a Recipe" section.

Little words can make big differences.

(From yocto-docs rev: 2f3995a07eba7e3e3b66aa60bfffcdf9c50077b8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
e68171d806 ref-manual: Updates to check-recipe-upgrade devtool command
I updated the section to include more detail on what the user
sees in the returned table.

(From yocto-docs rev: 34b801d6fa61290be51e589c4cc759b59620edf1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
4f08ca238e ref-manual: do_checkpkg - added link to checking upgrade status
I show the "devtool check-upgrade-status" command as part of
the "do_checkpkg" task section.  I added a cross-reference
link to the "Checking on the Upgrade Status of a Recipe"
section in the ref-manual.

(From yocto-docs rev: d1bc8b9c3bb6d40fb8401e93b46088e965e2d956)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
45115e603f dev-manual: Added check-upgrade-status blurb to upgrading recipes
The section "Upgrading Recipes" covers several ways of
upgrading a recipe.  I added some stuff in the introductory
area that mentions the fact a user might want to check
the upgrade status of a recipe first.

(From yocto-docs rev: 6747335d429b58251642c6b82d7725b0fe3e686e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
cca5eb8ec3 ref-manual: New section "Checking Upgrade Status of a Recipe"
I added a new section showcasing the "devtool check-upgrade-status"
command.

Also, added a note in the "Upgrading a Recipe" section" to tell
the reader they might want to check on a recipe's upgrade
status before upgrading a recipe.

(From yocto-docs rev: ca091498a274b9a7a44b0d6d5ee826c1d2bd6a3c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:38 +01:00
Scott Rifenbark
cd8304bfd7 ref-manual: Udated devtool help output examples.
Specifically missing was the "devtool check-upgrade-status"
command.

(From yocto-docs rev: 1b6e87598e246806af7908e7d2e17ad579868aa9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
4b29fd9380 ref-manual: Removed "distutils-tools" class.
This class was removed for 2.7 and I took the reference section
out of the class area.

(From yocto-docs rev: b2afcc27571e36c9646755013e2e1e4be56b7268)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
68d30bafdd ref-manual: Removed bugzilla.bbclass
The migration section noted this class as becoming obsolete.
I removed it from the class reference section.

(From yocto-docs rev: 2f1040b1e079eb9f661cc643326bd03514747e07)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
abb36e3231 dev-manual, ref-manual: removed "distrodata" class
Ousted these since it was noted in the migration section that
the class had been removed.  Modified all references to the
removed class as needed.

(From yocto-docs rev: ab63a38340fbbcffb8e02b0cb925c637615f884c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
fb922f347f ref-manual: Updated the "Container Layer" term.
I removed the incorrect "meta-intel" layer for the example
and replaced it with the better "meta-openembedded" layer.

Reported by: Robert P. J. Day <rpjday@crashcourse.ca>
(From yocto-docs rev: 7a819f3d49be651e345661a12b7d97dc25439851)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
867a1bd45d bsp-guide: Removed inaccurate "container layer" references.
I left only the single mention of "container layers" and changed
the example from "meta-intel" to OpenEmbedded's meta-openembedded
layer.

Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
(From yocto-docs rev: b12c3937bf729e77e3c54401725807fba5340a73)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
7a551234a1 poky.ent: Updated poky version variable to "21"
This was accidently at "22" for the Warrior release.  It needed
to be "21".

(From yocto-docs rev: 528d177fc990c216a17e3bcd5267f89320bf095e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
5f9e840a35 ref-manual: Review comments applied to 2.7 migration section.
(From yocto-docs rev: ab4f9a0b882b04976a10dcf6d383188a5c240667)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
7b72fb4268 poky.ent: changed 2.7 release variable date to "May 2019"
(From yocto-docs rev: 0c94c5c2c4300a9b91ab2be866d8781a79d2f62d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
695d761efc ref-manual: Added Fedora 29 to the supported distros list.
(From yocto-docs rev: 196bc35669e81b269d4576f552bdecc191bbc80a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
3fc2e948bc ref-manual: Added "License Value Corrections to migration.
(From yocto-docs rev: 398a60005b9ce63e6ee141dfb8a71e8ae2bf2d86)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
3bbf1c8fcf ref-manual: Added Eclipse removal for migration section.
(From yocto-docs rev: 06409e5fa0080f76f68d9f98b3c9f5a4edfcc948)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
9bd52d6b2e ref-manual: Inserted Migration 2.7 section.
(From yocto-docs rev: 238ddd62995420741c2b97ccfa7d2c533b72837c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
5bc2625be5 dev-manual: Added reasoning blurb to "Viewing Variables" section.
I put a new introductory paragraph in the "Viewing Variables"
section that alludes to why you might want to see variables.
Also, I linked to the section "Modifying Variable Values" in
the BB manual.

(From yocto-docs rev: 6e18524ba62d2ff1231184467b0dd24dab33cfe6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
69e9a0c345 dev-manual; brief-yoctoprojectqs: Updated checkout branch example
Added the "yocto-2.6.2" tag to the example output since that
will be part of the overal list when 2.7 releases.

(From yocto-docs rev: 4863284811ad459cb0193528d5686a1ec008bb3e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
415aa0577c sdk-manual: Removed all references to Eclipse
Took care of links as well.

(From yocto-docs rev: a338dc13ebbcdc77fb16e36f12eb5f0e1e05187f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
05818e63ed sdk-manual: Removed all references to Eclipse
One Neon appendix completely removed.  One other chapter
removed that held the latest version of Eclipse use
removed.  A figure was also removed.

(From yocto-docs rev: 03524fc363f9232a2ed45d10688ddeb0439b0917)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
714a44f98c ref-manual: Removed all references to Eclipse
Links updated as needed.

(From yocto-docs rev: acd5a75314b023f613be24b7512f991f8455e325)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
3864d7a963 profile-manual: Removed all references to Eclipse
One figure was removed and files modified.

(From yocto-docs rev: f5d7024c3c38bc7737894a5ad4b750d4d633f173)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
b0054db73d overview-manual: Removed all references to Eclipse
I also fixed all linking as needed.

(From yocto-docs rev: f987bc2846a2356a58934164652bb1dc59623b3b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
81fb14b1f7 dev-manual: Removed all references to Eclipse.
I also fixed all linking as needed.

(From yocto-docs rev: c8d10a924a3a4ae76e8fc26ebcba52ea04f2f267)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
28a32af4c2 mega-manual: Removed the Eclipse chapters
Two chapters formerly in the sdk-manual were included when
the mega-manual makes.  These chapters are no longer
needed.

(From yocto-docs rev: a4e76a30baba5ab1d8f9783bb2a329d136600126)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
58c2c88237 poky.ent: Removed Eclipse related variables.
(From yocto-docs rev: dc8942cf48cd322c3f125b3ec14817c43ca0322a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
9aa27ab99d mega-manual, overview-manual: Added updated index releases figure
The index-downloads.png file changes due to "eclipse" no
longer being there.  Both the overview-manual and the
mega-manual figures folders hold this figure.

(From yocto-docs rev: ef7b8dd8d636ef0ad563d1fe1ef44227f5f89fbc)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
1f4a2688fc mega-manual: Removed two Eclipse figures from tarball list
Eclipse is no longer supported.  We do not need thes figures
as they would no longer exist.

(From yocto-docs rev: efcfb5a62fcacdc606b8485da809bdf6aa19a5f3)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
360cf77304 Documentation: Removed customization.xsl files for Eclipse
The help files for YP manuals used in the Eclipse application
are no longer supported.  I removed the individual
*-customization.xsl files for the individual YP manuals.

(From yocto-docs rev: 8c19244298b2c95ac92a398a5b6d3aca788f075e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Scott Rifenbark
4a37c34963 Makefile: Removed Eclipse support
Updated the file so that Eclipse help for YP manuals is
not generated.  Updated comments to remove examples of
Eclipse.

(From yocto-docs rev: db62b107e82a9d6fad619b03d57e807b3a617afd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:30:37 +01:00
Philippe Normand
09dea32f47 gnutls: Use ca-certificates as default trust store file
Since version 2.58 the glib-networking TLS database relies on GnuTLS's system
trust store, so not enabling it leads to TLS errors in applications depending on
glib-networking. The raised runtime warning is:

process:500): GLib-Net-WARNING **: 09:14:09.321: Failed to load TLS database: Failed to load system trust store: GnuTLS was not configured with a system trust
(app:490): ... TLS Error: TLS certificate  has unknown CA.

(From OE-Core rev: 1d147be584d2f016853edbe9751247d7daa0b5d0)

(From OE-Core rev: 712c78984c891e6357e1b1dc414431fb6c226c49)

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>
2019-06-18 11:28:58 +01:00
Chen Qi
08dcc9965b systemd: avoid musl specific patches affect glibc systems
systemd upstream only care about glibc. We made musl specific
patches so that systemd could work. But currently these patches
contain potential security issues.

So apply these patches only when the libc is musl.

(From OE-Core rev: 2ebd3398578c339e17b44b3ae5483cec1d0c7e7d)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Martin Jansa
3e6fa6f4a7 bc: use u-a for bc as well
* bc can be provided by busybox as well (e.g. if you have your own
  defconfig and forget to explicitly disable it:
  ...
  *
  * Miscellaneous Utilities
  *
  adjtimex (4.7 kb) (ADJTIMEX) [N/y/?] n
  bbconfig (9.7 kb) (BBCONFIG) [N/y/?] n
  bc (45 kb) (BC) [Y/n/?] (NEW) dc (36 kb) (DC) [Y/n/?] y
    Use bc code base for dc (larger, more features) (FEATURE_DC_BIG) [Y] (NEW) y
      Interactive mode (+4kb) (FEATURE_BC_INTERACTIVE) [Y/n/?] (NEW)     Enable bc/dc long options (FEATURE_BC_LONG_OPTIONS) [Y/n] (NEW) beep (2.4 kb) (BEEP) [N/y/?] n
  chat (6.3 kb) (CHAT) [N/y/?] n
  conspy (10 kb) (CONSPY) [N/y/?] n
  ...
  ), causing conflict in u-a:

  update-alternatives: Error: not linking /usr/bin/bc to /bin/busybox.nosuid since /usr/bin/bc exists and is not a link

  and then whole do_rootfs or do_populate_sdk to fail because busybox postinst is failing:

  do_populate_sdk: 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: 99df89a2ee7fb4c896224b68ffbe0aad03c39601)

Signed-off-by: Martin Jansa <Martin.Jansa@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>
2019-06-18 11:28:58 +01:00
Martin Jansa
8dae576eed grub-efi-cfg, systemd-boot-cfg: use MACHINE_ARCH
* both use KERNEL_IMAGETYPE variable which is MACHINE specific
* fixes:

  === Comparing signatures for task do_configure.sigdata between hammerhead and mako ===
  ERROR: grub-bootconf different signature for task do_configure.sigdata between hammerhead and mako
  basehash changed from 710332f3ec15670302dd690708730c9e418d53790ce36d6a91b049ae4f7069b1 to c9a46e58b4634b5fd47d20683f8320e15f5c4cb7628e3a62ed97d8528d7aabd2
  Variable KERNEL_IMAGETYPE value changed from 'zImage-dtb' to 'zImage'

  ERROR: systemd-bootconf different signature for task do_configure.sigdata between hammerhead and mako
  basehash changed from 2abbaf6d7760696fbf1ff5df5705239b475ccbf6f0c831fc4031984c0ce0e9f2 to 24f1e7886dee02b04bc180acc1c946ad82ce842655e5a5f4a8006f4a8490f985
  Variable KERNEL_IMAGETYPE value changed from 'zImage-dtb' to 'zImage'

  detected with:
  openembedded-core/scripts/sstate-diff-machines.sh --targets=world --tmpdir=tmp-glibc/ --analyze --machines="hammerhead mako qemux86"

(From OE-Core rev: 48be24d80989e03ad84f4f9d0c8ff51b1f6c070b)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Adrian Freihofer
a4fbf37542 qemurunner: fix undefined variable
While hacking on this I got an Exception. It's better to define
variables also in python.

Signe:-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
(From OE-Core rev: 7c604a62356538de660835bd2d3ba26beccd810d)

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>
2019-06-18 11:28:58 +01:00
Armin Kuster
51cd0fdd08 logparser: Add LTP compliance section
(From OE-Core rev: 386795d14c23d2e4084563c6234779b90e4d400f)

Signed-off-by: Armin Kuster <akuster808@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>
2019-06-18 11:28:58 +01:00
Armin Kuster
2b408be157 logparser: Add decoding ltp logs
(From OE-Core rev: 8c0a03c24248bf69e9c8c0f2d949ff79efc9c71e)

Signed-off-by: Armin Kuster <akuster808@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>
2019-06-18 11:28:58 +01:00
Kevin Hao
cd00120aea oeqa/utils/qemurunner: Set both the threadport&serverport with tcpserial parameter
After the commit ad522ea6a6 ("runqemu: Let qemuparams override default
settings"), the order of the two "-serial" parameters when running the
qemu have been switched. The effect of this is that the logging thread
will use ttyS1 (of course can't capture the kernel boot message anymore),
and the test command will run on the ttyS0. So the output of the test
command may be mangled by the kernel message (such as call trace), and
let the test command produce a fake timeout error message. We can't fix
it by just adjusting the order of the threadport and serverport, since
it will break some machines such as qemuarm64 which use the virtio
serial. So using the tcpserial to setup both the threadport and
serverport.

[YOCTO Bug 13309]

(From OE-Core rev: 1ffea0c0fb3688f3cee0a5fa741e969581d01bd3)

Signed-off-by: Kevin Hao <kexin.hao@windriver.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>
2019-06-18 11:28:58 +01:00
Kevin Hao
22b3ff061a runqemu: Add the support to pass multi ports to tcpserial parameter
In some cases(such as the oeqa's qemurunner), we need to setup multi
serial devices via the '-serial 127.0.0.1:xx" and the order of them
is significant. The mixing use of "tcpserial" and "-serial 127.0.0.1:xx"
cause ambiguous issues and we can't fix it by only adjusting the order
of them. So add the support to pass multi ports to the tcpserial
parameter, this will make sure that the order of setting up the serial
is really what we want.

[YOCTO Bug 13309]

(From OE-Core rev: db4b0530841d4d1407b48e262b7255b3f5a186ab)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixes qemuppc hang in warrior]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Jon Mason
0ab13d1a2c resulttool: Remove prints if no tests occur
Printing the lack of a test is not necessary (per feedback).  Remove
this from the template to quieten it.

(From OE-Core rev: 2e34b73b97154dd136881f214db8001f9b6a9934)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
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>
2019-06-18 11:28:58 +01:00
sangeeta jain
6d26364a7e resulttool/manualexecution: Enable creation of test case configuration
Allow the creation of test case configuration file based on user inputs.
Where this testcase configuration file will be used by the the manual
execution to run selected test cases for a module rather than compulsory
run all test cases in manual json file.

(From OE-Core rev: 2ab748e4d8e4c64571f51d5e090b723b93dd5c5d)

Signed-off-by: sangeeta jain <sangeeta.jain@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>
2019-06-18 11:28:58 +01:00
Jon Mason
bdc1b24bc2 resulttool: modify to be multi-machine
Currently, the code will sum all of the different machine results into a
single report of the tests results.  This can lead to confusion as to
which machine may be experiencing issues.  Modify the code to store the
results in a per machine basis and report them accordingly.

(From OE-Core rev: 7ba5a0af31605eaf91eb75b5f673f4caf81361dc)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
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>
2019-06-18 11:28:58 +01:00
Armin Kuster
5523c5a7e5 resulttool: add LTP compliance section
(From OE-Core rev: 0188ada3f40f21637b8cde00dd7c634416e01ddb)

Signed-off-by: Armin Kuster <akuster808@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>
2019-06-18 11:28:58 +01:00
Armin Kuster
937b52a310 resulttool: add ltp test support
(From OE-Core rev: 60e5b81d90a3a0bcaad6ea407d9aebdc99d4a80b)

Signed-off-by: Armin Kuster <akuster808@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>
2019-06-18 11:28:58 +01:00
Richard Purdie
913df0de35 meta/lib+scripts: Convert to SPDX license headers
This adds SPDX license headers in place of the wide assortment of things
currently in our script headers. We default to GPL-2.0-only except for the
oeqa code where it was clearly submitted and marked as MIT on the most part
or some scripts which had the "or later" GPL versioning.

The patch also drops other obsolete bits of file headers where they were
encoountered such as editor modelines, obsolete maintainer information or
the phrase "All rights reserved" which is now obsolete and not required in
copyright headers (in this case its actually confusing for licensing as all
rights were not reserved).

More work is needed for OE-Core but this takes care of the bulk of the scripts
and meta/lib directories.

The top level LICENSE files are tweaked to match the new structure and the
SPDX naming.

(From OE-Core rev: 3248a9e3c5a197321b1c4417509b9309cc3bae97)

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>
2019-06-18 11:28:58 +01:00
Armin Kuster
f3457dfbc3 ltp_compliance: add new runtime
test runtimes in sec.
AIO: 14
MEM: 94
MSG: 89
SEM: 30
SIG: 194
THR: 399
TMR: 867
TPS: 23

(From OE-Core rev: 2ad81e503afdde2711ccc54942e83fce02f4cbe5)

Signed-off-by: Armin Kuster <akuster808@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>
2019-06-18 11:28:58 +01:00
Armin Kuster
acf1e0b1fe ltp: add runtime test
This adds the framework for running ltp tests.

Here are some times:
math: 61
syscalls: 3957
dio: 18472
io: 29
mm: 551
ipc: 48
sched: 165
nptl: 46
pty: 37
containers: 52
controllers: 9625
filecaps: 27
cap_bounds: 27
fcntl-locktests: 29
connectors: 27
timers: 37
commands: 165
net.ipv6_lib: 30
input: 29
fs_perms_simple: 31
fs: 3476
fsx: 30
fs_bind: 28
fs_ext4: 28
cve: 675

(From OE-Core rev: 2a5767f584c159f4711afc5a01ee740d44c94d02)

Signed-off-by: Armin Kuster <akuster808@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>
2019-06-18 11:28:58 +01:00
Bruce Ashfield
7b96f74d8f linux-yocto: ptest: Add SCSI debug configuration for util-linux
Bumping the SRCREVs to pickup the following configuration tweak for
ptest usage:

  Author: Mariano López <just.another.mariano@gmail.com>
  Date:   Sat Jun 1 17:30:46 2019 -0500

      Add SCSI debug configuration for util-linux ptest

      The ptests from util-linux require the scsi debug module to be installed
      for a subset of tests. This patch would allow to build the kernel module
      for the linux-yocto kernel.

      Signed-off-by: Mariano López <just.another.mariano@gmail.com>

(From OE-Core rev: a071fd05912b80d8cc37d059fb8b245c550d4992)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Hongxu Jia
b52e36d0b4 lib/oe/reciputils.py: support character `+' in git pv
While pv contains char `+' (such as ncurses 6.1+20181013),
it was incorrectly converted to `6.1'

In this commit:
- Convert [^\+]* to .*?
  Support pv to contain char `+' and not greedy match
  (Such as ncurses 6.1+20181013)

- Add [^\+] to sfx match
  Support sfx contains extra chars between `+' and `git'
  (such as asciidoc "8.6.9+py3-gitAUTOINC+618f6e6f6b")

- Make sfx and rev greedy match

Run `devtool check-upgrade-status --all' in poky and compare results,
only one difference on ncurses version:
Without the commit:
INFO: ncurses                   6.1             6.1+20181013    Hongxu Jia <hongxu.jia@windriver.com> 7a97a7f937762ba342d5b2fd7cd090885a809835

With the commit:
INFO: ncurses                   6.1+20181013    MATCH           Hongxu Jia <hongxu.jia@windriver.com> 7a97a7f937762ba342d5b2fd7cd090885a809835

(From OE-Core rev: 65e2b1a2333a2268f4ee7de6a20cb13ec697b50e)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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>
2019-06-18 11:28:58 +01:00
Bruce Ashfield
a4d030aa98 linux-yocto/5.0: fix systemtap on arm
The following commit is part of 5.0.17+:

    ARM: fix function graph tracer and unwinder dependencies

    [ Upstream commit 503621628b32782a07b2318e4112bd4372aa3401 ]

    Naresh Kamboju recently reported that the function-graph tracer crashes
    on ARM. The function-graph tracer assumes that the kernel is built with
    frame pointers.

    We explicitly disabled the function-graph tracer when building Thumb2,
    since the Thumb2 ABI doesn't have frame pointers.

    We recently changed the way the unwinder method was selected, which
    seems to have made it more likely that we can end up with the function-
    graph tracer enabled but without the kernel built with frame pointers.

    Fix up the function graph tracer dependencies so the option is not
    available when we have no possibility of having frame pointers, and
    adjust the dependencies on the unwinder option to hide the non-frame
    pointer unwinder options if the function-graph tracer is enabled.

    Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
    Tested-by: Masami Hiramatsu <mhiramat@kernel.org>
    Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

As such, we no longer have UNWINDER_ARM enabled in our ARM builds by
default, since we do have FUNCTION_GRAPH_TRACER enabled in the common
ftrace configuration.

We disable FUNCTION_GRAPH_TRACER for ARM, which allows UNWINDER_ARM to
remain enabled and hence systemtap work out of the box for our ARM
reference builds. Obviously, BSPs or other users of the fragments can
make a different decision, but we chose unwinder to be on by default.

(From OE-Core rev: 00eae0b83bc0d30b8164874a534d561190c78362)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Bruce Ashfield
00926f84e1 linux-yocto-rt/5.0: update to -rt11
Updating the 5.0 -rt to -rt11, which comprises the following commits:

   9c1e84c9b81b v5.0.19-rt11
   c4258b70deda workqueue: rework
   2a0f03c9daff softirq: rework
   cb38c9a00313 Revert "drm/i915/fence: Do not use TIMER_IRQSAFE"
   0ffa8402bf10 clocksource: TCLIB: Add proper depend
   6a2ecc186d9a arm: imx6: cpuidle: Use raw_spinlock_t
   c302271409c2 locking/lockdep: Don't complain about incorrect name for no validate class
   4042bcac2c90 v5.0.19-rt10
   d6ad4a85a911 genirq: Handle missing work_struct in irq_set_affinity_notifier()

(From OE-Core rev: 500d7f5e86d19a70e58924e949b2017ebfbb3396)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Bruce Ashfield
47a9bab4d8 linux-yocto/5.0: update to v5.0.19
Integrating the korg -stable updates that comprise the following
commits:

   3f7c1cab1a61 Linux 5.0.19
   64d314bd8cc8 fbdev: sm712fb: fix memory frequency by avoiding a switch/case fallthrough
   e5c6d75b0f03 bpf, lru: avoid messing with eviction heuristics upon syscall lookup
   b5f95aa7a88b bpf: add map_lookup_elem_sys_only for lookups from syscall side
   d811930f74ac bpf: relax inode permission check for retrieving bpf program
   ca7ef7e3ddfa driver core: Postpone DMA tear-down until after devres release for probe failure
   bad4fbe76cfb md/raid: raid5 preserve the writeback action after the parity check
   3770eb3721be Revert "Don't jump to compute_result state from check_result state"
   07116a6548c8 perf/x86/intel: Fix race in intel_pmu_disable_event()
   58d1e074c742 perf cs-etm: Always allocate memory for cs_etm_queue::prev_packet
   cd448c27b08e perf bench numa: Add define for RUSAGE_THREAD if not present
   7325696ce261 i2c: designware: ratelimit 'transfer when suspended' errors
   8258661858d5 ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour
   5b73764a5d2c KVM: selftests: make hyperv_cpuid test pass on AMD
   fb654d0763c8 KVM: fix KVM_CLEAR_DIRTY_LOG for memory slots of unaligned size
   497ce5c7f538 x86/mm/mem_encrypt: Disable all instrumentation for early SME setup
   96f0be982c8a sched/cpufreq: Fix kobject memleak
   2a9605f177f8 iwlwifi: mvm: check for length correctness in iwl_mvm_create_skb()
   df5eba5f41be qmi_wwan: new Wistron, ZTE and D-Link devices
   bd61ddd3e9fc bpf: Fix preempt_enable_no_resched() abuse
   bd3713424a01 tools: bpftool: fix infinite loop in map create
   1e61a219090f power: supply: sysfs: prevent endless uevent loop with CONFIG_POWER_SUPPLY_DEBUG
   e6ae43922897 KVM: arm/arm64: Ensure vcpu target is unset on reset failure
   5450811a02f5 net: ieee802154: fix missing checks for regmap_update_bits
   15f64f420bae mac80211: Fix kernel panic due to use of txq after free
   eff6d5429bd2 x86: kvm: hyper-v: deal with buggy TLB flush requests from WS2012
   48be4d7ced2c PCI: Fix issue with "pci=disable_acs_redir" parameter being ignored
   fa42fde1f8e6 apparmorfs: fix use-after-free on symlink traversal
   cf0259f7662a securityfs: fix use-after-free on symlink traversal
   04aa8a51e723 power: supply: cpcap-battery: Fix division by zero
   38a725dd0be7 KVM: PPC: Book3S: Protect memslots while validating user address
   eec0c746757b KVM: PPC: Book3S HV: Perserve PSSCR FAKE_SUSPEND bit on guest exit
   f3adb80bb243 clk: sunxi-ng: nkmp: Avoid GENMASK(-1, 0)
   791746a758e7 ARC: PAE40: don't panic and instead turn off hw ioc
   30bd4585bf14 xfrm4: Fix uninitialized memory read in _decode_session4
   79fad8fd2b76 xfrm: Honor original L3 slave device in xfrmi policy lookup
   ff7fa2c801bc esp4: add length check for UDP encapsulation
   4e8ce2680442 xfrm: clean up xfrm protocol checks
   6c0db1cbf772 vti4: ipip tunnel deregistration fixes.
   f8a427ca50d6 xfrm6_tunnel: Fix potential panic when unloading xfrm6_tunnel module
   70a87327025a xfrm: Reset secpath in xfrm failure
   9531aac1ee3e xfrm: policy: Fix out-of-bound array accesses in __xfrm_policy_unlink
   07a573c046c0 fuse: Add FOPEN_STREAM to use stream_open()
   560c6fd312c9 dm mpath: always free attached_handler_name in parse_path()
   96ecf4c59f08 dm integrity: correctly calculate the size of metadata area
   ecff1441aa15 dm crypt: move detailed message into debug level
   862a78341ade dm delay: fix a crash when invalid device is specified
   fab2e96c6be0 dm zoned: Fix zone report handling
   ef3f84246954 dm cache metadata: Fix loading discard bitset
   6c412dc3b757 PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratum
   d06a30b1a957 PCI: Factor out pcie_retrain_link() function
   4f22ec9f0c28 PCI: rcar: Add the initialization of PCIe link in resume_noirq()
   fbd9c6ef0dfc PCI/AER: Change pci_aer_init() stub to return void
   be361ee757b8 PCI: Init PCIe feature bits for managed host bridge alloc
   adb00a68d2dd PCI: Reset Lenovo ThinkPad P50 nvgpu at boot if necessary
   2e4017e3ddfd PCI: Mark Atheros AR9462 to avoid bus reset
   4ddfb43373ca PCI: Mark AMD Stoney Radeon R7 GPU ATS as broken
   1fbec8aa02f3 fbdev: sm712fb: fix crashes and garbled display during DPMS modesetting
   620a97786fd6 fbdev: sm712fb: use 1024x768 by default on non-MIPS, fix garbled display
   b2adbace369e fbdev: sm712fb: fix support for 1024x768-16 mode
   d119b4a43e53 fbdev: sm712fb: fix crashes during framebuffer writes by correctly mapping VRAM
   39045ad5a808 fbdev: sm712fb: fix boot screen glitch when sm712fb replaces VGA
   4badede3e74b fbdev: sm712fb: fix white screen of death on reboot, don't set CR3B-CR3F
   62463c4661f1 fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75
   2a5d31230505 fbdev: sm712fb: fix brightness control on reboot, don't set SR30
   cfe31930dac8 fbdev/efifb: Ignore framebuffer memmap entries that lack any memory types
   a816dc52fe77 x86/mpx, mm/core: Fix recursive munmap() corruption
   9d50a05607a7 objtool: Allow AR to be overridden with HOSTAR
   93dbb5304b51 MIPS: perf: Fix build with CONFIG_CPU_BMIPS5000 enabled
   822e8c43b08a perf intel-pt: Fix sample timestamp wrt non-taken branches
   14f3460ed499 perf intel-pt: Fix improved sample timestamp
   23abb1eed2ee perf intel-pt: Fix instructions sampling rate
   c82da3e43ce1 memory: tegra: Fix integer overflow on tick value calculation
   dda71c1663c8 tracing: probeevent: Fix to make the type of $comm string
   95142e28042b tracing: Fix partial reading of trace event's id file
   9dba717a8156 ftrace/x86_64: Emulate call function while updating in breakpoint handler
   2a1069824a5c x86_64: Allow breakpoints to emulate call instructions
   16e559791d6b x86_64: Add gap to int3 to allow for call emulation
   69fc24195198 ceph: flush dirty inodes before proceeding with remount
   43cc8d378ca0 iommu/tegra-smmu: Fix invalid ASID bits on Tegra30/114
   d79e6a726acb gcc-plugins: arm_ssp_per_task_plugin: Fix for older GCC < 6
   0e83f9e5ce46 ovl: fix missing upper fs freeze protection on copy up for ioctl
   bf076fd44bd6 fuse: honor RLIMIT_FSIZE in fuse_file_fallocate
   79d8f6321221 fuse: fix writepages on 32bit
   12db517f8a3e udlfb: introduce a rendering mutex
   0bd143ed4109 udlfb: fix sleeping inside spinlock
   02851943751d udlfb: delete the unused parameter for dlfb_handle_damage
   855e2af24ab5 clk: rockchip: fix wrong clock definitions for rk3328
   317e574eaf6d clk: mediatek: Disable tuner_en before change PLL rate
   b5f7027a6f79 clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider
   87b083dbdd8f clk: hi3660: Mark clk_gate_ufs_subsys as critical
   3c1f44469d83 PNFS fallback to MDS if no deviceid found
   73e0d62f16ec NFS4: Fix v4.0 client state corruption when mount
   1aa8f89cf5ad RDMA/ipoib: Allow user space differentiate between valid dev_port
   90ebb540a7b1 RDMA/mlx5: Use get_zeroed_page() for clock_info
   2132baff7e0f media: imx: Clear fwnode link struct for each endpoint iteration
   7543aeaf9331 media: imx: csi: Allow unknown nearest upstream entities
   8a6a542635fe media: ov6650: Fix sensor possibly not detected on probe
   252f74c15935 phy: ti-pipe3: fix missing bit-wise or operator when assigning val
   921bb3e9be5b cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_level()
   6c65b5a9d829 brcmfmac: Add DMI nvram filename quirk for ACEPC T8 and T11 mini PCs
   e15c901c9b1f of: fix clang -Wunsequenced for be32_to_cpu()
   a1243cd45745 p54: drop device reference count if fails to enable device
   24cb69043d68 intel_th: msu: Fix single mode with IOMMU
   86901d0a34ab dcache: sort the freeing-without-RCU-delay mess for good.
   cb259d53313c md: add a missing endianness conversion in check_sb_changes
   ceaae3df28ef md: add mddev->pers to avoid potential NULL pointer dereference
   3d8c54fb4b8f md: batch flush requests.
   dfbe4d1af4b3 Revert "MD: fix lock contention for flush bios"
   be2bcbeda06b proc: prevent changes to overridden credentials
   e2d95e6022f9 brd: re-enable __GFP_HIGHMEM in brd_insert_page()
   019da3cf8d2d stm class: Fix channel bitmap on 32-bit systems
   e52484d4b315 stm class: Fix channel free in stm output free path
   7a76effe2dea parisc: Rename LEVEL to PA_ASM_LEVEL to avoid name clash with DRBD code
   e2d87b36a59b parisc: Use PA_ASM_LEVEL in boot code
   fac8648ec7ce parisc: Allow live-patching of __meminit functions
   62c78938e3ee parisc: Add memory barrier to asm pdc and sync instructions
   81641f9c6039 parisc: Skip registering LED when running in QEMU
   f4a05c586c3a parisc: Add memory clobber to TLB purges
   52b905433b0d parisc: Export running_on_qemu symbol for modules
   5b3b51fe5bef regulator: core: fix error path for regulator_set_voltage_unlocked
   97346dda2c99 blk-mq: free hw queue's resource in hctx's release handler
   860dde8d0962 mm/gup: Remove the 'write' parameter from gup_fast_permitted()
   b80fc1eed537 net/mlx5e: Fix ethtool rxfh commands when CONFIG_MLX5_EN_RXNFC is disabled
   5125c4d4cfca net/mlx5: Imply MLXFW in mlx5_core
   ac5465716ae6 net/mlx5e: Additional check for flow destination comparison
   e3e09b07aab6 net/mlx5e: Add missing ethtool driver info for representors
   5048d03fa137 vsock/virtio: Initialize core virtio vsock before registering the driver
   ac01b87ed3ec tipc: fix modprobe tipc failed after switch order of device registration
   51adb8ebe8c1 vsock/virtio: free packets during the socket release
   3f48a2fa3d79 tipc: switch order of device registration to fix a crash
   0501b80b158a rtnetlink: always put IFLA_LINK for links with a link-netnsid
   4d4b20738489 ppp: deflate: Fix possible crash in deflate_init
   ebf4338d96e9 nfp: flower: add rcu locks when accessing netdev for tunnels
   d818a94975ed net: usb: qmi_wwan: add Telit 0x1260 and 0x1261 compositions
   18b3bb2503b4 net: test nouarg before dereferencing zerocopy pointers
   4e6d54b16a89 net/mlx4_core: Change the error print to info print
   708c22fedf0c net: avoid weird emergency message
   145708e7d94c net: Always descend into dsa/
   6c8566ebb5f1 ipv6: prevent possible fib6 leaks
   aed9be48191f ipv6: fix src addr routing with the exception table
   8614793dbb41 Linux 5.0.18
   3dacabb35d7f ext4: don't update s_rev_level if not required
   18f59db712ce ext4: fix compile error when using BUFFER_TRACE
   593ddcbac4a4 s390/mm: convert to the generic get_user_pages_fast code
   97249a2034b6 s390/mm: make the pxd_offset functions more robust
   4999174b1a77 iov_iter: optimize page_copy_sane()
   6e52e4b6cf50 libnvdimm/namespace: Fix label tracking error
   63e54af2e570 xen/pvh: correctly setup the PV EFI interface for dom0
   a1c5c7476db0 xen/pvh: set xen_domain_type to HVM in xen_pvh_init
   9339434bdbb4 kbuild: turn auto.conf.cmd into a mandatory include file
   d71c6a4b31db KVM: lapic: Busy wait for timer to expire when using hv_timer
   fae3b156b196 KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes
   87e61d57ae37 KVM: Fix the bitmap range to copy during clear dirty
   295a7bd172d2 jbd2: fix potential double free
   a5f8b69097a3 ALSA: hda/realtek - Fix for Lenovo B50-70 inverted internal microphone bug
   20f6e5999787 ALSA: hda/realtek - Fixup headphone noise via runtime suspend
   5ddcddba1be6 ALSA: hda/realtek - Corrected fixup for System76 Gazelle (gaze14)
   ec9ff0dd9829 ext4: avoid panic during forced reboot due to aborted journal
   297a39c6528c ext4: fix use-after-free in dx_release()
   256e27da8b62 ext4: fix data corruption caused by overlapping unaligned and aligned IO
   7f3b711cbf54 ext4: zero out the unused memory region in the extent tree block
   bde5b8473bd3 tty: Don't force RISCV SBI console as preferred console
   549b0b8a9479 fs/writeback.c: use rcu_barrier() to wait for inflight wb switches going into workqueue when umount
   f7fea7c067fb crypto: ccm - fix incompatibility between "ccm" and "ccm_base"
   638fffb11c93 ipmi:ssif: compare block number correctly for multi-part return messages
   bfc6980ff235 bcache: never set KEY_PTRS of journal key to 0 in journal_reclaim()
   5fa31fabc628 bcache: fix a race between cache register and cacheset unregister
   0e56cc24df1a Btrfs: fix race between send and deduplication that lead to failures and crashes
   0565f46b75e4 Btrfs: do not start a transaction at iterate_extent_inodes()
   d48e71659e07 Btrfs: do not start a transaction during fiemap
   e7fb540d6a06 Btrfs: send, flush dellaloc in order to avoid data loss
   b9ee62718749 btrfs: Honour FITRIM range constraints during free space trim
   4afdd2d2afbb btrfs: Correctly free extent buffer in case btree_read_extent_buffer_pages fails
   1a6e5f745b57 btrfs: Check the first key and level for cached extent buffer
   f325062756d0 ext4: fix ext4_show_options for file systems w/o journal
   91bf9123ce86 ext4: actually request zeroing of inode table after grow
   715f547a6299 ext4: fix use-after-free race with debug_want_extra_isize
   310aea022196 ext4: avoid drop reference to iloc.bh twice
   7db933229f64 ext4: ignore e_value_offs for xattrs with value-in-ea-inode
   7dfca4b97693 ext4: make sanity check in mballoc more strict
   39108bea309d jbd2: check superblock mapped prior to committing
   033b15ff6b92 tty/vt: fix write/write race in ioctl(KDSKBSENT) handler
   770e812bbc1d tty: vt.c: Fix TIOCL_BLANKSCREEN console blanking if blankinterval == 0
   9537358c9452 mtd: maps: Allow MTD_PHYSMAP with MTD_RAM
   969859b87f8b mtd: maps: physmap: Store gpio_values correctly
   8a2c3433b51b mtd: spi-nor: intel-spi: Avoid crossing 4K address boundary on read/write
   ed824ff290d3 mfd: max77620: Fix swapped FPS_PERIOD_MAX_US values
   12061d7ce0ee mfd: da9063: Fix OTP control register names to match datasheets for DA9063/63L
   966e7ae49bee ACPI: PM: Set enable_for_wake for wakeup GPEs during suspend-to-idle
   09ceb529c4ac userfaultfd: use RCU to free the task struct when fork fails
   3f26c01c4001 ocfs2: fix ocfs2 read inode data panic in ocfs2_iget
   f989305d02a4 hugetlb: use same fault hash key for shared and private mappings
   6720e0bc50e9 mm/hugetlb.c: don't put_page in lock of hugetlb_lock
   ff191b1d827d mm/huge_memory: fix vmf_insert_pfn_{pmd, pud}() crash, handle unaligned addresses
   535ca6f75ddb mm/mincore.c: make mincore() more conservative
   b5b076649d2e crypto: ccree - handle tee fips error during power management resume
   2380a8464ee1 crypto: ccree - add function to handle cryptocell tee fips error
   22a44b51f2e0 crypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend
   f1a7dc5d0e46 crypto: ccree - pm resume first enable the source clk
   4a807bab1431 crypto: ccree - don't map AEAD key and IV on stack
   a1cb31fd79be crypto: ccree - use correct internal state sizes for export
   3ff036422024 crypto: ccree - don't map MAC key on stack
   2e1679f6a1d0 crypto: ccree - fix mem leak on error path
   23a072df0482 crypto: ccree - remove special handling of chained sg
   8efcdb781463 bpf, arm64: remove prefetch insn in xadd mapping
   fd049ce703c3 ASoC: codec: hdac_hdmi add device_link to card device
   519511e47f79 ASoC: fsl_esai: Fix missing break in switch statement
   94748513d811 ASoC: RT5677-SPI: Disable 16Bit SPI Transfers
   dccbcc8060c8 ASoC: max98090: Fix restore of DAPM Muxes
   b2c90ad71e00 ALSA: hdea/realtek - Headset fixup for System76 Gazelle (gaze14)
   0a1cf4fdc58b ALSA: hda/realtek - EAPD turn on later
   98ffad31068d ALSA: hda/hdmi - Consider eld_valid when reporting jack event
   787d1c606f1a ALSA: hda/hdmi - Read the pin sense from register when repolling
   bc3c4c9e00b0 ALSA: usb-audio: Fix a memory leak bug
   592b655a306b ALSA: line6: toneport: Fix broken usage of timer for delayed execution
   978e70ead670 mmc: sdhci-pci: Fix BYT OCP setting
   56f590e2e30a mmc: core: Fix tag set memory leak
   1ea20c66648a mmc: tegra: fix ddr signaling for non-ddr modes
   4ea5e92a20b9 crypto: arm64/aes-neonbs - don't access already-freed walk.iv
   b51455e5493a crypto: arm/aes-neonbs - don't access already-freed walk.iv
   86d478d06696 crypto: caam/qi2 - generate hash keys in-place
   fd2830991e56 crypto: caam/qi2 - fix DMA mapping of stack memory
   0eaed393b4ec crypto: caam/qi2 - fix zero-length buffer DMA mapping
   86add9b56835 crypto: rockchip - update IV buffer to contain the next IV
   8d9cdf34aaf9 crypto: gcm - fix incompatibility between "gcm" and "gcm_base"
   246ef445e015 crypto: arm64/gcm-aes-ce - fix no-NEON fallback code
   47a9de26eb06 crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest()
   8eb6266c8eb1 crypto: crct10dif-generic - fix use via crypto_shash_digest()
   043e69dd7fef crypto: skcipher - don't WARN on unprocessed data after slow walk step
   2c0f409ba69c crypto: vmx - fix copy-paste error in CTR mode
   8d02b83b332b crypto: ccp - Do not free psp_master when PLATFORM_INIT fails
   fdcd8b3b745e crypto: chacha20poly1305 - set cra_name correctly
   d6d54c7c59c6 crypto: chacha-generic - fix use as arm64 no-NEON fallback
   0a348941ad06 crypto: lrw - don't access already-freed walk.iv
   25f1509c739f crypto: salsa20 - don't access already-freed walk.iv
   fb7261b31a2c crypto: crypto4xx - fix cfb and ofb "overran dst buffer" issues
   3149ac3ef4e6 crypto: crypto4xx - fix ctr-aes missing output IV
   5404a6ff7458 x86/MCE/AMD: Don't report L1 BTB MCA errors on some family 17h models
   ad09c6ef2dcb x86/MCE: Group AMD function prototypes in <asm/mce.h>
   b05237350b4a x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk
   e6b8b66f965e x86/MCE/AMD: Turn off MC4_MISC thresholding on all family 0x15 models
   993a6595b253 x86/MCE: Add an MCE-record filtering function
   52176123f9cb sched/x86: Save [ER]FLAGS on context switch
   d81b4ae57fe9 arm64: Save and restore OSDLR_EL1 across suspend/resume
   bd254f9d1157 arm64: Clear OSDLR_EL1 on CPU boot
   a184f8889306 arm64: compat: Reduce address limit
   e57320e0177a arm64: arch_timer: Ensure counter register reads occur with seqlock held
   32e802d947ca arm64: mmap: Ensure file offset is treated as unsigned
   38a6f722c01a power: supply: axp288_fuel_gauge: Add ACEPC T8 and T11 mini PCs to the blacklist
   a4e41f047a3e power: supply: axp288_charger: Fix unchecked return value
   fe3f22b7084d ARM: exynos: Fix a leaked reference by adding missing of_node_put
   a6bc3bfb8206 mmc: sdhci-of-arasan: Add DTS property to disable DCMDs.
   bf6cb21717f4 ARM: dts: exynos: Fix audio (microphone) routing on Odroid XU3
   de42e519cbee ARM: dts: exynos: Fix interrupt for shared EINTs on Exynos5260
   3ea393bb1ca4 ARM: dts: qcom: ipq4019: enlarge PCIe BAR range
   5d6fa0370c51 arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller.
   5414a4761988 arm64: dts: rockchip: fix IO domain voltage setting of APIO5 on rockpro64
   8c1134ff70df objtool: Fix function fallthrough detection
   bc19bb7d8d10 x86/speculation/mds: Improve CPU buffer clear documentation
   d2214ccfecb5 x86/speculation/mds: Revert CPU buffer clear on double fault exit
   bfcac7872252 locking/rwsem: Prevent decrement of reader count before increment

(From OE-Core rev: 02ee58ba18a0393ce372f4fe9d4860ccaaaa9486)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Bruce Ashfield
5f4b34f258 linux-yocto-rt/5.0: update to -rt9
Updating linux-yocto-rt to -rt9, which comprises the following commits:

   cc66f1b95af7 (HEAD -> v5.0/standard/preempt-rt/base) v5.0.14-rt9
   96957f0ca4a4 sched/completion: Fix a lockup in wait_for_completion()
   7108dfc6c002 iommu/dma-iommu: Remove iommu_dma_map_msi_msg()
   50e9a302a12e irqchip/gic-v3-mbi: Don't map the MSI page in mbi_compose_m{b, s}i_msg()
   4a4c41f25d90 irqchip/ls-scfg-msi: Don't map the MSI page in ls_scfg_msi_compose_msg()
   e6549dc52874 irqchip/gic-v3-its: Don't map the MSI page in its_irq_compose_msi_msg()
   21ab1a505f71 irqchip/gicv2m: Don't map the MSI page in gicv2m_compose_msi_msg()
   5c7e7ee1155f iommu/dma-iommu: Split iommu_dma_map_msi_msg() in two parts
   ed562a120218 genirq/msi: Add a new field in msi_desc to store an IOMMU cookie
   8269017c7c71 x86/fpu: Fault-in user stack if copy_fpstate_to_sigframe() fails
   834de13e9df3 v5.0.14-rt8
   60a1f2741b0b v5.0.10-rt7
   5cbcfdaf619f clocksource: improve Atmel TCB timer driver
   dde28bc12270 x86/ima: Check EFI_RUNTIME_SERVICES before using
   c02d0b49cf87 printk: kmsg_dump: remove mutex usage
   b4ccebf15704 locking/rwsem: Rename rwsem_rt.h to rwsem-rt.h
   d5758ba7a93e x86/fpu: Remove unnecessary saving of FPU registers in copy_fpstate_to_sigframe()
   e16351073c50 x86/fpu: Fault-in user stack if copy_fpstate_to_sigframe() fails
   14ff99cb7d48 v5.0.10-rt6
   843445383127 v5.0.7-rt5
   e886711e0449 drm/i915: Don't disable interrupts independently of the lock
   69e41e29c6ad clocksource: improve Atmel TCB timer driver
   c2e266f415d0 x86: load FPU registers on return to userland (Update to v9)
   4be2fd56d44f v5.0.7-rt4
   6fb29acc8efe (origin/v5.0/standard/preempt-rt/base) genirq: Prevent use-after-free and work list corruption on rt

(From OE-Core rev: ce049f94f31d5b4776c4b41f9c5da716791cc4ac)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Bruce Ashfield
72e9f0db70 linux-yocto/5.0: update to v5.0.17
Integrating the korg -stable commits that comprise the following
changes:

   d59f5a01fa43 Linux 5.0.17
   ba686f90778b f2fs: Fix use of number of devices
   78b8c59eee72 PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(), if necessary
   f20f463b32bc PCI: hv: Add hv_pci_remove_slots() when we unload the driver
   d3a9cd23b172 PCI: hv: Fix a memory leak in hv_eject_device_work()
   7f9572e798ea virtio_ring: Fix potential mem leak in virtqueue_add_indirect_packed
   ba81b50090a4 powerpc/booke64: set RI in default MSR
   0da52ad69b37 powerpc/powernv/idle: Restore IAMR after idle
   d314437d17ad powerpc/book3s/64: check for NULL pointer in pgd_alloc()
   79e981a8503f drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
   1a84219f73b2 drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
   8b8fc62b6c67 isdn: bas_gigaset: use usb_fill_int_urb() properly
   12786188dcf3 flow_dissector: disable preemption around BPF calls
   39f7b3941969 net: phy: fix phy_validate_pause
   4a91e5e4c58f tuntap: synchronize through tfiles array instead of tun->numqueues
   e0630246658a tuntap: fix dividing by zero in ebpf queue selection
   92edcf205388 vrf: sit mtu should not be updated when vrf netdev is the link
   13d54150e746 vlan: disable SIOCSHWTSTAMP in container
   83c25477e944 tipc: fix hanging clients using poll with EPOLLOUT flag
   be6a9818866d selinux: do not report error on connect(AF_UNSPEC)
   c3954f8f5a7e packet: Fix error path in packet_init
   7bc936f4f226 net: ucc_geth - fix Oops when changing number of buffers in the ring
   57ee33b48190 net: seeq: fix crash caused by not set dev.parent
   224b04c9e028 net: macb: Change interrupt and napi enable order in open
   a3bf31d7ffb2 net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering
   261a8958a57e net: dsa: Fix error cleanup path in dsa_init_module
   2f679c41821f ipv4: Fix raw socket lookup for local traffic
   f8351176aed6 fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied
   e4607de103ba dpaa_eth: fix SG frame cleanup
   430a64f6fa2c bridge: Fix error path for kobject_init_and_add()
   69798384ba38 bonding: fix arp_validate toggling in active-backup mode
   d3ff0184ebd2 Don't jump to compute_result state from check_result state
   843135c1ce1e rtlwifi: rtl8723ae: Fix missing break in switch statement
   14654a1f2e2b mwl8k: Fix rate_idx underflow
   202436fe0810 cw1200: fix missing unlock on error in cw1200_hw_scan()
   92a9787bb38c drm/rockchip: fix for mailbox read validation.
   5b4ef3c5faf9 net: mvpp2: fix validate for PPv2.1
   45e1075e04cb net: sched: fix cleanup NULL pointer exception in act_mirr
   4b84cde61ce9 bpf: only test gso type on gso packets
   073d8f286f34 mm/page_alloc.c: avoid potential NULL pointer dereference
   61fadd8a5000 mm/memory_hotplug.c: drop memory device reference after find_memory_block()
   59c58e43e80f RDMA/hns: Bugfix for mapping user db
   26f70c4e0aef gpio: Fix gpiochip_add_data_with_key() error path
   fb53ebc9eb9a net: vrf: Fix operation not supported when set vrf mac
   ec69b3c91b3b Input: synaptics-rmi4 - fix possible double free
   6a2abf951ed3 Input: snvs_pwrkey - make it depend on ARCH_MXC
   21a3f7c2c76c drm/sun4i: Unbind components before releasing DRM and memory
   f79084e5372b Revert "drm/virtio: drop prime import/export callbacks"
   2455f6cbd19b ceph: handle the case where a dentry has been renamed on outstanding req
   d3a9275364d9 spi: ST ST95HF NFC: declare missing of table
   943609acd628 spi: Micrel eth switch: declare missing of table
   4c6df58231f8 ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled
   dc41fe5d6fb5 ARM: fix function graph tracer and unwinder dependencies
   0cb06e339cee drm/imx: don't skip DP channel disable for background plane
   7680e881fdaa gpu: ipu-v3: dp: fix CSC handling
   28e4593bb148 arm64/module: ftrace: deal with place relative nature of PLTs
   d0f8faa2f540 dmaengine: bcm2835: Avoid GFP_KERNEL in device_prep_slave_sg
   d4dc7d99b111 netfilter: fix nf_l4proto_log_invalid to log invalid packets
   ddb632889fae netfilter: never get/set skb->tstamp
   226ef4f27a45 selftests/net: correct the return value for run_afpackettests
   1a20185157b5 selftests/net: correct the return value for run_netsocktests
   2d83e90c2375 of_net: Fix residues after of_get_nvmem_mac_address removal
   7ba51c0e84b3 drm/sun4i: Fix component unbinding and component master deletion
   3000bdec55c8 drm/sun4i: Set device driver data at bind time for use in unbind
   1330679d64f8 s390: ctcm: fix ctcm_new_device error return code
   143c8279955e IB/mlx5: Fix scatter to CQE in DCT QP creation
   b3a64096c5ee MIPS: perf: ath79: Fix perfcount IRQ assignment
   ecef50c35a07 netfilter: nat: fix icmp id randomization
   c2987d193f8b netfilter: nf_tables: prevent shift wrap in nft_chain_parse_hook()
   b0a90cae081d netfilter: ctnetlink: don't use conntrack/expect object addresses as id
   a3a5ad78488b ipvs: do not schedule icmp errors from tunnels
   44fbb3db2bde selftests: netfilter: check icmp pkttoobig errors are set as related
   16b01614d369 drm: bridge: dw-hdmi: Fix overflow workaround for Rockchip SoCs
   5bc0352515ef init: initialize jump labels before command line option parsing
   57c2301fc9c9 mm: fix inactive list balancing between NUMA nodes and cgroups
   47d1b202e325 mm/hotplug: treat CMA pages as unmovable
   247e9fe2f4ad slab: store tagged freelist for off-slab slabmgmt
   4176e671a44e scsi: aic7xxx: fix EISA support
   e9697ba264c2 perf tools: Fix map reference counting
   d39036685e22 ocelot: Don't sleep in atomic context (irqs_disabled())
   d7200d0648e5 ipmi: ipmi_si_hardcode.c: init si_type array to fix a crash
   d2ae8127d693 perf top: Always sample time to satisfy needs of use of ordered queuing
   9b2395e2bfec tools lib traceevent: Fix missing equality check for strcmp
   b053700b6ce9 KVM: x86: avoid misreporting level-triggered irqs as edge-triggered in tracing
   7cee96602903 KVM: fix spectrev1 gadgets
   ac0cd21ff7f3 KVM: nVMX: always use early vmcs check when EPT is disabled
   ad0b4845927e x86/reboot, efi: Use EFI reboot for Acer TravelMate X514-51T
   47155c33761e x86/mm: Prevent bogus warnings with "noexec=off"
   e011d319f736 x86/build/lto: Fix truncated .bss with -fdata-sections
   5a8306e3b433 s390/pkey: add one more argument space for debug feature entry
   7a96a56eea04 drm/amd/display: If one stream full updates, full update all planes
   e3a41f93e337 qed: Fix the DORQ's attentions handling
   47ef1bab8d1d qed: Fix missing DORQ attentions
   deb2cc51dd52 qed: Fix the doorbell address sanity check
   2de1573a5ed9 qed: Delete redundant doorbell recovery types
   775e0e613250 afs: Fix in-progess ops to ignore server-level callback invalidation
   35d71b00267e afs: Unlock pages for __pagevec_release()
   f4faab6c9034 qede: fix write to free'd pointer error and double free of ptp
   40990109952a vxge: fix return of a free'd memblock on a failed dma mapping
   4230787c0655 mISDN: Check address length before reading address family
   2d56b3f53ac8 drm/amdgpu: shadow in shadow_list without tbo.mem.start cause page fault in sriov TDR
   bf4b7bc690e3 selftests: fib_tests: Fix 'Command line is not complete' errors
   b1e68de7659a clocksource/drivers/oxnas: Fix OX820 compatible
   641a9b94456d clocksource/drivers/npcm: select TIMER_OF
   44d7638b3934 drm/amd/display: extending AUX SW Timeout
   6661203b4210 drm/ttm: fix dma_fence refcount imbalance on error path
   1e1bdaca091e s390/3270: fix lockdep false positive on view->lock
   adefea883c1f tools/testing/nvdimm: Retain security state after overwrite
   40af621fefdb libnvdimm/pmem: fix a possible OOB access when read and write pmem
   7547c20fdd1c libnvdimm/security: provide fix for secure-erase to use zero-key
   8f2e6b8c9b0b nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands
   0e36c8ed2d52 mac80211: fix memory accounting with A-MSDU aggregation
   c93951de3ecb cfg80211: Handle WMM rules in regulatory domain intersection
   7c7345f1cad8 mac80211: Increase MAX_MSG_LEN
   0c077b14bdc0 mac80211: fix unaligned access in mesh table hash function
   9d02fc4b7789 s390/dasd: Fix capacity calculation for large volumes
   181518b8eb4e libnvdimm/btt: Fix a kmemdup failure check
   f744a5e31a47 HID: input: add mapping for "Toggle Display" key
   0e56b93040c2 HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys
   c64e4d22342c HID: input: add mapping for Expose/Overview key
   e42bcea02b46 libnvdimm/namespace: Fix a potential NULL pointer dereference
   469cc616e03c acpi/nfit: Always dump _DSM output payload
   a9189a36d66e iio: adc: xilinx: prevent touching unclocked h/w on remove
   1fc0aeddc0b7 iio: adc: xilinx: fix potential use-after-free on probe
   fc92e97e24df iio: adc: xilinx: fix potential use-after-free on remove
   a41382ca99e8 USB: serial: fix unthrottle races
   b5f2cb384e11 virt: vbox: Sanity-check parameter types for hgcm-calls coming from userspace
   a16532b59cca kernfs: fix barrier usage in __kernfs_new_node()
   0748cf2d9d1c selftests/seccomp: Handle namespace failures gracefully
   5c3c0ffa9d74 hwmon: (occ) Fix extended status bits
   a91e668131ad hwmon: (pwm-fan) Disable PWM if fetching cooling data fails
   b9d31180294a platform/x86: dell-laptop: fix rfkill functionality
   22c8b3235eb2 platform/x86: thinkpad_acpi: Disable Bluetooth for some machines
   8fb172181a29 platform/x86: sony-laptop: Fix unintentional fall-through
   54c140c5b614 bfq: update internal depth state when queue depth changes
   89e11ec0280b Linux 5.0.16
   f8bb2589227b x86/speculation/mds: Fix documentation typo
   14e3ad8a1452 Documentation: Correct the possible MDS sysfs values
   0acbbdf3e41d x86/mds: Add MDSUM variant to the MDS documentation
   4cf168a94fd5 x86/speculation/mds: Add 'mitigations=' support for MDS
   394e3d8de828 s390/speculation: Support 'mitigations=' cmdline option
   f905727fa11c powerpc/speculation: Support 'mitigations=' cmdline option
   bd600de16b82 x86/speculation: Support 'mitigations=' cmdline option
   6d7407ef9272 cpu/speculation: Add 'mitigations=' cmdline option
   c2b25b6b3582 x86/speculation/mds: Print SMT vulnerable on MSBDS with mitigations off
   3f7fe4ad1f62 x86/speculation/mds: Fix comment
   9cd62662dd7e x86/speculation/mds: Add SMT warning message
   c98b736e763d x86/speculation: Move arch_smt_update() call to after mitigation decisions
   fb49e1bb2061 x86/speculation/mds: Add mds=full,nosmt cmdline option
   08831a92501f Documentation: Add MDS vulnerability documentation
   ab8e3e63f23e Documentation: Move L1TF to separate directory
   31fd0223449e x86/speculation/mds: Add mitigation mode VMWERV
   3944139ce828 x86/speculation/mds: Add sysfs reporting for MDS
   0174e8984c2d x86/speculation/mds: Add mitigation control for MDS
   d9117863c521 x86/speculation/mds: Conditionally clear CPU buffers on idle entry
   100087c08030 x86/kvm/vmx: Add MDS protection when L1D Flush is not active
   481871997e37 x86/speculation/mds: Clear CPU buffers on exit to user
   a5a8ef7cd7c9 x86/speculation/mds: Add mds_clear_cpu_buffers()
   87f96d5e7525 x86/kvm: Expose X86_FEATURE_MD_CLEAR to guests
   78157c977674 x86/speculation/mds: Add BUG_MSBDS_ONLY
   ea3d1b32b86e x86/speculation/mds: Add basic bug infrastructure for MDS
   019159aec4b7 x86/speculation: Consolidate CPU whitelists
   26c0aff1ad63 x86/msr-index: Cleanup bit defines
   7b13756d2c32 Linux 5.0.15
   41d7bb19aa31 arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP
   3b928b59fae0 locking/futex: Allow low-level atomic operations to return -EAGAIN
   be4b9a303a25 i3c: Fix a shift wrap bug in i3c_bus_set_addr_slot_status()
   4b1f2ad28fe1 ASoC: Intel: avoid Oops if DMA setup fails
   987722984163 UAS: fix alignment of scatter/gather segments
   349bb9138b3a Bluetooth: hci_bcm: Fix empty regulator supplies for Intel Macs
   41d5f23ef17b Bluetooth: Fix not initializing L2CAP tx_credits
   2c93762f4b38 Bluetooth: Align minimum encryption key size for LE and BR/EDR connections
   1c1727f4b948 Bluetooth: hidp: fix buffer overflow
   69d6687a5c66 scsi: qla2xxx: Fix device staying in blocked state
   aee2053554ea scsi: qla2xxx: Fix incorrect region-size setting in optrom SYSFS routines
   45076c8e403a scsi: lpfc: change snprintf to scnprintf for possible overflow
   185e58d16ac8 soc: sunxi: Fix missing dependency on REGMAP_MMIO
   34ebc8ad2ea4 ACPI / LPSS: Use acpi_lpss_* instead of acpi_subsys_* functions for hibernate
   61ae16c4586b cpufreq: armada-37xx: fix frequency calculation for opp
   573a935bfb4f iio: adc: qcom-spmi-adc5: Fix of-based module autoloading
   284af2788432 intel_th: pci: Add Comet Lake support
   704eaf49399f usb-storage: Set virt_boundary_mask to avoid SG overflows
   bba2feefcacd USB: cdc-acm: fix unthrottle races
   5b1c70f36832 USB: serial: f81232: fix interrupt worker not stop
   083a8f69962a usb: dwc3: Fix default lpm_nyet_threshold value
   9092861ce665 usb: dwc3: Allow building USB_DWC3_QCOM without EXTCON
   70a44a01f8a4 genirq: Prevent use-after-free and work list corruption
   b5dbb4058183 iommu/amd: Set exclusion range correctly
   6610c1785f70 perf/core: Fix perf_event_disable_inatomic() race
   a5f62d2c15a2 NFSv4.1 fix incorrect return value in copy_file_range
   a3aa7cab0fc2 platform/x86: pmc_atom: Drop __initconst on dmi table
   e6f2733f48cb nvmet: fix discover log page when offsets are used
   ea359038ab73 nvme-fc: correct csn initialization and increments on error
   407bb38bf3f7 nvme: cancel request synchronously
   e62732d12bd9 blk-mq: introduce blk_mq_complete_request_sync()
   e81f9ca291ac virtio-blk: limit number of hw queues by nr_cpu_ids
   677713b1254f ALSA: hda: Fix racy display power access
   7c7450aa9838 ASoC: stm32: sai: fix master clock management
   60ec4c3d39be ASoC: Intel: kbl: fix wrong number of channels
   c79f5a7a3559 drm/mediatek: no change parent rate in round_rate() for MT2701 hdmi phy
   718254750661 drm/mediatek: using new factor for tvdpll for MT2701 hdmi phy
   5b82d95ac6fe drm/mediatek: remove flag CLK_SET_RATE_PARENT for MT2701 hdmi phy
   273ed6c20cb5 drm/mediatek: make implementation of recalc_rate() for MT2701 hdmi phy
   4b112e5e6af9 drm/mediatek: fix the rate and divder of hdmi phy for MT2701
   a873474c769a drm/mediatek: fix possible object reference leak
   3051b6a1a14a scsi: csiostor: fix missing data copy in csio_scsi_err_handler()
   353392e5b9a5 KEYS: trusted: fix -Wvarags warning
   6fb3aa5d7307 RDMA/hns: Fix bug that caused srq creation to fail
   f4d87f9b027a RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove
   3fa40c30fe4c virtio_pci: fix a NULL pointer reference in vp_del_vqs
   e0696fe3c10f drm/sun4i: tcon top: Fix NULL/invalid pointer dereference in sun8i_tcon_top_un/bind
   09c5ad16c22c slab: fix a crash by reading /proc/slab_allocators
   ad74ab443e30 objtool: Add rewind_stack_do_exit() to the noreturn list
   fa42760cf276 ASoC: cs35l35: Disable regulators on driver removal
   c577757d294e drm/amd/display: fix cursor black issue
   4b5f2b0ce17c drm/amdgpu: amdgpu_device_recover_vram always failed if only one node in shadow_list
   f528dbeec017 drm/amdgpu: Adjust IB test timeout for XGMI configuration
   255063992678 drm/amdkfd: Add picasso pci id
   2f0ec100032e ASoC: rockchip: pdm: fix regmap_ops hang issue
   dfa9efe42df2 xtensa: fix initialization of pt_regs::syscall in start_thread
   9680a806201d iov_iter: Fix build error without CONFIG_CRYPTO
   2e94d4e8f2b9 linux/kernel.h: Use parentheses around argument in u64_to_user_ptr()
   bae9b6b98342 perf/x86/intel: Initialize TFA MSR
   9bd3e66587f5 perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS
   83f3ed3b4bde drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()
   693d72f920e7 ASoC: tlv320aic32x4: Fix Common Pins
   e904a8b14895 MIPS: KGDB: fix kgdb support for SMP platforms.
   59188acd0c7d IB/hfi1: Fix the allocation of RSM table
   a3270ed43389 IB/hfi1: Eliminate opcode tests on mr deref
   1f9f22f6c7d6 IB/hfi1: Clear the IOWAIT pending bits when QP is put into error state
   a2fdb5d19477 drm/omap: hdmi4_cec: Fix CEC clock handling for PM
   08aa8be65b52 ASoC: dapm: Fix NULL pointer dereference in snd_soc_dapm_free_kcontrol
   15d326f9548b ASoC: cs4270: Set auto-increment bit for register writes
   1be14f5da0b1 ASoC: stm32: dfsdm: fix debugfs warnings on entry creation
   9baa2f8ab758 ASoC: stm32: dfsdm: manage multiple prepare
   5bff91d2a18f clk: meson-gxbb: round the vdec dividers to closest
   b2b47cecd2ce ASoC: wm_adsp: Add locking to wm_adsp2_bus_error
   9fb991d9cf50 ASoC: rt5682: recording has no sound after booting
   b2cb6f8f307b ASoC: rt5682: fix jack type detection issue
   8425db671440 ASoC: rt5682: Check JD status when system resume
   3f60f8813be9 ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate
   b44509a152a3 ASoC: nau8810: fix the issue of widget with prefixed name
   6c4a8ae4baa6 ASoC: nau8824: fix the issue of the widget with prefix name
   f4f4303c6d54 ASoC: dpcm: prevent snd_soc_dpcm use after free
   71ec072682ff ASoC:intel:skl:fix a simultaneous playback & capture issue on hda platform
   ad8af1f8d26e ASoC:hdac_hda:use correct format to setup hda codec
   30d948ac01d9 ASoC:soc-pcm:fix a codec fixup issue in TDM case
   6872cfa57c42 ASoC: stm32: sai: fix race condition in irq handler
   b329de3769b0 ASoC: stm32: sai: fix exposed capabilities in spdif mode
   27162c8fdfb9 ASoC: stm32: sai: fix iec958 controls indexation
   aba1a357cd90 ASoC: hdmi-codec: fix S/PDIF DAI
   045c73ba325d ASoC: tlv320aic3x: fix reset gpio reference counting
   ce3a072f275a staging: most: sound: pass correct device when creating a sound card
   2dbcc037de1a staging: most: cdev: fix chrdev_region leak in mod_exit
   3f57fef02fa7 staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context.
   9cccac4ee35f staging: greybus: power_supply: fix prop-descriptor request size
   9fe5b8e9d4c2 ubsan: Fix nasty -Wbuiltin-declaration-mismatch GCC-9 warnings
   7c03a3534d24 Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
   634424f63373 net: stmmac: Use bfsize1 in ndesc_init_rx_desc

(From OE-Core rev: 69e6a1b936739db71a4c6ca9d5c1e245b4caf1f0)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Bruce Ashfield
c229a6ec49 kernel: package modules.builtin.modinfo
As of commit 898490c010b [moduleparam: Save information about built-in
modules in separate file] (kernels v5.2-rc1+), modules.builtin.modinfo
is generated as part of the kernel build process.

We package it along with the other module artifacts, so it can be used
by scripts/other build steps.

(From OE-Core rev: 3cd5e794dc562eb2cca1592c709886473c233acf)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:58 +01:00
Bruce Ashfield
3825e3dfd7 linux-yocto/4.19: update to v4.19.44
Integrating the korg -stable updates that comprise the following
commits:

   dafc674bbcb1 Linux 4.19.44
   9fa23ea14e8f PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(), if necessary
   76888d135c4e PCI: hv: Add hv_pci_remove_slots() when we unload the driver
   a47e0054253f PCI: hv: Fix a memory leak in hv_eject_device_work()
   4179b8580219 powerpc/booke64: set RI in default MSR
   71b20cdb4353 powerpc/powernv/idle: Restore IAMR after idle
   69c2b71cb0c1 powerpc/book3s/64: check for NULL pointer in pgd_alloc()
   e9ec5073c90d drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
   ee3b53d89967 drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
   afa485dc6f17 tipc: fix hanging clients using poll with EPOLLOUT flag
   98652e0b0a1b isdn: bas_gigaset: use usb_fill_int_urb() properly
   17d8a9ebaa99 tuntap: synchronize through tfiles array instead of tun->numqueues
   9c79732f98a8 tuntap: fix dividing by zero in ebpf queue selection
   737713e6d835 vrf: sit mtu should not be updated when vrf netdev is the link
   e38406070729 vlan: disable SIOCSHWTSTAMP in container
   dfdfad3d188f selinux: do not report error on connect(AF_UNSPEC)
   9f51d6f72063 packet: Fix error path in packet_init
   2e95eb9c92f7 net: ucc_geth - fix Oops when changing number of buffers in the ring
   210057b79e71 net: seeq: fix crash caused by not set dev.parent
   dfd919285f27 net: macb: Change interrupt and napi enable order in open
   68df8383f3ca net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering
   9284895b7ee6 net: dsa: Fix error cleanup path in dsa_init_module
   da2e770f0c4a ipv4: Fix raw socket lookup for local traffic
   947fec630c41 fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied
   c7b5e55be825 dpaa_eth: fix SG frame cleanup
   a79feef32392 bridge: Fix error path for kobject_init_and_add()
   9c2cda31196a bonding: fix arp_validate toggling in active-backup mode
   0dc9ad4e904d powerpc/64s: Include cpu header
   db1b4aa651df um: Don't hardcode path as it is architecture dependent
   85f347944a6b Don't jump to compute_result state from check_result state
   ace28a8efdd4 rtlwifi: rtl8723ae: Fix missing break in switch statement
   d756d1dea670 mwl8k: Fix rate_idx underflow
   c300c98a94b4 cw1200: fix missing unlock on error in cw1200_hw_scan()
   575260507647 x86/kprobes: Avoid kretprobe recursion bug
   322a57551d06 nfc: nci: Potential off by one in ->pipes[] array
   f5e60565e6bd NFC: nci: Add some bounds checking in nci_hci_cmd_received()
   21e9515b7d16 net: strparser: partially revert "strparser: Call skb_unclone conditionally"
   85b9e8694f9c net/tls: fix the IV leaks
   e38c6748d1cc mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
   835ae6cc28d9 mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered workqueue
   880a328e197b mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
   a80f62f781c2 mlxsw: spectrum_switchdev: Add MDB entries in prepare phase
   fb7c783b3139 net: fec: manage ahb clock in runtime pm
   c18731c2786c netfilter: nf_tables: add missing ->release_ops() in error path of newrule()
   5014aa937422 netfilter: nf_tables: use-after-free in dynamic operations
   9965da064e9a usb: typec: Fix unchecked return value
   68321994225d mm/memory.c: fix modifying of page protection by insert_pfn()
   bc3361461fcb net: dsa: mv88e6xxx: fix few issues in mv88e6390x_port_set_cmode
   19f4f94fdb2a powerpc/smp: Fix NMI IPI xmon timeout
   f8bd34d1d399 powerpc/smp: Fix NMI IPI timeout
   6a60fb62c82a mm/memory_hotplug.c: drop memory device reference after find_memory_block()
   fb67c97c4e2f RDMA/hns: Bugfix for mapping user db
   afc7cebbbb5e Input: synaptics-rmi4 - fix possible double free
   f621bc1bd7f4 drm/sun4i: Unbind components before releasing DRM and memory
   21b71e191bd8 spi: ST ST95HF NFC: declare missing of table
   09185e359827 spi: Micrel eth switch: declare missing of table
   3835cb5a911f ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled
   521ae4da71cc drm/imx: don't skip DP channel disable for background plane
   df3a97d197a3 gpu: ipu-v3: dp: fix CSC handling
   3a53fa469d60 netfilter: fix nf_l4proto_log_invalid to log invalid packets
   5bc3d4491821 selftests/net: correct the return value for run_netsocktests
   24b1c849ce9d drm/sun4i: Fix component unbinding and component master deletion
   1973df1ec5bc drm/sun4i: Set device driver data at bind time for use in unbind
   005325b7f026 s390: ctcm: fix ctcm_new_device error return code
   ca8648816e3d MIPS: perf: ath79: Fix perfcount IRQ assignment
   743a5a951d4d netfilter: nf_tables: prevent shift wrap in nft_chain_parse_hook()
   7b115755fb9d netfilter: ctnetlink: don't use conntrack/expect object addresses as id
   4e1994ef6365 ipvs: do not schedule icmp errors from tunnels
   cb9a11d017c6 selftests: netfilter: check icmp pkttoobig errors are set as related
   74e9b761fba0 init: initialize jump labels before command line option parsing
   6536de8232c8 mm: fix inactive list balancing between NUMA nodes and cgroups
   1134736869ef scsi: aic7xxx: fix EISA support
   ba87f547b0f7 ocelot: Don't sleep in atomic context (irqs_disabled())
   9e4fd5e0b81a ipmi: ipmi_si_hardcode.c: init si_type array to fix a crash
   7d4d8683e925 tools lib traceevent: Fix missing equality check for strcmp
   0c8afd514df0 KVM: x86: avoid misreporting level-triggered irqs as edge-triggered in tracing
   d39f3cc71382 KVM: fix spectrev1 gadgets
   4074bc379b1f x86/reboot, efi: Use EFI reboot for Acer TravelMate X514-51T
   3b51d71365e0 x86/build/lto: Fix truncated .bss with -fdata-sections
   8eb64692d6e2 s390/pkey: add one more argument space for debug feature entry
   e360515f41fc drm/amd/display: If one stream full updates, full update all planes
   58be7c109cea afs: Unlock pages for __pagevec_release()
   08f2c299b38c qede: fix write to free'd pointer error and double free of ptp
   090b74020014 vxge: fix return of a free'd memblock on a failed dma mapping
   f83beff28048 mISDN: Check address length before reading address family
   e4525c9d9ada selftests: fib_tests: Fix 'Command line is not complete' errors
   7828986b84ba clocksource/drivers/oxnas: Fix OX820 compatible
   6a414ef36840 clocksource/drivers/npcm: select TIMER_OF
   068d1cce7801 drm/amd/display: extending AUX SW Timeout
   2773e7454f4f s390/3270: fix lockdep false positive on view->lock
   4c8c9d514917 libnvdimm/pmem: fix a possible OOB access when read and write pmem
   f2565d0e5277 nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands
   1d918120e37d mac80211: fix memory accounting with A-MSDU aggregation
   9d4da01f7d66 cfg80211: Handle WMM rules in regulatory domain intersection
   35e2abbaffa2 mac80211: Increase MAX_MSG_LEN
   bbe1ab38e1a2 mac80211: fix unaligned access in mesh table hash function
   e28e5055eacd s390/dasd: Fix capacity calculation for large volumes
   af5b7a150ef8 libnvdimm/btt: Fix a kmemdup failure check
   f7ab4818f74e HID: input: add mapping for "Toggle Display" key
   bbdccc170adf HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys
   dc30867da997 HID: input: add mapping for Expose/Overview key
   e94f852e2034 libnvdimm/namespace: Fix a potential NULL pointer dereference
   5f72e3a021a6 acpi/nfit: Always dump _DSM output payload
   f07db1f1f54c iio: adc: xilinx: prevent touching unclocked h/w on remove
   6400212ae3b6 iio: adc: xilinx: fix potential use-after-free on probe
   06d5ea398e55 iio: adc: xilinx: fix potential use-after-free on remove
   5640d0781267 USB: serial: fix unthrottle races
   4c416eef65a7 virt: vbox: Sanity-check parameter types for hgcm-calls coming from userspace
   e361ccccdd51 kernfs: fix barrier usage in __kernfs_new_node()
   f1917f21c8f6 hwmon: (pwm-fan) Disable PWM if fetching cooling data fails
   87cc345aefc9 platform/x86: dell-laptop: fix rfkill functionality
   381eaca5017f platform/x86: thinkpad_acpi: Disable Bluetooth for some machines
   efe6802e812b platform/x86: sony-laptop: Fix unintentional fall-through
   824c212908b6 bfq: update internal depth state when queue depth changes
   3351e9d39947 Linux 4.19.43
   b21bde49d386 x86/speculation/mds: Fix documentation typo
   8e65568e9d23 Documentation: Correct the possible MDS sysfs values
   2e4c54890226 x86/mds: Add MDSUM variant to the MDS documentation
   12a0dad799fb x86/speculation/mds: Add 'mitigations=' support for MDS
   59a14fb5832c s390/speculation: Support 'mitigations=' cmdline option
   74857f69fec5 powerpc/speculation: Support 'mitigations=' cmdline option
   af5332dd991e x86/speculation: Support 'mitigations=' cmdline option
   8cb932aca5d6 cpu/speculation: Add 'mitigations=' cmdline option
   7ba793ae7b9f x86/speculation/mds: Print SMT vulnerable on MSBDS with mitigations off
   e9ae32266605 x86/speculation/mds: Fix comment
   b9faa4652867 x86/speculation/mds: Add SMT warning message
   b3a63d9c7453 x86/speculation: Move arch_smt_update() call to after mitigation decisions
   f7a119a762ef x86/speculation/mds: Add mds=full,nosmt cmdline option
   cfaa3d76301e Documentation: Add MDS vulnerability documentation
   e3803099d2f4 Documentation: Move L1TF to separate directory
   c50e81fe8a13 x86/speculation/mds: Add mitigation mode VMWERV
   8230c2028dce x86/speculation/mds: Add sysfs reporting for MDS
   2951067089a3 x86/speculation/mds: Add mitigation control for MDS
   4df98b3f3161 x86/speculation/mds: Conditionally clear CPU buffers on idle entry
   b39dc9a8cced x86/kvm/vmx: Add MDS protection when L1D Flush is not active
   e4fa775b5606 x86/speculation/mds: Clear CPU buffers on exit to user
   1f7c31be1e04 x86/speculation/mds: Add mds_clear_cpu_buffers()
   de89ff6f1674 x86/kvm: Expose X86_FEATURE_MD_CLEAR to guests
   aca9e8d8e2ce x86/speculation/mds: Add BUG_MSBDS_ONLY
   2e9104aa2633 x86/speculation/mds: Add basic bug infrastructure for MDS
   00b76324bd35 x86/speculation: Consolidate CPU whitelists
   e09450ffa980 x86/msr-index: Cleanup bit defines
   ca0056d97840 kvm: x86: Report STIBP on GET_SUPPORTED_CPUID
   1f1bc8222ce7 x86/cpu: Sanitize FAM6_ATOM naming
   34aae15cb179 Documentation/l1tf: Fix small spelling typo
   9c2556f428cf Linux 4.19.42
   9ccdbde1850c arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP
   0f4ef8fb1dae locking/futex: Allow low-level atomic operations to return -EAGAIN
   6fee39874d1f ASoC: Intel: avoid Oops if DMA setup fails
   c3b3955f0250 UAS: fix alignment of scatter/gather segments
   38f092c41ceb Bluetooth: Align minimum encryption key size for LE and BR/EDR connections
   c6d1f9b4b2cb Bluetooth: hidp: fix buffer overflow
   de7fe08b92dc scsi: qla2xxx: Fix device staying in blocked state
   ef7014d76361 scsi: qla2xxx: Fix incorrect region-size setting in optrom SYSFS routines
   7a793ca17357 scsi: lpfc: change snprintf to scnprintf for possible overflow
   8b330b3efa91 soc: sunxi: Fix missing dependency on REGMAP_MMIO
   557be5771563 cpufreq: armada-37xx: fix frequency calculation for opp
   6b7daf1ff8bf intel_th: pci: Add Comet Lake support
   5b2ba94386eb usb-storage: Set virt_boundary_mask to avoid SG overflows
   18e6f3027642 USB: cdc-acm: fix unthrottle races
   bce2b9d63786 USB: serial: f81232: fix interrupt worker not stop
   caa5680dc05a usb: dwc3: Fix default lpm_nyet_threshold value
   33f2aa87c294 genirq: Prevent use-after-free and work list corruption
   29184cbaaec0 iommu/amd: Set exclusion range correctly
   42638d6aae06 perf/core: Fix perf_event_disable_inatomic() race
   c1189d68be7d platform/x86: pmc_atom: Drop __initconst on dmi table
   777943cd6c5f nvme-fc: correct csn initialization and increments on error
   0e8e67b8147f virtio-blk: limit number of hw queues by nr_cpu_ids
   d955bb0b3189 ASoC: Intel: kbl: fix wrong number of channels
   e5c749ad6d7f drm/mediatek: fix possible object reference leak
   8f4dbd17777f scsi: csiostor: fix missing data copy in csio_scsi_err_handler()
   fb357b9eb47d RDMA/hns: Fix bug that caused srq creation to fail
   8dfb2896d8c7 RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove
   5984fd687600 virtio_pci: fix a NULL pointer reference in vp_del_vqs
   a8f5c1bceb25 drm/sun4i: tcon top: Fix NULL/invalid pointer dereference in sun8i_tcon_top_un/bind
   78bc98235e84 slab: fix a crash by reading /proc/slab_allocators
   cf6cb79d57b0 objtool: Add rewind_stack_do_exit() to the noreturn list
   e66e72710962 ASoC: cs35l35: Disable regulators on driver removal
   dd015a3b072a drm/amd/display: fix cursor black issue
   88294658ddbe ASoC: rockchip: pdm: fix regmap_ops hang issue
   95587274e9d5 linux/kernel.h: Use parentheses around argument in u64_to_user_ptr()
   7d10436ca569 perf/x86/intel: Initialize TFA MSR
   2b791e8ee7b2 perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS
   929d019d6d44 drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()
   0fb785e28833 ASoC: tlv320aic32x4: Fix Common Pins
   e6efcbf3cbce MIPS: KGDB: fix kgdb support for SMP platforms.
   09c6954e83e8 IB/hfi1: Fix the allocation of RSM table
   3abd4aef917f IB/hfi1: Eliminate opcode tests on mr deref
   1ed91af83a45 drm/omap: hdmi4_cec: Fix CEC clock handling for PM
   d356db088333 ASoC: dapm: Fix NULL pointer dereference in snd_soc_dapm_free_kcontrol
   6f69661f6ebe ASoC: cs4270: Set auto-increment bit for register writes
   8f5077ceee5f ASoC: stm32: dfsdm: fix debugfs warnings on entry creation
   33ffe0807d52 ASoC: stm32: dfsdm: manage multiple prepare
   74f5898f660d clk: meson-gxbb: round the vdec dividers to closest
   8aa62dc731e5 ASoC: wm_adsp: Add locking to wm_adsp2_bus_error
   2ece73fe079b ASoC: rt5682: recording has no sound after booting
   afcbb3c755c9 ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate
   7525d6104ca4 ASoC: nau8810: fix the issue of widget with prefixed name
   c2119de4ed41 ASoC: nau8824: fix the issue of the widget with prefix name
   29f1b9761520 ASoC:intel:skl:fix a simultaneous playback & capture issue on hda platform
   581a8bd9fa8b ASoC:soc-pcm:fix a codec fixup issue in TDM case
   c37f7344075a ASoC: stm32: sai: fix exposed capabilities in spdif mode
   2aeceaaff09b ASoC: stm32: sai: fix iec958 controls indexation
   6544b4966193 ASoC: hdmi-codec: fix S/PDIF DAI
   98a80393b82a ASoC: tlv320aic3x: fix reset gpio reference counting
   34ae4c6a3609 staging: most: cdev: fix chrdev_region leak in mod_exit
   2197e11bb624 staging: greybus: power_supply: fix prop-descriptor request size
   35d2c86db2d4 ubsan: Fix nasty -Wbuiltin-declaration-mismatch GCC-9 warnings
   eb7b8d1afb92 Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
   0f18e433b97b scsi: libsas: fix a race condition when smp task timeout
   e629cabe34ed net: stmmac: Use bfsize1 in ndesc_init_rx_desc
   21de7eb67cff Linux 4.19.41
   e7c2d066566b mm/kmemleak.c: fix unused-function warning
   5b94768bd07c ASoC: wm_adsp: Check for buffer in trigger stop
   c5c74e63985f media: v4l2: i2c: ov7670: Fix PLL bypass register values
   5f18c95d2964 i2c: i2c-stm32f7: Fix SDADEL minimum formula
   7a32cbf1720b x86/mm/tlb: Revert "x86/mm: Align TLB invalidation info"
   c48b027f2aa3 x86/mm: Fix a crash with kmemleak_scan()
   052c78f5cfe2 x86/mm/KASLR: Fix the size of the direct mapping section
   d572a3a03f63 clk: x86: Add system specific quirk to mark clocks as critical
   61ff44069f5b x86/mce: Improve error message when kernel cannot recover, p2
   c7e220eff874 powerpc/mm/hash: Handle mmap_min_addr correctly in get_unmapped_area topdown search
   a78c3898de59 mac80211: Honor SW_CRYPTO_CONTROL for unicast keys in AP VLAN mode
   574be221407e selinux: never allow relabeling on context mounts
   6b13ae52ac75 selinux: avoid silent denials in permissive mode under RCU walk
   53ffa56456fb gpio: mxc: add check to return defer probe if clock tree NOT ready
   a10c88bf365a Input: stmfts - acknowledge that setting brightness is a blocking call
   a99b9c82bde6 Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ
   8d5c1c039708 IB/core: Destroy QP if XRC QP fails
   841487432d11 IB/core: Fix potential memory leak while creating MAD agents
   dabcbe58d8bc IB/core: Unregister notifier before freeing MAD security
   d1698f74bdbd platform/x86: intel_pmc_core: Handle CFL regmap properly
   51e777c795ce platform/x86: intel_pmc_core: Fix PCH IP name
   d4f1e3ef9586 ASoC: stm32: fix sai driver name initialisation
   7d3f7107079b ASoC: wm_adsp: Correct handling of compressed streams that restart
   3b958d5e6972 ASoC: Intel: bytcr_rt5651: Revert "Fix DMIC map headsetmic mapping"
   9d696f405e6d scsi: RDMA/srpt: Fix a credit leak for aborted commands
   f16e83170e25 staging: iio: adt7316: fix the dac write calculation
   ad774285beee staging: iio: adt7316: fix the dac read calculation
   7041e3d6b81f staging: iio: adt7316: allow adt751x to use internal vref for all dacs
   2ccaef716388 clk: qcom: Add missing freq for usb30_master_clk on 8998
   8897bf03ec30 Bluetooth: mediatek: fix up an error path to restore bdev->tx_state
   f5ad05e680aa Bluetooth: btusb: request wake pin with NOAUTOEN
   3f8497cfff3b perf/x86/amd: Update generic hardware cache events for Family 17h
   96e4471d3881 block: pass no-op callback to INIT_WORK().
   14f3c36b47ed ARM: iop: don't use using 64-bit DMA masks
   39839f3ec616 ARM: orion: don't use using 64-bit DMA masks
   04b4d5f75ab0 fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
   a82cfd770651 xsysace: Fix error handling in ace_setup
   54ad0956ef93 sh: fix multiple function definition build errors
   b51fdcbe45d1 hugetlbfs: fix memory leak for resv_map
   6a62bbe82343 kmemleak: powerpc: skip scanning holes in the .bss section
   82e8da1f1a91 KVM: SVM: prevent DBG_DECRYPT and DBG_ENCRYPT overflow
   57186663b3a1 libcxgb: fix incorrect ppmax calculation
   5c5e9f23df7a net: hns: Fix WARNING when remove HNS driver with SMMU enabled
   c9f431017617 net: hns: fix ICMP6 neighbor solicitation messages discard problem
   1ff38d33d7c4 net: hns: Fix probabilistic memory overwrite when HNS driver initialized
   7713ee691767 net: hns: Use NAPI_POLL_WEIGHT for hns driver
   7e7befd8dee2 net: hns: fix KASAN: use-after-free in hns_nic_net_xmit_hw()
   98d6651f1878 arm64: fix wrong check of on_sdei_stack in nmi context
   69da58b7386c arm/mach-at91/pm : fix possible object reference leak
   8052c066e6d0 scsi: storvsc: Fix calculation of sub-channel count
   03260f46f2d1 scsi: core: add new RDAC LENOVO/DE_Series device
   4d043d3d2be1 vfio/pci: use correct format characters
   7ce0b428c046 HID: input: add mapping for Assistant key
   ce9e2dc03f63 rtc: da9063: set uie_unsupported when relevant
   e5be04ee1766 block: use blk_free_flush_queue() to free hctx->fq in blk_mq_init_hctx
   177edf25706a mfd: twl-core: Disable IRQ while suspended
   f0112b649525 debugfs: fix use-after-free on symlink traversal
   e22c11da0a86 jffs2: fix use-after-free on symlink traversal
   7cce2543cbcd net: stmmac: don't log oversized frames
   f86c1d3f10a2 net: stmmac: fix dropping of multi-descriptor RX frames
   0ab012e3df48 net: stmmac: don't overwrite discard_frame status
   2170bbf19f6e net: stmmac: don't stop NAPI processing when dropping a packet
   cd50daabf5ee net: stmmac: ratelimit RX error logs
   c13a936f46e3 net: stmmac: use correct DMA buffer size in the RX descriptor
   824451fdcfc2 bonding: show full hw address in sysfs for slave entries
   f91bb70a3616 net/mlx5: E-Switch, Fix esw manager vport indication for more vport commands
   7e0548e111e5 net: hns3: fix compile error
   6869dd570f10 HID: quirks: Fix keyboard + touchpad on Lenovo Miix 630
   bc031095828b riscv: fix accessing 8-byte variable from RV32
   0424b0b35793 igb: Fix WARN_ONCE on runtime suspend
   cc04b5b3314a reset: meson-audio-arb: Fix missing .owner setting of reset_controller_dev
   ef9533481c11 ARM: dts: rockchip: Fix gpu opp node names for rk3288
   894b4fc04387 batman-adv: fix warning in function batadv_v_elp_get_throughput
   7afe374cc718 batman-adv: Reduce tt_global hash refcnt only for removed entry
   6957021da735 batman-adv: Reduce tt_local hash refcnt only for removed entry
   be807f9b4fc4 batman-adv: Reduce claim hash refcnt only for removed entry
   8a734e251c0c rtc: sh: Fix invalid alarm warning for non-enabled alarm
   5b5c653ddf91 rtc: cros-ec: Fail suspend/resume if wake IRQ can't be configured
   2f4052ffd9be HID: debug: fix race condition with between rdesc_show() and device removal
   61effc648fe4 HID: logitech: check the return value of create_singlethread_workqueue
   dbfef4bd8836 arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay
   3e6b472f474a efi: Fix debugobjects warning on 'efi_rts_work'
   30673786f906 nvme-loop: init nvmet_ctrl fatal_err_work when allocate
   83c6688d679c USB: core: Fix bug caused by duplicate interface PM usage counter
   7b73c2a056b3 USB: core: Fix unterminated string returned by usb_string()
   7df0d2c7d092 usb: usbip: fix isoc packet num validation in get_pipe
   512ce15023a8 USB: dummy-hcd: Fix failure to give back unlinked URBs
   508954883054 USB: w1 ds2490: Fix bug caused by improper use of altsetting array
   9f632afe4f39 USB: yurex: Fix protection fault after device removal
   f02c6460a5b6 ALSA: hda/realtek - Apply the fixup for ASUS Q325UAR
   347411f9aded ALSA: hda/realtek - Fixed Dell AIO speaker noise
   f937634b6626 ALSA: hda/realtek - Add new Dell platform for headset mode
   b19c230648b5 i2c: Prevent runtime suspend of adapter when Host Notify is required
   04e07919f7da i2c: Allow recovery of the initial IRQ by an I2C client device.
   1e031ab31843 i2c: Clear client->irq in i2c_device_remove
   63eab25ed1cc i2c: Remove unnecessary call to irq_find_mapping
   e89ba70e10b2 i2c: imx: correct the method of getting private data in notifier_call
   d1493c5cbbad i2c: synquacer: fix enumeration of slave devices
   ec30811209e4 mac80211: don't attempt to rename ERR_PTR() debugfs dirs
   be7df63d3680 mwifiex: Make resume actually do something useful again on SDIO cards
   81a7534f9ef4 iwlwifi: fix driver operation for 5350

(From OE-Core rev: 25e25a0c7399f7a8c353f66c6a80f5e8723ee810)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:57 +01:00
Bruce Ashfield
5397d38aa1 linux-yocto/4.19: update to v4.19.40
Updating to the latest -stable release which comprises the following
changes:

   1656b1457209 Linux 4.19.40
   cc313d405b0c ath10k: Drop WARN_ON()s that always trigger during system resume
   d0a5000f10e7 ALSA: line6: use dynamic buffers
   68d49ff47789 KVM: nVMX: Fix size checks in vmx_set_nested_state
   499bbe739d5a KVM: x86: Whitelist port 0x7e for pre-incrementing %rip
   d0771bd41c27 net/tls: fix copy to fragments in reencrypt
   dd424182bc2d net/tls: don't copy negative amounts of data in reencrypt
   f1fd68e93409 bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
   396350737326 bnxt_en: Free short FW command HWRM memory in error path in bnxt_init_one()
   09a921361353 bnxt_en: Improve multicast address setup logic.
   6a57fa6fa7d5 packet: validate msg_namelen in send directly
   7a42cf4dfa43 selftests: fib_rule_tests: print the result and return 1 if any tests failed
   b563e9bbabfe sctp: avoid running the sctp state machine recursively
   fdd36abd9d09 rxrpc: Fix net namespace cleanup
   a976384b9553 net/tls: avoid NULL pointer deref on nskb->sk in fallback
   1d412d873a12 net: phy: marvell: Fix buffer overrun with stats counters
   b48a0a1207e9 net: dsa: bcm_sf2: fix buffer overflow doing set_rxnfc
   485f382f2c6d l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()
   e571a33963f4 l2ip: fix possible use-after-free
   f78ec0cd0664 ipv6: invert flowlabel sharing check in process and user mode
   39eddbb7cab3 ipv6/flowlabel: wait rcu grace period before put_pid()
   1a9e0134af40 ipv6: fix races in ip6_dst_destroy()
   7ea4f000c41f ipv6: A few fixes on dereferencing rt->from
   3f611a479962 ipv4: ip_do_fragment: Preserve skb_iif during fragmentation
   ad119c970bbe Linux 4.19.39
   ee096f0dc4a4 leds: trigger: netdev: use memcpy in device_name_store
   2663959af22c leds: pca9532: fix a potential NULL pointer dereference
   13a6a6dd3c11 ptrace: take into account saved_sigmask in PTRACE{GET,SET}SIGMASK
   71f3397a1c31 iommu/amd: Reserve exclusion range in iova-domain
   75a5e3e6340c kconfig/[mn]conf: handle backspace (^H) key
   458a65c71029 perf machine: Update kernel map address and re-order properly
   60d3b51d05a7 nvme-multipath: relax ANA state check
   a918af5b6fd8 gpio: of: Fix of_gpiochip_add() error path
   43dba153d52b libata: fix using DMA buffers on stack
   6a364b2e47a6 x86/mm: Don't exceed the valid physical address space
   a138f995ab84 scsi: zfcp: reduce flood of fcrscn1 trace records on multi-element RSCN
   97c4f3a8853c ceph: fix use-after-free on symlink traversal
   90ce58d457c2 usb: u132-hcd: fix resource leak
   fe71e625e23f x86/realmode: Don't leak the trampoline kernel address
   04cac1dce923 leds: trigger: netdev: fix refcnt leak on interface rename
   0018c21f34d6 usb: usb251xb: fix to avoid potential NULL pointer dereference
   4135e588274e scsi: qla4xxx: fix a potential NULL pointer dereference
   a2b302e4f2fb scsi: aacraid: Insure we don't access PCIe space during AER/EEH
   2c8c8ef8d3b4 scsi: mpt3sas: Fix kernel panic during expander reset
   6222f1c6ed97 ARM: davinci: fix build failure with allnoconfig
   5d545dde8d9d drm/meson: Uninstall IRQ handler
   efa69a66697c drm/meson: Fix invalid pointer in meson_drv_unbind()
   c87a5086d354 gpio: aspeed: fix a potential NULL pointer dereference
   c5eb9a424ebd drm: Fix drm_release() and device unplug
   11242181f52f net: ethernet: ti: fix possible object reference leak
   ae6e6bbc1741 net: ibm: fix possible object reference leak
   b9c8db41912f net: xilinx: fix possible object reference leak
   b989a3e9d260 NFS: Fix a typo in nfs_init_timeout_values()
   e0c34051669c drm/tegra: hub: Fix dereference before check
   abd76731f899 ARM: dts: imx6qdl: Fix typo in imx6qdl-icore-rqs.dtsi
   2b0e6d6bf088 net/sched: don't dereference a->goto_chain to read the chain index
   b435a79e5a87 net: macb: Add null check for PCLK and HCLK
   f85682bc594a staging: rtlwifi: Fix potential NULL pointer dereference of kzalloc
   c5750b45e406 staging: rtl8712: uninitialized memory in read_bbreg_hdl()
   5a5f1decd6fc staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer dereference
   d55bfd0746ae staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc
   bfa4cd06a902 net: ks8851: Set initial carrier state to down
   3796ab4828ed net: ks8851: Delay requesting IRQ until opened
   3005509f88e3 net: ks8851: Reassert reset pin if chip ID check fails
   fb6ca157d738 net: ks8851: Dequeue RX packets explicitly
   cdef35e83c3f i2c: i801: Add support for Intel Comet Lake
   c6694e7c8bf6 ARM: dts: pfla02: increase phy reset duration
   41be4abfb04d usb: gadget: net2272: Fix net2272_dequeue()
   edaebfe7721c usb: gadget: net2280: Fix net2280_dequeue()
   346eab0d1559 usb: gadget: net2280: Fix overrun of OUT messages
   710d4f29fe38 usb: dwc3: pci: add support for Comet Lake PCH ID
   e4705ae72736 KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the memslots
   0371fa033741 KVM: arm/arm64: vgic-its: Take the srcu lock when writing to guest memory
   51a5d70a59ee KVM: arm64: Reset the PMU in preemptible context
   2ba0421f2b77 serial: ar933x_uart: Fix build failure with disabled console
   1d815c5a9434 sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()
   2cbb465e526a ARM: imx51: fix a leaked reference by adding missing of_node_put
   f67021192cc1 s390/qeth: fix race when initializing the IP address table
   e634fc48661f netfilter: ip6t_srh: fix NULL pointer dereferences
   506375f509b8 netfilter: fix NETFILTER_XT_TARGET_TEE dependencies
   a5374a3086d6 netfilter: bridge: set skb transport_header before entering NF_INET_PRE_ROUTING
   5f7e5b9bba19 netfilter: nft_set_rbtree: check for inactive element after flag mismatch
   2fbb4c48f138 staging, mt7621-pci: fix build without pci support
   99f1ba88d7f8 staging: axis-fifo: add CONFIG_OF dependency
   947bd0d9bdbc xsk: fix umem memory leak on cleanup
   fc055dffa575 qlcnic: Avoid potential NULL pointer dereference
   98650508a9d0 net: stmmac: don't set own bit too early for jumbo frames
   24a46cad0e18 ieee802154: hwsim: propagate genlmsg_reply return code
   f722b7789afa net: ieee802154: fix a potential NULL pointer dereference
   a1e34e289e15 s390: limit brk randomization to 32MB
   d52dfdf1845d ARM: dts: bcm283x: Fix hdmi hpd gpio pull
   0311ff82b70f fs: prevent page refcount overflow in pipe_buf_get
   d972ebbf42ba mm: prevent get_user_pages() from overflowing page refcount
   0612cae7ec6b mm: add 'try_get_page()' helper function
   9f6da5fd0557 mm: make page ref count overflow check tighter and more explicit
   99ae2bd0772f Revert "ACPICA: Clear status of GPEs before enabling them"
   145f6a70bb9b selinux: use kernel linux/socket.h for genheaders and mdp
   a03957ab0fd5 Linux 4.19.38
   5cb299c80651 powerpc/fsl: Add FSL_PPC_BOOK3E as supported arch for nospectre_v2 boot arg
   53db65232428 net/tls: don't leak IV and record seq when offload fails
   d3bdd359fa53 net/tls: avoid potential deadlock in tls_set_device_offload_rx()
   041b3224e8f8 net/mlx5e: Fix use-after-free after xdp_return_frame
   ae6b07107458 net/mlx5e: Fix the max MTU check in case of XDP
   b08774d38882 mlxsw: spectrum: Put MC TCs into DWRR mode
   21e47998d959 mlxsw: pci: Reincrease PCI reset timeout
   e875a409594b net: hns: Fix WARNING when hns modules installed
   7ce836e8a963 team: fix possible recursive locking when add slaves
   1f78e75e85bb stmmac: pci: Adjust IOT2000 matching
   e97f0bc7be88 net/tls: fix refcount adjustment in fallback
   b02f8aa85604 net: stmmac: move stmmac_check_ether_addr() to driver probe
   d7b10dfe6c31 net/rose: fix unbound loop in rose_loopback_timer()
   ed1866aa608a net: rds: exchange of 8K and 1M pool
   7da11d6a5d85 net/mlx5e: ethtool, Remove unsupported SFP EEPROM high pages query
   829fd9849e44 mlxsw: spectrum: Fix autoneg status in ethtool
   250e51f856e1 ipv4: set the tcp_min_rtt_wlen range from 0 to one day
   07445fea9575 ipv4: add sanity checks in ipv4_link_failure()
   d4ff57d0320b x86/fpu: Don't export __kernel_fpu_{begin,end}()
   423497a96d4a mm: Fix warning in insert_pfn()
   e923c6b70ce2 x86/retpolines: Disable switch jump tables when retpolines are enabled
   6cfcff3cfb0e x86, retpolines: Raise limit for generating indirect calls from switch-case
   e9e47779aaa7 Fix aio_poll() races
   aab66dfb757a aio: store event at final iocb_put()
   c20202c51d2b aio: keep io_event in aio_kiocb
   592ea630b081 aio: fold lookup_kiocb() into its sole caller
   c7f2525abfec pin iocb through aio.
   d6b2615f7d31 aio: simplify - and fix - fget/fput for io_submit()
   2afa01cd9186 aio: initialize kiocb private in case any filesystems expect it.
   a812f7b68a39 aio: abstract out io_event filler helper
   d384f8b855a5 aio: split out iocb copy from io_submit_one()
   4d677689742a aio: use iocb_put() instead of open coding it
   ef529eead8cf aio: don't zero entire aio_kiocb aio_get_req()
   730198c889d8 aio: separate out ring reservation from req allocation
   b3373253f0ba aio: use assigned completion handler
   9101cbe70ef6 aio: clear IOCB_HIPRI
   920ecc72093d rxrpc: fix race condition in rxrpc_input_packet()
   5a228d5ddca2 net/rds: Check address length before reading address family
   e30203e4f94d net: netrom: Fix error cleanup path of nr_proto_init
   a0cb0faa15f3 tipc: check link name with right length in tipc_nl_compat_link_set
   f21fae8049cd tipc: check bearer name with right length in tipc_nl_compat_bearer_enable
   9b9b0df4e788 fm10k: Fix a potential NULL pointer dereference
   f7dc13d6e4a2 netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON
   94ad68a6e570 NFS: Forbid setting AF_INET6 to "struct sockaddr_in"->sin_family.
   245a94a0ffab sched/deadline: Correctly handle active 0-lag timers
   6bf7d3c5c0c5 binder: fix handling of misaligned binder object
   8c37f7c23c02 workqueue: Try to catch flush_work() without INIT_WORK().
   4d476a00b3f9 fs/proc/proc_sysctl.c: Fix a NULL pointer dereference
   bce00f419c9d intel_th: gth: Fix an off-by-one in output unassigning
   9c8c39bae89a slip: make slhc_free() silently accept an error pointer
   f41d2de67101 USB: Consolidate LPM checks to avoid enabling LPM twice
   50cda8891818 USB: Add new USB LPM helpers
   8c700e902ceb drm/vc4: Fix compilation error reported by kbuild test bot
   2bc7ce32eb21 Revert "drm/i915/fbdev: Actually configure untiled displays"
   2c892ef09435 drm/vc4: Fix memory leak during gpu reset.
   087341c0f40d powerpc/mm/radix: Make Radix require HUGETLB_PAGE
   478afe341d29 ARM: 8857/1: efi: enable CP15 DMB instructions before cleaning the cache
   129c337c6659 dmaengine: sh: rcar-dmac: Fix glitch in dmaengine_tx_status
   0f00e1c599b3 dmaengine: sh: rcar-dmac: With cyclic DMA residue 0 is valid
   f7b467ad1be0 vfio/type1: Limit DMA mappings per container
   ac9e2bece112 Input: synaptics-rmi4 - write config register values to the right offset
   37ecf31a3e5e perf/x86/intel: Update KBL Package C-state events to also include PC8/PC9/PC10 counters
   c0309570a5f1 sunrpc: don't mark uninitialised items as VALID.
   b4d4b5e4b839 nfsd: Don't release the callback slot unless it was actually held
   950eec812600 ceph: fix ci->i_head_snapc leak
   246d2bf32da1 ceph: ensure d_name stability in ceph_dentry_hash()
   8d693ef0141c ceph: only use d_name directly when parent is locked
   9b8c07129ddf sched/numa: Fix a possible divide-by-zero
   1af34bf97eca RDMA/mlx5: Do not allow the user to write to the clock page
   8ac57d1bdc25 IB/rdmavt: Fix frwr memory registration
   d0264d10ae6a trace: Fix preempt_enable_no_resched() abuse
   7f9c9d1d79fd MIPS: scall64-o32: Fix indirect syscall number load
   ce900ddd660d lib/Kconfig.debug: fix build error without CONFIG_BLOCK
   710733e539d1 zram: pass down the bvec we need to read into in the work struct
   a19e4a1b4c63 gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC
   cffeb9c84d20 tracing: Fix buffer_ref pipe ops
   0e78e92da2d8 tracing: Fix a memory leak by early error exit in trace_pid_write()
   ee231063ff95 cifs: do not attempt cifs operation on smb2+ rename error
   d5bf783a09a0 cifs: fix memory leak in SMB2_read
   15e978391577 net: dsa: mv88e6xxx: add call to mv88e6xxx_ports_cmode_init to probe for new DSA framework
   984c4e00c387 ALSA: hda/ca0132 - Fix build error without CONFIG_PCI
   1e0cab1bce57 powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64
   ae5e0c773ca6 ipvs: fix warning on unused variable
   8e59639791f2 vsock/virtio: fix kernel panic from virtio_transport_reset_no_sock
   416699b9bb90 drm/rockchip: fix for mailbox read validation.
   1832b1517c2b loop: do not print warn message if partition scan is successful
   070e34b627f4 tipc: handle the err returned from cmd header function
   8766cc7d0d1d ext4: fix some error pointer dereferences
   816e3e2258e8 net: mvpp2: fix validate for PPv2.1
   e7ddd6af17e4 net/ibmvnic: Fix RTNL deadlock during device reset
   ffc1d85e8c5f netfilter: nf_tables: bogus EBUSY in helper removal from transaction
   e313d5da057b netfilter: nf_tables: bogus EBUSY when deleting set after flush
   25ddad73070c netfilter: nf_tables: fix set double-free in abort path
   8906234c5015 netfilter: nft_compat: use .release_ops and remove list of extension
   4f67e8976f7b netfilter: nft_compat: don't use refcount_inc on newly allocated entry
   af26f3e2903b netfilter: nf_tables: unbind set in rule from commit path
   27458b5457d3 netfilter: nf_tables: warn when expr implements only one of activate/deactivate
   cb2e343d1d85 netfilter: nft_compat: destroy function must not have side effects
   3dbba8ebb066 netfilter: nf_tables: split set destruction in deactivate and destroy phase
   7693bae6b314 netfilter: nft_compat: make lists per netns
   db99f122cbf8 netfilter: nft_compat: use refcnt_t type for nft_xt reference count
   19bb613acb9a Linux 4.19.37
   cdd369fe0f98 kernel/sysctl.c: fix out-of-bounds access when setting file-max
   ac54bc121e1f Revert "locking/lockdep: Add debug_locks check in __lock_downgrade()"
   9c1862566176 i2c-hid: properly terminate i2c_hid_dmi_desc_override_table[] array
   52dde1160f17 ASoC: rockchip: add missing INTERLEAVED PCM attribute
   a782f8475715 tools include: Adopt linux/bits.h
   6580376fe810 percpu: stop printing kernel addresses
   8a6f2ea0c3dd ALSA: info: Fix racy addition/deletion of nodes
   1343fd8f9629 mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
   628c99a836dd device_cgroup: fix RCU imbalance in error case
   c3edd427d538 sched/fair: Limit sched_cfs_period_timer() loop to avoid hard lockup
   c21bcc2352e9 Revert "kbuild: use -Oz instead of -Os when using clang"
   1c36862e8be8 tpm: Fix the type of the return value in calc_tpm2_event_size()
   18af9b7b9138 tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete
   7de43cb71116 modpost: file2alias: check prototype of handler
   aa0e8cc9d7a8 modpost: file2alias: go back to simple devtable lookup
   87eadc0b8c2a mmc: sdhci: Handle auto-command errors
   ba8a6c055677 mmc: sdhci: Rename SDHCI_ACMD12_ERR and SDHCI_INT_ACMD12ERR
   b2be40b73b29 mmc: sdhci: Fix data command CRC error handling
   be608583d9c4 nfit/ars: Avoid stale ARS results
   40221d56ae28 nfit/ars: Allow root to busy-poll the ARS state machine
   bc18c2593635 nfit/ars: Introduce scrub_flags
   82a13a006ed5 nfit/ars: Remove ars_start_flags
   cd37fd46b485 timers/sched_clock: Prevent generic sched_clock wrap caused by tick_freeze()
   5680b0635cda x86/speculation: Prevent deadlock on ssb_state::lock
   90e17512f1e4 perf/x86: Fix incorrect PEBS_REGS
   293926b37013 x86/cpu/bugs: Use __initconst for 'const' init data
   f45829e6250a perf/x86/amd: Add event map for AMD Family 17h
   ba407222f563 drm/amdgpu/gmc9: fix VM_L2_CNTL3 programming
   39cad03c4360 mac80211: do not call driver wake_tx_queue op during reconfig
   852de0d53d14 rt2x00: do not increment sequence number while re-transmitting
   23a926e5edd9 kprobes: Fix error check when reusing optimized probes
   426e2a8024c2 kprobes: Mark ftrace mcount handler functions nokprobe
   1fab567a270b x86/kprobes: Verify stack frame on kretprobe
   5105fc758bdc arm64: futex: Restore oldval initialization to work around buggy compilers
   96800ba9e565 drm/ttm: fix out-of-bounds read in ttm_put_pages() v2
   fbe5cff93229 crypto: x86/poly1305 - fix overflow during partial reduction
   dacdbc115d23 ipmi: fix sleep-in-atomic in free_user at cleanup SRCU user->release_barrier
   6ff17bc5936e coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping
   3e1b3e4d3c83 Revert "svm: Fix AVIC incomplete IPI emulation"
   ee4b8e266229 Revert "scsi: fcoe: clear FC_RP_STARTED flags when receiving a LOGO"
   1aa2682d0a98 scsi: core: set result when the command cannot be dispatched
   8f2ef0e8f967 vt: fix cursor when clearing the screen
   38b7f09a9e83 serial: sh-sci: Fix HSCIF RX sampling point calculation
   de6d6b8902fb serial: sh-sci: Fix HSCIF RX sampling point adjustment
   ec96f65e1214 Input: elan_i2c - add hardware ID for multiple Lenovo laptops
   b50e435df2d8 ALSA: core: Fix card races between register and disconnect
   4171b6ee9328 ALSA: hda/realtek - add two more pin configuration sets to quirk table
   4e78a1fb8d1d staging: comedi: ni_usb6501: Fix possible double-free of ->usb_rx_buf
   09f9bacae118 staging: comedi: ni_usb6501: Fix use of uninitialized mutex
   edf2f548baa9 staging: comedi: vmk80xx: Fix possible double-free of ->usb_rx_buf
   1f01a970b8c2 staging: comedi: vmk80xx: Fix use of uninitialized semaphore
   a1da981f6643 staging: most: core: use device description as name
   b007c64d860f io: accel: kxcjk1013: restore the range after resume.
   bbe0bed4647c iio: core: fix a possible circular locking dependency
   98171e1947b6 iio: adc: at91: disable adc channel interrupt in timeout case
   36971130bb2f iio: Fix scan mask selection
   0e47edde9132 iio: dac: mcp4725: add missing powerdown bits in store eeprom
   5ad173ea6c3a iio: ad_sigma_delta: select channel when reading register
   42eae0cff22a iio: cros_ec: Fix the maths for gyro scale calculation
   adfb0f0b17a3 iio:chemical:bme680: Fix SPI read interface
   a3117576a73f iio:chemical:bme680: Fix, report temperature in millidegrees
   f7ee6890caa5 iio/gyro/bmg160: Use millidegrees for temperature scale
   8bd3fd46ec23 iio: gyro: mpu3050: fix chip ID reading
   6f3e66b155f0 staging: iio: ad7192: Fix ad7193 channel address
   c54d1258c637 Staging: iio: meter: fixed typo
   c9e34935a351 KVM: x86: svm: make sure NMI is injected after nmi_singlestep
   18cf09a81771 KVM: x86: Don't clear EFER during SMM transitions for 32-bit vCPU
   2fcee5eaae6e cifs: fix handle leak in smb2_query_symlink()
   c69330a855ab cifs: Fix use-after-free in SMB2_read
   8fb89b43b65f cifs: Fix use-after-free in SMB2_write
   8092ecc306d8 CIFS: keep FileInfo handle live during oplock break
   6e2081f29392 net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c
   684685326ab0 net: IP6 defrag: use rbtrees for IPv6 defrag
   702ddf862d9d net: IP defrag: encapsulate rbtree defrag code into callable functions
   e24be8e38cd7 sch_cake: Simplify logic in cake_select_tin()
   8d9051a4680a nfp: flower: remove vlan CFI bit from push vlan action
   06f7d2182f9d nfp: flower: replace CFI with vlan present
   cbce0413f783 sch_cake: Make sure we can write the IP header before changing DSCP bits
   490532225e20 sch_cake: Use tc_skb_protocol() helper for getting packet protocol
   5f72cb2ab51d route: Avoid crash from dereferencing NULL rt->from
   1d2499b08600 net/mlx5: FPGA, tls, idr remove on flow delete
   785833b9eee0 net/tls: prevent bad memory access in tls_is_sk_tx_device_offloaded()
   7cfddb81a817 net/mlx5: FPGA, tls, hold rcu read lock a bit longer
   d1785bea2f34 net: thunderx: don't allow jumbo frames with XDP
   9de22b997fe4 net: thunderx: raise XDP MTU to 1508
   7ba5ec69e1a7 ipv4: ensure rcu_read_lock() in ipv4_link_failure()
   8a430e56a648 ipv4: recompile ip options in ipv4_link_failure
   b82df42059fb vhost: reject zero size iova range
   242e5746cb47 tipc: missing entries in name table of publications
   a60a47206a31 team: set slave to promisc if team is already in promisc mode
   6728c6174a47 tcp: tcp_grow_window() needs to respect tcp_space()
   1cd878836822 net: fou: do not use guehdr after iptunnel_pull_offloads in gue_udp_recv
   2804598764f9 net: Fix missing meta data in skb with vlan packet
   97fd88e04c8d net: bridge: multicast: use rcu to access port list from br_multicast_start_querier
   08b0b4f28008 net: bridge: fix per-port af_packet sockets
   bcb964012d1b net: atm: Fix potential Spectre v1 vulnerabilities
   fae6053d7611 failover: allow name change on IFF_UP slave interfaces
   2a458eddc4c2 bonding: fix event handling for stacked bonds
   c98875d930e9 Linux 4.19.36
   0c00f71e7d7c appletalk: Fix compile regression
   9e91db59e3b9 mm: hide incomplete nr_indirectly_reclaimable in sysfs
   d49dea545af4 mm: hide incomplete nr_indirectly_reclaimable in /proc/zoneinfo
   7a4626798276 IB/hfi1: Failed to drain send queue when QP is put into error state
   e8eef7ad9841 bpf: fix use after free in bpf_evict_inode
   40c6d718d78c include/linux/swap.h: use offsetof() instead of custom __swapoffset macro
   48b0309f85ae f2fs: fix to dirty inode for i_mode recovery
   11582064271d rxrpc: Fix client call connect/disconnect race
   a7e90c1892d9 lib/div64.c: off by one in shift
   6c42507f426b appletalk: Fix use-after-free in atalk_proc_exit
   539282e9cd9b drm/amdkfd: use init_mqd function to allocate object for hid_mqd (CI)
   91583411b5d1 ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t
   1b871f39097a drm/nouveau/volt/gf117: fix speedo readout register
   ad854fa3c8dc PCI: Blacklist power management of Gigabyte X299 DESIGNARE EX PCIe ports
   4984d918cd46 coresight: cpu-debug: Support for CA73 CPUs
   2a3c322d46e0 Revert "ACPI / EC: Remove old CLEAR_ON_RESUME quirk"
   5f516d0ba082 crypto: axis - fix for recursive locking from bottom half
   862adb5b0da6 drm/panel: panel-innolux: set display off in innolux_panel_unprepare
   2be8987a076f lkdtm: Add tests for NULL pointer dereference
   55588aebde38 lkdtm: Print real addresses
   8387c1455d34 soc/tegra: pmc: Drop locking from tegra_powergate_is_powered()
   29b934dd5fa0 scsi: core: Avoid that system resume triggers a kernel warning
   38855a84d891 iommu/dmar: Fix buffer overflow during PCI bus notification
   8c5e9ea11730 net: ip6_gre: fix possible NULL pointer dereference in ip6erspan_set_version
   d7a90ee5aadd crypto: sha512/arm - fix crash bug in Thumb2 build
   1f52fa127898 crypto: sha256/arm - fix crash bug in Thumb2 build
   bbbe47463da9 xfrm: destroy xfrm_state synchronously on net exit path
   5be4bb315de2 net/rds: fix warn in rds_message_alloc_sgs
   d801282dfd2a ACPI: EC / PM: Disable non-wakeup GPEs for suspend-to-idle
   e434fbf4f049 ALSA: hda: fix front speakers on Huawei MBXP
   b10cc0837472 drm/ttm: Fix bo_global and mem_global kfree error
   cb09e99b9ad3 platform/x86: Add Intel AtomISP2 dummy / power-management driver
   491dee743d6b kernel: hung_task.c: disable on suspend
   e9603cffb1ca cifs: fallback to older infolevels on findfirst queryinfo retry
   fc34758d4af6 net: stmmac: Set OWN bit for jumbo frames
   8722566b7870 f2fs: cleanup dirty pages if recover failed
   263ed7e66b17 netfilter: nf_flow_table: remove flowtable hook flush routine in netns exit routine
   19e6ff0146ef compiler.h: update definition of unreachable()
   f35e2a685c81 KVM: nVMX: restore host state in nested_vmx_vmexit for VMFail
   3d11fc93aa28 HID: usbhid: Add quirk for Redragon/Dragonrise Seymur 2
   1424b7fefd6b ACPI / SBS: Fix GPE storm on recent MacBookPro's
   0d41c7b3860e usbip: fix vhci_hcd controller counting
   360186d8ab02 ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms
   1475ce4ff957 pinctrl: core: make sure strcmp() doesn't get a null parameter
   8e271100efa6 HID: i2c-hid: override HID descriptors for certain devices
   09b6c08061bb Bluetooth: Fix debugfs NULL pointer dereference
   6496b9636f74 media: au0828: cannot kfree dev before usb disconnect
   6947d853be19 powerpc/pseries: Remove prrn_work workqueue
   7863304bc00f serial: uartps: console_setup() can't be placed to init section
   1f2b1c6ab353 netfilter: xt_cgroup: shrink size of v2 path
   14b183214c08 f2fs: fix to do sanity check with current segment number
   7fcce1828e5f ASoC: Fix UBSAN warning at snd_soc_get/put_volsw_sx()
   4369f8a38085 9p locks: add mount option for lock retry interval
   db77c7890ed7 9p: do not trust pdu content for stat item size
   f9368366b4d1 f2fs: fix to avoid NULL pointer dereference on se->discard_map
   de1fd69b6541 rsi: improve kernel thread handling to fix kernel panic
   93b7c722637c gpio: pxa: handle corner case of unprobed device
   13cc3e6b2a18 drm/cirrus: Use drm_framebuffer_put to avoid kernel oops in clean-up
   6fd66bec6d6a ext4: prohibit fstrim in norecovery mode
   83e3e89d6639 x86/gart: Exclude GART aperture from kcore
   40276e4e2fd0 fix incorrect error code mapping for OBJECTID_NOT_FOUND
   777cd2681b2d x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error
   cff04fad89b9 iommu/vt-d: Check capability before disabling protected memory
   181117a1b4f3 drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure
   276084f0e017 x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors
   16dab2916615 x86/hyperv: Prevent potential NULL pointer dereference
   30d9b740e201 x86/hpet: Prevent potential NULL pointer dereference
   ac0343a48e7e irqchip/mbigen: Don't clear eventid when freeing an MSI
   f3c3b0f1fae5 irqchip/stm32: Don't clear rising/falling config registers at init
   41b1234677bd drm/exynos/mixer: fix MIXER shadow registry synchronisation code
   bde271d1ad0e blk-iolatency: #include "blk.h"
   b63df738ce7d PM / Domains: Avoid a potential deadlock
   19302c51c043 ACPI / utils: Drop reference in test for device presence
   00059edd3121 perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()
   2c843ae984a8 perf tests: Fix memory leak by expr__find_other() in test__expr()
   a077618a3af8 perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test
   cf050670d092 perf evsel: Free evsel->counts in perf_evsel__exit()
   28848061d882 perf hist: Add missing map__put() in error case
   bb644ded9e6d perf top: Fix error handling in cmd_top()
   df894a047f37 perf build-id: Fix memory leak in print_sdt_events()
   871aa38e9525 perf config: Fix a memory leak in collect_config()
   9007d724cb08 perf config: Fix an error in the config template documentation
   93d449bd6552 perf list: Don't forget to drop the reference to the allocated thread_map
   c5d9104281b9 tools/power turbostat: return the exit status of a command
   ada35b525486 x86/mm: Don't leak kernel addresses
   52466ab20393 sched/core: Fix buffer overflow in cgroup2 property cpu.max
   a8c1de3ab8b6 sched/cpufreq: Fix 32-bit math overflow
   a629c32ac2d1 scsi: iscsi: flush running unbind operations when removing a session
   5b67d518eaaf thermal/intel_powerclamp: fix truncated kthread name
   193dd213bebd thermal/int340x_thermal: fix mode setting
   10313672b3f0 thermal/int340x_thermal: Add additional UUIDs
   c5161c689e81 thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs
   8fd403fc2a8e thermal: samsung: Fix incorrect check after code merge
   0644ee713c00 thermal/intel_powerclamp: fix __percpu declaration of worker_data
   a803600c5b90 ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration
   94a6f47a5ecb mmc: davinci: remove extraneous __init annotation
   f596ad9ea8a4 i40iw: Avoid panic when handling the inetdev event
   74ed2226e65a IB/mlx4: Fix race condition between catas error reset and aliasguid flows
   5e4dc4b6fc10 drm/udl: use drm_gem_object_put_unlocked.
   cbba1f554b4f auxdisplay: hd44780: Fix memory leak on ->remove()
   317e716a8ad9 ALSA: sb8: add a check for request_region
   17829309ec00 ALSA: echoaudio: add a check for ioremap_nocache
   a793860c0f52 ext4: report real fs size after failed resize
   f5a94fd3b375 ext4: add missing brelse() in add_new_gdb_meta_bg()
   90a1327e4ed3 ext4: avoid panic during forced reboot
   673e23ce80a6 perf/core: Restore mmap record type correctly
   ca306c17d2ed inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch()
   618490ba5841 arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM
   2296eedef0c5 ARC: u-boot args: check that magic number is correct
   4b0e041c9dad Linux 4.19.35
   59bf185ae6b7 KVM: x86: nVMX: fix x2APIC VTPR read intercept
   119031be7b0a KVM: x86: nVMX: close leak of L0's x2APIC MSRs (CVE-2019-3887)
   f8053df634d4 ACPICA: AML interpreter: add region addresses in global list during initialization
   fad502a9439e arm64: dts: rockchip: Fix vcc_host1_5v GPIO polarity on rk3328-rock64
   c963475972f6 arm64: dts: rockchip: fix vcc_host1_5v pin assign on rk3328-rock64
   aa9ee4b1ed46 dm integrity: fix deadlock with overlapping I/O
   469b40a429c5 dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors
   4f5c99e0421c dm: revert 8f50e358153d ("dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZE")
   30dc4d7b299d dm integrity: change memcmp to strncmp in dm_integrity_ctr
   5be6e02cfbdf PCI: pciehp: Ignore Link State Changes after powering off a slot
   250fef8de77c PCI: Add function 1 DMA alias quirk for Marvell 9170 SATA controller
   056264656a67 x86/perf/amd: Remove need to check "running" bit in NMI handler
   23d39b0af08e x86/perf/amd: Resolve NMI latency issues for active PMCs
   e5a791b4ab56 x86/perf/amd: Resolve race condition when disabling PMC
   4b004504bfcc x86/asm: Use stricter assembly constraints in bitops
   356ae4deab4b x86/asm: Remove dead __GNUC__ conditionals
   f7b778b9007e xtensa: fix return_address
   cb75a0c5d381 sched/fair: Do not re-read ->h_load_next during hierarchical load calculation
   ed3adb562fc8 xen: Prevent buffer overflow in privcmd ioctl
   84c6c2af4c53 arm64: backtrace: Don't bother trying to unwind the userspace stack
   1ec54cee6333 arm64: dts: rockchip: fix rk3328 rgmii high tx error rate
   82a30a5d60e3 arm64: futex: Fix FUTEX_WAKE_OP atomic ops with non-zero result value
   4362ff977bc6 ARM: dts: at91: Fix typo in ISC_D0 on PC9
   627a7d5a4422 ARM: dts: am335x-evm: Correct the regulators for the audio codec
   57a9c1f40f5b ARM: dts: am335x-evmsk: Correct the regulators for the audio codec
   3ba48b3cf850 ARM: dts: rockchip: fix rk3288 cpu opp node reference
   32fdac09765d virtio: Honour 'may_reduce_num' in vring_create_virtqueue
   8b4f68b47448 genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n
   cd5b06a93997 genirq: Respect IRQCHIP_SKIP_SET_WAKE in irq_chip_set_wake_parent()
   543bb48dc48b block: fix the return errno for direct IO
   2591bfc68282 block: do not leak memory in bio_copy_user_iov()
   7af20b60f6db riscv: Fix syscall_get_arguments() and syscall_set_arguments()
   54fb5c9da6cd btrfs: prop: fix vanished compression property after failed set
   fbfbb996d58e btrfs: prop: fix zstd compression parameter validation
   16515acd5bc3 Btrfs: do not allow trimming when a fs is mounted with the nologreplay option
   e6265e368022 ASoC: fsl_esai: fix channel swap issue when stream starts
   19b0a7f5a083 ASoC: intel: Fix crash at suspend/resume after failed codec registration
   43f47331a4ce mm: writeback: use exact memcg dirty counts
   576f22ac47ba include/linux/bitrev.h: fix constant bitrev
   c4f103f6ac3a kvm: svm: fix potential get_num_contig_pages overflow
   93d60348edcb drm/udl: add a release method and delay modeset teardown
   df4106f23d0b drm/i915/gvt: do not deliver a workload if its creation fails
   a5277bcc1b7d alarmtimer: Return correct remaining time
   5db86e2a9b36 parisc: also set iaoq_b in instruction_pointer_set()
   53bb8444eab2 parisc: regs_return_value() should return gpr28
   41cf8111f3cb parisc: Detect QEMU earlier in boot process
   ba5765a243ed arm64: dts: rockchip: fix rk3328 sdmmc0 write errors
   9a62d69114d7 mm/huge_memory.c: fix modifying of page protection by insert_pfn_pmd()
   b3a8a3728d7e ALSA: hda - Add two more machines to the power_save_blacklist
   bfea74941d6d ALSA: hda/realtek - Add quirk for Tuxedo XC 1509
   c6d25f0b3653 ALSA: hda/realtek: Enable headset MIC of Acer TravelMate B114-21 with ALC233
   73b50a56e51e ALSA: seq: Fix OOB-reads from strlcpy
   d4b4aeea5506 ACPICA: Namespace: remove address node from global list after method termination
   ed52b07bd698 ACPICA: Clear status of GPEs before enabling them
   370004024aec hwmon: (w83773g) Select REGMAP_I2C to fix build error
   4ebab60d6561 tty: ldisc: add sysctl to prevent autoloading of ldiscs
   894dc8495898 tty: mark Siemens R3964 line discipline as BROKEN
   902eaef7781c arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region
   40177a7931e0 netfilter: nfnetlink_cttimeout: fetch timeouts for udplite and gre, too
   c2d27b330a98 netfilter: nfnetlink_cttimeout: pass default timeout policy to obj_to_nlattr
   564f0391b783 Revert "clk: meson: clean-up clock registration"
   3412671a781b lib/string.c: implement a basic bcmp
   c7415f2a3ad6 x86/vdso: Drop implicit common-page-size linker flag
   f66a52d991de kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD
   23605a4664ae kbuild: deb-pkg: fix bindeb-pkg breakage when O= is used
   da9b353c78b8 net/mlx5e: Update xon formula
   e2d92a74a353 net/mlx5e: Update xoff formula
   eab86503fec0 net: mlx5: Add a missing check on idr_find, free buf
   b787544dc5e7 r8169: disable default rx interrupt coalescing on RTL8168
   55a7f7b20c40 net: core: netif_receive_skb_list: unlist skb before passing to pt->func
   a2ef7723a13c net: ip6_gre: fix possible use-after-free in ip6erspan_rcv
   5c6f2f4c0e9f net: ip_gre: fix possible use-after-free in erspan_rcv
   ecee513a5273 bnxt_en: Reset device on RX buffer errors.
   d2d055a55403 bnxt_en: Improve RX consumer index validity check.
   a333fcc41075 nfp: disable netpoll on representors
   81da1314596c nfp: validate the return code from dev_queue_xmit()
   c297e8814578 net/mlx5e: Add a lock on tir list
   9441317513b7 net/mlx5e: Fix error handling when refreshing TIRs
   0516ef27ddba vrf: check accept_source_route on the original netdevice
   7243e3520956 tcp: fix a potential NULL pointer dereference in tcp_sk_exit
   0e0afb06e11c tcp: Ensure DCTCP reacts to losses
   87349583e517 sctp: initialize _pad of sockaddr_in before copying to user memory
   1e4a7e7869ac r8169: disable ASPM again
   84dc2f872d2d qmi_wwan: add Olicard 600
   ec0e32da41a6 openvswitch: fix flow actions reallocation
   eeedfa94c195 net/sched: fix ->get helper of the matchall cls
   15c0770e2e83 net/sched: act_sample: fix divide by zero in the traffic path
   78b4bf26a8a7 net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock().
   a1c2f3229734 netns: provide pure entropy for net_hash_mix()
   53a1906859a2 net/mlx5: Decrease default mr cache size
   b87ec81362ac net-gro: Fix GRO flush when receiving a GSO packet.
   80c205813d3f net: ethtool: not call vzalloc for zero sized memory request
   b7b058315577 kcm: switch order of device registration to fix a crash
   42f1fa0fcf55 ipv6: sit: reset ip header pointer in ipip6_rcv
   ea06796f8857 ipv6: Fix dangling pointer when ipv6 fragment
   8e4b4da3d3d9 ip6_tunnel: Match to ARPHRD_TUNNEL6 for dev type
   167019572ca8 ibmvnic: Fix completion structure initialization
   9a7c4f5acc0e hv_netvsc: Fix unwanted wakeup after tx_disable
   902eca1a0ccf powerpc/tm: Limit TM code inside PPC_TRANSACTIONAL_MEM
   8ad895bf4b8b drm/i915/gvt: do not let pin count of shadow mm go negative
   646f8e01fc37 kvm: nVMX: NMI-window and interrupt-window exiting should wake L2 from HLT

(From OE-Core rev: 259ae0fe60d78862878f150d3e5468a33aa9026a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:57 +01:00
Bruce Ashfield
0cc214e2d2 linux-yocto/5.0: update to v5.0.13
Integrating the korg stable commits that comprise the following
changes:

   e5b9547b1aa3 Linux 5.0.13
   d467f3acebc5 ath10k: Drop WARN_ON()s that always trigger during system resume
   3c13f6cd254d iwlwifi: mvm: properly check debugfs dentry before using it
   c391e6198768 ALSA: line6: use dynamic buffers
   4c38bd0d4cd6 KVM: nVMX: Fix size checks in vmx_set_nested_state
   119ac69c0772 KVM: x86: Whitelist port 0x7e for pre-incrementing %rip
   a31a8f55c8e8 net/tls: fix copy to fragments in reencrypt
   f7f4d4b85b83 net/tls: don't copy negative amounts of data in reencrypt
   126255f1ef2b bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
   95fc8b4b4367 bnxt_en: Fix statistics context reservation logic.
   1c38ed7b5ef6 bnxt_en: Pass correct extended TX port statistics size to firmware.
   4348cae3a6e1 bnxt_en: Fix possible crash in bnxt_hwrm_ring_free() under error conditions.
   76dba4d8d0db bnxt_en: Free short FW command HWRM memory in error path in bnxt_init_one()
   4aaaa658466a bnxt_en: Improve multicast address setup logic.
   7a0d81d12f62 udp: fix GRO packet of death
   8858d7234542 udp: fix GRO reception in case of length mismatch
   b58d12d306ae tcp: add sanity tests in tcp_add_backlog()
   4d5aaae5fa0e selftests: fib_rule_tests: Fix icmp proto with ipv6
   3362ece2719c packet: in recvmsg msg_name return at least sizeof sockaddr_ll
   3a0701b8d93a packet: validate msg_namelen in send directly
   02694885a2be selftests: fib_rule_tests: print the result and return 1 if any tests failed
   484d404fdc2a sctp: avoid running the sctp state machine recursively
   f8970584f08c rxrpc: Fix net namespace cleanup
   90cb17d3df6f net/tls: avoid NULL pointer deref on nskb->sk in fallback
   52c89e455b5c net: phy: marvell: Fix buffer overrun with stats counters
   801038cca48c net: dsa: bcm_sf2: fix buffer overflow doing set_rxnfc
   31f4cb2730d8 l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()
   f86adc57e7db l2ip: fix possible use-after-free
   d1fa4f8784bb ipv6: invert flowlabel sharing check in process and user mode
   787a77cccb18 ipv6/flowlabel: wait rcu grace period before put_pid()
   d0aa794674e5 ipv6: fix races in ip6_dst_destroy()
   c61a4beb31f0 ipv6: A few fixes on dereferencing rt->from
   5a06ba5ed2ae ipv4: ip_do_fragment: Preserve skb_iif during fragmentation
   6006d5b02522 Linux 5.0.12
   310f9b1e52c0 leds: trigger: netdev: use memcpy in device_name_store
   004ec01370bc leds: pca9532: fix a potential NULL pointer dereference
   107cfb99c81f ptrace: take into account saved_sigmask in PTRACE{GET,SET}SIGMASK
   87eaf3d8ac51 kasan: fix variable 'tag' set but not used warning
   514860ee6633 iommu/amd: Reserve exclusion range in iova-domain
   8bd7d23a4a76 kconfig/[mn]conf: handle backspace (^H) key
   44fe72aeaae8 perf machine: Update kernel map address and re-order properly
   441d23c87644 perf cs-etm: Add missing case value
   b8bc52cd62e8 nvmet: fix error flow during ns enable
   163719bdcd9c nvmet: fix building bvec from sg list
   2e7d5b2e1fa0 nvme-multipath: relax ANA state check
   a72f60dbb557 gpio: of: Fix of_gpiochip_add() error path
   41a94b1909a4 KVM: selftests: complete IO before migrating guest state
   a312d0eaf90d KVM: selftests: disable stack protector for all KVM tests
   77507936fea3 KVM: selftests: explicitly disable PIE for tests
   e478d1c9b585 KVM: selftests: assert on exit reason in CR4/cpuid sync test
   02a7fc6c77d5 x86/kvm/hyper-v: avoid spurious pending stimer on vCPU init
   e10edda577cc kvm/x86: Move MSR_IA32_ARCH_CAPABILITIES to array emulated_msrs
   3d714ded80f6 KVM: SVM: Workaround errata#1096 (insn_len maybe zero on SMAP violation)
   5369433777ec KVM: nVMX: Do not inherit quadrant and invalid for the root shadow EPT
   e8b8dde69f81 gpio: of: Check for "spi-cs-high" in child instead of parent node
   0e48494c0edf gpio: of: Check propname before applying "cs-gpios" quirks
   fb853a4a7748 afs: Fix StoreData op marshalling
   c6d02b1ea4d7 kbuild: skip parsing pre sub-make code for recursion
   479e1afd232e libata: fix using DMA buffers on stack
   8d3c7282cec4 x86/mm: Don't exceed the valid physical address space
   ab4a5df699b5 scsi: zfcp: reduce flood of fcrscn1 trace records on multi-element RSCN
   b0921da055f1 ceph: fix use-after-free on symlink traversal
   1ab2566c5329 usb: u132-hcd: fix resource leak
   4f5d11bf2eca x86/realmode: Don't leak the trampoline kernel address
   89ae17728a98 SUNRPC: fix uninitialized variable warning
   ec44e4273006 leds: trigger: netdev: fix refcnt leak on interface rename
   facfcac8357d usb: usb251xb: fix to avoid potential NULL pointer dereference
   3ce3290dee84 scsi: qla4xxx: fix a potential NULL pointer dereference
   ab602d0043a4 scsi: aacraid: Insure we don't access PCIe space during AER/EEH
   9a5795520b91 scsi: mpt3sas: Fix kernel panic during expander reset
   08dd1acccb43 staging: vc04_services: Fix an error code in vchiq_probe()
   b2814ce32d47 sbitmap: order READ/WRITE freed instance and setting clear bit
   44a7849ecbd2 ARM: davinci: fix build failure with allnoconfig
   e24c5428060f drm/meson: Uninstall IRQ handler
   da9c64dc934a drm/meson: Fix invalid pointer in meson_drv_unbind()
   55a5c46268ff gpio: aspeed: fix a potential NULL pointer dereference
   e9917fd844ec drm: Fix drm_release() and device unplug
   c4cdbd4075a6 net: ethernet: ti: fix possible object reference leak
   6e4f7c129b24 net: ibm: fix possible object reference leak
   3da122192cde net: xilinx: fix possible object reference leak
   8dcf6dce4023 NFS: Fix a typo in nfs_init_timeout_values()
   4d88134c2f7c drm/tegra: hub: Fix dereference before check
   ec44a9a47e7e ARM: dts: imx6qdl: Fix typo in imx6qdl-icore-rqs.dtsi
   4da511ff427b net/sched: don't dereference a->goto_chain to read the chain index
   fe9fae9c5bff net: macb: Add null check for PCLK and HCLK
   ead946dc3824 net: phy: Add DP83825I to the DP83822 driver
   9bd87bbd2988 staging: rtlwifi: Fix potential NULL pointer dereference of kzalloc
   62d91f5a1ea4 staging: rtl8712: uninitialized memory in read_bbreg_hdl()
   6300a60f50b9 staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer dereference
   5fad07771fb8 staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc
   fe4e7a03c742 net: ks8851: Set initial carrier state to down
   372b41d6efe3 net: ks8851: Delay requesting IRQ until opened
   860fd08630a6 net: ks8851: Reassert reset pin if chip ID check fails
   75e3e76a45c6 net: ks8851: Dequeue RX packets explicitly
   07c5093a04f8 KVM: arm/arm64: Fix handling of stage2 huge mappings
   e68cc902c624 i2c: i801: Add support for Intel Comet Lake
   bcc78b63f0b4 ARM: dts: pfla02: increase phy reset duration
   2af87002a5e4 usb: gadget: net2272: Fix net2272_dequeue()
   202db3b5c17c usb: gadget: net2280: Fix net2280_dequeue()
   ad7be5bfe969 usb: gadget: net2280: Fix overrun of OUT messages
   e5a7f0905664 usb: dwc3: pci: add support for Comet Lake PCH ID
   7f482404c11e KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the memslots
   d2eecdbc6eca KVM: arm/arm64: vgic-its: Take the srcu lock when writing to guest memory
   d6d23d335672 arm64: KVM: Always set ICH_HCR_EL2.EN if GICv4 is enabled
   e38694c6b9a8 KVM: arm64: Reset the PMU in preemptible context
   4343cbf52e36 serial: ar933x_uart: Fix build failure with disabled console
   d25b0c89b3b9 sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()
   0bb1f79a1427 ARM: imx51: fix a leaked reference by adding missing of_node_put
   42ed22a8b969 s390/qeth: fix race when initializing the IP address table
   f0028f723428 netfilter: ip6t_srh: fix NULL pointer dereferences
   21fde4fcbbd2 netfilter: fix NETFILTER_XT_TARGET_TEE dependencies
   eb213c54aaac netfilter: bridge: set skb transport_header before entering NF_INET_PRE_ROUTING
   0f9c88c5ccc9 netfilter: nft_set_rbtree: check for inactive element after flag mismatch
   7f0d096410af staging, mt7621-pci: fix build without pci support
   6c41d389904c staging: axis-fifo: add CONFIG_OF dependency
   5227fe96b107 xsk: fix umem memory leak on cleanup
   9fc5c6e8fce8 qlcnic: Avoid potential NULL pointer dereference
   2e75be8dd6fa net: stmmac: fix jumbo frame sending with non-linear skbs
   53485ee41fc3 net: stmmac: don't set own bit too early for jumbo frames
   099a26557db9 Btrfs: fix file corruption after snapshotting due to mix of buffered/DIO writes
   61a9e0f4cc86 ieee802154: hwsim: propagate genlmsg_reply return code
   645dc42f97d8 net: ieee802154: fix a potential NULL pointer dereference
   edb616838408 mt76: mt76x2: fix 2.4 GHz channel gain settings
   63019ec07c61 mt76: mt76x2: fix external LNA gain settings
   a495f4c9afbf mt76x02: fix hdr pointer in write txwi for USB
   1d568d7476da s390: limit brk randomization to 32MB
   87240adabb46 ARM: dts: bcm283x: Fix hdmi hpd gpio pull
   9979cd3953b9 arm64: dts: renesas: r8a77990: Fix SCIF5 DMA channels
   27f651142eec fs: prevent page refcount overflow in pipe_buf_get
   ad73e3a19906 mm: prevent get_user_pages() from overflowing page refcount
   bdc8dfd65873 mm: add 'try_get_page()' helper function
   258fc3baeb4b mm: make page ref count overflow check tighter and more explicit
   cc37cb69fbdc drm/i915: Do not enable FEC without DSC
   742c556944e1 Revert "ACPICA: Clear status of GPEs before enabling them"
   635e82b9bdc8 selinux: use kernel linux/socket.h for genheaders and mdp
   d5a2675b207d Linux 5.0.11
   bcf0c1f4d564 net/tls: don't leak IV and record seq when offload fails
   2adb99038ae4 net/tls: avoid potential deadlock in tls_set_device_offload_rx()
   c01e42fdccf5 net/mlx5e: Fix use-after-free after xdp_return_frame
   f9444b6aaa01 net/mlx5e: Fix the max MTU check in case of XDP
   a7b71fc253e8 mlxsw: spectrum: Put MC TCs into DWRR mode
   a3964a683ca1 mlxsw: pci: Reincrease PCI reset timeout
   72f71005903d net/ncsi: handle overflow when incrementing mac address
   19f6d3f49b28 net: socionext: replace napi_alloc_frag with the netdev variant on init
   af31849700e4 team: fix possible recursive locking when add slaves
   dc2b8b627802 stmmac: pci: Adjust IOT2000 matching
   3fd3574106de net/tls: fix refcount adjustment in fallback
   e39643c12d3f net: stmmac: move stmmac_check_ether_addr() to driver probe
   8de6f5e5b90d net/rose: fix unbound loop in rose_loopback_timer()
   b225e518109b net: rds: exchange of 8K and 1M pool
   283882b045ad net/mlx5e: ethtool, Remove unsupported SFP EEPROM high pages query
   f37782f2d708 mlxsw: spectrum: Fix autoneg status in ethtool
   d69b7c8c8ab5 ipv4: set the tcp_min_rtt_wlen range from 0 to one day
   617d24036564 ipv4: add sanity checks in ipv4_link_failure()
   7f909f520742 rdma: fix build errors on s390 and MIPS due to bad ZERO_PAGE use
   dee438745d74 x86/retpolines: Disable switch jump tables when retpolines are enabled
   6bd5637a3ebb x86, retpolines: Raise limit for generating indirect calls from switch-case
   b6dd51f041fa Fix aio_poll() races
   f6408361ded7 aio: store event at final iocb_put()
   a8a538aed4f9 aio: keep io_event in aio_kiocb
   636fa71ed5f7 aio: fold lookup_kiocb() into its sole caller
   199f34c1355b pin iocb through aio.
   e2f0a96eeb50 rxrpc: fix race condition in rxrpc_input_packet()
   4f2c07441634 net/rds: Check address length before reading address family
   d0d184559cb4 net: netrom: Fix error cleanup path of nr_proto_init
   d0cf85f49505 tipc: check link name with right length in tipc_nl_compat_link_set
   4ee29a10021f tipc: check bearer name with right length in tipc_nl_compat_bearer_enable
   a92526e257a5 fm10k: Fix a potential NULL pointer dereference
   0d41789ad820 netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON
   becfa96eaecd NFS: Forbid setting AF_INET6 to "struct sockaddr_in"->sin_family.
   b5db8ea57de5 mac80211_hwsim: calculate if_combination.max_interfaces
   16de5d9b8f6b sched/deadline: Correctly handle active 0-lag timers
   bbb19ca082ce binder: fix handling of misaligned binder object
   8fe1600c91f9 workqueue: Try to catch flush_work() without INIT_WORK().
   abcbf3078130 slip: make slhc_free() silently accept an error pointer
   ba965c2c9808 tipc: handle the err returned from cmd header function
   2501b17f4f72 loop: do not print warn message if partition scan is successful
   acaec7f6e25d ext4: fix some error pointer dereferences
   2cd705091e36 USB: Consolidate LPM checks to avoid enabling LPM twice
   30d57be1f6eb USB: Add new USB LPM helpers
   6ec39721f131 drm/vc4: Fix compilation error reported by kbuild test bot
   3e869fd34856 Revert "drm/i915/fbdev: Actually configure untiled displays"
   6dca846c920d drm/ttm: fix re-init of global structures
   0b029ce3f4ee drm/vc4: Fix memory leak during gpu reset.
   aaceebbb71c5 powerpc/mm/radix: Make Radix require HUGETLB_PAGE
   b9a5bc4bb079 ARM: 8857/1: efi: enable CP15 DMB instructions before cleaning the cache
   aa5f016ba785 dmaengine: mediatek-cqdma: fix wrong register usage in mtk_cqdma_start
   9476c3ad5ee2 dmaengine: sh: rcar-dmac: Fix glitch in dmaengine_tx_status
   c46e14be004a dmaengine: sh: rcar-dmac: With cyclic DMA residue 0 is valid
   16df9424ffaa vfio/type1: Limit DMA mappings per container
   4898e9b99795 Input: synaptics-rmi4 - write config register values to the right offset
   c704bba6dd36 perf/x86/intel: Update KBL Package C-state events to also include PC8/PC9/PC10 counters
   b2eeeb49027e sunrpc: don't mark uninitialised items as VALID.
   6d29f7c720c6 nfsd: wake blocked file lock waiters before sending callback
   6569ae328aa3 nfsd: wake waiters blocked on file_lock before deleting it
   5e4a20e631a7 nfsd: Don't release the callback slot unless it was actually held
   870588487197 ceph: fix ci->i_head_snapc leak
   d9061ef0ab17 ceph: ensure d_name stability in ceph_dentry_hash()
   bcd9cbffb98f ceph: only use d_name directly when parent is locked
   e548c9702d46 sched/numa: Fix a possible divide-by-zero
   c3e4c555ac86 RDMA/ucontext: Fix regression with disassociate
   52c44c4e81b3 RDMA/mlx5: Use rdma_user_map_io for mapping BAR pages
   92d6731e6a6f RDMA/mlx5: Do not allow the user to write to the clock page
   f4dba6bf743e IB/rdmavt: Fix frwr memory registration
   e7e378ed703e arm64: mm: Ensure tail of unaligned initrd is reserved
   e5f06bf8f46c mm: do not boost watermarks to avoid fragmentation for the DISCONTIG memory model
   655b464eeaa8 trace: Fix preempt_enable_no_resched() abuse
   0f73358dff40 MIPS: scall64-o32: Fix indirect syscall number load
   928962e99694 lib/Kconfig.debug: fix build error without CONFIG_BLOCK
   f4ab3de10c84 zram: pass down the bvec we need to read into in the work struct
   e6093c0212d0 gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC
   0bb4e85bbd34 crypto: lrw - Fix atomic sleep when walking skcipher
   6506cdd4205b crypto: xts - Fix atomic sleep when walking skcipher
   8659a04c77e2 tracing: Fix buffer_ref pipe ops
   68ab802fb8cc tracing: Fix a memory leak by early error exit in trace_pid_write()
   90b70b3ed31b cifs: do not attempt cifs operation on smb2+ rename error
   e6302b845f2d cifs: fix page reference leak with readv/writev
   62cf691cdf74 cifs: fix memory leak in SMB2_read
   34fb6f5eb2cd block, bfq: fix use after free in bfq_bfqq_expire
   41e09d7eab07 fs/proc/proc_sysctl.c: Fix a NULL pointer dereference
   685550ad1192 ALSA: hda/realtek - Move to ACT_INIT state
   b6f3aa978866 powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64
   92d4af2766a1 intel_th: gth: Fix an off-by-one in output unassigning
   0ccd99339030 netfilter: nf_tables: bogus EBUSY in helper removal from transaction
   5b3124548062 netfilter: nf_tables: bogus EBUSY when deleting set after flush
   d3da1f09fff2 Linux 5.0.10
   c735a988a9ca kernel/sysctl.c: fix out-of-bounds access when setting file-max
   822482bff7c5 percpu: stop printing kernel addresses
   b2c65593ea62 ALSA: info: Fix racy addition/deletion of nodes
   c3d0cf332bcd mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
   4ae522890cc1 mm/memory_hotplug: do not unlock after failing to take the device_hotplug_lock
   c138ed72186a perf/ring_buffer: Fix AUX record suppression
   65fce15dbd87 device_cgroup: fix RCU imbalance in error case
   74b4ef5df590 mt76x02: avoid status_list.lock and sta->rate_ctrl_lock dependency
   edc94cb2c13b tpm: fix an invalid condition in tpm_common_poll
   6799f32fff63 sched/fair: Limit sched_cfs_period_timer() loop to avoid hard lockup
   fb9693679feb Revert "kbuild: use -Oz instead of -Os when using clang"
   18636692a1b4 tpm: Fix the type of the return value in calc_tpm2_event_size()
   03c1d8f8afd8 tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete
   4a96e63f8f7d nfit/ars: Avoid stale ARS results
   33dcadf02c1f nfit/ars: Allow root to busy-poll the ARS state machine
   b49a9157c3ec nfit/ars: Introduce scrub_flags
   2cc8e8c230e8 nfit/ars: Remove ars_start_flags
   451fd88f62b9 timers/sched_clock: Prevent generic sched_clock wrap caused by tick_freeze()
   205c53cbe553 x86/speculation: Prevent deadlock on ssb_state::lock
   19867049334b perf/x86: Fix incorrect PEBS_REGS
   5e34d62b59dd x86/cpu/bugs: Use __initconst for 'const' init data
   35f288b72f64 perf/x86/amd: Add event map for AMD Family 17h
   22cc6e1b4fc0 drm/amdgpu/gmc9: fix VM_L2_CNTL3 programming
   5b05d7d6fd5b s390/mem_detect: Use IS_ENABLED(CONFIG_BLK_DEV_INITRD)
   b1db090fb046 mac80211: do not call driver wake_tx_queue op during reconfig
   9a0748c55188 rt2x00: do not increment sequence number while re-transmitting
   44aa331f99b4 kprobes: Fix error check when reusing optimized probes
   ca61e51567a7 x86/kprobes: Avoid kretprobe recursion bug
   7b91f26c45b6 kprobes: Mark ftrace mcount handler functions nokprobe
   fbe6f067a3ad x86/kprobes: Verify stack frame on kretprobe
   f89f9d9636f0 arm64: futex: Restore oldval initialization to work around buggy compilers
   508b773175c7 drm/ttm: fix out-of-bounds read in ttm_put_pages() v2
   8223263d7c44 crypto: x86/poly1305 - fix overflow during partial reduction
   46c4f2375638 ipmi: fix sleep-in-atomic in free_user at cleanup SRCU user->release_barrier
   2f6919fdc23b x86/kvm: move kvm_load/put_guest_xcr0 into atomic context
   1eb719f09f7e coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping
   e58a114d0746 Revert "svm: Fix AVIC incomplete IPI emulation"
   922270b4f018 i3c: Fix the verification of random PID
   33a3fff44a0f i3c: dw: Fix dw_i3c_master_disable controller by using correct mask
   e6200707e648 Revert "scsi: fcoe: clear FC_RP_STARTED flags when receiving a LOGO"
   ad1deea5c4c9 scsi: core: set result when the command cannot be dispatched
   c2116717884c vt: fix cursor when clearing the screen
   5ae77c340c52 serial: sh-sci: Fix HSCIF RX sampling point calculation
   333a81c16e4f serial: sh-sci: Fix HSCIF RX sampling point adjustment
   95df599f95f3 Input: elan_i2c - add hardware ID for multiple Lenovo laptops
   6ef122eb7956 ALSA: core: Fix card races between register and disconnect
   ffd87f87a9c1 ALSA: hda/realtek - add two more pin configuration sets to quirk table
   8834139083cd staging: comedi: ni_usb6501: Fix possible double-free of ->usb_rx_buf
   16b235e81d9d staging: comedi: ni_usb6501: Fix use of uninitialized mutex
   a47fd7121627 staging: comedi: vmk80xx: Fix possible double-free of ->usb_rx_buf
   bd3011021447 staging: comedi: vmk80xx: Fix use of uninitialized semaphore
   dcff1b3c1a1d staging: most: core: use device description as name
   68bbd7524a6f io: accel: kxcjk1013: restore the range after resume.
   3e13bb9782f5 iio: core: fix a possible circular locking dependency
   1f6b63285e2f iio: adc: at91: disable adc channel interrupt in timeout case
   2b70088e1509 iio: Fix scan mask selection
   5c526f27861f iio: dac: mcp4725: add missing powerdown bits in store eeprom
   50bc2c022b6e iio: ad_sigma_delta: select channel when reading register
   f65207cfee33 iio: cros_ec: Fix the maths for gyro scale calculation
   b4dd709ada6d iio:chemical:bme680: Fix SPI read interface
   fd3c6ad2a934 iio:chemical:bme680: Fix, report temperature in millidegrees
   5527e1e58007 iio/gyro/bmg160: Use millidegrees for temperature scale
   9efe152f769c iio: gyro: mpu3050: fix chip ID reading
   25a91f7b9810 staging: iio: ad7192: Fix ad7193 channel address
   80c1486b7e20 Staging: iio: meter: fixed typo
   739969f56e4f KVM: x86: svm: make sure NMI is injected after nmi_singlestep
   935fef82120f KVM: x86: Don't clear EFER during SMM transitions for 32-bit vCPU
   d12bcf87e6ff fs/dax: Deposit pagetable even when installing zero page
   f6846161e203 cifs: fix handle leak in smb2_query_symlink()
   76dbd554c273 cifs: Fix use-after-free in SMB2_read
   e8ac406c749e cifs: Fix use-after-free in SMB2_write
   9582ba401ef0 cifs: Fix lease buffer length error
   ebac4d0adf68 CIFS: keep FileInfo handle live during oplock break
   2cf17769d6b5 sch_cake: Simplify logic in cake_select_tin()
   5aa94a5b5641 nfc: nci: Potential off by one in ->pipes[] array
   a023c1a245a7 NFC: nci: Add some bounds checking in nci_hci_cmd_received()
   d58923dac952 sch_cake: Make sure we can write the IP header before changing DSCP bits
   064290d0f6c7 sch_cake: Use tc_skb_protocol() helper for getting packet protocol
   116ac142d2c6 nfp: flower: remove vlan CFI bit from push vlan action
   51db0d068057 nfp: flower: replace CFI with vlan present
   da86299fcccb route: Avoid crash from dereferencing NULL rt->from
   6ad8c35a70cc net/mlx5: FPGA, tls, idr remove on flow delete
   d3697f88a271 net/tls: prevent bad memory access in tls_is_sk_tx_device_offloaded()
   1d9005b96dce net/mlx5: FPGA, tls, hold rcu read lock a bit longer
   abe4a1328a78 Revert "net/mlx5e: Enable reporting checksum unnecessary also for L3 packets"
   acf4d270942a net/mlx5e: Rx, Check ip headers sanity
   3ce8793e03cd net/mlx5e: Rx, Fixup skb checksum for packets with tail padding
   af294d42d43e net/mlx5e: Switch to Toeplitz RSS hash by default
   6daad2e30e0b net/mlx5e: Protect against non-uplink representor for encap
   58f682514cb5 net/mlx5e: XDP, Avoid checksum complete when XDP prog is loaded
   0e4b3800c069 net: bridge: fix netlink export of vlan_stats_per_port option
   adfc12451123 net/tls: fix build without CONFIG_TLS_DEVICE
   5e7171bf8db7 net: strparser: partially revert "strparser: Call skb_unclone conditionally"
   96418eaa8e6a net/tls: don't leak partially sent record in device mode
   b30d9457b1dc net/tls: fix the IV leaks
   ae924f4e1c45 net: thunderx: don't allow jumbo frames with XDP
   a902fe6dd585 net: thunderx: raise XDP MTU to 1508
   9be4e8224cd6 mlxsw: spectrum_router: Do not check VRF MAC address
   61647856f32a mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
   87ffb893490a mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered workqueue
   565e18a0be10 mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
   6f180e411c3e mlxsw: spectrum_switchdev: Add MDB entries in prepare phase
   ed112abe6795 ipv4: ensure rcu_read_lock() in ipv4_link_failure()
   6bd1ee0a993f ipv4: recompile ip options in ipv4_link_failure
   8cc6c4767e49 vhost: reject zero size iova range
   e35fa0016788 tipc: missing entries in name table of publications
   aad7db2b23c1 team: set slave to promisc if team is already in promisc mode
   8aa965e92750 tcp: tcp_grow_window() needs to respect tcp_space()
   1274905c8e1b net: fou: do not use guehdr after iptunnel_pull_offloads in gue_udp_recv
   49f472ba481b net: Fix missing meta data in skb with vlan packet
   a7a3382b1564 net: fec: manage ahb clock in runtime pm
   88f561ab1bd4 net: bridge: multicast: use rcu to access port list from br_multicast_start_querier
   88c58435304b net: bridge: fix per-port af_packet sockets
   11ba95c4503b net: atm: Fix potential Spectre v1 vulnerabilities
   b633f6580b62 failover: allow name change on IFF_UP slave interfaces
   7e2c712830d6 bonding: fix event handling for stacked bonds
   e4abcebedac3 Linux 5.0.9
   2db9f8d63d74 paride/pcd: Fix potential NULL pointer dereference and mem leak
   e78434f4dcd2 paride/pf: Fix potential NULL pointer dereference
   b59d92ac8a32 IB/hfi1: Failed to drain send queue when QP is put into error state
   b05baa9f19d0 bpf: fix use after free in bpf_evict_inode
   d05fb50b3d0c include/linux/swap.h: use offsetof() instead of custom __swapoffset macro
   1c108a1b6459 f2fs: fix to add refcount once page is tagged PG_private
   b5f51f7abb43 f2fs: fix to use kvfree instead of kzfree
   c55d13d94f8c f2fs: fix to dirty inode for i_mode recovery
   4fb70c2107e9 rxrpc: Fix client call connect/disconnect race
   78154e319888 lib/div64.c: off by one in shift
   f0f1c97f38b8 cifs: return -ENODATA when deleting an xattr that does not exist
   2fbb0171b13a appletalk: Fix use-after-free in atalk_proc_exit
   a33383757975 drm/amdkfd: use init_mqd function to allocate object for hid_mqd (CI)
   3835c46e6ff5 ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t
   ed3a6901a3d7 platform/x86: intel_pmc_core: Quirk to ignore XTAL shutdown
   36f268740bce drm/nouveau/volt/gf117: fix speedo readout register
   3b2457ce9997 f2fs: sync filesystem after roll-forward recovery
   b851a25507e2 PCI/ASPM: Save LTR Capability for suspend/resume
   75e3256e2309 PCI: Blacklist power management of Gigabyte X299 DESIGNARE EX PCIe ports
   dce48c5878ab coresight: cpu-debug: Support for CA73 CPUs
   cf56bb03ffa3 RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs
   5ada4de03943 Revert "ACPI / EC: Remove old CLEAR_ON_RESUME quirk"
   41c3883dfadb crypto: axis - fix for recursive locking from bottom half
   b9563b52e802 net: hns3: Fix NULL deref when unloading driver
   f1a2397542f6 drm/panel: panel-innolux: set display off in innolux_panel_unprepare
   3fcb02749530 drm/amdgpu: psp_ring_destroy cause psp->km_ring.ring_mem NULL
   e7ab5c78e516 lkdtm: Add tests for NULL pointer dereference
   8167ea40725d lkdtm: Print real addresses
   8bc6ef890c86 ext4: prohibit fstrim in norecovery mode
   642530739f19 x86/gart: Exclude GART aperture from kcore
   14bec2dda7a0 cifs: Fix slab-out-of-bounds when tracing SMB tcon
   a419571b2da5 fix incorrect error code mapping for OBJECTID_NOT_FOUND
   21edc981053f cifs: fix that return -EINVAL when do dedupe operation
   92b646e27677 x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error
   aca4bd1a1cc6 iommu/vt-d: Save the right domain ID used by hardware
   d96516127498 iommu/vt-d: Check capability before disabling protected memory
   d9fb98c921a8 drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure
   f0a085e99ff7 x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors
   aaddd952f3db x86/hyperv: Prevent potential NULL pointer dereference
   105d043fedcb x86/hpet: Prevent potential NULL pointer dereference
   1512c986c578 irqchip/mbigen: Don't clear eventid when freeing an MSI
   dc60ac49b040 irqchip/stm32: Don't set rising configuration registers at init
   d79220ee57b8 irqchip/stm32: Don't clear rising/falling config registers at init
   c24b1f67cea0 drm/exynos/mixer: fix MIXER shadow registry synchronisation code
   c43003451a01 blk-iolatency: #include "blk.h"
   8bd30e5e0ec5 PM / Domains: Avoid a potential deadlock
   66495ebfd4df ACPI / utils: Drop reference in test for device presence
   fd9f338db867 perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()
   26980cd03ea6 perf tests: Fix memory leak by expr__find_other() in test__expr()
   5ffefcfe9764 perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test
   ece1fd3f4023 perf evsel: Free evsel->counts in perf_evsel__exit()
   05fe1d5b6ed1 perf top: Fix global-buffer-overflow issue
   940df86f505d perf maps: Purge all maps from the 'names' tree
   60b7f41c4aea perf map: Remove map from 'names' tree in __maps__remove()
   d86bf97d119d perf hist: Add missing map__put() in error case
   4a66a027c1ba perf top: Fix error handling in cmd_top()
   29dddb32f56b perf build-id: Fix memory leak in print_sdt_events()
   86cb58f1a12f perf config: Fix a memory leak in collect_config()
   5bb92662f2f1 perf config: Fix an error in the config template documentation
   d41f87ee413f perf tools: Fix errors under optimization level '-Og'
   84b2a2ca6d41 perf list: Don't forget to drop the reference to the allocated thread_map
   0c6568492019 perf stat: Fix --no-scale
   c957d798c11c scsi: qla2xxx: Fix NULL pointer crash due to stale CPUID
   9ec3c84936f7 scsi: core: Also call destroy_rcu_head() for passthrough requests
   638bf55940b9 tools/power turbostat: return the exit status of a command
   4a45137bb2eb x86/mm: Don't leak kernel addresses
   8764542aa21c sched/core: Fix buffer overflow in cgroup2 property cpu.max
   02abd369fa77 sched/cpufreq: Fix 32-bit math overflow
   7aa9be519579 scsi: iscsi: flush running unbind operations when removing a session
   b0b05ab719c3 thermal/intel_powerclamp: fix truncated kthread name
   800e3fd7bfce thermal/int340x_thermal: fix mode setting
   891fea677cca thermal/int340x_thermal: Add additional UUIDs
   f1a315ca06be thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs
   481c8a89e89a thermal: samsung: Fix incorrect check after code merge
   74920ee161d4 thermal/intel_powerclamp: fix __percpu declaration of worker_data
   6e684bd65a5c paride/pcd: cleanup queues when detection fails
   77323732005a paride/pf: cleanup queues when detection fails
   1f208b0adaee ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration
   bdb43acc8858 mmc: davinci: remove extraneous __init annotation
   e52431f7547c i40iw: Avoid panic when handling the inetdev event
   221b45319d05 IB/mlx4: Fix race condition between catas error reset and aliasguid flows
   b21723eda4cc drm/udl: use drm_gem_object_put_unlocked.
   33550275bbcf auxdisplay: hd44780: Fix memory leak on ->remove()
   4c12b50fc86a ALSA: sb8: add a check for request_region
   b3a964aea086 ALSA: echoaudio: add a check for ioremap_nocache
   2c20533ea602 ext4: report real fs size after failed resize
   d45fc2ba0e39 ext4: add missing brelse() in add_new_gdb_meta_bg()
   e23981104716 ext4: avoid panic during forced reboot
   0a7ef6820970 mips: bcm47xx: Enable USB power on Netgear WNDR3400v2
   c5d7b6089be5 perf/core: Restore mmap record type correctly
   7f434180c880 inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch()
   9005b534c2ba arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM
   48de44356e07 ARC: u-boot args: check that magic number is correct
   0b9132ee7429 Linux 5.0.8
   eaa06ac5d1c1 drm/virtio: do NOT reuse resource ids
   7af79a36d188 KVM: x86: nVMX: fix x2APIC VTPR read intercept
   b564364f22ac KVM: x86: nVMX: close leak of L0's x2APIC MSRs (CVE-2019-3887)
   63bec9219c39 dm integrity: fix deadlock with overlapping I/O
   de022a3453e6 dm: disable DISCARD if the underlying storage no longer supports it
   ca7671084384 dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors
   50b2e5c3b0a8 dm: revert 8f50e358153d ("dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZE")
   556b7d910d5d dm integrity: change memcmp to strncmp in dm_integrity_ctr
   78dbc2482a78 powerpc/64s/radix: Fix radix segment exception handling
   49558542e0eb xprtrdma: Fix helper that drains the transport
   8af91139a0a8 PCI: pciehp: Ignore Link State Changes after powering off a slot
   9b63917c6a4c PCI: Add function 1 DMA alias quirk for Marvell 9170 SATA controller
   025768c171b8 x86/perf/amd: Remove need to check "running" bit in NMI handler
   ecb09f75a9b9 x86/perf/amd: Resolve NMI latency issues for active PMCs
   c583b4d08f3a x86/perf/amd: Resolve race condition when disabling PMC
   8b866ffe3d31 x86/asm: Use stricter assembly constraints in bitops
   3783a3b1e218 x86/asm: Remove dead __GNUC__ conditionals
   5866b5fc2b8a csky: Fix syscall_get_arguments() and syscall_set_arguments()
   b66f9a1ea65a xtensa: fix return_address
   e09deff8f8f4 sched/fair: Do not re-read ->h_load_next during hierarchical load calculation
   05acf6f5b81c xen: Prevent buffer overflow in privcmd ioctl
   e0e77b23a73d IB/mlx5: Reset access mask when looping inside page fault handler
   6b3b09cd4daa arm64/ftrace: fix inadvertent BUG() in trampoline check
   36078cae3790 arm64: backtrace: Don't bother trying to unwind the userspace stack
   de2e5ed04711 arm64: dts: rockchip: fix rk3328 rgmii high tx error rate
   7fcf2d915fa0 arm64: dts: rockchip: Fix vcc_host1_5v GPIO polarity on rk3328-rock64
   68a6a619ebd7 arm64: futex: Fix FUTEX_WAKE_OP atomic ops with non-zero result value
   b0266ece310d ARM: dts: at91: Fix typo in ISC_D0 on PC9
   a005242834ac ARM: dts: rockchip: Fix SD card detection on rk3288-tinker
   e74aa76752f4 ARM: dts: am335x-evm: Correct the regulators for the audio codec
   724d26349abf ARM: dts: am335x-evmsk: Correct the regulators for the audio codec
   4e34e23d5708 ARM: dts: rockchip: fix rk3288 cpu opp node reference
   f04200259be8 ARM: OMAP1: ams-delta: Fix broken GPIO ID allocation
   4e6f0d588cd2 drm/i915/dp: revert back to max link rate and lane count on eDP
   88fa815395e3 virtio: Honour 'may_reduce_num' in vring_create_virtqueue
   ec64558908d7 genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n
   b8ad5278c4d3 genirq: Respect IRQCHIP_SKIP_SET_WAKE in irq_chip_set_wake_parent()
   fffb3e8b5920 block: fix the return errno for direct IO
   b4af1b3cb545 block: do not leak memory in bio_copy_user_iov()
   43d15c041ad7 block: Revert v5.0 blk_mq_request_issue_directly() changes
   6a184be78d3f riscv: Fix syscall_get_arguments() and syscall_set_arguments()
   ee02ae76d069 btrfs: prop: fix vanished compression property after failed set
   41cd8693bfcc btrfs: prop: fix zstd compression parameter validation
   ddb27d3b30f7 Btrfs: do not allow trimming when a fs is mounted with the nologreplay option
   4badea79434d ASoC: fsl_esai: fix channel swap issue when stream starts
   7c394c70a394 ASoC: intel: Fix crash at suspend/resume after failed codec registration
   3859d8fae2d8 mm: writeback: use exact memcg dirty counts
   c4727317b4e5 include/linux/bitrev.h: fix constant bitrev
   a1428aee0c69 kvm: svm: fix potential get_num_contig_pages overflow
   d2c5c9ea9a09 drm/udl: add a release method and delay modeset teardown
   7029188253fc drm/sun4i: DW HDMI: Lower max. supported rate for H6
   3e05b13e52e5 drm/i915/gvt: do not deliver a workload if its creation fails
   56487f7b8330 alarmtimer: Return correct remaining time
   b4dfbd47a494 parisc: also set iaoq_b in instruction_pointer_set()
   97ba69f22665 parisc: regs_return_value() should return gpr28
   d347bbea0668 parisc: Detect QEMU earlier in boot process
   af2abcc62e64 mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning
   13771e12fb7d mmc: alcor: don't write data before command has completed
   8a3bb1553d5b arm64: dts: rockchip: fix rk3328 sdmmc0 write errors
   9e77cd4a9922 mm/huge_memory.c: fix modifying of page protection by insert_pfn_pmd()
   89944d7e95e3 ALSA: hda - Add two more machines to the power_save_blacklist
   3c20e6c50e03 ALSA: xen-front: Do not use stream buffer size before it is set
   97bf09839964 ALSA: hda/realtek - Add quirk for Tuxedo XC 1509
   acaf3a112008 ALSA: hda/realtek: Enable headset MIC of Acer TravelMate B114-21 with ALC233
   df828c33163f ALSA: seq: Fix OOB-reads from strlcpy
   cb11af93e626 ACPICA: Namespace: remove address node from global list after method termination
   da6a87fb0ad4 ACPICA: Clear status of GPEs before enabling them
   bee8b4b4c79b HID: logitech: Handle 0 scroll events for the m560
   0601ac3b4925 SMB3: Allow persistent handle timeout to be configurable on mount
   4d4ec04ed77e hwmon: (occ) Fix power sensor indexing
   026f98a1d51d hwmon: (w83773g) Select REGMAP_I2C to fix build error
   c231b6b0064d tty: ldisc: add sysctl to prevent autoloading of ldiscs
   e4ebae16792a tty: mark Siemens R3964 line discipline as BROKEN
   e2a0237494ce Revert "clk: meson: clean-up clock registration"
   62a23bbaee09 lib/string.c: implement a basic bcmp
   622902df9eba kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD
   396f116f6d0a net/mlx5e: Update xon formula
   29b4db4176da net/mlx5e: Update xoff formula
   68ef6f3e1a70 net: mlx5: Add a missing check on idr_find, free buf
   4fe853723d57 r8169: disable default rx interrupt coalescing on RTL8168
   4b780e0fc986 net: core: netif_receive_skb_list: unlist skb before passing to pt->func
   b5f69a5648b0 net: vrf: Fix ping failed when vrf mtu is set to 0
   c83447096390 net: thunderx: fix NULL pointer dereference in nicvf_open/nicvf_stop
   502de75b3b34 net: bridge: always clear mcast matching struct on reports and leaves
   f4473ccd883c net: ip6_gre: fix possible use-after-free in ip6erspan_rcv
   b49e1837b15e net: ip_gre: fix possible use-after-free in erspan_rcv
   eefa6c2464c8 bnxt_en: Reset device on RX buffer errors.
   aecbbae850ed bnxt_en: Improve RX consumer index validity check.
   c43bbe6d49f4 nfp: disable netpoll on representors
   c974a681e996 nfp: validate the return code from dev_queue_xmit()
   6fc42565470a net/mlx5e: Add a lock on tir list
   44bd84f1b5a5 net/mlx5e: Fix error handling when refreshing TIRs
   59c5f595a120 vrf: check accept_source_route on the original netdevice
   71707cc55c39 tcp: fix a potential NULL pointer dereference in tcp_sk_exit
   bc7167651e30 tcp: Ensure DCTCP reacts to losses
   cd1b7376d8a3 sctp: initialize _pad of sockaddr_in before copying to user memory
   3c36cc5bdf89 r8169: disable ASPM again
   cdeed1e0f47e qmi_wwan: add Olicard 600
   3bcad39f08ca openvswitch: fix flow actions reallocation
   48a1cd79cc7e net/sched: fix ->get helper of the matchall cls
   4edf174b821e net/sched: act_sample: fix divide by zero in the traffic path
   4e8d8e767f11 net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock().
   ec7aeb6a0709 netns: provide pure entropy for net_hash_mix()
   6ced07adaead net/mlx5: Decrease default mr cache size
   67b0fbfaf828 net-gro: Fix GRO flush when receiving a GSO packet.
   88b9d6f6aff8 net: ethtool: not call vzalloc for zero sized memory request
   351ddbdf532c kcm: switch order of device registration to fix a crash
   472a290314f0 ipv6: sit: reset ip header pointer in ipip6_rcv
   ccec3a09c429 ipv6: Fix dangling pointer when ipv6 fragment
   fd4ecb124730 ip6_tunnel: Match to ARPHRD_TUNNEL6 for dev type
   4f90b9ca3cb2 ibmvnic: Fix completion structure initialization
   b68b3427a2a2 hv_netvsc: Fix unwanted wakeup after tx_disable
   5160fb3353f5 netfilter: nf_tables: add missing ->release_ops() in error path of newrule()
   19589530ec6d netfilter: nf_tables: use-after-free in dynamic operations
   43154d5c868c netfilter: nft_compat: use .release_ops and remove list of extension
   93f7f61ed079 kbuild: pkg: use -f $(srctree)/Makefile to recurse to top Makefile
   118003351916 drm/i915/gvt: do not let pin count of shadow mm go negative

(From OE-Core rev: 0ff62f812decc752d97a1d7bc377e959bf06753a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:28:57 +01:00
Richard Purdie
e5fd00f2a2 uninative: Switch from bz2 to xz
(From OE-Core rev: 29fc9210b973be68de474e75068e4c72371afe5a)

(From OE-Core rev: 05558169667efb5209354b0af6a0e96bcfa9b710)

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>
2019-06-18 11:28:57 +01:00
Richard Purdie
f08ab6db52 yocto-uninative: Update to 2.5 release
This includes libstdc++ changes from gcc 9.X.

It also switches uninative from bz2 to xz compression.

(From OE-Core rev: f6199122b16bb42db2c6e6c318c1de8a62190432)

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>
2019-06-18 11:28:57 +01:00
Joshua Watt
d6462e0149 bitbake: bitbake: cooker: Rename __depends in all multiconfigs
The renaming of the __depends variable to __base_depends and file
watches needs to occurs for all multiconfigs, not just the base config.
Failing to do this for all multiconfigs will result in a huge increase
in the size of the parsing cache (about 5x for a single mulitconfig)
because all multiconfig caches will still depend on the base config
files. This will also seen a similar jump in the amount of time required
to load the parsing cache from memory, both because the cache is larger
and because of explosion of additional existence checks that must be
done for the base files.

[YOCTO #13359]

(Bitbake rev: 2ea1e6720c66841baa5e01c523c86f8ecb03eb7d)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:28:26 +01:00
Richard Purdie
38a6b64f1c bitbake: cooker: Ensure mcdeps are processed even if only one multiconfig
If you have no BBMULTICONFIG set but set mcdepends, they're currently
ignored. We can handle them correctly with this small tweak.

(Bitbake rev: 2aaea2f72e0c37451e7c7851b3a32abd733b38e1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:28:26 +01:00
David Reyna
254bef1d42 bitbake: toaster: Fix Thud Bitbake release metadata
Fix the Bitbake version ID for Thud (1.40).

[YOCTO #13356]

(Bitbake rev: 7cda98d64693d978ad1387fed05a83aaa681e097)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 09:44:36 +01:00
Richard Purdie
2fd4bf41a3 dbus-test: Improve ptest dependencies dependencies
The dbus-test package is empty, move its dependencies to the ${PN}-ptest
package. Also ensure that it doesn't depend on the empty ${PN} package
which is about to start causing image failures in the following commit.
In this case the correct dependency is dbus itself.

(From OE-Core rev: a2915db76d6a2007b22b20f945498c84e7fa8132)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-09 11:01:08 +01:00
Richard Purdie
62d810a507 util-linux: Fix ptest dependencies
We should append to the ptest RDEPENDS and RRECOMMENDS otherwise the bbclass
defaults are overwritten. This leads to ptest-runner not being installed in
minimal images. Also drop the duplicate ${PN} value which is unneeded once
we do this.

(From OE-Core rev: db0ebefad601034a017f536a92c04aa83479cf55)

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>
2019-06-07 13:57:49 +01:00
Richard Purdie
d8c83dcf29 strace: Tweak ptest disk space management
If the test is successful, remove the log and exp files. This stops strace
using around 600MB of disk space and running our ptest images out of space.

(From OE-Core rev: 4b1e917ed4e9921d9f165722c6cd33c9b1c08e20)

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>
2019-06-07 13:57:49 +01:00
Richard Purdie
720f7554a8 perl/modules: Add various missing ptest perl module dependencies
Whilst not complete, this resolves some module dependency failures being seen
by various lib*-perl ptests and in quilt.

(From OE-Core rev: 3f5f91a2a1f3ebb8151834ce4223dcd33f363803)

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>
2019-06-07 13:57:48 +01:00
Richard Purdie
cdd4ba6c3e libpcre: Add make dependency for ptest
The tests are run from a makefile so this dependency is needed.

(From OE-Core rev: d2361e9bb6caf66cf6d492fc5957c601fd3f9e6d)

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>
2019-06-07 13:57:48 +01:00
Richard Purdie
59b575a98c openssh: Add sudo dependency for ptest
Without this we see test failures due to the sudo binary being missing.

(From OE-Core rev: e9ec74e10b9c65ac4c014bce57b2d28806766df1)

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>
2019-06-07 13:57:48 +01:00
Richard Purdie
f2dfe9d089 bash: Fix bash-ptest dependencies
Bash's ptest needs glibc-utils (for locale), some extra locales for various tests
it uses options busybox doesn't support for some tools, hence coreutils and also runs
perl for some tests.

(From OE-Core rev: ea2fdbd84da199c89081a824ecb0b97cf5a56bdf)

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>
2019-06-07 13:57:48 +01:00
Richard Purdie
06e7e43585 perl-rdepends: Add missing module dependencies
Adding these fixes the acl and attr ptests to work within minimal images.

(From OE-Core rev: 914d2967e04bcf76e1aef07392527ea3c2d257e7)

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>
2019-06-07 13:57:48 +01:00
Mariano López
54258d4ee2 util-linux: Add missing ptest dependencies
There are some missing dependencies for the util-linux-ptest package
that causes inconsistencies in the package tests run in different images.

The kernel module in RRECOMMENDS is not build at this time, it needs
more testing and check if the configuration change can be part of the
yocto-kernel-cache repository.

(From OE-Core rev: b684728304cc6a4bee03c1233022258d8b53f78c)

Signed-off-by: Mariano López <just.another.mariano@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>
2019-06-07 13:57:48 +01:00
Jean-Marie LEMETAYER
2eecdcf187 npm: remove some temporary build files
Fixes [YOCTO #11028]

When dealing with node modules which use "node-gyp" [1] to build native
addons to node. Some temporary build files stay in the image: object
files, static library files, dependency files, ...

This commit does not keep only the required files, but remove the files
which can leads to QA issues (staticdev with static library files).

[1]: https://github.com/nodejs/node-gyp

(From OE-Core rev: b03743b0f843736c6ebe8077e1e03bc03ac39410)

Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.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>
2019-06-07 13:57:48 +01:00
Jean-Marie LEMETAYER
7a779a1351 npm: fix node and npm default directory conflict
Fixes [YOCTO #13349]

When dealing with node modules which have declared "bin" files [1], npm
will create a link in '/usr/bin' with a relative link to
'../lib/node_modules/<module bin file>'.

The commits e9270af429 and
2713d9bcc3 explicitely use
'/usr/lib/node/' as install directory, but does not care about the "bin"
symbolic linked files.

In order to keep valid links, and to keep it as simple as possible, the
path '/usr/lib/node_modules/' is used as install directory for npm. And
a symbolic link is created to have a valid '/usr/lib/node/' path, needed
for node.

[1]: https://docs.npmjs.com/files/package.json#bin

(From OE-Core rev: 67846b3b2d2d45401d500bff5cf3d4d71c003f7a)

Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.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>
2019-06-07 13:57:48 +01:00
Jean-Marie LEMETAYER
0330298551 npm: get npm package name from npm pack
Fixes [YOCTO #12534]

When using npm packages with exotic names, like "JSONSelect" (with
uppercase) or "@angular/cli" (with at sign and slash), there are three
different names:
  - the recipe name ("jsonselect" or "angular-cli")
  - the npm module name ("JSONSelect" or "@angular/cli")
  - the npm pack name ("JSONSelect" or "angular-cli")

The commit fa9c077068 allow to have
different recipe name and npm module name by setting the NPMPN variable.

This commit allows to have yet another npm pack name. The pack filename
is now dynamically retrieved from the 'npm pack' command.

(From OE-Core rev: 86c9f25d4535663606326e53c33a8927f79e8f52)

Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.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>
2019-06-07 13:57:48 +01:00
Ross Burton
9601395299 glib-2.0: add missing libgcc dependency to glib-2.0-ptest
The thread tests need libgcc for pthread_cancel to work.

(From OE-Core rev: 3301846b009818f3d2150ae045dd6878f1f8c586)

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>
2019-06-07 13:57:48 +01:00
Richard Purdie
d7d71fd2f2 apr/apr-util: Add ptest dependency on libgcc
Avoid:

libgcc_s.so.1 must be installed for pthread_cancel to work

when running the ptest without libgcc.

(From OE-Core rev: f704c1021e311ad493374d8cd38e800b79a96746)

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>
2019-06-07 13:57:48 +01:00
Richard Purdie
4ec1e60607 gettext/flex/m4/bzip2/gzip/parted/slang/attr: Add make to -ptest packages
This solves ptest runtime errors where make was missing causing the ptests
to fail.

(From OE-Core rev: 47bcd4dec32e87b7353b079f63931d11cd0568e6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for warrior context]
[Dropped ptest fixes for pkg w/o ptests in warrior]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:48 +01:00
Richard Purdie
22d792c93e ptest: Add RDEPENDS frpm PN-ptest to PN package
Many different ptests are breaking as they assume that ${PN}-ptest
depends on ${PN}. It doesn't currently but should. If we fix this, many
different ptests start passing when they previously failed.

It does depend on fixing an issue in the dbus-test recipe which is done
in the preceeding patch (mentioned in case this gets backported).

(From OE-Core rev: 1ad805984c8c9c9a505b6b0e8ad870b8233b13b2)

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>
2019-06-07 13:57:48 +01:00
Richard Purdie
15049398f6 openssh: Avoid PROVIDES warning from rng-tools dependency
Avoid the warning:

WARNING: Nothing RPROVIDES 'nativesdk-rng-tools' (but virtual:nativesdk:/home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-connectivity/openssh/openssh_7.9p1.bb RDEPENDS on or otherwise requires it)

(From OE-Core rev: 5d70ab1ba3570ff24d5d118805ed0d9bafad022d)

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>
2019-06-07 13:57:48 +01:00
Martin Jansa
511de9dc47 python: add a fix for CVE-2019-9948 and CVE-2019-9636
(From OE-Core rev: 6c8994a6ae8860c4b27d8ec990344c6b099cc685)

Signed-off-by: Martin Jansa <Martin.Jansa@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>
2019-06-07 13:57:48 +01:00
Alexander Kanavin
2268bf548a python: update to 2.7.16
Drop backported patches

License-update: copyright years

(From OE-Core rev: 0fec1d486a3ef663dc4bbab76e5ec0ed646f23e4)

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>
2019-06-07 13:57:48 +01:00
Alexander Kanavin
02dc57ea64 linux-firmware: upgrade to latest revision
(From OE-Core rev: 9ebd56a589d859d6032b5468f044f0e85e9aa0ba)

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>
2019-06-07 13:57:48 +01:00
Armin Kuster
919d3c7b33 Tar: Security fix CVE-2019-0023
Source: tar.git
MR: 97928
Type: Security Fix
Disposition: Backport from http://git.savannah.gnu.org/cgit/tar.git/commit/?id=cb07844454d8cc9fb21f53ace75975f91185a120
ChangeID: 7aee4c0daf8ce813242fe7b872583560a32bc4e3
Description:

Affects tar < 1.32

fixes CVE-2019-9923

(From OE-Core rev: fa40d49bfb0dedea7f3dad454c408e249f4c05f7)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:48 +01:00
Andrej Valek
fa29e17411 dropbear: update to 2019.78
The only change is a regression fix:
- Fix dbclient regression in 2019.77. After exiting the terminal would be left
  in a bad state. Reported by Ryan Woodsmall

(From OE-Core rev: 11bc4253e3bc9525a12fafe855bf8d6db4fb81c3)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:48 +01:00
Martin Jansa
1823d7b33c Revert "acpica: use update-alternatives for acpidump"
This reverts commit c3a325b5c2d9315629d014e5ebba552fe045171c.

This seems to be causing:
WARNING: acpica-20180508-r0 do_package: acpica: alternative target (/usr/bin/acpidump or /usr/bin/acpidump.acpica) does not exist, skipping...
WARNING: acpica-20180508-r0 do_package: acpica: NOT adding alternative provide /usr/bin/acpidump: /usr/bin/acpidump.acpica does not exist
WARNING: acpica-20180508-r0 do_package: acpica: alt_link == alt_target: /usr/bin/acpidump == /usr/bin/acpidump

because the 20180508 version in warrior unlike the 20190405 in master doesn't install acpidump binary.

(From OE-Core rev: ba36b0c5c1db632dd849f3f28f83c272530f67b6)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:48 +01:00
Ming Liu
35a50b0e3a kernel.bbclass: adjust a condition checking
do_bundle_initramfs does not have to depend on
${INITRAMFS_IMAGE}:do_image_complete if INITRAMFS_IMAGE_BUNDLE is not
set.

(From OE-Core rev: 5bb7ec7a8c510d83bf0ceb0a3132a5bde797ea6c)

Signed-off-by: Ming Liu <liu.ming50@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>
2019-06-07 13:57:48 +01:00
Richard Purdie
b349df4b83 core-image-sato-sdk-ptest: Tweak size to stay within 4GB limit
Adding the valgrind debug symbol information caused the genericx86-64 image to
overflow the 4GB boundary. Tweak the sizes to avoid autobuilder failures yet
leave enough space all the tests still run successfully.

(From OE-Core rev: 63c332093f1f5d3fbf9cbcd62886993724aa87f9)

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>
2019-06-07 13:57:48 +01:00
Martin Jansa
6b6b5cb2ab perf: make sure that the tools/include/uapi/asm-generic directory exists
* before trying to copy unistd.h into it

* older kernels don't have uapi in tools/include and do_configure fails
  with:
  DEBUG: Executing shell function do_configure
  cp: cannot create regular file '.../perf/1.0-r9/perf-1.0/tools/include/uapi/asm-generic/unistd.h':
  No such file or directory
  WARNING: exit code 1 from a shell command.

* tools/include/uapi was added in kernel 4.8 with
  c4b6014e8b
  tools: Add copy of perf_event.h to tools/include/linux/

(From OE-Core rev: 5d35f27f8db102f2cb63c86c163c9952352dbb1d)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:48 +01:00
Martin Jansa
a6596bff75 glib-networking: add PACKAGECONFIG for openssl
* gnutls from meta-gplv2 isn't new enough for this version of glib-networking:
  meson.build:74:0: ERROR:  Invalid version of dependency, need 'gnutls' ['>= 3.4.6'] found '3.3.30'

* disabling gnutls PACKAGECONFIG isn't an option either:
  meson.build:131:2: ERROR:  Problem encountered: No TLS backends enabled. Please enable at least one TLS backend

* add an option to replace gnutls with openssl

(From OE-Core rev: d6d588f560d644546d01d52935dfe7a27ba64859)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:48 +01:00
Chee Yang Lee
cd8f2b0017 wic/bootimg-efi: replace hardcoded volume name with label
volume name should refer to --label in .wks.
Replace the hardcoded volume name  with label.
set "ESP" as default name when no lable specified.

(From OE-Core rev: b67ac8283987e3bba429da25249e6d3c11a846d6)

Signed-off-by: Chee Yang Lee <chee.yang.lee@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>
2019-06-07 13:57:48 +01:00
Hongxu Jia
05140c22ce oeqa/targetcontrol.py: fix qemuparams not work in runqemu with launch_cmd
As runqemu with launch_cmd means directly run the command, don't need set
rootfs or env vars.

Since commit [a847dd7202 runqemu: Let qemuparams override default settings]
applied in oe-core, if launch_cmd contains "qemuparams='***'", it does not
work, which is overridden by latter qemuparams="-serial tcp:127.0.0.1" in
QemuRunner.launch();

So we set qemuparams as a parameter in runqemu, the fix makes it work

(From OE-Core rev: 00c58ae552d7414116f13f43d4df2f6e57c0d1ba)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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>
2019-06-07 13:57:48 +01:00
Alejandro Enedino Hernandez Samaniego
0a525f4538 run-postinsts: Fix full execution of scripts at first boot
run-postinsts runs a given set of scripts during the first boot of the
device, when one of these scripts prints something to stdout (isnt
daemonized correctly), since stdout is not available at that time,
the script execution immediately returns with an error (exit_group()),
this error causes the script to terminate all threads within the process,
causing undesired behavior since the script might still had to execute
some other code.

Replace eval built-in with (), since () executes in a subshell,
even if one of the scripts exits, all threads of that process will only
be within that session, this ensures other scripts meant to be run are
still run afterwards.

[YOCTO #13266]

(From OE-Core rev: 9d1cb1b38f22cb3ab93ac8b431601df12f76dc22)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.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>
2019-06-07 13:57:48 +01:00
Mikko Rapeli
d3d6966d1a oeqa/sdk: use bash to execute SDK test commands
The commands only work with with bash. If /bin/sh is
dash like in Debian, the command execution fails with
errors like:

Standard Output: /bin/sh: 5: export: --sysroot: bad variable name

and all SDK tests fail.

(From OE-Core rev: 0423d5049492516a6df6caf3404ddaa1734ff1d9)

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.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>
2019-06-07 13:57:48 +01:00
Mikko Rapeli
4b393a21ff openssh: recommend rng-tools with sshd
Since openssl 1.1.1 and openssh which uses it, sshd
startup is delayed. The delays range from few seconds
to minutes and even to hours. The delays are visible
in host keys generation and when sshd process is started
in response to incoming TCP connection but is failing
to provide SSH version string and clients or tests time out.

In all cases traces show that sshd is waiting for getentropy()
system call to return from Linux kernel, which returns only
after kernel side random number pool is initialized. The pool
is initialized via various entropy source which may be
missing on embedded development boards or via rngd from
rng-tools package from userspace. HW random number generation
and kernel support help but rngd is till needed to feed that data
back to the Linux kernel.

Example from an NXP imx8 board shows that kernel random number pool
initialization can take over 400 seconds without rngd,
and with rngd it is initialized at around 4 seconds after boot.
The completion of initialization is visible in kernel dmesg with line
"random: crng init done".

More details are available from:

 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912087
 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897572
 * https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=43838a23a05fbd13e47d750d3dfd77001536dd33
 * http://www.man7.org/linux/man-pages/man2/getrandom.2.html

(From OE-Core rev: 24d9e370e88a775486f9d6569bf1ba9c3b9e3b8a)

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Cc: 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>
2019-06-07 13:57:48 +01:00
Kai Kang
42600d4949 bitbake.conf: set NO_RECOMMENDATIONS with weak assignment
Set NO_RECOMMENDATIONS with weak assignment then it could be set a
default value somewhere else.

(From OE-Core rev: d58133d306ca6618f1470bb0c6d8c62010bb71ec)

Signed-off-by: Kai Kang <kai.kang@windriver.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>
2019-06-07 13:57:48 +01:00
Richard Purdie
2df7c1f926 oeqa/concurrenttest: Patch subunit module to handle classSetup failures
Currently setupClass errors were not being mapped back to the failing tests
and they were hence being marked as UNKNOWN and the test statistics were
inaccurate.

This is because whilst the errors were being encoded into the test results
stream, the decoder doesn't cope with an error outside a testStart event.

We patch in an addError handler to the outsideTest parser so that this
does get handled in a way similar to the non-concurrent case.

It would be nice if we didn't have to do this but there doesn't seem
to be any other way to fix this other than forking subunit.

We also make a minor change so another of our changes can cope with
tests without a start time.

(From OE-Core rev: 741cf82d0e7f9e797ba35157a1466fadbf74dc64)

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>
2019-06-07 13:57:48 +01:00
Richard Purdie
c8764f8b00 oeqa/runner: Fix subunit setupClass/setupModule failure handling
The string format for subunit setupClass/setupModule failures is slightly
different, tweak the regex to correctly handle both cases.

(From OE-Core rev: 3c645ecdb884ecafa7c492bdd8a952cce96d3906)

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>
2019-06-07 13:57:48 +01:00
Alex Kiernan
521fbc32cb shadow: Backport last change reproducibility
The third field in the /etc/shadow file (sp_lstchg) contains the date of
the last password change expressed as the number of days since Jan 1,
1970.

Backport the upstream changes to honour SOURCE_DATE_EPOCH for build
reproducibility.

(From OE-Core rev: 807a2f76e86d34fa69b0b2b369287985cc9eff78)

Signed-off-by: Alex Kiernan <alex.kiernan@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>
2019-06-07 13:57:48 +01:00
Richard Purdie
f2b442c5c8 oeqa/systemd_boot: Drop OETestID
Matching changes in OE-Core. drop OETestID.

(From meta-yocto rev: 783d6663bb1449b4db1ec23975782a311bd83e77)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-20 14:38:49 +01:00
Naveen Saini
07d23df80d linux-yocto: update genericx86* SRCREV for 4.19
Bump to kernel release v4.19.19

(From meta-yocto rev: 4573518a9e890ffda86cb57dce67c0db909d53d9)

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-20 14:38:49 +01:00
Richard Purdie
72ed2ca072 oeqa/target/ssh: Replace suggogatepass with ignoring errors
We continued to see encoding problems with ssh commands run in oeqa. After much
research the conclusion was we should use ignore the errors since some occasional bad
locale encoding is better than the unicode decoding issues we were seeing which crashed
large parts of tests.

(From OE-Core rev: e4037c6911592700799d207ca8c3976afba18e25)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-20 14:38:16 +01:00
Paul Barker
130cad3803 gdb: Fix aarch64 build with musl
(From OE-Core rev: 334fb1db7bcf7456c9db263080cd281571c512dd)

Signed-off-by: Paul Barker <paul@betafive.co.uk>
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>
2019-05-20 14:38:16 +01:00
Richard Purdie
dd90698dda oeqa/core/runner: Handle unexpectedSucesses
Instead of showing:
RESULTS - ptest.PtestRunnerTest.test_ptestrunner - Testcase 1600: UNKNOWN (32.30s)

map unexpectedSuccesses to PASSED and improve the way they're displayed. We
expect/allow ptest runner to fail but if it passes we should handle it correctly.

(From OE-Core rev: 21079473e0cbd0e43682dc0d15a651e7e64db747)

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>
2019-05-20 14:38:16 +01:00
Richard Purdie
10e1b48a9e oeqa: Drop OETestID
These IDs refer to testopia which we're no longer using. We would now use the test
names to definitively reference tests and the IDs can be dropped, along with their
supporting code.

(From OE-Core rev: 551153b0bd1ebbc05582f6014e3d88b9ce4a46d0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Backported to keep in-sync with future qa changes]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-20 14:38:16 +01:00
Oleksandr Kravchuk
64fa42868d bitbake.conf: use https instead of http
Use HTTPS instead of HTTP whenever one is available.

(From OE-Core rev: 0e7cef6d2f1093eac3046499e99148efcf977713)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.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>
2019-05-20 14:38:16 +01:00
Hongxu Jia
7a96089099 acpica: use update-alternatives for acpidump
acpidump is both provided by acpica and pmtools, so use
update-alternatives to fix conflicts:
...
|Error: Transaction check error:
|  file /usr/bin/acpidump conflicts between attempted installs of
pmtools-20130209+git0+3ebe0e54c5-r0.i586 and acpica-20190405-r0.i586
...

(From OE-Core rev: c3a325b5c2d9315629d014e5ebba552fe045171c)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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>
2019-05-20 14:38:16 +01:00
Chen Qi
b2b48f0253 squashfs-tools: set CVE_PRODUCT
(From OE-Core rev: 6694be65f542eb35f4d1ed432d7ae89d7f1453cd)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-05-20 14:38:16 +01:00
Chen Qi
f94f7450fb flac: also add flac to CVE_PRODUCT
flac uses both 'flac' and 'libflac' as cve product.

(From OE-Core rev: dd1a74f6defa6fcd9cf79ec48c057a5ac7298624)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-05-20 14:38:16 +01:00
Chen Qi
8e183ade1a ghostscript: set CVE_PRODUCT
(From OE-Core rev: 23822fb39341ba064d2e01389409958f6b4dd15c)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-05-20 14:38:16 +01:00
Max Kellermann
92dd0b2d9d useradd-staticids: print exception after parse_args() error
Without this, the user has no idea what went wrong.

(From OE-Core rev: b1a5713b8746e4aa8fdc5e0122a30ebdc637b4dd)

Signed-off-by: Max Kellermann <max.kellermann@gmail.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>
2019-05-20 14:38:16 +01:00
Richard Purdie
7af49cc6b0 oeqa/ssh: Avoid unicode decode exceptions
This code really needs to be rewritten to not split potential
multibyte characters, for now work around it to avoid exceptions like:

  File "/home/pokybuild/yocto-worker/qa-extras2/build/meta/lib/oeqa/core/target/ssh.py", line 211, in run
    data = reader.read(1024, 4096)
  File "/usr/lib64/python3.6/codecs.py", line 503, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 0: invalid start byte

(From OE-Core rev: 918e15e22c797d52d33c3399324e480aa1a2cc7f)

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>
2019-05-20 14:38:16 +01:00
Ying-Chun Liu (PaulLiu)
0fd7c08b2e uboot-sign: Fix u-boot-nodtb symlinks
When using u-boot-nodtb, the symlink didn't install correctly to the
${DEPLOYDIR}. This commit fixes this bug.

(From OE-Core rev: 5979289d5f306d37fe5c8ed994bb833f2492ef32)

Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
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>
2019-05-20 14:38:16 +01:00
Alex Kiernan
7f8185aa87 uboot-sign: Fix build when UBOOT_DTB_BINARY is empty
When UBOOT_DTB_BINARY is empty and because the code now changes
directory into ${B}, the test for the existence becomes `[ -f ]` which
succeeds and subsequently the install fails.

Reorder the code so it's clear that UBOOT_DTB_BINARY empty is an
expected configuration and then quote UBOOT_DTB_BINARY everywhere so
no one trips over this again.

Fixes: bacb59079eb6 ("uboot-sign: add support for different u-boot configurations")
(From OE-Core rev: a0ecd3b56b86fa47ae0b051548bdf6cb08fc2d98)

Signed-off-by: Alex Kiernan <alex.kiernan@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>
2019-05-20 14:38:16 +01:00
Andreas Obergschwandtner
27db34f324 uboot-sign: add support for different u-boot configurations
This is done by concatenating the DTB with the kernels public key
to all built u-boot binaries. Furthermore the installation of all
the binaries is required.

(From OE-Core rev: da6806df8bb3994e80d8deb6edb406dba92249e0)

Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-20 14:38:16 +01:00
Martin Jansa
11e52d0a33 opkg: fix ptest packaging when OPKGLIBDIR == libdir
there is small issue with ptest packaging in cases where
OPKGLIBDIR is set to /usr/lib.

Then all ptest files get packaged in libopkg instead of opkg-ptest and correct QA error is triggered:
ERROR: QA Issue: /usr/lib/opkg/ptest/tests/opkgcl.py contained in package libopkg requires /usr/bin/python3, but no providers found in RDEPENDS_libopkg? [file-rdeps]

  # $FILES_libopkg
  #   set /jenkins/mjansa/build-webos-master/oe-core/meta/recipes-devtools/opkg/opkg_0.4.0.bb:62
  #     "${libdir}/*.so.* ${OPKGLIBDIR}/opkg/"
  FILES_libopkg="/usr/lib/*.so.* /usr/lib/opkg/"

  # $FILES_opkg-ptest [2 operations]
  #   set /jenkins/mjansa/build-webos-master/oe-core/meta/classes/ptest.bbclass:9
  #     "${PTEST_PATH}"
  #   rename from FILES_${PN}-ptest data.py:117 [expandKeys]
  #     "${PTEST_PATH}"
  # pre-expansion value:
  #   "${PTEST_PATH}"
  FILES_opkg-ptest="/usr/lib/opkg/ptest"

  # $PACKAGES [4 operations]
  #   set /jenkins/mjansa/build-webos-master/oe-core/meta/conf/bitbake.conf:292
  #     "${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
  #   set /jenkins/mjansa/build-webos-master/oe-core/meta/conf/documentation.conf:314
  #     [doc] "The list of packages to be created from the recipe."
  #   prepend /jenkins/mjansa/build-webos-master/oe-core/meta/classes/ptest.bbclass:20
  #     "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}"
  #   prepend /jenkins/mjansa/build-webos-master/oe-core/meta/recipes-devtools/opkg/opkg_0.4.0.bb:60
  #     "libopkg"
  # pre-expansion value:
  #   "libopkg ${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)} ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
  PACKAGES="libopkg opkg-ptest opkg-src opkg-dbg opkg-staticdev opkg-dev opkg-doc opkg-locale  opkg"

The easiest fix should be to reorder PACKAGES (the _prepends) so that ${PN}-ptest is prepended later -> ends before libopkg).

(From OE-Core rev: 6bc286d2bdf00e042261e9d3d6b7e25b382d171e)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-20 14:38:16 +01:00
Joshua Watt
215f6dcd0a resulttool: Add option to dump all ptest logs
Adds an option to dump all the ptest logs to individual files in a
specified directory. If multiple test runs are present, the
'--prepend-run' argument will create separate directories for each test
run under the target directory and put the logs there to prevent each
test run from clobbering the others.

[YOCTO #13331]

(From OE-Core rev: bb5a0fedda2817b9d71186a90a1f77bff3cbecaf)

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>
2019-05-20 14:38:16 +01:00
Stefan Müller-Klieser
4c5f3371ed cml1.bbclass: fix undefined behavior
Whenever cml1 do_configure is used with a defconfig, oldconfig waits for
input. This silently fails on recent kconfig projects with:
"Error in reading or end of file."
We cannot use a more up to date kconfig target such as olddefconfig,
because busybox does not support it.

(From OE-Core rev: bbce28b31e2d575fec0ffe8c94d6ffcb76849810)

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.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>
2019-05-20 14:38:16 +01:00
Douglas Royds
00092a27e2 distutils: Run python from the PATH in the -native case as well
The python distutils generate a python wrapper script for each package,
containing shebang lines pointing to the python executable.
In our case, this is a fully-qualified path to python-native in the
recipe-sysroot-native.

Ubuntu 18.04 restricts the useful length of the shebang line to 125
characters, and Ubuntu 16.04 restricts it to 77. In both cases, the
staged python script fails to run due to the length of the path to
the python-native executable.

Replace the shebang line with nativepython or nativepython3 as appropriate.
The nativepython symlink is installed by the python-native recipe:

    #!/usr/bin/env nativepython

We were already doing this for on-target distutils components.
This change applies the sed-line to -native distutils components as well.
In this way, -native clients of these components can invoke the wrapper scripts
directly, without themselves needing to inherit pythonnative.

This works around a known setuptools issue:
https://github.com/pypa/setuptools/issues/494
Even once this issue has been resolved upstream,
we will still need to replace `python` with `nativepython`

(From OE-Core rev: d32cd33b5aeaa8859cfd68b9167a3ab3b892e710)

Signed-off-by: Douglas Royds <douglas.royds@taitradio.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>
2019-05-20 14:38:16 +01:00
Ross Burton
daf48c00c2 wic: change expand behaviour to match docs
The documentation says that --expand takes a comma-separated list of
partition:size pairs, but the code was splitting on hyphens.

Hyphens are not a transitional separator for a list of items, so change the code
to reflect the documentation.

(From OE-Core rev: 6d86d126121cd15c7e9832b24106332ab439beeb)

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>
2019-05-20 14:38:16 +01:00
Alex Kiernan
95aebbe119 recipetool: fix unbound variable when fixed SRCREV can't be found
If attempting to find a fixed SRCREV fails because the directory doesn't exit,
avoid failing with:

  Traceback (most recent call last):
    File "/home/vagrant/poky/scripts/recipetool", line 121, in <module>
      ret = main()
    File "/home/vagrant/poky/scripts/recipetool", line 110, in main
      ret = args.func(args)
    File "/home/vagrant/poky/scripts/lib/recipetool/create.py", line 707, in create_recipe
      srcrev = stdout.rstrip()
  UnboundLocalError: local variable 'stdout' referenced before assignment

Fixes: 000480c42797 ("recipetool / devtool: set a fixed SRCREV by default when fetching from git")
(From OE-Core rev: 326188e1e2424bdabe9cf83a8087b5ee046aa7f6)

Signed-off-by: Alex Kiernan <alex.kiernan@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>
2019-05-20 14:38:16 +01:00
Alex Kiernan
1f13862dbe go: Exclude vcs files when installing deps
Because our clones use the host git, on (say) Ubuntu 18.04, the local
git directories acquire perl scripts such as fsmonitor-watchman.sample.
During packaging, this leads to failures:

  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: QA Issue: /usr/lib/go/pkg/dep/sources/https---github.com-nsf-termbox--go/.git/hooks/fsmonitor-watchman.sample contained in package go-hsperfdata-staticdev requires /usr/bin/perl, but no providers found in RDEPENDS_go-hsperfdata-staticdev? [file-rdeps]
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa:
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: Function failed: do_package_qa

(From OE-Core rev: 0da5f86e05ff63e9362cc9b216c7e6007c0de26f)

Signed-off-by: Alex Kiernan <alex.kiernan@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>
2019-05-20 14:38:16 +01:00
Hongxu Jia
47975f07e5 cpio/tar/native.bbclass: move rmt to sbindir and add a prefix to avoid native clashing
The rmt in cpio-native and tar-native is clashing, since
tar-native has set var-NATIVE_PACKAGE_PATH_SUFFIX, we move rmt
to sbindir, and add suffix NATIVE_PACKAGE_PATH_SUFFIX to sbindir
could avoid the clashing.

And in Ubuntu, rmt is in sbindir
$ which rmt
/usr/sbin/rmt

(From OE-Core rev: 9f47cea3c58a53db8599f1be4ff4401406c00928)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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>
2019-05-20 14:38:16 +01:00
Joshua Watt
025aabd28a bitbake.conf: Account for older versions of bitbake
Older versions of bitbake (prior to 1.42) don't expose the BB_UNIHASH
variable which is being used by sstate. For compatibility with these
older versions of bitbake, set BB_UNIHASH to BB_TASKHASH (which is the
value it should be for non-hash equivalent aware signature generators).
if bitbake hasn't already set it.

[YOCTO #13314]

(From OE-Core rev: ca38b2f88f640579703486645b0c4d9ecef78e47)

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>
2019-05-20 14:38:15 +01:00
Mingli Yu
04b69971fb nettle: fix the Segmentation fault
The commit[8ac8fa8ee1 nettle: update to 3.4.1]
add CFLAGS_append = " -std=c99" to silence the
below error for native build:
| ../nettle-3.4.1/rsa-sign-tr.c: In function 'sec_equal':
| ../nettle-3.4.1/rsa-sign-tr.c:243:3: error: 'for' loop initial declarations are only allowed in C99 mode
   for (size_t i = 0; i < limbs; i++)
   ^
| ../nettle-3.4.1/rsa-sign-tr.c:243:3: note: use option -std=c99 or -std=gnu99 to compile your code
| Makefile:263: recipe for target 'rsa-sign-tr.o' failed

But the above change will trigger below Segmentation
fault:
 # echo -n passwd| nettle-pbkdf2 -i 1 -l 16 salt
 [65534.886509] nettle-pbkdf2[708]: segfault at 1f594260 ip 00007f3332256998 sp 00007fff60d44410 error 4 in libnettle.so.6.5[7f3332244000+1d00]
 [65534.887525] Code: e8 6d db fe ff 44 01 6d 68 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 49 89 dc e9 68 ff f
 Segmentation fault

So update the logic to CFLAGS_append = " -std=gnu99"
to fix the issue.

(From OE-Core rev: 91359a91b8c89dc5e1f3a946137204156c47a3af)

(From OE-Core rev: cccf000f07eb8b60874c66c60a47c46d546e5ca0)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-20 14:38:15 +01:00
Naveen Saini
6e3a4d7926 bitbake: bitbake: fetch2/git: git-lfs check
Build will fail if repository has lfs contents in absense of git-lfs tool on host.
Build will pass if repository may or may not contains lfs content if host has git-lfs installed.

[YOCTO #13198]

(Bitbake rev: 7107c1953b4c949b81491295e03736beb085b055)

Signed-off-by: Naveen Saini <naveen.kumar.saini@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>
2019-05-15 21:52:57 +01:00
David Reyna
eab2d05025 bitbake: toaster: update to Warrior
Update the fixture files to add Warrior and remove Sumo.

[YOCTO #13287]

(Bitbake rev: 014287facfcf4598b6fd24487f44109bfb4cff57)

Signed-off-by: David Reyna <David.Reyna@windriver.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>
2019-05-15 21:52:57 +01:00
Bruce Ashfield
2e01bc44f9 linux-yocto/5.0: update TCP patch to mainline version
Updating the SRCREVs to drop our temporary workaround for TCP
timeout issues and switch to the mainline version:

  tcp: add sanity tests in tcp_add_backlog()
  Revert "tcp: fix issues relaed to implement coalescing on backlog queue"

(From OE-Core rev: fdc068de3c493dea3a22bb8f91273f7b7978c639)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:39 +01:00
Chen Qi
8c35d676b9 libsdl: set CVE_PRODUCT
(From OE-Core rev: 388378c2192ceb47569903686539a77e89239651)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-05-12 09:13:39 +01:00
Chen Qi
a1dafe141d dropbear: set CVE_PRODUCT
(From OE-Core rev: 3364b4160854f69a67bfd78a9a3c985c59251025)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-05-12 09:13:39 +01:00
Anuj Mittal
c04429fb35 openssh: fix CVE-2018-20685, CVE-2019-6109, CVE-2019-6111
Also backport a patch to fix issues introduced by fix for CVE-2019-6109.

(From OE-Core rev: b4068ea6887299cddada1f8842d8323b8aca2acc)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-05-12 09:13:39 +01:00
Anuj Mittal
92d7455b95 binutils: fix CVE-2019-9074 CVE-2019-9075 CVE-2019-9076 CVE-2019-9077
(From OE-Core rev: 5445c22361b55603f7bd2fabd2d36d280ebee51e)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-05-12 09:13:39 +01:00
Anuj Mittal
ac7107f978 gdb: fix CVE-2017-9778
(From OE-Core rev: 09dc0c4008bcc134d2424d7a9606a881baf6b79b)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-05-12 09:13:39 +01:00
Anuj Mittal
ceaefc292e gcc: fix CVE-2018-18484
(From OE-Core rev: 6f9b81133147ef097a061c08b6199569e7eadebb)

Signed-off-by: Anuj Mittal <anuj.mittal@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>
2019-05-12 09:13:39 +01:00
Richard Purdie
e7710df480 python3: Drop ptest hack
With the kernel TCP backlog queue coalescing bug fixed in the 5.0 kernels
we don't need this patch anymore and can run the tests.

(From OE-Core rev: 058d613af39a24cffe6053e0ff98b503c73e920e)

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>
2019-05-12 09:13:39 +01:00
Adrian Bunk
208ba30c03 gnome-doc-utils: Remove stale patch
The recipe was removed 3 years ago.

(From OE-Core rev: ca1292c6521c353c8203e7b1e1a4ec72b09baf21)

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>
2019-05-12 09:13:39 +01:00
Dengke Du
bd1ee4ffc9 linux-yocto_5.0: set devicetree for armv5
(From OE-Core rev: 6f0dbd81ecb998904ee58e1e4efcdc7a0e087497)

Signed-off-by: Dengke Du <dengke.du@windriver.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>
2019-05-12 09:13:39 +01:00
Bruce Ashfield
f5cc3bf166 linux-yocto/5.0: integrate TCP timeout / hang fix
Integrating the following fix:

[
    tcp: fix issues relaed to implement coalescing on backlog queue

    As was discussed on -netdev, there's an issue with TCP timeouts and
    hangs due to new features introduced in the 5.0 kernel:

      https://www.spinics.net/lists/netdev/msg562928.html

    This is a temporary commit to widely test the proposed solution. It
    will be dropped when an official patch makes mainline.
]

(From OE-Core rev: 5a8eee4b5f4f40e615510f509e2e17fd46b19da0)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:39 +01:00
Bruce Ashfield
96ae9c18ea linux-yocto/5.0: port RAID configuration tweaks from master
Porting the following three RAID config changes from master to
the 5.0 branch:

   ffd8cf5baf8 intel-x86: add Intel VMD support
   8edf951a15c cfg/efi.cfg: built-in CONFIG_EFIVAR_FS to support Intel VROC
   041a6c04244 intel-x86: built-in nvme driver to support boot from nvme disk

(From OE-Core rev: 8a0b045e8c31a706f8254db971b0348c6f144758)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:39 +01:00
Bruce Ashfield
c43959dc9b linux-yocto-rt/4.19: fix merge conflict in lru_drain
Paul Gortmaker sent along the following fixup for 4.19-rt:

[
  Author: Paul Gortmaker <paul.gortmaker@windriver.com>
  Date:   Mon Apr 15 12:01:31 2019 -0400

    Revert "mm: handle lru_add_drain_all for UP properly"

    This reverts commit e6e9d6e290028b0a6b83b563fad9fafa7f1d515e.

    It was a 4.19.31 backport of commit 6ea183d60c46 ("mm: handle
    lru_add_drain_all for UP properly").  In summary, what that did
    was to fix a possible harmless WARN_ON on non-SMP, introduced at
    commit 4d43d395fed1 ("workqueue: Try to catch flush_work() without
    INIT_WORK().") by adding non-SMP variants of lru functions.

    The combination of that, with the -rt commit 473f14a9f234 ("mm:
    perform lru_add_drain_all() remotely") at the merge of the two
    results in the following build failure:

      mm/swap.c:736:2: error: #endif without #if

    since the -rt change wants RT specific lru and the stable backport
    wants non-SMP specific lru, and a chunk of the backport with
    an #ifdef CONFIG_SMP is missing.

    However, before we add a four way cluster of ifdeffery to handle all
    cases, we note 4d43d395fed1 was added to the v5.1 release, and it
    was not (currently) backported to any 4.19.x stable release - so it is
    unclear to me why this commit was ever backported to 4.19.31 at all.

    Further, we note this change was to mm/swap.c -- and by definition,
    any preempt-rt deployment that uses swap for anything other than a
    failure contingency mitigation is broken by design.

    Given all that, I decided that the best path forward was to revert
    the two of the three chunks of the backport that remain in the -rt
    branch, and return us to the pre-4.19.31 merge behaviour for -rt.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
]

(From OE-Core rev: e3898996665591c2909208a629a14603941b6c28)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:39 +01:00
Jaewon Lee
bb12f64c3c Adding back wrapper and using OEPYTHON3HOME variable for python3
Adding back the python wrapper and adding a patch to use OEPYTHON3HOME
instead of PYTHONHOME if set, for python3.

If we add back the wrapper as is, we would see the following error that
we also see in Thud:

ImportError: No module named site
OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python
v3.
Please upgrade your python v2

This is because python3 would've set PYTHONHOME to use nativesdk
python3 libraries but when the oe-buildenv-internal script tries to call
python2 for the py_v27_check, there will be no python2 libraries in the
PYTHONHOME directory.
In other words, bitbake needs host python2 and the env variable set from
the wrapper contaminates the env and host python2 won't be able to find
its libraries

Creating another variable OEPYTHON3HOME and using this in the python3
wrapper to allow for a way to set a different paths for python3 and
python2

[YOCTO #13208]

(From OE-Core rev: 5ae52eb8508c0ba5713489dc4661649c19dceeed)

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.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>
2019-05-12 09:13:39 +01:00
Richard Purdie
ceccf911b5 utils/multiprocess_launch: Improve failing subprocess output
Output before this patch:

ERROR: bash-4.4.18-r0 do_package_write_ipk: Fatal errors occurred in subprocesses:
Command 'PATH="X" opkg-build -Z xz -a "--memlimit=50% --threads=88" Foobar /media/build1/poky/build/nodistro-glibc/work/core2-64-oe-linux/bash/4.4.18-r0/deploy-ipks/core2-64' returned non-zero exit status 1.: Traceback (most recent call last):
  File "/media/build1/poky/meta/lib/oe/utils.py", line 272, in run
    ret = self._target(*self._args, **self._kwargs)
  File "/media/build1/poky/meta/classes/package_ipk.bbclass", line 230, in ipk_write_pkg
    shell=True)
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'PATH="X" opkg-build -Z xz -a "--memlimit=50% --threads=88" Foobar /media/build1/poky/build/nodistro-glibc/work/core2-64-oe-linux/bash/4.4.18-r0/deploy-ipks/core2-64' returned non-zero exit status 1.

Note how stdout/stderr from the failing command isn't shown.

After this patch:

ERROR: bash-4.4.18-r0 do_package_write_ipk: Fatal errors occurred in subprocesses:
Command 'PATH="X" opkg-build -Z xz -a "--memlimit=50% --threads=88" Foobar /media/build1/poky/build/nodistro-glibc/work/core2-64-oe-linux/bash/4.4.18-r0/deploy-ipks/core2-64' returned non-zero exit status 1.
Subprocess output:Foobar
*** Error: Package name Foobar contains illegal characters, (other than [a-z0-9.+-])

opkg-build: Please fix the above errors and try again.

We suddenly get a much more usable error message. The traceback is supressed
as its distracting from the real problem in this case.

Ideally python itself would handle this but it doesn't so we have to
wrap the exception. We already do this in bitbake itself for the same reason.

(From OE-Core rev: c27cc2355d331e063f170b45728671988a967deb)

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>
2019-05-12 09:13:39 +01:00
Jens Rehsack
e58f74d271 kernel-module-split.bbclass: support CONFIG_MODULE_COMPRESS=y
In case, kernel config enables compressed modules, support of
splitting via split_kernel_module_packages won't find any module.
So, first expand module pattern regex to recognize compressed
modules and then objcopy on temporary extacted to extract module
information.

(From OE-Core rev: 499e830fad1c109f6c009d6ceb2256ced19e4452)

Signed-off-by: Jens Rehsack <sno@netbsd.org>
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>
2019-05-12 09:13:39 +01:00
Martin Jansa
5280cacb56 glibc: always use bfd linker
* Work around broken ld-2.29.so when gold is used
  causing qemu-arm to segfault during e.g. gobject-introspection
  or postinst at do_rootfs time, more details in:
  http://lists.openembedded.org/pipermail/openembedded-devel/2019-March/198937.html
  https://sourceware.org/bugzilla/show_bug.cgi?id=24148
  https://sourceware.org/bugzilla/show_bug.cgi?id=10937
  https://sourceware.org/bugzilla/show_bug.cgi?id=18103

(From OE-Core rev: 16c50cf4cd6a9a11ff47d0825e43f287f1fb2642)

Signed-off-by: Martin Jansa <Martin.Jansa@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>
2019-05-12 09:13:39 +01:00
sangeeta jain
99be4ac26d resulttool/manualexecution: Enable test case configuration option
Current manualexecution required user to exceute all test cases defined inside a "modulename.json" file in oeqa/manual

There are cases when all test cases all not required to run for a module on specific DUT.

Enable manualexecution to have the optional feature where it will use pre-defined json format test case configuration file
where user will be able to select test cases from the "modulename.json" instead of running all of them. This will help
in reducing testing time and reporting unneccesary skip or failures.

Example pre-defined json format test case configuration file (for build-applince):

{
    "testcases" : [
        "build-appliance.build-appliance.Create_core-image-sato-sdk_using_build_appliance",
        "build-appliance.build-appliance.Build_a_image_without_error_(added_recipe)"
    ]
}

(From OE-Core rev: d35de5383275a5d83317160ce3dc09a20661a572)

Signed-off-by: sangeeta jain <sangeeta.jain@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>
2019-05-12 09:13:39 +01:00
Naveen Saini
bea26ca932 core-image-rt-sdk: make sure that we append to DEPENDS
This also fix postinst intercept hook 'update_gio_module_cache' failed warnings
that are now flagged as errors after the recent chagnes at lib/oe/package_manager.py

(From OE-Core rev: 6ba5f32333e9ed6be980ca2b71b547f795e83497)

Signed-off-by: Naveen Saini <naveen.kumar.saini@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>
2019-05-12 09:13:39 +01:00
Naveen Saini
26bd9cfee8 core-image-rt: make sure that we append to DEPENDS
This also fix postinst intercept hook 'update_gio_module_cache' failed warnings
that are now flagged as errors after the recent chagnes at lib/oe/package_manager.py

(From OE-Core rev: 732fb99d458926d2267ba39088472d62acc8f3a2)

Signed-off-by: Naveen Saini <naveen.kumar.saini@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>
2019-05-12 09:13:39 +01:00
Mardegan, Alberto
6322fb5b2b oeqa/core/runner: dump stdout and stderr of each test case
Some CI pipelines might perform further processing of the test output
(for instance, to plot some metrics into a chart). However, Since `thud`
we switched away from the XML-based jUnit reporting, and at the same
time we lost the ability of collecting the stdout and stderr of the
various tests.

We now restore this functionality by adding `stdout` and `stderr` keys
to the JSON reports. This behavior is off by default; in order to enable
it, one must set the `TESTREPORT_FULLLOGS` variable in the bitbake
configuration.

(From OE-Core rev: fd57b34d7c8a120273d65cd361be208fbdaeff50)

Signed-off-by: Alberto Mardegan <amardegan@luxoft.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>
2019-05-12 09:13:39 +01:00
Kai Kang
e2568f68b7 cryptodev: fix module loading error
Backport patch from upstream to fix module cryptodev loading error.

(From OE-Core rev: ba56d8729a58d373bb301dda304c78702ded5869)

Signed-off-by: Kai Kang <kai.kang@windriver.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>
2019-05-12 09:13:39 +01:00
Richard Purdie
6466692170 resultool/resultutils: Fix module import error
Fix AttributeError: module 'urllib' has no attribute 'request' when
using remote http urls.

(From OE-Core rev: ef6aacb0ed543c78172ae5af933eee32ac70e602)

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>
2019-05-12 09:13:39 +01:00
Martin Jansa
8856289fb6 icecc.bbclass: stop causing everything to be effectivelly MACHINE_ARCH
* since this change:
  commit d2fcaeb153fdc3f8d7143ea823139f1537055ff1
  Author: Douglas Royds <douglas.royds@taitradio.com>
  Date:   Thu Dec 20 11:59:47 2018 +1300

    icecc: Don't generate recipe-sysroot symlinks at recipe-parsing time

  the set_icecc_env function depends on KERNEL_CC variable even for recipes
  like linux-libc-headers

* KERNEL_CC variable depends on STAGING_KERNEL_DIR:
  Variable KERNEL_CC value is ${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_KERNEL_ARCH} -fuse-ld=bfd ${DEBUG_PREFIX_MAP} -fdebug-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH}
  List of dependencies for variable KERNEL_CC is {'STAGING_KERNEL_DIR', 'HOST_PREFIX', 'DEBUG_PREFIX_MAP', 'HOST_CC_KERNEL_ARCH', 'KERNEL_SRC_PATH'}

  which depends on MACHINE:
  Variable STAGING_KERNEL_DIR value is ${TMPDIR}/work-shared/${MACHINE}/kernel-source
  List of dependencies for variable STAGING_KERNEL_DIR is {'MACHINE'}

* as detected with:
  openembedded-core/scripts/sstate-diff-machines.sh --tmpdir=tmp-glibc --machines="qemux86 qemux86copy qemuarm" --targets=glibc --analyze

  ERROR: linux-libc-headers different signature for task do_configure.sigdata between qemux86 and qemux86copy
  NOTE: Starting bitbake server...
  basehash changed from 3146f4ffeb002bd69fed7656a4b896365b2e2a00071c69e1afbb672889e754ee to f1a5160e39912e61389b6f9fe68d61146a2be91716ac37e4a32ecf4c09b2b5fa
  Variable MACHINE value changed from 'qemux86' to 'qemux86copy'

  $ bitbake-diffsigs /OE/build/oe-core/tmp-glibc/sstate-diff/1556122458/qemux86*/*/linux-libc-headers/*do_configure.sigdata*
  NOTE: Starting bitbake server...
  basehash changed from f1a5160e39912e61389b6f9fe68d61146a2be91716ac37e4a32ecf4c09b2b5fa to 3146f4ffeb002bd69fed7656a4b896365b2e2a00071c69e1afbb672889e754ee
  Variable MACHINE value changed from 'qemux86copy' to 'qemux86'

(From OE-Core rev: e30cd19250c14112a96a2e89327fd75933016469)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[commit in warrior]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:38 +01:00
Alexander Kanavin
8da99b16bc buildhistory: call a dependency parser only on actual dependency lists
Previously it was also called on filelists and possibly other items which
broke the parser.

(From OE-Core rev: cf525cbbc4277ba08415963cfa7dca384ad501dd)

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>
2019-05-12 09:13:38 +01:00
Joshua Watt
cae42b5ac8 resulttool: Add log subcommand
Adds a subcommand for dumping various logs from test results

(From OE-Core rev: 2f6a02b0d0909b94e753ff00faae540fd0f85ba4)

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>
2019-05-12 09:13:38 +01:00
Joshua Watt
2a81631d56 resulttool: Load results from URL
Adds support for resulttool to load JSON files directly from a http://
or https:// URL

(From OE-Core rev: 8e2f0257e1e438b88e4298438d5bae5f7c3c0a7a)

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>
2019-05-12 09:13:38 +01:00
Chen Qi
1670d355cb base-files: move hostname operations out of issue file settings
The function do_install_basefilesissue is meant to deal with
/etc/issue* files and the following setting could actually be
overridden.

  BASEFILESISSUEINSTALL ?= "do_install_basefilesissue"

So move the hostname operations out of this function.

(From OE-Core rev: 2eab107e88800a62f7cb8d7f9f01e77214e9dcee)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-05-12 09:13:38 +01:00
Chen Qi
3f28e5ba78 busybox: fix ptest failure about 'dc'
Fix the following two failure of busybox ptest:

  FAIL: dc read
  FAIL: dc read string

These two test cases relies on the functionalities enabled by
CONFIG_FEATURE_DC_BIG.

(From OE-Core rev: fe8ecc3796db9b70e27d5caecc858b82bde790f0)

Signed-off-by: Chen Qi <Qi.Chen@windriver.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>
2019-05-12 09:13:38 +01:00
Alexander Kanavin
02b5c42daa python3: add another multilib fix
(From OE-Core rev: c0f789569813403fa61feded6a4530ff0cf3eb8c)

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>
2019-05-12 09:13:38 +01:00
He Zhe
c5c36b5b69 ltp: Fix setrlimit03 call succeeded unexpectedly
Backport a patch from upstream to fix the following error.
"setrlimit03.c:54: FAIL: call succeeded unexpectedly"

(From OE-Core rev: 908173cfbec631139283f3b35be03865eb7d73b1)

Signed-off-by: He Zhe <zhe.he@windriver.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>
2019-05-12 09:13:38 +01:00
Steven Hung (洪于玉)
b62826a6e7 kernel.bbclass: convert base_do_unpack_append() to a task
<pre>
when&#32;externalsrc&#32;is&#32;enabled&#32;and&#32;the&#32;&#39;do_unpack&#39;&#32;task&#32;is&#32;deleted,
building&#32;kernel&#32;module&#32;fail

(From OE-Core rev: 16b39e9deb50d5583e1be9ad08cce8d76b78639d)

Signed-off-by:&#32;Steven&#32;Hung&#32;(&#27946;&#20110;&#29577;)&#32;&lt;Steven.Hung@mediatek.com&gt;
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>
2019-05-12 09:13:38 +01:00
Richard Purdie
f9762e70e7 core-image-sato-sdk-ptest: Try and keep image below 4GB limit
(From OE-Core rev: 3ac1a1973e546360e4fc5626c9a9fcf506c786e6)

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>
2019-05-12 09:13:38 +01:00
Bruce Ashfield
d2ce8890f3 linux-yocto/4.19: update to v4.19.34
Integrating the korg -stable releases that comprise the following
commits:

   4d552acf3370 Linux 4.19.34
   d5813e77363c kprobes/x86: Blacklist non-attachable interrupt functions
   e7d26616c92b bcache: fix potential div-zero error of writeback_rate_p_term_inverse
   09abe130820b ACPI / video: Extend chassis-type detection with a "Lunch Box" check
   d1d2ca98b78f net: stmmac: Avoid one more sometimes uninitialized Clang warning
   972e31ba4bc2 drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers
   986a2bb54a31 Input: soc_button_array - fix mapping of the 5th GPIO in a PNP0C40 device
   6d2817e2ab8c dmaengine: tegra: avoid overflow of byte tracking
   7386f095b709 clk: rockchip: fix frac settings of GPLL clock for rk3328
   c8e4f8406842 clk: meson: clean-up clock registration
   6251c1db04f2 drm/fb-helper: fix leaks in error path of drm_fb_helper_fbdev_setup
   648b949b7870 x86/build: Mark per-CPU symbols as absolute explicitly for LLD
   52cd9e0e43c7 wlcore: Fix memory leak in case wl12xx_fetch_firmware failure
   05b23c66bb6e brcmfmac: Use firmware_request_nowarn for the clm_blob
   e30e0b0915b6 selinux: do not override context on context mounts
   d2053718e087 x86/build: Specify elf_i386 linker emulation explicitly for i386 objects
   e0662d00c98a drm/nouveau: Stop using drm_crtc_force_disable
   1d377200482b drm: Auto-set allow_fb_modifiers when given modifiers at plane init
   27d6de370cdc pinctrl: meson: meson8b: add the eth_rxd2 and eth_rxd3 pins
   61174e34611f regulator: act8865: Fix act8600_sudcdc_voltage_ranges setting
   bcdd4a5ee1c5 media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration
   9bfd4ab5e8e4 media: rcar-vin: Allow independent VIN link enablement
   2e6bcc327b0b netfilter: physdev: relax br_netfilter dependency
   24296fbc5445 dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_*
   c55f4a6e798d dmaengine: qcom_hidma: assign channel cookie correctly
   afacaf85543b dmaengine: imx-dma: fix warning comparison of distinct pointer types
   fba4c61e9888 cpu/hotplug: Mute hotplug lockdep during init
   a6c671e23168 hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable
   dbeca415575f f2fs: UBSAN: set boolean value iostat_enable correctly
   16b06b15dd53 HID: intel-ish: ipc: handle PIMR before ish_wakeup also clear PISR busy_clear bit
   67c2be160519 soc/tegra: fuse: Fix illegal free of IO base address
   a3aa9d93b9ab hwrng: virtio - Avoid repeated init of completion
   7aaa76e8a6ab media: mt9m111: set initial frame size other than 0x0
   fd400e96c599 perf script python: Add trace_context extension module to sys.modules
   d90a375b786c perf script python: Use PyBytes for attr in trace-event-python
   f94e369fe7a8 platform/x86: intel-hid: Missing power button release on some Dell models
   1e55e3f6c735 usb: dwc3: gadget: Fix OTG events when gadget driver isn't loaded
   2b20c29bcdf6 ALSA: dice: add support for Solid State Logic Duende Classic/Mini
   3abb3d0418e1 drm/amd/display: Enable vblank interrupt during CRC capture
   06af7dda05b3 powerpc/pseries: Perform full re-add of CPU for topology update post-migration
   57f03bbd4236 tty: increase the default flip buffer limit to 2*640K
   2142eba848a1 backlight: pwm_bl: Use gpiod_get_value_cansleep() to get initial state
   d0bc74c5632f cgroup/pids: turn cgroup_subsys->free() into cgroup_subsys->release() to fix the accounting
   b52681e6e623 powerpc/64s: Clear on-stack exception marker upon exception return
   118d38a3577f selftests/bpf: skip verifier tests for unsupported program types
   ae92cf4760f8 bpf: fix missing prototype warnings
   06666a19d5a5 block, bfq: fix in-service-queue check for queue merging
   30d503bae967 ARM: avoid Cortex-A9 livelock on tight dmb loops
   d8945878ded6 ARM: 8830/1: NOMMU: Toggle only bits in EXC_RETURN we are really care of
   668713493a19 mt7601u: bump supported EEPROM version
   a2479c401054 soc: qcom: gsbi: Fix error handling in gsbi_probe()
   ce80ebf7a04e efi/arm/arm64: Allow SetVirtualAddressMap() to be omitted
   240a9050a3d8 ARM: dts: lpc32xx: Remove leading 0x and 0s from bindings notation
   b5c1dc9d8fa4 drm/vkms: Bugfix extra vblank frame
   e8e0bd4915ec sched/core: Use READ_ONCE()/WRITE_ONCE() in move_queued_task()/task_rq_lock()
   b12a060a0bd2 efi/memattr: Don't bail on zero VA if it equals the region's PA
   f056c90f079a sched/debug: Initialize sd_sysctl_cpus if !CONFIG_CPUMASK_OFFSTACK
   442caac9fce9 ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe
   b4410c7d731d iwlwifi: mvm: fix RFH config command with >=10 CPUs
   080e00c8f6f9 staging: spi: mt7621: Add return code check on device_reset()
   f0eb935c50b9 i2c: of: Try to find an I2C adapter matching the parent
   7c114e8605a9 platform/x86: intel_pmc_core: Fix PCH IP sts reading
   b9f257e27890 e1000e: Exclude device from suspend direct complete optimization
   c23242c36bdd e1000e: fix cyclic resets at link up with active tx
   efd85d83ac0f perf/aux: Make perf_event accessible to setup_aux()
   355ffe6cc2a1 drm/amd/display: Disconnect mpcc when changing tg
   6c68d1654c27 drm/amd/display: Don't re-program planes for DPMS changes
   322a55a56a2a drm: rcar-du: add missing of_node_put
   924af49998c2 cdrom: Fix race condition in cdrom_sysctl_register
   6d293647f8d9 fbdev: fbmem: fix memory access if logo is bigger than the screen
   2dd699432958 net: phy: consider latched link-down status in polling mode
   5203cf8e29e5 iw_cxgb4: fix srqidx leak during connection abort
   a78aae93ba9c net: marvell: mvpp2: fix stuck in-band SGMII negotiation
   1f3694865d56 genirq: Avoid summation loops for /proc/stat
   98eddc19f9e9 bcache: improve sysfs_strtoul_clamp()
   b468e0007435 bcache: fix potential div-zero error of writeback_rate_i_term_inverse
   c7b687ebe0fb bcache: fix input overflow to sequential_cutoff
   16975f04f2ca bcache: fix input overflow to cache set sysfs file io_error_halflife
   845d4849b60c sched/topology: Fix percpu data types in struct sd_data & struct s_data
   ad02fb6a6cc8 usb: f_fs: Avoid crash due to out-of-scope stack ptr access
   126f2f6af291 ath10k: fix shadow register implementation for WCN3990
   ccce764322d8 ALSA: PCM: check if ops are defined before suspending PCM
   d21a63fc1e53 ARM: dts: meson8b: fix the Ethernet data line signals in eth_rgmii_pins
   d93fe5e6c9d9 ARM: 8833/1: Ensure that NEON code always compiles with Clang
   3a1ce9793855 netfilter: conntrack: fix cloned unconfirmed skb->_nfct race in __nf_conntrack_confirm
   d53b295f7805 kprobes: Prohibit probing on RCU debug routine
   bc9d714395e2 kprobes: Prohibit probing on bsearch()
   c63cc8d1487c selftests: skip seccomp get_metadata test if not real root
   2df541d0a665 ACPI / video: Refactor and fix dmi_is_desktop()
   d63105845ac5 iwlwifi: pcie: fix emergency path
   5cdd025907b8 perf report: Add s390 diagnosic sampling descriptor size
   5658279f50ea leds: lp55xx: fix null deref on firmware load failure
   9154420173d5 jbd2: fix race when writing superblock
   a74ebf047e4f cgroup, rstat: Don't flush subtree root unless necessary
   b13eb5245f9f HID: intel-ish-hid: avoid binding wrong ishtp_cl_device
   c26d61ea90db vfs: fix preadv64v2 and pwritev64v2 compat syscalls with offset == -1
   7273c2b1e79c xen/gntdev: Do not destroy context while dma-bufs are in use
   e9cd7f543764 mt76: usb: do not run mt76u_queues_deinit twice
   5cde7721dd05 media: mtk-jpeg: Correct return type for mem2mem buffer helpers
   745cdc344f97 media: mx2_emmaprp: Correct return type for mem2mem buffer helpers
   73a4cc59054e media: s5p-g2d: Correct return type for mem2mem buffer helpers
   3c6cd079058e media: rockchip/rga: Correct return type for mem2mem buffer helpers
   55919fc28419 media: s5p-jpeg: Correct return type for mem2mem buffer helpers
   a23fd268fdbb media: sh_veu: Correct return type for mem2mem buffer helpers
   635fabdd8202 media: ov7740: fix runtime pm initialization
   1d836ce73a10 SoC: imx-sgtl5000: add missing put_device()
   d41687c82a70 perf report: Don't shadow inlined symbol with different addr range
   801b8d8c7729 mwifiex: don't advertise IBSS features without FW support
   d323e59f58bb perf test: Fix failure of 'evsel-tp-sched' test on s390
   345c7757fd54 drm/amd/display: Clear stream->mode_changed after commit
   1ef1b20f8711 scsi: fcoe: make use of fip_mode enum complete
   8032fc9120c2 scsi: megaraid_sas: return error when create DMA pool failed
   2c6e3ec8a906 s390/ism: ignore some errors during deregistration
   d60f458e4c4d efi: cper: Fix possible out-of-bounds access
   e57f4676b92f cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies
   eb70531a95c8 ASoC: qcom: Fix of-node refcount unbalance in qcom_snd_parse_of()
   e6786f8686ef perf annotate: Fix getting source line failure
   763a895aa49c clk: fractional-divider: check parent rate only if flag is set
   d3ec442d609b IB/mlx4: Increase the timeout for CM cache
   61584032c4d6 loop: set GENHD_FL_NO_PART_SCAN after blkdev_reread_part()
   07a31820b241 platform/mellanox: mlxreg-hotplug: Fix KASAN warning
   0bacfb4adc1b platform/x86: ideapad-laptop: Fix no_hw_rfkill_list for Lenovo RESCUER R720-15IKBN
   a64ffbaf7056 mlxsw: spectrum: Avoid -Wformat-truncation warnings
   49dd86f0f5ec e1000e: Fix -Wformat-truncation warnings
   c6fb45d895e0 net: dsa: mv88e6xxx: Add lockdep classes to fix false positive splat
   194b888af85e mmc: omap: fix the maximum timeout setting
   dcedd37957de btrfs: qgroup: Make qgroup async transaction commit more aggressive
   6cf5f631bad0 powerpc/hugetlb: Handle mmap_min_addr correctly in get_unmapped_area callback
   fc96b44c05c2 iommu/io-pgtable-arm-v7s: Only kmemleak_ignore L2 tables
   d81bdb3c17f1 ARM: 8840/1: use a raw_spinlock_t in unwind
   951307172652 serial: 8250_pxa: honor the port number from devicetree
   2636ccec991e coresight: etm4x: Add support to enable ETMv4.2
   c70214d519ed powerpc/xmon: Fix opcode being uninitialized in print_insn_powerpc
   638ecaf58369 kbuild: invoke syncconfig if include/config/auto.conf.cmd is missing
   5db107484403 scsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c
   4acf797458ce powerpc/powernv/ioda: Fix locked_vm counting for memory used by IOMMU tables
   6030bcc04735 usb: chipidea: Grab the (legacy) USB PHY by phandle first
   b142c7973338 crypto: cavium/zip - fix collision with generic cra_driver_name
   d401d121113e crypto: crypto4xx - add missing of_node_put after of_device_is_available
   241ebd2ea44b mt76: fix a leaked reference by adding a missing of_node_put
   6115055b4efe wil6210: check null pointer in _wil_cfg80211_merge_extra_ies
   9546c3662dc5 PCI/PME: Fix hotplug/sysfs remove deadlock in pcie_pme_remove()
   224c996e48be tools lib traceevent: Fix buffer overflow in arg_eval
   83c395332fdf fs: fix guard_bio_eod to check for real EOD errors
   6a817a7aed1c jbd2: fix invalid descriptor block checksum
   ca66f667189c netfilter: conntrack: tcp: only close if RST matches exact sequence
   709aaa09b200 netfilter: nf_tables: check the result of dereferencing base_chain->stats
   36a3219e617a cifs: Fix NULL pointer dereference of devname
   d579b4eae836 cifs: Accept validate negotiate if server return NT_STATUS_NOT_SUPPORTED
   4ab78f4d75c6 f2fs: fix to check inline_xattr_size boundary correctly
   8c81fcd3d5c1 dm thin: add sanity checks to thin-pool and external snapshot creation
   626d98bbdb30 cifs: use correct format characters
   a6c56bf63e87 page_poison: play nicely with KASAN
   d609ecd887f8 fs/file.c: initialize init_files.resize_wait
   9b4f27667402 f2fs: do not use mutex lock in atomic context
   20141feb9bde ocfs2: fix a panic problem caused by o2cb_ctl
   f09c424cea9f mm/slab.c: kmemleak no scan alien caches
   8a0fc62e331e mm/vmalloc.c: fix kernel BUG at mm/vmalloc.c:512!
   67abbb9c5422 mm, mempolicy: fix uninit memory access
   9d785b92cf0d memcg: killed threads should not invoke memcg OOM killer
   eed3ca0a66cf mm,oom: don't kill global init via memory.oom.group
   ed3345a6607b mm, swap: bounds check swap_info array accesses to avoid NULL derefs
   4c6d7dc741cb mm/page_ext.c: fix an imbalance with kmemleak
   f555b008c576 mm/cma.c: cma_declare_contiguous: correct err handling
   7b287c47e452 mm/sparse: fix a bad comparison
   aea8c971b9c5 perf c2c: Fix c2c report for empty numa node
   c3f28d59c1a5 x86/hyperv: Fix kernel panic when kexec on HyperV
   3e8d62218aa4 iio: adc: fix warning in Qualcomm PM8xxx HK/XOADC driver
   e27cced35a4b scsi: hisi_sas: Fix a timeout race of driver internal and SMP IO
   fce6aeaf913e scsi: hisi_sas: Set PHY linkrate when disconnected
   e21f655c60fa libbpf: force fixdep compilation at the start of the build
   6048330675cc enic: fix build warning without CONFIG_CPUMASK_OFFSTACK
   9ec4860de95a net: stmmac: Avoid sometimes uninitialized Clang warnings
   b227f1571269 sysctl: handle overflow for file-max
   d6ad08aa3467 include/linux/relay.h: fix percpu annotation in struct rchan
   4c96500e3658 gpio: gpio-omap: fix level interrupt idling
   8c50ab86e288 net/mlx5: Avoid panic when setting vport mac, getting vport config
   3bddc6149f02 net/mlx5: Avoid panic when setting vport rate
   b73c7d020452 tracing: kdb: Fix ftdump to not sleep
   d7391962d723 f2fs: fix to avoid deadlock in f2fs_read_inline_dir()
   198c99857b30 f2fs: fix to adapt small inline xattr space in __find_inline_xattr()
   56bb66c50296 h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux-
   2938651d36ca CIFS: fix POSIX lock leak and invalid ptr deref
   442d5d171cd8 tty/serial: atmel: RS485 HD w/DMA: enable RX after TX is stopped
   b6b4bcb40be0 tty/serial: atmel: Add is_half_duplex helper
   2dbc7c66d6da ext4: cleanup bh release code in ext4_ind_remove_space()
   bd62f1fe736e arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals
   4b3a3ab00fa7 Linux 4.19.33
   11008a9b0fc7 platform: x86: intel_cht_int33fe: Remove the old connections for the muxes
   056cda45cfed usb: typec: class: Don't use port parent for getting mux handles
   6875404a12f8 platform: x86: intel_cht_int33fe: Add connections for the USB Type-C port
   681a9fc184b3 platform: x86: intel_cht_int33fe: Add connection for the DP alt mode
   3bb446a3fe87 platform: x86: intel_cht_int33fe: Register all connections at once
   e99d90ce7750 drivers: base: Helpers for adding device connection descriptions
   f5959dec081a bpf: do not restore dst_reg when cur_state is freed
   738dda85d181 staging: erofs: keep corrupted fs from crashing kernel in erofs_readdir()
   83bbd66b3753 staging: erofs: fix error handling when failed to read compresssed data
   3a18eabaa712 KVM: x86: Emulate MSR_IA32_ARCH_CAPABILITIES on AMD hosts
   b9733a74350d KVM: x86: update %rip after emulating IO
   7ceedcefc2d2 KVM: Reject device ioctls from processes other than the VM's creator
   a0713e8103d1 x86/smp: Enforce CONFIG_HOTPLUG_CPU when SMP=y
   a56aa02e6f15 cpu/hotplug: Prevent crash when CPU bringup fails on CONFIG_HOTPLUG_CPU=n
   336f6b23b5b8 watchdog: Respect watchdog cpumask on CPU hotplug
   c91d07ad34d7 powerpc/64: Fix memcmp reading past the end of src/dest
   d7c00bbbfac4 powerpc/pseries/energy: Use OF accessor functions to read ibm,drc-indexes
   0603e3a9281d objtool: Query pkg-config for libelf location
   a436cf6479c0 perf intel-pt: Fix TSC slip
   5f9366330950 perf pmu: Fix parser error for uncore event alias
   f70ddae24bdf mm/migrate.c: add missing flush_dcache_page for non-mapped page migrate
   5966777dd807 mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specified
   c9874d397807 iommu/io-pgtable-arm-v7s: request DMA32 memory, and improve debugging
   62d342d67060 mm: add support for kmem caches in DMA32 zone
   2392ffab085a usb: cdc-acm: fix race during wakeup blocking TX traffic
   82a5090aad84 xhci: Don't let USB3 ports stuck in polling state prevent suspend
   20a09a2e8703 usb: xhci: dbc: Don't free all memory with spinlock held
   c81b872281a1 xhci: Fix port resume done detection for SS ports with LPM enabled
   093ccda1a041 usb: host: xhci-rcar: Add XHCI_TRUST_TX_LENGTH quirk
   015e5c17617a usb: common: Consider only available nodes for dr_mode
   ef4df134e77e USB: gadget: f_hid: fix deadlock in f_hidg_write()
   614ac345bfec usb: mtu3: fix EXTCON dependency
   66e44981de0e phy: sun4i-usb: Support set_mode to USB_HOST for non-OTG PHYs
   6ebe03734361 gpio: adnp: Fix testing wrong value in adnp_gpio_direction_input
   b26f7e86d3cc gpio: exar: add a check for the return value of ida_simple_get fails
   df74e70ffec6 drm/i915/gvt: Fix MI_FLUSH_DW parsing with correct index check
   75f9e994b9fd drm/vkms: fix use-after-free when drm_gem_handle_create() fails
   eb1e552524b4 drm/vgem: fix use-after-free when drm_gem_handle_create() fails
   07d0d2bd957a fs/proc/proc_sysctl.c: fix NULL pointer dereference in put_links
   c956914f1efa Disable kgdboc failed by echo space to /sys/module/kgdboc/parameters/kgdboc
   1c992ea006ce USB: serial: option: add Olicard 600
   19151c645d0c USB: serial: option: add support for Quectel EM12
   002795b0d9b3 USB: serial: option: set driver_info for SIM5218 and compatibles
   d7dfccfd3c4b USB: serial: mos7720: fix mos_parport refcount imbalance on error path
   1f46db3cc133 USB: serial: ftdi_sio: add additional NovaTech products
   2a63003545d0 USB: serial: cp210x: add new device id
   59203f078cc6 serial: sh-sci: Fix setting SCSCR_TIE while transferring data
   b1e660c6f802 serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference
   f34ec64b3f6c serial: max310x: Fix to avoid potential NULL pointer dereference
   a090ed15420a staging: erofs: fix to handle error path of erofs_vmap()
   3b6b76644ba5 staging: vt6655: Fix interrupt race condition on device start up.
   b9ddff2a41cd staging: vt6655: Remove vif check from vnt_interrupt
   86092f2d5ccb staging: speakup_soft: Fix alternate speech with other synths
   d0360bf48143 staging: comedi: ni_mio_common: Fix divide-by-zero for DIO cmdtest
   668ba38d8950 tty: serial: qcom_geni_serial: Initialize baud in qcom_geni_console_setup
   b9bbd1edddf7 tty: atmel_serial: fix a potential NULL pointer dereference
   124e42064c0d tty: mxs-auart: fix a potential NULL pointer dereference
   7fb7414da97e drm/rockchip: vop: reset scale mode when win is disabled
   a93cd9137fea scsi: zfcp: fix scsi_eh host reset with port_forced ERP for non-NPIV FCP devices
   983a543de13a scsi: zfcp: fix rport unblock if deleted SCSI devices on Scsi_Host
   a52eb223a6ee scsi: sd: Quiesce warning if device does not report optimal I/O size
   d72658775c4b scsi: sd: Fix a race between closing an sd device and sd I/O
   3b3fcc3d4ffd ocfs2: fix inode bh swapping mixup in ocfs2_reflink_inodes_lock
   72b790c417b9 fs/open.c: allow opening only regular files during execve()
   aa7f29f87027 kbuild: modversions: Fix relative CRC byte order interpretation
   4dfae837ceaf ALSA: hda/realtek - Fix speakers on Acer Predator Helios 500 Ryzen laptops
   6f3dbb71085c ALSA: hda/realtek: Enable headset MIC of ASUS X430UN and X512DK with ALC256
   633d5db40280 ALSA: hda/realtek: Enable headset mic of ASUS P5440FF with ALC256
   fd4000c77a5a ALSA: hda/realtek: Enable ASUS X441MB and X705FD headset MIC with ALC256
   48e8e6a736b6 ALSA: hda/realtek - Add support for Acer Aspire E5-523G/ES1-432 headset mic
   5fa5a8679b92 ALSA: hda/realtek: Enable headset MIC of Acer Aspire Z24-890 with ALC286
   5ec67684be9e ALSA: hda/realtek: Enable headset MIC of Acer AIO with ALC286
   89ec6d400b5d ALSA: hda/realtek - Add support headset mode for New DELL WYSE NB
   522f06c9c00d ALSA: hda/realtek - Add support headset mode for DELL WYSE AIO
   5b93302bbc4e ALSA: pcm: Don't suspend stream in unrecoverable PCM state
   7fc6064dc3b2 ALSA: pcm: Fix possible OOB access in PCM oss plugins
   b425f45295dd ALSA: seq: oss: Fix Spectre v1 vulnerability
   bd55e6727a33 ALSA: rawmidi: Fix potential Spectre v1 vulnerability
   a485919fe4cc net: dsa: qca8k: remove leftover phy accessors
   64751542d3f3 NFSv4.1 don't free interrupted slot on open
   da57cba4f3f1 NFS: fix mount/umount race in nlmclnt.
   0f273f0c3064 vfio: ccw: only free cp on final interrupt
   92d4ee2e8276 powerpc: bpf: Fix generation of load/store DW instructions
   9397f0d9948c ARM: imx6q: cpuidle: fix bug that CPU might not wake up at expected time
   fd1b25364fef Btrfs: fix assertion failure on fsync with NO_HOLES enabled
   0ae3b84b3fa6 btrfs: Avoid possible qgroup_rsv_size overflow in btrfs_calculate_inode_block_rsv_size
   1cf4ab01eb5a btrfs: raid56: properly unmap parity page in finish_parity_scrub()
   d952c337b25d btrfs: don't report readahead errors and don't update statistics
   b57220cc9820 btrfs: remove WARN_ON in log_dir_items
   22dcb30fb9d8 Btrfs: fix incorrect file size after shrinking truncate and fsync
   a1df5db3a9f1 powerpc/security: Fix spectre_v2 reporting
   986f0c656749 powerpc/fsl: Fix the flush of branch predictor.
   b848d19c483a powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup'
   632d839296bd powerpc/fsl: Update Spectre v2 reporting
   43f40620d7a5 powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used
   a46a50382639 powerpc/fsl: Flush branch predictor when entering KVM
   3cb931c709d0 powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit)
   cf72dad924cb powerpc/fsl: Flush the branch predictor at each kernel entry (64bit)
   020e5f13805b powerpc/fsl: Add nospectre_v2 command line argument
   4a6a2287e0e6 powerpc/fsl: Emulate SPRN_BUCSR register
   4944f1d48d71 powerpc/fsl: Add macro to flush the branch predictor
   d67ab3d9a1b7 powerpc/fsl: Add infrastructure to fixup branch predictor flush
   e044d21c2999 tun: add a missing rcu_read_unlock() in error path
   6bdb5fdc4787 thunderx: eliminate extra calls to put_page() for pages held for recycling
   ac8411d75962 thunderx: enable page recycling for non-XDP case
   a491de9041b4 net: sched: fix cleanup NULL pointer exception in act_mirr
   7254ad094f4a ila: Fix rhashtable walker list corruption
   979f8a675d3b vxlan: Don't call gro_cells_destroy() before device is unregistered
   3b1386beeef4 vrf: prevent adding upper devices
   8ea78da1aa3e tun: properly test for IFF_UP
   52a7505c91a1 tipc: fix cancellation of topology subscriptions
   1be6c0c737e4 tipc: change to check tipc_own_id to return in tipc_net_stop
   24d1a6259706 tipc: allow service ranges to be connect()'ed on RDM/DGRAM
   7115df614b09 tcp: do not use ipv6 header for ipv4 flow
   cab576f1b00f sctp: use memdup_user instead of vmemdup_user
   97265479d7ca sctp: get sctphdr by offset in sctp_compute_cksum
   cf86f7a97561 rhashtable: Still do rehash when we get EEXIST
   69cea7cf3170 packets: Always register packet sk in the same order
   d9d215be3a3a net-sysfs: call dev_hold if kobject_init_and_add success
   8dcf078d92ae net: stmmac: fix memory corruption with large MTUs
   7eeb12edf637 net: rose: fix a possible stack overflow
   a6f0168e6681 net: phy: meson-gxl: fix interrupt support
   85ef72d829eb net/packet: Set __GFP_NOWARN upon allocation in alloc_pg_vec
   88c64f9c7d3f net: datagram: fix unbounded loop in __skb_try_recv_datagram()
   e4ff39e1ba80 net: aquantia: fix rx checksum offload for UDP/TCP over IPv6
   c408426292ee mISDN: hfcpci: Test both vendor & device ID for Digium HFC4S
   e0f8c06f45c3 mac8390: Fix mmio access size probe
   be09211384c2 ipv6: make ip6_create_rt_rcu return ip6_null_entry instead of NULL
   53adaacbbadb gtp: change NET_UDP_TUNNEL dependency to select
   9b8ef421b481 genetlink: Fix a memory leak on error path
   321461f2497f dccp: do not use ipv6 header for ipv4 flow
   6bba17f6bce3 ipmi_si: Fix crash when using hard-coded device
   15d6538a0d6e Bluetooth: Verify that l2cap_get_conf_opt provides large enough buffer
   2318c0e4b87e Bluetooth: Check L2CAP option sizes returned from l2cap_get_conf_opt
   3a2156c839c7 Linux 4.19.32
   33bd347fee01 power: supply: charger-manager: Fix incorrect return value
   19184190b029 ALSA: hda - Enforces runtime_resume after S3 and S4 for each codec
   156ba57f4ba6 ALSA: hda - Record the current power state before suspend/resume calls
   0e0f7b307212 locking/lockdep: Add debug_locks check in __lock_downgrade()
   206a76a684a7 x86/unwind: Add hardcoded ORC entry for NULL
   367ccafbcbfe x86/unwind: Handle NULL pointer calls better in frame unwinder
   3254dd301f80 loop: access lo_backing_file only when the loop device is Lo_bound
   35cdcdc5c49d netfilter: ebtables: remove BUGPRINT messages
   1fd916e879a9 f2fs: fix to avoid deadlock of atomic file operations
   9dd5053c8cd5 RDMA/cma: Rollback source IP address if failing to acquire device
   015b828bd66d drm: Reorder set_property_atomic to avoid returning with an active ww_ctx
   e365b94086f9 Bluetooth: hci_ldisc: Postpone HCI_UART_PROTO_READY bit set in hci_uart_set_proto()
   f67202f78fe3 Bluetooth: hci_ldisc: Initialize hci_dev before open()
   4b39051363a0 Bluetooth: Fix decrementing reference count twice in releasing socket
   4e0ca4bfa2bc Bluetooth: hci_uart: Check if socket buffer is ERR_PTR in h4_recv_buf()
   6bef442eea18 media: v4l2-ctrls.c/uvc: zero v4l2_event
   d12d86411c03 ext4: brelse all indirect buffer in ext4_ind_remove_space()
   76c9ee6bd5d2 ext4: fix data corruption caused by unaligned direct AIO
   558331d0205b ext4: fix NULL pointer dereference while journal is aborted
   ff7a1f81c20e ALSA: ac97: Fix of-node refcount unbalance
   c8e91d756703 ALSA: hda/ca0132 - make pci_iounmap() call conditional
   4a767459389a ALSA: x86: Fix runtime PM for hdmi-lpe-audio
   38bd575b9aef SMB3: Fix SMB3.1.1 guest mounts to Samba
   aacf2cc814c2 irqchip/gic-v3-its: Fix comparison logic in lpi_range_cmp
   daaeeca918e7 objtool: Move objtool_file struct off the stack
   37c6f8089806 perf probe: Fix getting the kernel map
   14c52acaac86 cifs: allow guest mounts to work for smb3.11
   36d52f5bcd57 futex: Ensure that futex address is aligned in handle_futex_death()
   837becb30c3b scsi: ibmvscsi: Fix empty event pool access during host removal
   04809b226e79 scsi: ibmvscsi: Protect ibmvscsi_head from concurrent modificaiton
   b8ea151a7ab5 powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038
   9d91069f48cc MIPS: Fix kernel crash for R6 in jump label branch function
   6e74961bd67d MIPS: Ensure ELF appended dtb is relocated
   56bcf3df2552 mips: loongson64: lemote-2f: Add IRQF_NO_SUSPEND to "cascade" irqaction.
   c72e90d94a14 udf: Fix crash on IO error during truncate
   9cae232a8706 libceph: wait for latest osdmap in ceph_monc_blacklist_add()
   869157135003 iommu/amd: fix sg->dma_address for sg->offset bigger than PAGE_SIZE
   69e26237ed1e drm/vmwgfx: Return 0 when gmrid::get_node runs out of ID's
   ab483d1ca7ae drm/vmwgfx: Don't double-free the mode stored in par->set_mode
   42f358b2d48c mmc: renesas_sdhi: limit block count to 16 bit for old revisions
   65a5c93687b7 mmc: mxcmmc: "Revert mmc: mxcmmc: handle highmem pages"
   3b6870159e2e mmc: pxamci: fix enum type confusion
   6339cc5181c0 ALSA: firewire-motu: use 'version' field of unit directory to identify model
   023a1b28cf72 ALSA: hda - add Lenovo IdeaCentre B550 to the power_save_blacklist
   a2cddfe2ce6e Linux 4.19.31
   3053cb9701cd s390/setup: fix boot crash for machine without EDAT-1
   e578f90d8a9c bcache: use (REQ_META|REQ_PRIO) to indicate bio for metadata
   5ffb710b03d5 KVM: nVMX: Ignore limit checks on VMX instructions using flat segments
   29b515c27c0a KVM: nVMX: Apply addr size mask to effective address for VMX instructions
   9ce0ffeb68b6 KVM: nVMX: Sign extend displacements of VMX instr's mem operands
   c235af5a10f2 KVM: x86/mmu: Do not cache MMIO accesses while memslots are in flux
   656e9e5d5529 KVM: x86/mmu: Detect MMIO generation wrap in any address space
   23ad135ae66f KVM: Call kvm_arch_memslots_updated() before updating memslots
   585715ef18bf drm/amd/display: don't call dm_pp_ function from an fpu block
   17982c6a649b drm/amd/powerplay: correct power reading on fiji
   808b1c1e28e8 drm/radeon/evergreen_cs: fix missing break in switch statement
   9bc6e5673949 drm/fb-helper: generic: Fix drm_fbdev_client_restore()
   87bfc7b695bd media: imx: csi: Stop upstream before disabling IDMA channel
   54b941202391 media: imx: csi: Disable CSI immediately after last EOF
   73236bf581e9 media: vimc: Add vimc-streamer for stream control
   29e8c9ae99c7 media: uvcvideo: Avoid NULL pointer dereference at the end of streaming
   77b4e7454bbd media: lgdt330x: fix lock status reporting
   6039128dc6bf media: imx: prpencvf: Stop upstream before disabling IDMA channel
   e97a32a5a3bc rcu: Do RCU GP kthread self-wakeup from softirq and interrupt
   bce45a547546 tpm: Unify the send callback behaviour
   af0c1bd0c5e9 tpm/tpm_crb: Avoid unaligned reads in crb_recv()
   cc3b79d487e8 md: Fix failed allocation of md_register_thread
   01088750f25e perf intel-pt: Fix divide by zero when TSC is not available
   30cedf18d1e2 perf/x86/intel/uncore: Fix client IMC events return huge result
   a46a8cdfea3c perf intel-pt: Fix overlap calculation for padding
   fa592fc0bde5 perf auxtrace: Define auxtrace record alignment
   d8f691f29d91 perf tools: Fix split_kallsyms_for_kcore() for trampoline symbols
   e25353a0ac44 perf intel-pt: Fix CYC timestamp calculation after OVF
   3e5a054b0f70 x86/unwind/orc: Fix ORC unwind table alignment
   b05581b8ba9c vt: perform safe console erase in the right order
   2ca85aac1213 stable-kernel-rules.rst: add link to networking patch queue
   622afe5c7449 bcache: never writeback a discard operation
   cd73824636cb PM / wakeup: Rework wakeup source timer cancellation
   43bceddcd7e2 svcrpc: fix UDP on servers with lots of threads
   4af185feb9df NFSv4.1: Reinitialise sequence results before retransmitting a request
   ecab6ab1c227 nfsd: fix wrong check in write_v4_end_grace()
   8056912c1c75 nfsd: fix memory corruption caused by readdir
   10a68cdf1035 nfsd: fix performance-limiting session calculation
   2c648caf630d NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()
   63b0ee126f7e NFS: Fix an I/O request leakage in nfs_do_recoalesce
   be74fddc976e NFS: Fix I/O request leakages
   4ea4f347662c cpcap-charger: generate events for userspace
   ce02d82c4e1a mfd: sm501: Fix potential NULL pointer dereference
   5579d97e92f7 dm integrity: limit the rate of error messages
   7668d6e45f3a dm: fix to_sector() for 32bit
   a441fdaf8c30 ipmi_si: fix use-after-free of resource->name
   3cbae9fa85ce arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2
   c113a7fb017b arm64: debug: Ensure debug handlers check triggering exception level
   85c8ea220f89 arm64: Fix HCR.TGE status for NMI contexts
   58691e6a93d8 ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify
   d6d004b3dd70 powerpc/traps: Fix the message printed when stack overflows
   461a52a44893 powerpc/traps: fix recoverability of machine check handling on book3s/32
   baed68a953ac powerpc/hugetlb: Don't do runtime allocation of 16G pages in LPAR configuration
   9d2e929c3bae powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning
   344996a835d4 powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guest
   3bf8ff7bc667 powerpc/powernv: Don't reprogram SLW image on every KVM guest entry/exit
   f6f03d6078b1 powerpc/83xx: Also save/restore SPRG4-7 during suspend
   b0934990125a powerpc/powernv: Make opal log only readable by root
   9b5305504709 powerpc/wii: properly disable use of BATs when requested.
   40b97853c200 powerpc/32: Clear on-stack exception marker upon exception return
   c7dad095f35a security/selinux: fix SECURITY_LSM_NATIVE_LABELS on reused superblock
   e4f6f82c9edc selinux: add the missing walk_size + len check in selinux_sctp_bind_connect
   584f390d1039 jbd2: fix compile warning when using JBUFFER_TRACE
   dbe4bc993836 jbd2: clear dirty flag when revoking a buffer from an older transaction
   3545324fba52 serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup()
   8225bb965f29 serial: 8250_pci: Fix number of ports for ACCES serial cards
   9d0b55bb2aec serial: 8250_of: assume reg-shift of 2 for mrvl,mmp-uart
   a4b021ec4b5a serial: uartps: Fix stuck ISR if RX disabled with non-empty FIFO
   9920eb4003c5 bpf: only test gso type on gso packets
   206fa92c9d52 drm/i915: Relax mmap VMA check
   116a9e31237c can: flexcan: FLEXCAN_IFLAG_MB: add () around macro argument
   6f29e4c2dbb1 gpio: pca953x: Fix dereference of irq data in shutdown
   e86a57ecdfac media: i2c: ov5640: Fix post-reset delay
   5f9614d0540b i2c: tegra: fix maximum transfer size
   25970b517db1 parport_pc: fix find_superio io compare code, should use equal test.
   57c29a08c4cf intel_th: Don't reference unassigned outputs
   c835b4417c18 device property: Fix the length used in PROPERTY_ENTRY_STRING()
   93c8a44a8297 kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv
   09417dd35e37 mm/memory.c: do_fault: avoid usage of stale vm_area_struct
   c1ddc7b785b4 mm/vmalloc: fix size check for remap_vmalloc_range_partial()
   234c0cc98221 mm: hwpoison: fix thp split handing in soft_offline_in_use_page()
   c7fd1a968c5d dmaengine: usb-dmac: Make DMAC system sleep callbacks explicit
   822e21853439 usb: typec: tps6598x: handle block writes separately with plain-I2C adapters
   8415e718a06b usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
   b1c1ef7b4d63 clk: ingenic: Fix doc of ingenic_cgu_div_info
   4a04611fc266 clk: ingenic: Fix round_rate misbehaving with non-integer dividers
   33e7604ac8fd clk: samsung: exynos5: Fix kfree() of const memory on setting driver_override
   4d1de1e6d266 clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure
   9aba7a8fd163 clk: clk-twl6040: Fix imprecise external abort for pdmclk
   6e02a5f5aba3 clk: uniphier: Fix update register for CPU-gear
   62600af3a7cb ext2: Fix underflow in ext2_max_size()
   c335b49379b5 cxl: Wrap iterations over afu slices inside 'afu_list_lock'
   54674984d478 IB/hfi1: Close race condition on user context disable and close
   09bc2f5a16a9 PCI: dwc: skip MSI init if MSIs have been explicitly disabled
   13a9d14fbf1b PCI/DPC: Fix print AER status in DPC event handling
   c733cf4abfba PCI/ASPM: Use LTR if already enabled by platform
   8a4fdc649ca9 ext4: fix crash during online resizing
   a0d876c77705 ext4: add mask of ext4 flags to swap
   048bfb5bc05f ext4: update quota information while swapping boot loader inode
   071f68163cc0 ext4: cleanup pagecache before swap i_data
   cdf9941b7707 ext4: fix check of inode in swap_inode_boot_loader
   ae228aca576d cpufreq: pxa2xx: remove incorrect __init annotation
   f65b34d0f979 cpufreq: tegra124: add missing of_node_put()
   33565a76a7b2 cpufreq: kryo: Release OPP tables on module removal
   ee7d297fba24 x86/kprobes: Prohibit probing on optprobe template code
   a477075ebab3 irqchip/brcmstb-l2: Use _irqsave locking variants in non-interrupt code
   c8666ede18ec irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
   b92fad6995c3 libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer
   02c55be588b1 soc: qcom: rpmh: Avoid accessing freed memory from batch API
   898488e2988c Btrfs: fix corruption reading shared and compressed extents after hole punching
   1a00f7fd0fbf btrfs: ensure that a DUP or RAID1 block group has exactly two stripes
   6e24f5a1ebb1 Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl
   61f9209676e8 Btrfs: setup a nofs context for memory allocation at btrfs_create_tree()
   fcbf12e23d99 m68k: Add -ffreestanding to CFLAGS
   205f149f1a35 ovl: Do not lose security.capability xattr over metadata file copy-up
   6f048ae2d25f ovl: During copy up, first copy up data and then xattrs
   2af926fd52fc splice: don't merge into linked buffers
   1c2123ff4312 fs/devpts: always delete dcache dentry-s in dput()
   d8ae662b400f scsi: qla2xxx: Fix LUN discovery if loop id is not assigned yet by firmware
   f4a9fd5652d5 scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock
   852a4ab292bb scsi: sd: Optimal I/O size should be a multiple of physical block size
   e6e738e2b5ff scsi: aacraid: Fix performance issue on logical drives
   bd8a0e656935 scsi: virtio_scsi: don't send sc payload with tmfs
   1653307cf0e7 s390/virtio: handle find on invalid queue gracefully
   b52bdf53130a s390/setup: fix early warning messages
   e19ca3fe6cf2 clocksource/drivers/arch_timer: Workaround for Allwinner A64 timer instability
   ef8062e20614 clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown
   c1f45c10df2e clocksource/drivers/exynos_mct: Move one-shot check from tick clear to ISR
   06607b1b6cc9 regulator: s2mpa01: Fix step values for some LDOs
   c288e34df128 regulator: max77620: Initialize values for DT properties
   462aee48a8a2 regulator: s2mps11: Fix steps for buck7, buck8 and LDO35
   15ead7e2a11e spi: pxa2xx: Setup maximum supported DMA transfer length
   e51c5ec99597 spi: ti-qspi: Fix mmap read when more than one CS in use
   0d98ecb141a6 netfilter: ipt_CLUSTERIP: fix warning unused variable cn
   6bd9959aa110 mmc:fix a bug when max_discard is 0
   2946910ed837 mmc: sdhci-esdhc-imx: fix HS400 timing issue
   c19b9673487e ACPI / device_sysfs: Avoid OF modalias creation for removed device
   468ff43f6274 xen: fix dom0 boot on huge systems
   24d5097655eb tracing/perf: Use strndup_user() instead of buggy open-coded version
   f27077e5f5c5 tracing: Do not free iter->trace in fail path of tracing_open_pipe()
   ebca08d7e862 tracing: Use strncpy instead of memcpy for string keys in hist triggers
   43eaa6cc1775 CIFS: Fix read after write for files with read caching
   dc8e8ad962a8 CIFS: Do not skip SMB2 message IDs on send failures
   3ed9f22e28dd CIFS: Do not reset lease state to NONE on lease break
   41e2d1c43c87 crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine
   d5a5bded80a6 crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling
   66700c89f0ab crypto: x86/morus - fix handling chunked inputs and MAY_SLEEP
   8a9fcf4a9f1f crypto: x86/aesni-gcm - fix crash on empty plaintext
   5d2a5172caa4 crypto: x86/aegis - fix handling chunked inputs and MAY_SLEEP
   574c19d97e6b crypto: testmgr - skip crc32c context test for ahash algorithms
   e6c703f15872 crypto: skcipher - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   bb1ae0aadbf1 crypto: pcbc - remove bogus memcpy()s with src == dest
   c0bfdac6a471 crypto: morus - fix handling chunked inputs
   dc410d2d8405 crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   76f21678d64f crypto: arm64/crct10dif - revert to C code for short inputs
   4bca5a9a5dcd crypto: arm64/aes-neonbs - fix returning final keystream block
   0beb34b865e3 crypto: arm/crct10dif - revert to C code for short inputs
   4c152af938ce crypto: aegis - fix handling chunked inputs
   736807d69157 crypto: aead - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   7a8b048430c1 fix cgroup_do_mount() handling of failure exits
   3b8da135a4cc libnvdimm: Fix altmap reservation size calculation
   696c37524beb libnvdimm/pmem: Honor force_raw for legacy pmem regions
   6a89ed7aa140 libnvdimm, pfn: Fix over-trim in trim_pfn_device()
   2b88d92ea9d2 libnvdimm/label: Clear 'updating' flag after label-set update
   f4dfb94a0754 nfit/ars: Attempt short-ARS even in the no_init_ars case
   e6defe76600b nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot
   f5878c4f084d acpi/nfit: Fix bus command validation
   8df25eb903c5 nfit: acpi_nfit_ctl(): Check out_obj->type in the right place
   eabd7d248e21 stm class: Prevent division by zero
   b3139fbb3b00 tmpfs: fix uninitialized return value in shmem_link
   d3f62d3eab0b selftests: fib_tests: sleep after changing carrier. again.
   8cd89bf632b2 net: set static variable an initial value in atl2_probe()
   29e4bfbc79b4 bnxt_en: Wait longer for the firmware message response to complete.
   b4baeab7e084 bnxt_en: Fix typo in firmware message timeout logic.
   a40fa9498707 nfp: bpf: fix ALU32 high bits clearance bug
   7ca1faa52be7 nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K
   4523507c52b8 net: thunderx: add nicvf_send_msg_to_pf result check for set_rx_mode_task
   17bc53e73d0c net: thunderx: make CFG_DONE message to run through generic send-ack sequence
   02f8211b75c9 bpf, lpm: fix lookup bug in map_delete_elem
   c5f37906ecb7 mac80211_hwsim: propagate genlmsg_reply return code
   ee01ac61d1d4 phonet: fix building with clang
   8b9187e7df64 ARCv2: don't assume core 0x54 has dual issue
   3220aa9b0065 ARCv2: support manual regfile save on interrupts
   74b4dcea6756 ARC: uacces: remove lp_start, lp_end from clobber list
   2fc69e55f370 ARCv2: lib: memcpy: fix doing prefetchw outside of buffer
   2c049f195787 ixgbe: fix older devices that do not support IXGBE_MRQC_L3L4TXSWEN
   064a61d3e7b5 tmpfs: fix link accounting when a tmpfile is linked in
   e6e9d6e29002 mm: handle lru_add_drain_all for UP properly
   f3a9c9be0eb4 net: marvell: mvneta: fix DMA debug warning
   e52578889c8e ARM: tegra: Restore DT ABI on Tegra124 Chromebooks
   f715466a3f23 arm64: Relax GIC version check during early boot
   2f97f7125237 ARM: dts: armada-xp: fix Armada XP boards NAND description
   e4d14f616050 qed: Fix iWARP syn packet mac address validation.
   821c67748623 qed: Fix iWARP buffer size provided for syn packet processing.
   90fc2f95c418 ASoC: topology: free created components in tplg load error
   edd7b6b9be97 mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue
   6ac400b7c5e8 xfrm: Fix inbound traffic via XFRM interfaces across network namespaces
   3a5321342361 net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()
   a139d6a318de qmi_wwan: apply SET_DTR quirk to Sierra WP7607
   13cb60c3c915 pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins
   90a86d00af1a net: dsa: bcm_sf2: Do not assume DSA master supports WoL
   d33f5a0febfa net: systemport: Fix reception of BPDUs
   3491857f4292 scsi: libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task
   726832821903 keys: Fix dependency loop between construction record and auth key
   fac71ac37634 assoc_array: Fix shortcut creation
   84657a1ba9bd ARM: 8835/1: dma-mapping: Clear DMA ops on teardown
   978e0388c22b af_key: unconditionally clone on broadcast
   c7c68a1b9a16 bpf: fix lockdep false positive in stackmap
   413e39852082 bpf: only adjust gso_size on bytestream protocols
   da3495301cda ARM: 8824/1: fix a migrating irq bug when hotplug cpu
   b92eaed36c4b esp: Skip TX bytes accounting when sending from a request socket
   2f3b4f968619 clk: sunxi: A31: Fix wrong AHB gate number
   cacf3c0d8288 kallsyms: Handle too long symbols in kallsyms.c
   980f44f8dd8a clk: sunxi-ng: v3s: Fix TCON reset de-assert bit
   5050f03ff0b1 Input: st-keyscan - fix potential zalloc NULL dereference
   bf26feccf99c auxdisplay: ht16k33: fix potential user-after-free on module unload
   8e770d996ea4 i2c: bcm2835: Clear current buffer pointers and counts after a transfer
   d9ce9aea3f63 i2c: cadence: Fix the hold bit setting
   8f622a7d512c net: hns: Fix object reference leaks in hns_dsaf_roce_reset()
   33e83ea302c0 mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs
   a9503ade1bf7 x86/CPU: Add Icelake model number
   388f3adb2729 net: dsa: bcm_sf2: potential array overflow in bcm_sf2_sw_suspend()
   8ab49fd5b072 scsi: qla2xxx: Fix panic from use after free in qla2x00_async_tm_cmd
   53dcaeeff145 Revert "mm: use early_pfn_to_nid in page_ext_init"
   8b1a7762e0da mm/gup: fix gup_pmd_range() for dax
   6c023d86b364 NFS: Don't use page_file_mapping after removing the page
   d84bc704b91e xprtrdma: Make sure Send CQ is allocated on an existing compvec
   e01f2b0821ea floppy: check_events callback should not return a negative number
   5ca2ef674d74 ipvs: fix dependency on nf_defrag_ipv6
   29452f665c2f blk-mq: insert rq with DONTPREP to hctx dispatch list when requeue
   e0e6b0d7e09c netfilter: compat: initialize all fields in xt_init
   a5a244451145 mac80211: Fix Tx aggregation session tear down with ITXQs
   bff33ba4f9ca mac80211: call drv_ibss_join() on restart
   134891e124da Input: matrix_keypad - use flush_delayed_work()
   e91dc2092f7f Input: ps2-gpio - flush TX work when closing port
   4fe714b750cb Input: cap11xx - switch to using set_brightness_blocking()
   f49f7007de59 ARM: OMAP2+: fix lack of timer interrupts on CPU1 after hotplug
   8f07d76481d5 ASoC: samsung: Prevent clk_get_rate() calls in atomic context
   459058f0e329 KVM: arm64: Forbid kprobing of the VHE world-switch code
   04131dfcb910 KVM: arm/arm64: vgic: Always initialize the group of private IRQs
   c831293622b2 arm/arm64: KVM: Don't panic on failure to properly reset system registers
   b78379c33723 arm/arm64: KVM: Allow a VCPU to fully reset itself
   dfe9b4d992ca KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded
   20604435e2f4 ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check
   e07aaaa7013e ASoC: dapm: fix out-of-bounds accesses to DAPM lookup tables
   f3f7a8b6faf8 ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized
   ad4507bd2bf1 ARM: dts: Configure clock parent for pwm vibra
   bac70a89419a Input: pwm-vibra - stop regulator after disabling pwm, not before
   0ed72d3f6f1d Input: pwm-vibra - prevent unbalanced regulator
   98a137cd0484 s390/dasd: fix using offset into zero size array error
   cdaf89ab8f77 arm64: dts: rockchip: fix graph_port warning on rk3399 bob kevin and excavator
   5f4a64b040c9 KVM: arm/arm64: vgic: Make vgic_dist->lpi_list_lock a raw_spinlock
   ac696b0176b4 clocksource: timer-ti-dm: Fix pwm dmtimer usage of fck reparenting
   b2c642a1a618 ASoC: rt5682: Correct the setting while select ASRC clk for AD/DA filter
   35ad2e6d7e46 gpu: ipu-v3: Fix CSI offsets for imx53
   04c5c4c47c31 drm/imx: imx-ldb: add missing of_node_puts
   1640b5288615 gpu: ipu-v3: Fix i.MX51 CSI control registers offset
   a308622febe1 drm/imx: ignore plane updates on disabled crtcs
   2e0e1f9a1e41 crypto: rockchip - update new iv to device in multiple operations
   5aabf06712c2 crypto: rockchip - fix scatterlist nents error
   3c5d7703bbd0 crypto: ahash - fix another early termination in hash walk
   1a10e6b5bb34 crypto: cfb - remove bogus memcpy() with src == dest
   0b1871d041d3 crypto: cfb - add missing 'chunksize' property
   6ed42ccca59d crypto: ccree - don't copy zero size ciphertext
   0bdd345a3848 crypto: ccree - unmap buffer before copying IV
   009eeb9878b4 crypto: ccree - fix free of unallocated mlli buffer
   6f4c11b09770 crypto: caam - fix DMA mapping of stack memory
   74fd74e1fc8d crypto: caam - fixed handling of sg list
   ce36d9fafb43 crypto: ccree - fix missing break in switch statement
   32eeecf7ac87 crypto: caam - fix hash context DMA unmap size
   dd6ce0316e70 stm class: Fix an endless loop in channel allocation
   a253d1f3e490 mei: bus: move hw module get/put to probe/release
   02c0c70fb36e mei: hbm: clean the feature flags on link reset
   dbcb0a590ecb iio: adc: exynos-adc: Fix NULL pointer exception on unbind
   3f44122e065c ASoC: codecs: pcm186x: Fix energysense SLEEP bit
   7d9e07582a7f ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE()
   098e0f89a341 ASoC: fsl_esai: fix register setting issue in RIGHT_J mode
   85bdc9daff40 9p/net: fix memory leak in p9_client_create
   e08ba890dc29 9p: use inode->i_lock to protect i_size_write() under 32-bit
   573d423a9bd7 media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused()

(From OE-Core rev: bfb471e1557d8e3bf504668b38384388f0e8969e)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:38 +01:00
Bruce Ashfield
38f1338b4e linux-yocto/5.0: update to v5.0.7
Integrating the korg -stable releases which comprise the following
commits:

   8b298d3a0bd5 Linux 5.0.7
   e73f145543fa kbuild: skip sub-make for in-tree build with GNU Make 4.x
   d972d1c0d76d kbuild: add workaround for Debian make-kpkg
   38d2286e52ea bcache: fix potential div-zero error of writeback_rate_p_term_inverse
   ae050638bc97 ACPI / video: Extend chassis-type detection with a "Lunch Box" check
   3e033b1b435a gpio: of: Restrict enable-gpio quirk to regulator-gpio
   ae42fc868cd5 appletalk: Fix compile regression
   a84b7c68966a net: stmmac: Avoid one more sometimes uninitialized Clang warning
   36b39631cc85 drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers
   8826838f43fe drm: Reorder set_property_atomic to avoid returning with an active ww_ctx
   0a2e1a5b583b ASoC: simple-card-utils: check "reg" property on asoc_simple_card_get_dai_id()
   45040e92500c Input: soc_button_array - fix mapping of the 5th GPIO in a PNP0C40 device
   1ad62489b25a staging: iio: adt7316: fix dac_bits assignment
   2bece1d313aa dmaengine: tegra: avoid overflow of byte tracking
   e84e0a8c3f22 clk: rockchip: fix frac settings of GPLL clock for rk3328
   25fb6c323b55 ARM: shmobile: Fix R-Car Gen2 regulator quirk
   9b0f430450cf clk: meson: clean-up clock registration
   a644d2d28baf drm/fb-helper: fix leaks in error path of drm_fb_helper_fbdev_setup
   c8a8dd1d85ca x86/build: Mark per-CPU symbols as absolute explicitly for LLD
   38af5462fa51 wlcore: Fix memory leak in case wl12xx_fetch_firmware failure
   ab79dc3ef024 brcmfmac: Use firmware_request_nowarn for the clm_blob
   f836093a2eeb selinux: do not override context on context mounts
   993f96415a72 x86/build: Specify elf_i386 linker emulation explicitly for i386 objects
   16d4d75d8b6e drm/nouveau: Stop using drm_crtc_force_disable
   bfb59eabe2c9 drm: Auto-set allow_fb_modifiers when given modifiers at plane init
   778c82db727a pinctrl: meson: meson8b: add the eth_rxd2 and eth_rxd3 pins
   1048bfd8bf67 regulator: act8865: Fix act8600_sudcdc_voltage_ranges setting
   e78d5e16f1d6 audit: hand taken context to audit_kill_trees for syscall logging
   a43ea8ca1865 PCI: pciehp: Assign ctrl->slot_ctrl before writing it to hardware
   e5d1f1c0148d media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration
   68ec6a13ef0d media: rcar-vin: Allow independent VIN link enablement
   ebd0f3066c35 netfilter: physdev: relax br_netfilter dependency
   d7e6e93b95f2 dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_*
   1bac8b82d95c dmaengine: qcom_hidma: assign channel cookie correctly
   56d276b53614 dmaengine: imx-dma: fix warning comparison of distinct pointer types
   964065d234c7 cpu/hotplug: Mute hotplug lockdep during init
   8376acca6f18 pinctrl: sh-pfc: r8a77995: Fix MOD_SEL bit numbering
   e848354f28b7 pinctrl: sh-pfc: r8a77990: Fix MOD_SEL bit numbering
   9d7ff2ae8fd6 pinctrl: meson: fix G12A ao pull registers base address
   e17a340f9598 hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable
   283a29de66c3 f2fs: fix to initialize variable to avoid UBSAN/smatch warning
   3d1a731bcec7 f2fs: UBSAN: set boolean value iostat_enable correctly
   d9f59ff251b4 HID: intel-ish: ipc: handle PIMR before ish_wakeup also clear PISR busy_clear bit
   931480457bb3 selftests/bpf: suppress readelf stderr when probing for BTF support
   e01bc8baa867 soc/tegra: fuse: Fix illegal free of IO base address
   bf381e06af42 hwrng: virtio - Avoid repeated init of completion
   64ef5941a6f8 media: mt9m111: set initial frame size other than 0x0
   9acd16abab23 perf script python: Add trace_context extension module to sys.modules
   8febc5d31032 perf script python: Use PyBytes for attr in trace-event-python
   8f4264f58eb8 perf trace: Fixup etcsnoop example
   631e6859c9ac platform/x86: intel-hid: Missing power button release on some Dell models
   3ea0a48aa080 usb: dwc3: gadget: Fix OTG events when gadget driver isn't loaded
   bce56838a25d regulator: mcp16502: Include linux/gpio/consumer.h to fix build error
   f8d78138dd55 ALSA: dice: add support for Solid State Logic Duende Classic/Mini
   504dfdea9c39 drm/amd/display: Enable vblank interrupt during CRC capture
   b32cff3dd086 powerpc/pseries: Perform full re-add of CPU for topology update post-migration
   9ee0088f920b tty: increase the default flip buffer limit to 2*640K
   d9c61474aa77 backlight: pwm_bl: Use gpiod_get_value_cansleep() to get initial state
   b8498a26ffdb cgroup/pids: turn cgroup_subsys->free() into cgroup_subsys->release() to fix the accounting
   07232db69580 powerpc/64s: Clear on-stack exception marker upon exception return
   cf651d7007c1 selftests/bpf: skip verifier tests for unsupported program types
   08619450dbfe bpf: fix missing prototype warnings
   8b3b22aa7c55 block, bfq: fix queue removal from weights tree
   c581587af717 block, bfq: fix in-service-queue check for queue merging
   721360c972a3 ARM: avoid Cortex-A9 livelock on tight dmb loops
   34164dfc56a4 ARM: 8830/1: NOMMU: Toggle only bits in EXC_RETURN we are really care of
   f7a2659378e7 mt7601u: bump supported EEPROM version
   a1fc32156354 drm/msm/dpu: Convert to a chained irq chip
   e0442dc492e5 soc: qcom: gsbi: Fix error handling in gsbi_probe()
   65ae5c0808c7 efi/arm/arm64: Allow SetVirtualAddressMap() to be omitted
   6416e05b8190 ARM: dts: lpc32xx: Remove leading 0x and 0s from bindings notation
   897a3b9ef31d drm/vkms: Bugfix extra vblank frame
   1c76c3cf3060 drm/vkms: Bugfix racing hrtimer vblank handle
   5ca05ecd2954 sched/core: Use READ_ONCE()/WRITE_ONCE() in move_queued_task()/task_rq_lock()
   4e634952fe74 efi/memattr: Don't bail on zero VA if it equals the region's PA
   dd288d329d17 sched/debug: Initialize sd_sysctl_cpus if !CONFIG_CPUMASK_OFFSTACK
   0da521452109 ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe
   8a838b44f70f iwlwifi: mvm: fix RFH config command with >=10 CPUs
   9bd4debdd544 staging: spi: mt7621: Add return code check on device_reset()
   3aa0518aacaa i2c: of: Try to find an I2C adapter matching the parent
   c1ac30ee10cf platform/x86: intel_pmc_core: Fix PCH IP sts reading
   b503ea08fe0d e1000e: Exclude device from suspend direct complete optimization
   7f0a3a436e88 e1000e: fix cyclic resets at link up with active tx
   4e4fba6d30f8 perf/aux: Make perf_event accessible to setup_aux()
   81ee4eab3117 drm/amd/display: Disconnect mpcc when changing tg
   c730d6c156c6 powerpc/ptrace: Mitigate potential Spectre v1
   8e74000fd656 x86/kexec: Fill in acpi_rsdp_addr from the first kernel
   90c93fbede11 bpf: test_maps: fix possible out of bound access warning
   c60bf6e7594c drm/amd/display: Don't re-program planes for DPMS changes
   ada81ebc5f35 drm: rcar-du: add missing of_node_put
   7208136a41f9 cdrom: Fix race condition in cdrom_sysctl_register
   e00ff3abfaaf fbdev: fbmem: fix memory access if logo is bigger than the screen
   8e48664da19f net: phy: consider latched link-down status in polling mode
   c230484a3767 iw_cxgb4: fix srqidx leak during connection abort
   3e45ebf5a16c net: marvell: mvpp2: fix stuck in-band SGMII negotiation
   c0ed04868506 genirq: Avoid summation loops for /proc/stat
   c984b1e68b0c bcache: improve sysfs_strtoul_clamp()
   5db086d7c05f bcache: fix potential div-zero error of writeback_rate_i_term_inverse
   d4db0c5ee0b4 bcache: fix input overflow to sequential_cutoff
   f48bb10d7615 bcache: fix input overflow to cache set sysfs file io_error_halflife
   83a6f919bbb7 sched/topology: Fix percpu data types in struct sd_data & struct s_data
   9738742e4e38 usb: f_fs: Avoid crash due to out-of-scope stack ptr access
   db5177729062 ath10k: fix shadow register implementation for WCN3990
   31f3d84c6d9f ALSA: PCM: check if ops are defined before suspending PCM
   6c896df369d1 ARM: dts: meson8b: fix the Ethernet data line signals in eth_rgmii_pins
   c716b08e06ca ARM: 8833/1: Ensure that NEON code always compiles with Clang
   f74b0a4bf14c netfilter: conntrack: fix cloned unconfirmed skb->_nfct race in __nf_conntrack_confirm
   c4ea4a79f8b2 kprobes: Prohibit probing on RCU debug routine
   170d42947604 kprobes: Prohibit probing on bsearch()
   34968a446c4e selftests: skip seccomp get_metadata test if not real root
   7981a5b4df77 selftests: ir: fix warning: "%s" directive output may be truncated ’ directive output may be truncated
   7b27cb19942e ACPI / video: Refactor and fix dmi_is_desktop()
   4f9f04ca4f83 iwlwifi: pcie: fix emergency path
   2392dcb54ad2 perf coresight: Do not test for libopencsd by default
   528033f554c8 perf report: Add s390 diagnosic sampling descriptor size
   59c09689808e perf trace: Check if the 'fd' is negative when mapping it to pathname
   8b4fdbce8ca4 perf beauty waitid options: Fix up prefix showing logic
   336eb093ba16 tools build: Add test-reallocarray.c to test-all.c to fix the build
   17e987679232 tools build: Add -lrt to FEATURE_CHECK_LDFLAGS-libaio
   1cbdd2401798 leds: lp55xx: fix null deref on firmware load failure
   34cbc429c56d jbd2: fix race when writing superblock
   9489ac42680c regulator: core: Take lock before applying system load
   7440c206c38f drm/sched: Fix entities with 0 rqs.
   aa6c9fcac011 efi: Fix build error due to enum collision between efi.h and ima.h
   55d7152d37dc cgroup, rstat: Don't flush subtree root unless necessary
   2fe8be270932 HID: intel-ish-hid: avoid binding wrong ishtp_cl_device
   e6eef5240054 vfs: fix preadv64v2 and pwritev64v2 compat syscalls with offset == -1
   a8254b01ca21 xen/gntdev: Do not destroy context while dma-bufs are in use
   d6318df6b0cc gpio: of: Apply regulator-gpio quirk only to enable-gpios
   7d361b8dbafe mt76: usb: do not run mt76u_queues_deinit twice
   af1ef012b95f media: rockchip/vpu: Correct return type for mem2mem buffer helpers
   d544b0856f3f media: mtk-jpeg: Correct return type for mem2mem buffer helpers
   569ce17b4cd9 media: mx2_emmaprp: Correct return type for mem2mem buffer helpers
   76499752191f media: s5p-g2d: Correct return type for mem2mem buffer helpers
   8852dab94f04 media: rockchip/rga: Correct return type for mem2mem buffer helpers
   9f31e32fd5a5 media: s5p-jpeg: Correct return type for mem2mem buffer helpers
   21ad47c39835 media: sh_veu: Correct return type for mem2mem buffer helpers
   a6d9661c5d16 media: ov7740: fix runtime pm initialization
   ed83655ce8c2 SoC: imx-sgtl5000: add missing put_device()
   a75ad663203b perf report: Don't shadow inlined symbol with different addr range
   c3a8705881cc mwifiex: don't advertise IBSS features without FW support
   aa8c73c8682f perf test: Fix failure of 'evsel-tp-sched' test on s390
   16a94480fb03 drm/amd/display: Clear stream->mode_changed after commit
   456736ab1b78 scsi: fcoe: make use of fip_mode enum complete
   952613125def scsi: megaraid_sas: return error when create DMA pool failed
   a3c1a668a014 s390/ism: ignore some errors during deregistration
   5d1db4825e3c efi: cper: Fix possible out-of-bounds access
   99bb2d19853a cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies
   4e7b5f9dc7a7 ASoC: qcom: Fix of-node refcount unbalance in qcom_snd_parse_of()
   a332ad5f006f powerpc/44x: Force PCI on for CURRITUCK
   4974ca47f15c perf annotate: Fix getting source line failure
   1a4faefc4680 clk: fractional-divider: check parent rate only if flag is set
   869a72e08b86 IB/mlx4: Increase the timeout for CM cache
   55bbe8fa7bfd i2c: designware: Do not allow i2c_dw_xfer() calls while suspended
   600c30ca6124 loop: set GENHD_FL_NO_PART_SCAN after blkdev_reread_part()
   540f120998df platform/mellanox: mlxreg-hotplug: Fix KASAN warning
   a21f5c44cb8e platform/x86: ideapad-laptop: Fix no_hw_rfkill_list for Lenovo RESCUER R720-15IKBN
   e2427570b374 i2c: Allow recovery of the initial IRQ by an I2C client device.
   6f93033d93d1 mlxsw: spectrum: Avoid -Wformat-truncation warnings
   a782956c2a30 e1000e: Fix -Wformat-truncation warnings
   cae3c93ad96b veth: Fix -Wformat-truncation
   dd8ab7cdbcda net: hns3: fix setting of the hns reset_type for rdma hw errors
   660b8b783aed net: dsa: mv88e6xxx: Add lockdep classes to fix false positive splat
   f9cf94eca1be mmc: omap: fix the maximum timeout setting
   895927dc1c6a btrfs: don't enospc all tickets on flush failure
   8f6019b404c8 btrfs: qgroup: Make qgroup async transaction commit more aggressive
   9a27e9ef2338 perf script: Handle missing fields with -F +..
   565e4ecefeae ice: fix ice_remove_rule_internal vsi_list handling
   b3425e19f614 net: dsa: mv88e6xxx: Default CMODE to 1000BaseX only on 6390X
   13fe58e28c21 powerpc/hugetlb: Handle mmap_min_addr correctly in get_unmapped_area callback
   957b2d2317e9 iommu/io-pgtable-arm-v7s: Only kmemleak_ignore L2 tables
   af6366bb82e6 ARM: 8845/1: use unified assembler in c files
   dbda5b6625bd ARM: 8840/1: use a raw_spinlock_t in unwind
   8cada074059f serial: 8250_pxa: honor the port number from devicetree
   1e084b9e2037 coresight: etm4x: Add support to enable ETMv4.2
   8e28ed0b7b8d powerpc/xmon: Fix opcode being uninitialized in print_insn_powerpc
   5e91baea2c1f ath10k: don't report unset rssi values to mac80211
   33cb50fa0930 drm/amd/display: Fix reference counting for struct dc_sink.
   29b55af8a429 btrfs: save drop_progress if we drop refs at all
   e3e9d97396cd kbuild: make -r/-R effective in top Makefile for old Make versions
   366a5ee958d0 kbuild: invoke syncconfig if include/config/auto.conf.cmd is missing
   22efb9f2aeff scsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c
   b17b4bd79afc powerpc/powernv/ioda: Fix locked_vm counting for memory used by IOMMU tables
   7fe45a018fb3 usb: chipidea: Grab the (legacy) USB PHY by phandle first
   a133f9f7f96a tools/bpf: selftests: add map lookup to test_map_in_map bpf prog
   547272b44afa crypto: cavium/zip - fix collision with generic cra_driver_name
   1ee9d34d6861 crypto: crypto4xx - add missing of_node_put after of_device_is_available
   2b52034346cd lockdep/lib/tests: Fix run_tests.sh
   a73713e53323 ath10k: Fix the wrong updation of BW in tx_stats debugfs entry
   e486c95f5d50 mt76: fix a leaked reference by adding a missing of_node_put
   96e2fec0fd8c wil6210: check null pointer in _wil_cfg80211_merge_extra_ies
   d8f775092499 PCI/PME: Fix hotplug/sysfs remove deadlock in pcie_pme_remove()
   88f0ced0d75f mm/resource: Return real error codes from walk failures
   6e33632946e4 tools lib traceevent: Fix buffer overflow in arg_eval
   a1d9d2145c50 fs: fix guard_bio_eod to check for real EOD errors
   dee200aba7dc ext4: fix bigalloc cluster freeing when hole punching under load
   1d62e75a00bb jbd2: fix invalid descriptor block checksum
   87f8ad583c79 iommu/vt-d: Disable ATS support on untrusted devices
   b39898beee9d netfilter: conntrack: tcp: only close if RST matches exact sequence
   8a0f1351bac1 PCI: mediatek: Fix memory mapped IO range size computation
   fdb08cf7dbee netfilter: nf_tables: check the result of dereferencing base_chain->stats
   dc8d8f83ea52 perf beauty msg_flags: Add missing %s lost when adding prefix suppression logic
   d6dd80425f5d cifs: Fix NULL pointer dereference of devname
   bcb99efab248 cifs: Accept validate negotiate if server return NT_STATUS_NOT_SUPPORTED
   88596e78dae4 f2fs: fix to check inline_xattr_size boundary correctly
   e3eea74f61a8 dm thin: add sanity checks to thin-pool and external snapshot creation
   f2e34b4ff47e cifs: use correct format characters
   64f336255228 kasan: fix kasan_check_read/write definitions
   326ce03840eb page_poison: play nicely with KASAN
   0326696a6769 fs/file.c: initialize init_files.resize_wait
   902507dada43 f2fs: fix to data block override node segment by mistake
   3667215198eb f2fs: do not use mutex lock in atomic context
   e92a6db09700 ocfs2: fix a panic problem caused by o2cb_ctl
   8783c35917b6 mm/slab.c: kmemleak no scan alien caches
   f67cd526ce1d mm/vmalloc.c: fix kernel BUG at mm/vmalloc.c:512!
   03bccbc025ed mm, mempolicy: fix uninit memory access
   c59c60824a9a memcg: killed threads should not invoke memcg OOM killer
   db5d8675b14a mm,oom: don't kill global init via memory.oom.group
   66a4d4d03b7e docs/core-api/mm: fix user memory accessors formatting
   34fa723765cf mm, swap: bounds check swap_info array accesses to avoid NULL derefs
   57f5b77e9f46 mm/page_ext.c: fix an imbalance with kmemleak
   93b7ebef7ee3 mm/cma.c: cma_declare_contiguous: correct err handling
   90a70109697c mm/sparse: fix a bad comparison
   60c86431ca4c perf c2c: Fix c2c report for empty numa node
   11304c4b4ee4 x86/hyperv: Fix kernel panic when kexec on HyperV
   34555ccacf94 iio: adc: fix warning in Qualcomm PM8xxx HK/XOADC driver
   86aad65625cf scsi: hisi_sas: Fix a timeout race of driver internal and SMP IO
   776de12b9f8f scsi: hisi_sas: Set PHY linkrate when disconnected
   c5021aa17b05 libbpf: force fixdep compilation at the start of the build
   267f65c94fb7 enic: fix build warning without CONFIG_CPUMASK_OFFSTACK
   aaad69802e17 net: stmmac: Avoid sometimes uninitialized Clang warnings
   4e4d49798d86 sysctl: handle overflow for file-max
   fd9317a3e2a0 include/linux/relay.h: fix percpu annotation in struct rchan
   c7c82cea6985 gpio: gpio-omap: fix level interrupt idling
   90833d08ffa5 clk: ti: clkctrl: Fix clkdm_name regression for TI_CLK_CLKCTRL_COMPAT
   b48475a66ef5 xsk: fix to reject invalid flags in xsk_bind
   3cac5ce088c2 net/mlx5: Avoid panic when setting vport mac, getting vport config
   a1126c2008a3 net/mlx5: Avoid panic when setting vport rate
   d1e83bda0c30 net/mlx5e: Fix access to non-existing receive queue
   043a440018e3 tracing: kdb: Fix ftdump to not sleep
   4c6df358aa87 apparmor: fix double free when unpack of secmark rules fails
   a98984da006b f2fs: fix to avoid deadlock in f2fs_read_inline_dir()
   8d661a663048 f2fs: fix to adapt small inline xattr space in __find_inline_xattr()
   e56d6fa7acf3 h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux-
   1eaf6713c5b3 nvme-loop: init nvmet_ctrl fatal_err_work when allocate
   32b73dc525a1 nvme-fc: fix numa_node when dev is null
   fae38f280334 CIFS: fix POSIX lock leak and invalid ptr deref
   dc2b4d4ab0ae ext4: cleanup bh release code in ext4_ind_remove_space()
   820c1fa51501 Linux 5.0.6
   debaa517c16c mt76x02u: use usb_bulk_msg to upload firmware
   046098f056e2 bpf: do not restore dst_reg when cur_state is freed
   b54f0c4976e7 KVM: x86: update %rip after emulating IO
   cc3f680dd076 KVM: x86: Emulate MSR_IA32_ARCH_CAPABILITIES on AMD hosts
   d50d46e303d4 KVM: Reject device ioctls from processes other than the VM's creator
   8c0823aa123b x86/smp: Enforce CONFIG_HOTPLUG_CPU when SMP=y
   c3bcf0314665 cpu/hotplug: Prevent crash when CPU bringup fails on CONFIG_HOTPLUG_CPU=n
   53464ca9130b watchdog: Respect watchdog cpumask on CPU hotplug
   1a0ecfd4e633 powerpc/pseries/mce: Fix misleading print for TLB mutlihit
   4a2b2d5dc8fa powerpc/64: Fix memcmp reading past the end of src/dest
   e92932ef2862 powerpc/pseries/energy: Use OF accessor functions to read ibm,drc-indexes
   8f84f7daabb2 objtool: Query pkg-config for libelf location
   a0de19f1c307 perf intel-pt: Fix TSC slip
   c9418d0addb0 perf pmu: Fix parser error for uncore event alias
   8ad454a831e0 mm/migrate.c: add missing flush_dcache_page for non-mapped page migrate
   8a86a416c948 mm/page_isolation.c: fix a wrong flag in set_migratetype_isolate()
   77a5258a57e7 mm/memory_hotplug.c: fix notification in offline error path
   2b57282beb60 mm/debug.c: fix __dump_page when mapping->host is not set
   8b2f31de5d15 mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specified
   467c01f2deea iommu/io-pgtable-arm-v7s: request DMA32 memory, and improve debugging
   ed3886c7d9f2 mm: add support for kmem caches in DMA32 zone
   eef9dbbad03f mm/hotplug: fix offline undo_isolate_page_range()
   d26254c4e7ca usb: typec: Fix unchecked return value
   a3bed8b549ec usb: typec: tcpm: Try PD-2.0 if sink does not respond to 3.0 source-caps
   402f57808b9a usb: cdc-acm: fix race during wakeup blocking TX traffic
   c7a5ef0d64f4 xhci: Don't let USB3 ports stuck in polling state prevent suspend
   448c39c360ef usb: xhci: dbc: Don't free all memory with spinlock held
   c08a998dec55 xhci: Fix port resume done detection for SS ports with LPM enabled
   8e70eae1816b usb: host: xhci-rcar: Add XHCI_TRUST_TX_LENGTH quirk
   40b8282f9009 mm/memory.c: fix modifying of page protection by insert_pfn()
   08213ad7465f usb: common: Consider only available nodes for dr_mode
   80ff12631ba5 USB: gadget: f_hid: fix deadlock in f_hidg_write()
   8f00b32d3991 usb: mtu3: fix EXTCON dependency
   dbc206874d67 phy: sun4i-usb: Support set_mode to USB_HOST for non-OTG PHYs
   494d26aa3915 gpio: adnp: Fix testing wrong value in adnp_gpio_direction_input
   aa2250dec6ee gpio: exar: add a check for the return value of ida_simple_get fails
   673bc99a6708 drm/i915/icl: Fix the TRANS_DDI_FUNC_CTL2 bitfield macro
   25c939a9a594 drm/i915/gvt: Fix MI_FLUSH_DW parsing with correct index check
   9241bd9b6401 drm/i915: Mark AML 0x87CA as ULX
   0baddc2099dd drm/vkms: fix use-after-free when drm_gem_handle_create() fails
   18e8f0f379a5 drm/vgem: fix use-after-free when drm_gem_handle_create() fails
   5f0bf5cd357d cpufreq: scpi: Fix use after free
   7466a2abe757 cpufreq: intel_pstate: Also use CPPC nominal_perf for base_frequency
   0dcb45879a5f blk-mq: fix sbitmap ws_active for shared tags
   50076360f4a0 drivers/block/zram/zram_drv.c: fix idle/writeback string compare
   79d8bdf334d6 fs/proc/proc_sysctl.c: fix NULL pointer dereference in put_links
   e44461a50380 Disable kgdboc failed by echo space to /sys/module/kgdboc/parameters/kgdboc
   c6ed8bf0ad03 ACPI / CPPC: Fix guaranteed performance handling
   72c1487ea0a4 USB: serial: option: add Olicard 600
   623533deabb1 USB: serial: option: add support for Quectel EM12
   b7a0e2163e0d USB: serial: option: set driver_info for SIM5218 and compatibles
   4503b17ed496 USB: serial: mos7720: fix mos_parport refcount imbalance on error path
   639f52d29012 USB: serial: ftdi_sio: add additional NovaTech products
   7790bb1039fb USB: serial: cp210x: add new device id
   4fc867dd92cb serial: sh-sci: Fix setting SCSCR_TIE while transferring data
   e39ecf48678e serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference
   763eafe0dbf5 serial: max310x: Fix to avoid potential NULL pointer dereference
   198b7b7fb6b6 staging: erofs: keep corrupted fs from crashing kernel in erofs_readdir()
   22a76cf6a5eb staging: erofs: fix error handling when failed to read compresssed data
   a0fdd9036176 staging: erofs: fix to handle error path of erofs_vmap()
   be3d49395af0 staging: vt6655: Fix interrupt race condition on device start up.
   37fc532d4d58 staging: vt6655: Remove vif check from vnt_interrupt
   7d9cd1961a50 staging: speakup_soft: Fix alternate speech with other synths
   de6283bc5caf staging: olpc_dcon_xo_1: add missing 'const' qualifier
   da418a0b0963 staging: comedi: ni_mio_common: Fix divide-by-zero for DIO cmdtest
   5bff7cb2bc89 tty: serial: qcom_geni_serial: Initialize baud in qcom_geni_console_setup
   36e47853d0e9 tty: atmel_serial: fix a potential NULL pointer dereference
   ade797815046 tty: mxs-auart: fix a potential NULL pointer dereference
   35070431105f tty/serial: atmel: RS485 HD w/DMA: enable RX after TX is stopped
   70691073d296 tty/serial: atmel: Add is_half_duplex helper
   d5845d77e9e1 drm/rockchip: vop: reset scale mode when win is disabled
   631d09fd0856 scsi: zfcp: fix scsi_eh host reset with port_forced ERP for non-NPIV FCP devices
   e188df764406 scsi: zfcp: fix rport unblock if deleted SCSI devices on Scsi_Host
   143982417ad3 scsi: sd: Quiesce warning if device does not report optimal I/O size
   98163d192bc5 scsi: sd: Fix a race between closing an sd device and sd I/O
   310891a84396 ocfs2: fix inode bh swapping mixup in ocfs2_reflink_inodes_lock
   f2391e6767a6 fs/open.c: allow opening only regular files during execve()
   95d78fc93943 kbuild: modversions: Fix relative CRC byte order interpretation
   a6c74dcb5909 ALSA: hda/realtek - Fix speakers on Acer Predator Helios 500 Ryzen laptops
   f2b1bfbc173a ALSA: hda/realtek: Enable headset MIC of ASUS X430UN and X512DK with ALC256
   c03c547b07d9 ALSA: hda/realtek: Enable headset mic of ASUS P5440FF with ALC256
   dd1774f3d0cd ALSA: hda/realtek: Enable ASUS X441MB and X705FD headset MIC with ALC256
   c672af11fbb0 ALSA: hda/realtek - Add support for Acer Aspire E5-523G/ES1-432 headset mic
   12af8b3d94eb ALSA: hda/realtek: Enable headset MIC of Acer Aspire Z24-890 with ALC286
   9635b3bf1a5f ALSA: hda/realtek: Enable headset MIC of Acer AIO with ALC286
   b6de98dcc02e ALSA: hda/realtek - Add support headset mode for New DELL WYSE NB
   8da540f343aa ALSA: hda/realtek - Add support headset mode for DELL WYSE AIO
   545d1fe70648 ALSA: hda/realtek: merge alc_fixup_headset_jack to alc295_fixup_chromebook
   c87a0bb99b83 ALSA: hda/realtek - Fixed Headset Mic JD not stable
   56e3785b579b ALSA: pcm: Don't suspend stream in unrecoverable PCM state
   94176d2a1d2b ALSA: pcm: Fix possible OOB access in PCM oss plugins
   a30c0ff829c6 ALSA: seq: oss: Fix Spectre v1 vulnerability
   abe5b0a76de9 ALSA: rawmidi: Fix potential Spectre v1 vulnerability
   ce1ae80cacf7 net: dsa: qca8k: remove leftover phy accessors
   0110524398bb NFSv4.1 don't free interrupted slot on open
   e37c15d77d68 NFS: fix mount/umount race in nlmclnt.
   7a4cdaf977c2 NFS: Fix nfs4_lock_state refcounting in nfs4_alloc_{lock,unlock}data()
   bd01ab90e8a5 vfio: ccw: only free cp on final interrupt
   73d6cb884532 powerpc: bpf: Fix generation of load/store DW instructions
   a2216e2d0751 ARM: imx6q: cpuidle: fix bug that CPU might not wake up at expected time
   8bf47766a9f9 tracing: initialize variable in create_dyn_event()
   7bcb002431ba locks: wake any locks blocked on request before deadlock check
   3ba84d2d7581 Btrfs: fix assertion failure on fsync with NO_HOLES enabled
   84104398e6f3 btrfs: Avoid possible qgroup_rsv_size overflow in btrfs_calculate_inode_block_rsv_size
   e3a605636a80 btrfs: Fix bound checking in qgroup_trace_new_subtree_blocks
   4a0584a21542 btrfs: raid56: properly unmap parity page in finish_parity_scrub()
   da2dea634c22 btrfs: don't report readahead errors and don't update statistics
   70c88bf99441 btrfs: remove WARN_ON in log_dir_items
   ab0600d45dd9 Btrfs: fix incorrect file size after shrinking truncate and fsync
   0253563b8be5 powerpc/fsl: Fix the flush of branch predictor.
   bb06073a9cad tun: add a missing rcu_read_unlock() in error path
   d01bf3762e29 ila: Fix rhashtable walker list corruption
   4951fc65d915 r8169: fix cable re-plugging issue
   fc8f36de7711 net: phy: don't clear BMCR in genphy_soft_reset
   aa3f1b029e4b net: mii: Fix PAUSE cap advertisement from linkmode_adv_to_lcl_adv_t() helper
   d9c13ecbf7c5 net: dsa: mv88e6xxx: fix few issues in mv88e6390x_port_set_cmode
   98bfc778c5d9 thunderx: eliminate extra calls to put_page() for pages held for recycling
   10792c33d060 thunderx: enable page recycling for non-XDP case
   0c421524c1f1 vxlan: Don't call gro_cells_destroy() before device is unregistered
   1a44391e1d03 vrf: prevent adding upper devices
   e269f5f55c06 tun: properly test for IFF_UP
   9868ffd44b25 tipc: fix cancellation of topology subscriptions
   e13fbdf6e872 tipc: change to check tipc_own_id to return in tipc_net_stop
   30e2a9a38d0c tipc: allow service ranges to be connect()'ed on RDM/DGRAM
   632f3ed848bc tcp: do not use ipv6 header for ipv4 flow
   118ad2c7de1d sctp: use memdup_user instead of vmemdup_user
   d2af0ce54b1c sctp: get sctphdr by offset in sctp_compute_cksum
   5a336f69cfa0 rhashtable: Still do rehash when we get EEXIST
   278c7d7e4ecb packets: Always register packet sk in the same order
   970d4fb2a231 net: usb: aqc111: Extend HWID table by QNAP device
   566e793d051f net-sysfs: call dev_hold if kobject_init_and_add success
   1b925f484028 net: stmmac: fix memory corruption with large MTUs
   8cf288b55da9 net: rose: fix a possible stack overflow
   baa14468e57d net: phy: meson-gxl: fix interrupt support
   3ca86ad4e57a net/packet: Set __GFP_NOWARN upon allocation in alloc_pg_vec
   475af63497f8 net: datagram: fix unbounded loop in __skb_try_recv_datagram()
   017c90da5d8f net: aquantia: fix rx checksum offload for UDP/TCP over IPv6
   3e5c1acf0637 mISDN: hfcpci: Test both vendor & device ID for Digium HFC4S
   780e62a6a021 mac8390: Fix mmio access size probe
   282c70c23454 ipv6: make ip6_create_rt_rcu return ip6_null_entry instead of NULL
   8122233e877a gtp: change NET_UDP_TUNNEL dependency to select
   bd60a788b10b genetlink: Fix a memory leak on error path
   3b58f24bdfec dccp: do not use ipv6 header for ipv4 flow
   400dded59397 netfilter: nf_tables: fix set double-free in abort path
   a556547bae00 Bluetooth: Verify that l2cap_get_conf_opt provides large enough buffer
   8dac9b8d27b5 Bluetooth: Check L2CAP option sizes returned from l2cap_get_conf_opt

(From OE-Core rev: 96019b71a8df233f9f75b042a1111b1a48f8c9f7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:38 +01:00
Bruce Ashfield
87075222ad linux-yocto-rt: update to 5.0.5-rt3
Integrating the -r3 release, which has the following rt specific
fixes:

    printk: An all-in-one commit to fix build failures
    powerpc/stackprotector: work around stack-guard init from atomic
    powerpc/pseries/iommu: Use a locallock instead local_irq_save()
    powerpc: reshuffle TIF bits
    tty/sysrq: Convert show_lock to raw_spinlock_t

(From OE-Core rev: dd2529b7874f895f671c6a016cc0819a2f9e2846)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:38 +01:00
Bruce Ashfield
89e21cd213 linux-yocto/5.0: update to v5.0.5
Integrating the latest korg -stable releases which comprise the
following commits:

   1f6f316a537d Linux 5.0.5
   a57af6d07512 ALSA: hda - Enforces runtime_resume after S3 and S4 for each codec
   6c77789fb46e ALSA: hda - Record the current power state before suspend/resume calls
   8bc3816d6566 locking/lockdep: Add debug_locks check in __lock_downgrade()
   0830cf62f529 x86/unwind: Add hardcoded ORC entry for NULL
   0312f3032e35 x86/unwind: Handle NULL pointer calls better in frame unwinder
   1e641e63fe0c loop: access lo_backing_file only when the loop device is Lo_bound
   da75d3775401 netfilter: ebtables: remove BUGPRINT messages
   a179695eddd9 aio: simplify - and fix - fget/fput for io_submit()
   1c0fc5e9cb40 f2fs: fix to avoid deadlock of atomic file operations
   648562c0a958 RDMA/cma: Rollback source IP address if failing to acquire device
   244594c5f5c8 drm/vkms: Fix flush_work() without INIT_WORK().
   35228ce61a81 Bluetooth: hci_ldisc: Postpone HCI_UART_PROTO_READY bit set in hci_uart_set_proto()
   c8d311117c3e Bluetooth: hci_ldisc: Initialize hci_dev before open()
   4d18023ade55 Bluetooth: Fix decrementing reference count twice in releasing socket
   572ae5c7646b Bluetooth: hci_uart: Check if socket buffer is ERR_PTR in h4_recv_buf()
   c35a32eb2339 media: v4l2-ctrls.c/uvc: zero v4l2_event
   c29313c07f2d ext4: brelse all indirect buffer in ext4_ind_remove_space()
   f1902fd02d56 ext4: fix data corruption caused by unaligned direct AIO
   635218fee409 ext4: fix NULL pointer dereference while journal is aborted
   5b099547f29d ALSA: ac97: Fix of-node refcount unbalance
   1fa1bfef5f4c ALSA: hda - Don't trigger jackpoll_work in azx_resume
   2b1cf1a17a41 SMB3: Fix SMB3.1.1 guest mounts to Samba
   809ecabb6d41 clocksource/drivers/riscv: Fix clocksource mask
   70c1b15faf8b irqchip/gic-v3-its: Fix comparison logic in lpi_range_cmp
   dfa011546d27 objtool: Move objtool_file struct off the stack
   198092b82db3 perf probe: Fix getting the kernel map
   3bff3aabd586 cifs: allow guest mounts to work for smb3.11
   8dfb1e702caa futex: Ensure that futex address is aligned in handle_futex_death()
   72b8c5492f48 scsi: ibmvscsi: Fix empty event pool access during host removal
   bc1bf16d7def scsi: ibmvscsi: Protect ibmvscsi_head from concurrent modificaiton
   e109bf21f4c6 scsi: qla2xxx: Fix FC-AL connection target discovery
   abe481cfe983 scsi: core: Avoid that a kernel warning appears during system resume
   e846d79bc1ba net/mlx5: Fix DCT creation bad flow
   62362ccdd45c powerpc/security: Fix spectre_v2 reporting
   7f5ffb4c7a71 powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038
   9e063d979422 MIPS: Fix kernel crash for R6 in jump label branch function
   de21552cc848 MIPS: Ensure ELF appended dtb is relocated
   63703e8fd2af mips: loongson64: lemote-2f: Add IRQF_NO_SUSPEND to "cascade" irqaction.
   e88f693e6e8d udf: Fix crash on IO error during truncate
   48cce130d485 libceph: wait for latest osdmap in ceph_monc_blacklist_add()
   027584c8ef01 iommu/iova: Fix tracking of recently failed iova address
   98e2c51c1ac3 iommu/amd: fix sg->dma_address for sg->offset bigger than PAGE_SIZE
   0c113ec08d71 drm/vmwgfx: Return 0 when gmrid::get_node runs out of ID's
   5618b16763ce drm/vmwgfx: Don't double-free the mode stored in par->set_mode
   109f5f9dff14 drm/amdgpu: fix invalid use of change_bit
   cdb57f82a4bc mmc: renesas_sdhi: limit block count to 16 bit for old revisions
   1494408bf863 mmc: mxcmmc: "Revert mmc: mxcmmc: handle highmem pages"
   7e682a01b111 mmc: alcor: fix DMA reads
   cc8cd197411b mmc: pxamci: fix enum type confusion
   ae833c3eefaf ALSA: firewire-motu: use 'version' field of unit directory to identify model
   3c09233b5dee ALSA: hda - add Lenovo IdeaCentre B550 to the power_save_blacklist
   239cc2c5a3c8 Linux 5.0.4
   87e728e85559 SUNRPC: Respect RPC call timeouts when retrying transmission
   f6716abfd12b SUNRPC: Fix up RPC back channel transmission
   aed54941cf9e SUNRPC: Prevent thundering herd when the socket is not connected
   1b2f5d715bbc s390/setup: fix boot crash for machine without EDAT-1
   09bfb45ed842 net: dsa: lantiq_gswip: fix OF child-node lookups
   8d244127d25f net: dsa: lantiq_gswip: fix use-after-free on failed probe
   4e126cbd4f06 KVM: nVMX: Check a single byte for VMCS "launched" in nested early checks
   5de7f6cd6aeb KVM: nVMX: Ignore limit checks on VMX instructions using flat segments
   f88f29f81d59 KVM: nVMX: Apply addr size mask to effective address for VMX instructions
   64d259a70642 KVM: nVMX: Sign extend displacements of VMX instr's mem operands
   1e42327adb8d KVM: x86/mmu: Do not cache MMIO accesses while memslots are in flux
   c173d5417a11 KVM: x86/mmu: Detect MMIO generation wrap in any address space
   5221117cd414 KVM: VMX: Zero out *all* general purpose registers after VM-Exit
   cf8d03a4fe59 KVM: VMX: Compare only a single byte for VMCS' "launched" in vCPU-run
   e1bdcf061b48 KVM: Call kvm_arch_memslots_updated() before updating memslots
   c61d88f39491 drm/amd/display: don't call dm_pp_ function from an fpu block
   ea7da9ef23a0 drm/amd/powerplay: correct power reading on fiji
   3bc65d729765 drm/radeon/evergreen_cs: fix missing break in switch statement
   b78ee0965f86 drm/fb-helper: generic: Fix drm_fbdev_client_restore()
   c7a35a9877b8 media: imx: csi: Stop upstream before disabling IDMA channel
   145cab144d75 media: imx: csi: Disable CSI immediately after last EOF
   e7a06193c52c media: imx-csi: Input connections to CSI should be optional
   e7ae48ae4722 media: vimc: Add vimc-streamer for stream control
   6932b9b4e677 media: uvcvideo: Avoid NULL pointer dereference at the end of streaming
   202ed62dea70 media: sun6i: Fix CSI regmap's max_register
   1d433d48516e media: lgdt330x: fix lock status reporting
   f55d0cb10f5b media: imx: prpencvf: Stop upstream before disabling IDMA channel
   9d032911a36c rcu: Do RCU GP kthread self-wakeup from softirq and interrupt
   5d6f031fa782 tpm: Unify the send callback behaviour
   65a2af7599c6 tpm/tpm_crb: Avoid unaligned reads in crb_recv()
   f484e220df15 x86/ftrace: Fix warning and considate ftrace_jmp_replace() and ftrace_call_replace()
   384dada74d37 x86/kvmclock: set offset for kvm unstable clock
   9b236e3f79d9 md: Fix failed allocation of md_register_thread
   99e5abb7b895 perf intel-pt: Fix divide by zero when TSC is not available
   85c9f1fb8a81 perf/x86/intel/uncore: Fix client IMC events return huge result
   6228a6e3516f perf intel-pt: Fix overlap calculation for padding
   2354deae355b perf auxtrace: Define auxtrace record alignment
   0f43fd4bdb74 perf tools: Fix split_kallsyms_for_kcore() for trampoline symbols
   99c7a8ec4387 perf intel-pt: Fix CYC timestamp calculation after OVF
   a0203d4e717e x86/unwind/orc: Fix ORC unwind table alignment
   194f1ecd4906 vt: perform safe console erase in the right order
   c8d3a581742f stable-kernel-rules.rst: add link to networking patch queue
   0b60b354b33a bcache: use (REQ_META|REQ_PRIO) to indicate bio for metadata
   dddd539dc325 bcache: treat stale && dirty keys as bad keys
   97cf758e172c bcache: never writeback a discard operation
   a8ce88427a9b PM / OPP: Update performance state when freq == old_freq
   c9c0e5f01245 PM / wakeup: Rework wakeup source timer cancellation
   f03f5295caf0 svcrpc: fix UDP on servers with lots of threads
   1363f37fbd24 NFSv4.1: Reinitialise sequence results before retransmitting a request
   867ae74fb190 nfsd: fix wrong check in write_v4_end_grace()
   f5bed084b482 nfsd: fix memory corruption caused by readdir
   2ececa64d67a nfsd: fix performance-limiting session calculation
   88f786a8e78a NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()
   4fe2a7fda78a NFS: Fix an I/O request leakage in nfs_do_recoalesce
   e83b6ac7deed NFS: Fix I/O request leakages
   b41991d86722 cpuidle: governor: Add new governors to cpuidle_governors again
   6eea03f8c368 cpcap-charger: generate events for userspace
   9cc42d068f57 mfd: sm501: Fix potential NULL pointer dereference
   83df21c731e6 media: cx25840: mark pad sig_types to fix cx231xx init
   b6246ffae5a0 dm integrity: limit the rate of error messages
   dca22c59e47e dm: fix to_sector() for 32bit
   a8964a63780c ipmi_si: fix use-after-free of resource->name
   d3432e5d0831 ipmi_si: Fix crash when using hard-coded device
   98ab3b877400 Revert "KVM/MMU: Flush tlb directly in the kvm_zap_gfn_range()"
   bf5615991a91 arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2
   4b6d75b38664 arm64: debug: Ensure debug handlers check triggering exception level
   4f771d8acc74 arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals
   9afab3b6b9c5 arm64: Fix HCR.TGE status for NMI contexts
   8f67dd8570ac ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify
   6a4c3ab2d53e powerpc/traps: Fix the message printed when stack overflows
   24bf608e7438 powerpc/traps: fix recoverability of machine check handling on book3s/32
   71bb4d024416 powerpc/smp: Fix NMI IPI xmon timeout
   850a95bf2a46 powerpc/smp: Fix NMI IPI timeout
   fcf1ca937f59 powerpc/hugetlb: Don't do runtime allocation of 16G pages in LPAR configuration
   4ca936a49360 powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning
   55b852a06fe1 powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guest
   651db1461793 powerpc/64s/hash: Fix assert_slb_presence() use of the slbfee. instruction
   702c1ab420ab powerpc/powernv: Don't reprogram SLW image on every KVM guest entry/exit
   f7d68a102ad4 powerpc/kvm: Save and restore host AMR/IAMR/UAMOR
   3b218d244482 powerpc/83xx: Also save/restore SPRG4-7 during suspend
   16ee62368aaa powerpc/powernv: Make opal log only readable by root
   8d2cc8c1c4fe powerpc/wii: properly disable use of BATs when requested.
   d0d33e87d143 powerpc/32: Clear on-stack exception marker upon exception return
   232aa30f16b9 security/selinux: fix SECURITY_LSM_NATIVE_LABELS on reused superblock
   7e30471146d2 selinux: add the missing walk_size + len check in selinux_sctp_bind_connect
   f9897a30deb7 jbd2: fix compile warning when using JBUFFER_TRACE
   8c343062c8fa jbd2: clear dirty flag when revoking a buffer from an older transaction
   bb47633ab15e serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup()
   7271438208b6 serial: 8250_pci: Fix number of ports for ACCES serial cards
   c7388ba10902 serial: 8250_of: assume reg-shift of 2 for mrvl,mmp-uart
   fa4d0361304f serial: uartps: Fix stuck ISR if RX disabled with non-empty FIFO
   37fe1d56aa2c dmaengine: usb-dmac: Make DMAC system sleep callbacks explicit
   39367147f046 usb: typec: tps6598x: handle block writes separately with plain-I2C adapters
   07e326fd07d7 usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
   f11fa22a7a5f clk: ingenic: Fix doc of ingenic_cgu_div_info
   7d4966247a99 clk: ingenic: Fix round_rate misbehaving with non-integer dividers
   1a29715073a1 clk: samsung: exynos5: Fix kfree() of const memory on setting driver_override
   7da58ad824b1 clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure
   d9d7760c1e45 clk: clk-twl6040: Fix imprecise external abort for pdmclk
   a712a38100b5 clk: uniphier: Fix update register for CPU-gear
   e1ac00773456 ext2: Fix underflow in ext2_max_size()
   96728f35572e cxl: Wrap iterations over afu slices inside 'afu_list_lock'
   25636de95557 IB/rdmavt: Fix concurrency panics in QP post_send and modify to error
   ada60723d7cd IB/rdmavt: Fix loopback send with invalidate ordering
   c8a23dfeb2d6 IB/hfi1: Close race condition on user context disable and close
   2b9ef0bedaac PCI: pci-bridge-emul: Extend pci_bridge_emul_init() with flags
   d011c7871d16 PCI: pci-bridge-emul: Create per-bridge copy of register behavior
   ee0bf8d6e7fc PCI: pciehp: Disable Data Link Layer State Changed event on suspend
   0d5bc50f524a PCI: dwc: skip MSI init if MSIs have been explicitly disabled
   63a9e7ce6624 PCI: qcom: Don't deassert reset GPIO during probe
   eafa704de27b PCI/DPC: Fix print AER status in DPC event handling
   bae1cf68370d PCI/ASPM: Use LTR if already enabled by platform
   4e9f8e86d6c7 swiotlb: Add is_swiotlb_active() function
   a4eeaa9cc9da swiotlb: Introduce swiotlb_max_mapping_size()
   38c3a86a8226 dma: Introduce dma_max_mapping_size()
   db8913b46d74 ext4: fix crash during online resizing
   edc0bf6532ba ext4: add mask of ext4 flags to swap
   7c2cfdf99ae9 ext4: update quota information while swapping boot loader inode
   ef2dfe6f8c82 gpio: pca953x: Fix dereference of irq data in shutdown
   13cef9edc45b media: i2c: ov5640: Fix post-reset delay
   8b82d499df87 i2c: tegra: update maximum transfer size
   986d964baaaa i2c: tegra: fix maximum transfer size
   775bd984147e parport_pc: fix find_superio io compare code, should use equal test.
   d91315e99c55 intel_th: Don't reference unassigned outputs
   1a1d6860c539 device property: Fix the length used in PROPERTY_ENTRY_STRING()
   9a638bb82ff5 nvmem: core: don't check the return value of notifier chain call
   d09e7041330b kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv
   9a842b43e4b8 mm/memory.c: do_fault: avoid usage of stale vm_area_struct
   8df6ab770e20 mm/vmalloc: fix size check for remap_vmalloc_range_partial()
   84fe80428739 mm: hwpoison: fix thp split handing in soft_offline_in_use_page()
   7a34997043f1 ext4: cleanup pagecache before swap i_data
   a0f6f657ac44 ext4: fix check of inode in swap_inode_boot_loader
   f9308e46e02b cpufreq: pxa2xx: remove incorrect __init annotation
   272b28097c30 cpufreq: tegra124: add missing of_node_put()
   144c3557b1e1 cpufreq: kryo: Release OPP tables on module removal
   737f4ead9606 x86/kprobes: Prohibit probing on optprobe template code
   dbbb26db8938 irqchip/brcmstb-l2: Use _irqsave locking variants in non-interrupt code
   830d66c95e02 irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
   bd05a30753eb libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer
   028cbca07ab5 soc: qcom: rpmh: Avoid accessing freed memory from batch API
   1098803b8cb7 Btrfs: fix deadlock between clone/dedupe and rename
   3486142a68e3 Btrfs: fix corruption reading shared and compressed extents after hole punching
   ebbb48419e8a btrfs: init csum_list before possible free
   88e610ae4c3a btrfs: ensure that a DUP or RAID1 block group has exactly two stripes
   9c58f2ada4fa btrfs: drop the lock on error in btrfs_dev_replace_cancel
   fb9c36acfab1 btrfs: scrub: fix circular locking dependency warning
   9d7b327affb8 Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl
   80dcd07c27df Btrfs: setup a nofs context for memory allocation at btrfs_create_tree()
   98bb142aaff2 m68k: Add -ffreestanding to CFLAGS
   3381b362f74c ovl: Do not lose security.capability xattr over metadata file copy-up
   0fa6688a2882 ovl: During copy up, first copy up data and then xattrs
   ef02f9fe5148 splice: don't merge into linked buffers
   61d06e123502 fs/devpts: always delete dcache dentry-s in dput()
   a15cf4d9a622 scsi: qla2xxx: Use complete switch scan for RSCN events
   f54e2394acf7 scsi: qla2xxx: Avoid PCI IRQ affinity mapping when multiqueue is not supported
   54e834ee7a6e scsi: qla2xxx: Fix LUN discovery if loop id is not assigned yet by firmware
   7d6d14a119c8 scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock
   6c922faf889a scsi: sd: Optimal I/O size should be a multiple of physical block size
   1ba35e5a3c5c scsi: aacraid: Fix performance issue on logical drives
   bd1558978695 scsi: virtio_scsi: don't send sc payload with tmfs
   ffd4a428a54e s390/virtio: handle find on invalid queue gracefully
   39fdc16138b7 s390/setup: fix early warning messages
   2aa8ab08c82c s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem
   4b280a0bfc6d clocksource/drivers/arch_timer: Workaround for Allwinner A64 timer instability
   773b445425d6 clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown
   de90b88a20de clocksource/drivers/exynos_mct: Move one-shot check from tick clear to ISR
   9d67c5e995da mt76: fix corrupted software generated tx CCMP PN
   6b65a01d2dcc regulator: s2mpa01: Fix step values for some LDOs
   60cb8b444fbf regulator: max77620: Initialize values for DT properties
   4527a24a8f51 regulator: s2mps11: Fix steps for buck7, buck8 and LDO35
   a34758ac6ad4 spi: spi-gpio: fix SPI_CS_HIGH capability
   618491014846 spi: omap2-mcspi: Fix DMA and FIFO event trigger size mismatch
   7406a055c507 spi: pxa2xx: Setup maximum supported DMA transfer length
   5d919139baf9 spi: ti-qspi: Fix mmap read when more than one CS in use
   4a9932c94626 mmc:fix a bug when max_discard is 0
   aaf1e755f8f9 mmc: renesas_sdhi: Fix card initialization failure in high speed mode
   351062f08fc1 mmc: sdhci-esdhc-imx: fix HS400 timing issue
   cb1c7a9d2897 ACPI / device_sysfs: Avoid OF modalias creation for removed device
   050b87cb66c6 xen: fix dom0 boot on huge systems
   c0b8e1d95cbf vmw_balloon: release lock on error in vmballoon_reset()
   020c90c694dc tracing/perf: Use strndup_user() instead of buggy open-coded version
   aca126f4a451 tracing: Do not free iter->trace in fail path of tracing_open_pipe()
   e5cde571ee5f tracing: Use strncpy instead of memcpy for string keys in hist triggers
   c892f4ee3db2 smb3: make default i/o size for smb3 mounts larger
   3eb2412dd9da CIFS: Fix read after write for files with read caching
   c73a769b63fb CIFS: Do not skip SMB2 message IDs on send failures
   a992916a9c89 CIFS: Do not reset lease state to NONE on lease break
   75bbb83e80c7 CIFS: Fix leaking locked VFS cache pages in writeback retry
   afaf9d664b0f crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine
   741ae3caa62f crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling
   d78c34dfc288 crypto: x86/morus - fix handling chunked inputs and MAY_SLEEP
   814ec1461901 crypto: x86/aesni-gcm - fix crash on empty plaintext
   2e0e52c3d618 crypto: x86/aegis - fix handling chunked inputs and MAY_SLEEP
   c9e34c3c34b9 crypto: testmgr - skip crc32c context test for ahash algorithms
   c58580801420 crypto: skcipher - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   0173f7ca0e22 crypto: pcbc - remove bogus memcpy()s with src == dest
   9cbfb0a8d1af crypto: morus - fix handling chunked inputs
   c850ff289c4e crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   7007b2645f6e crypto: arm64/crct10dif - revert to C code for short inputs
   d78abd635e6c crypto: arm64/aes-neonbs - fix returning final keystream block
   844351fc03b0 crypto: arm/crct10dif - revert to C code for short inputs
   e414d9bc86a7 crypto: aegis - fix handling chunked inputs
   650b7246d460 crypto: aead - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   781bcac5b199 fix cgroup_do_mount() handling of failure exits
   2ac714d69197 libnvdimm: Fix altmap reservation size calculation
   fefd9f16efc3 libnvdimm/pmem: Honor force_raw for legacy pmem regions
   4b9d1f8b61e8 libnvdimm, pfn: Fix over-trim in trim_pfn_device()
   dd40489f6751 libnvdimm/label: Clear 'updating' flag after label-set update
   5fa9cb709adc nfit/ars: Attempt short-ARS even in the no_init_ars case
   b3971c932d0d nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot
   0c7979447489 acpi/nfit: Fix bus command validation
   a2690301c976 nfit: acpi_nfit_ctl(): Check out_obj->type in the right place
   59a0e57f0cd3 nfit: Fix nfit_intel_shutdown_status() command submission
   9cd805133b84 dax: Flush partial PMDs correctly
   c2ca8161971a crypto: rockchip - update new iv to device in multiple operations
   e400988e1dae crypto: rockchip - fix scatterlist nents error
   20af3634022b crypto: ahash - fix another early termination in hash walk
   b03aa2833d56 crypto: ofb - fix handling partial blocks and make thread-safe
   5d894501d423 crypto: cfb - remove bogus memcpy() with src == dest
   64ae3c3d0c16 crypto: cfb - add missing 'chunksize' property
   ded8d6308ffd crypto: ccree - don't copy zero size ciphertext
   4fc9f0e1c9ff crypto: ccree - unmap buffer before copying IV
   37ff06fd9cb5 crypto: ccree - fix free of unallocated mlli buffer
   6e905e258c50 crypto: caam - fix DMA mapping of stack memory
   e86dc780320e crypto: caam - fixed handling of sg list
   4a18213573b8 crypto: ccree - fix missing break in switch statement
   fce3d391401a crypto: caam - fix hash context DMA unmap size
   9b2fdbdce1fb stm class: Fix an endless loop in channel allocation
   2adb36ff325d stm class: Prevent division by zero
   1cfec5613090 mei: bus: move hw module get/put to probe/release
   55ced4559dbf mei: hbm: clean the feature flags on link reset
   f644d56fe1d7 iio: adc: exynos-adc: Use proper number of channels for Exynos4x12
   a52251155bab iio: adc: exynos-adc: Fix NULL pointer exception on unbind
   61328520e0b6 ASoC: codecs: pcm186x: Fix energysense SLEEP bit
   5bd4f972e594 ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE()
   a7abca8506b5 ASoC: fsl_esai: fix register setting issue in RIGHT_J mode
   5ababa4e34db 9p/net: fix memory leak in p9_client_create
   3cccba9a38d5 9p: use inode->i_lock to protect i_size_write() under 32-bit

(From OE-Core rev: 2bebb5ca0e52944560c6d4b89ce06fc0512f97b5)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:38 +01:00
Mariano Lopez
92480676ae ptest.bbclass: Use d.getVar instead of os.environ
[YOCTO #12597]
[YOCTO #13238]

(From OE-Core rev: 4e6d7e73e19e66b1a853225101857d2f8e26cac8)

Signed-off-by: Mariano Lopez <just.another.mariano@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>
2019-05-12 09:13:38 +01:00
Adrian Bunk
02f8ed1a1a dhcp: Replace OE specific patch for compatibility with latest bind with upstream patch
This also fixes a dhcp breakage noticed by Enrico Scholz.

(From OE-Core rev: 4189304701c7d3859582991c724a75e372f09395)

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>
2019-05-12 09:13:38 +01:00
Adrian Bunk
d00d95924b gnutls: upgrade 3.6.5 -> 3.6.7
This is a new upstream release from the same stable branch
bringing new features and bugfixes (including CVE fixes).

COPYING changed http -> https.

configure no longer has a --without-libunistring-prefix option.

(From OE-Core rev: 93993fe8ffd31e3e94946023b2cd8927ae595fc3)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[includes: CVE-2019-3836 CVE-2019-3829]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:38 +01:00
Oleksandr Kravchuk
bb65c8094c curl: update to 7.64.1
(From OE-Core rev: 61433a177c5ce19a0c560a6e1062bad8194cecc8)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Bug fix only update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-12 09:13:38 +01:00
Scott Rifenbark
1b425a8450 bitbake: bitbake-user-manual: Added section on modifying variables
Fixes [YOCTO #12548]

I created a new section titled "Modifying Variable Values" that
provides instruction on how to use the "bitbake -e" command to
be sure your configuration and variable values are as expected.

(Bitbake rev: cd8d4ec8ec6650b756dafe750436528f736b3938)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-23 16:33:57 +01:00
Richard Purdie
0e392026ff build-appliance-image: Update to warrior head revision
(From OE-Core rev: f571b188177788d8ed0a7f3efe3569f153b1b0d3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-14 21:29:15 +01:00
Richard Purdie
41136dd0cf Revert "nettle: fix ptest failure"
This reverts commit 83faaf7b2a5f4fc4ae504b300134409e90389770.

This should never have merged as the change was rejected upstream and adding a library
to the ptest package resulted in it providing that SONAME which led to being
included in images like core-image-sato.

This in turn led to a ton of ptest failures in the 2.7 r1 QA report.

(From OE-Core rev: 039e7b25f0018e6923d14b40c35252f99e1d3ea3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-12 23:01:22 +01:00
Scott Rifenbark
80baa2d1fb bitbake: poky.ent: Removed "ECLIPSE" entity variables.
These have never been used in the BB manual and were an
artifact from copy-and-pasting the poky.ent file from
the main yocto-docs repo to this bb repo when the BB
manual was origially created.  They are useless.  I have
removed them.

(Bitbake rev: cb185efe9e88cfb12b7a3fd08f3086ca0b69c8e2)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-12 22:44:16 +01:00
4833 changed files with 268926 additions and 458183 deletions

1
.gitignore vendored
View File

@@ -8,7 +8,6 @@ pstage/
scripts/oe-git-proxy-socks
sources/
meta-*/
buildtools/
!meta-skeleton
!meta-selftest
hob-image-*.bb

View File

@@ -1,5 +0,0 @@
Some project contributors who are sadly no longer with us:
Greg Gilbert (treke) - Ahead of his time with licensing
Thomas Wood (thos) - Creator of the original sato
Scott Rifenbark (scottrif) - Our long standing techwriter whose words live on

26
README.LSB Normal file
View File

@@ -0,0 +1,26 @@
OE-Core aims to be able to provide basic LSB compatible images. There
are some challenges for OE as LSB isn't always 100% relevant to its
target embedded and IoT audiences.
One challenge is that the LSB spec is no longer being actively
developed [https://github.com/LinuxStandardBase/lsb] and has
components which are end of life or significantly dated. OE
therefore provides compatibility with the following caveats:
* Qt4 is provided by the separate meta-qt4 layer. Its noted that Qt4
is end of life and this isn't something the core project regularly
tests any longer. Users are recommended to group together to support
maintenance of that layer. [http://git.yoctoproject.org/cgit/cgit.cgi/meta-qt4/]
* mailx has been dropped since its no longer being developed upstream
and there are better, more modern replacements such as s-nail
(http://sdaoden.eu/code.html) or mailutils (http://mailutils.org/).
* A few perl modules that were required by LSB 4.x aren't provided:
libclass-isa, libenv, libdumpvalue, libfile-checktree,
libi18n-collate, libpod-plainer.
* libpng 1.2 isn't provided; oe-core includes the latest release of libpng
instead.
* pax (POSIX standard archive) tool is not provided.

View File

@@ -6,24 +6,24 @@ of OpenEmbedded. It is distro-less (can build a functional image with
DISTRO = "nodistro") and contains only emulated machine support.
For information about OpenEmbedded, see the OpenEmbedded website:
https://www.openembedded.org/
http://www.openembedded.org/
The Yocto Project has extensive documentation about OE including a reference manual
which can be found at:
https://docs.yoctoproject.org/
http://yoctoproject.org/documentation
Contributing
------------
Please refer to
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
http://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
for guidelines on how to submit patches.
Mailing list:
https://lists.openembedded.org/g/openembedded-core
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Source code:
https://git.openembedded.org/openembedded-core/
http://git.openembedded.org/openembedded-core/

View File

@@ -1,24 +0,0 @@
How to Report a Potential Vulnerability?
========================================
If you would like to report a public issue (for example, one with a released
CVE number), please report it using the
[https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Security Security Bugzilla].
If you have a patch ready, submit it following the same procedure as any other
patch as described in README.md.
If you are dealing with a not-yet released or urgent issue, please send a
message to security AT yoctoproject DOT org, including as many details as
possible: the layer or software module affected, the recipe and its version,
and any example code, if available.
Branches maintained with security fixes
---------------------------------------
See [https://wiki.yoctoproject.org/wiki/Stable_Release_and_LTS Stable release and LTS]
for detailed info regarding the policies and maintenance of Stable branches.
The [https://wiki.yoctoproject.org/wiki/Releases Release page] contains a list of all
releases of the Yocto Project. Versions in grey are no longer actively maintained with
security patches, but well-tested patches may still be accepted for them for
significant issues.

8
bitbake/HEADER Normal file
View File

@@ -0,0 +1,8 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# <one line to give the program's name and a brief idea of what it does.>
# Copyright (C) <year> <name of author>
#
# SPDX-License-Identifier: GPL-2.0-only
#

View File

@@ -1,24 +0,0 @@
How to Report a Potential Vulnerability?
========================================
If you would like to report a public issue (for example, one with a released
CVE number), please report it using the
[https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Security Security Bugzilla].
If you have a patch ready, submit it following the same procedure as any other
patch as described in README.md.
If you are dealing with a not-yet released or urgent issue, please send a
message to security AT yoctoproject DOT org, including as many details as
possible: the layer or software module affected, the recipe and its version,
and any example code, if available.
Branches maintained with security fixes
---------------------------------------
See [https://wiki.yoctoproject.org/wiki/Stable_Release_and_LTS Stable release and LTS]
for detailed info regarding the policies and maintenance of Stable branches.
The [https://wiki.yoctoproject.org/wiki/Releases Release page] contains a list of all
releases of the Yocto Project. Versions in grey are no longer actively maintained with
security patches, but well-tested patches may still be accepted for them for
significant issues.

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2003, 2004 Chris Larson
# Copyright (C) 2003, 2004 Phil Blundell
@@ -26,7 +28,7 @@ from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException
if sys.getfilesystemencoding() != "utf-8":
sys.exit("Please use a locale setting which supports UTF-8 (such as LANG=en_US.UTF-8).\nPython can't change the filesystem locale after loading so we need a UTF-8 when Python starts or things won't work.")
__version__ = "1.46.0"
__version__ = "1.42.0"
if __name__ == "__main__":
if __version__ != bb.__version__:

View File

@@ -95,7 +95,7 @@ def recursecb(key, hash1, hash2):
out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb, color=color)
for change in out2:
for line in change.splitlines():
recout.append(' ' + line)
recout.append(' ' + line)
return recout

View File

@@ -1,48 +0,0 @@
#! /usr/bin/env python3
#
# Copyright (C) 2021 Richard Purdie
#
# SPDX-License-Identifier: GPL-2.0-only
#
import argparse
import io
import os
import sys
bindir = os.path.dirname(__file__)
topdir = os.path.dirname(bindir)
sys.path[0:0] = [os.path.join(topdir, 'lib')]
import bb.tinfoil
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Bitbake Query Variable")
parser.add_argument("variable", help="variable name to query")
parser.add_argument("-r", "--recipe", help="Recipe name to query", default=None, required=False)
parser.add_argument('-u', '--unexpand', help='Do not expand the value (with --value)', action="store_true")
parser.add_argument('-f', '--flag', help='Specify a variable flag to query (with --value)', default=None)
parser.add_argument('--value', help='Only report the value, no history and no variable name', action="store_true")
args = parser.parse_args()
if args.unexpand and not args.value:
print("--unexpand only makes sense with --value")
sys.exit(1)
if args.flag and not args.value:
print("--flag only makes sense with --value")
sys.exit(1)
with bb.tinfoil.Tinfoil(tracking=True) as tinfoil:
if args.recipe:
tinfoil.prepare(quiet=2)
d = tinfoil.parse_recipe(args.recipe)
else:
tinfoil.prepare(quiet=2, config_only=True)
d = tinfoil.config_data
if args.flag:
print(str(d.getVarFlag(args.variable, args.flag, expand=(not args.unexpand))))
elif args.value:
print(str(d.getVar(args.variable, expand=(not args.unexpand))))
else:
bb.data.emit_var(args.variable, d=d, all=True)

View File

@@ -1,170 +0,0 @@
#! /usr/bin/env python3
#
# Copyright (C) 2019 Garmin Ltd.
#
# SPDX-License-Identifier: GPL-2.0-only
#
import argparse
import hashlib
import logging
import os
import pprint
import sys
import threading
import time
try:
import tqdm
ProgressBar = tqdm.tqdm
except ImportError:
class ProgressBar(object):
def __init__(self, *args, **kwargs):
pass
def __enter__(self):
return self
def __exit__(self, *args, **kwargs):
pass
def update(self):
pass
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib'))
import hashserv
DEFAULT_ADDRESS = 'unix://./hashserve.sock'
METHOD = 'stress.test.method'
def main():
def handle_stats(args, client):
if args.reset:
s = client.reset_stats()
else:
s = client.get_stats()
pprint.pprint(s)
return 0
def handle_stress(args, client):
def thread_main(pbar, lock):
nonlocal found_hashes
nonlocal missed_hashes
nonlocal max_time
client = hashserv.create_client(args.address)
for i in range(args.requests):
taskhash = hashlib.sha256()
taskhash.update(args.taskhash_seed.encode('utf-8'))
taskhash.update(str(i).encode('utf-8'))
start_time = time.perf_counter()
l = client.get_unihash(METHOD, taskhash.hexdigest())
elapsed = time.perf_counter() - start_time
with lock:
if l:
found_hashes += 1
else:
missed_hashes += 1
max_time = max(elapsed, max_time)
pbar.update()
max_time = 0
found_hashes = 0
missed_hashes = 0
lock = threading.Lock()
total_requests = args.clients * args.requests
start_time = time.perf_counter()
with ProgressBar(total=total_requests) as pbar:
threads = [threading.Thread(target=thread_main, args=(pbar, lock), daemon=False) for _ in range(args.clients)]
for t in threads:
t.start()
for t in threads:
t.join()
elapsed = time.perf_counter() - start_time
with lock:
print("%d requests in %.1fs. %.1f requests per second" % (total_requests, elapsed, total_requests / elapsed))
print("Average request time %.8fs" % (elapsed / total_requests))
print("Max request time was %.8fs" % max_time)
print("Found %d hashes, missed %d" % (found_hashes, missed_hashes))
if args.report:
with ProgressBar(total=args.requests) as pbar:
for i in range(args.requests):
taskhash = hashlib.sha256()
taskhash.update(args.taskhash_seed.encode('utf-8'))
taskhash.update(str(i).encode('utf-8'))
outhash = hashlib.sha256()
outhash.update(args.outhash_seed.encode('utf-8'))
outhash.update(str(i).encode('utf-8'))
client.report_unihash(taskhash.hexdigest(), METHOD, outhash.hexdigest(), taskhash.hexdigest())
with lock:
pbar.update()
parser = argparse.ArgumentParser(description='Hash Equivalence Client')
parser.add_argument('--address', default=DEFAULT_ADDRESS, help='Server address (default "%(default)s")')
parser.add_argument('--log', default='WARNING', help='Set logging level')
subparsers = parser.add_subparsers()
stats_parser = subparsers.add_parser('stats', help='Show server stats')
stats_parser.add_argument('--reset', action='store_true',
help='Reset server stats')
stats_parser.set_defaults(func=handle_stats)
stress_parser = subparsers.add_parser('stress', help='Run stress test')
stress_parser.add_argument('--clients', type=int, default=10,
help='Number of simultaneous clients')
stress_parser.add_argument('--requests', type=int, default=1000,
help='Number of requests each client will perform')
stress_parser.add_argument('--report', action='store_true',
help='Report new hashes')
stress_parser.add_argument('--taskhash-seed', default='',
help='Include string in taskhash')
stress_parser.add_argument('--outhash-seed', default='',
help='Include string in outhash')
stress_parser.set_defaults(func=handle_stress)
args = parser.parse_args()
logger = logging.getLogger('hashserv')
level = getattr(logging, args.log.upper(), None)
if not isinstance(level, int):
raise ValueError('Invalid log level: %s' % args.log)
logger.setLevel(level)
console = logging.StreamHandler()
console.setLevel(level)
logger.addHandler(console)
func = getattr(args, 'func', None)
if func:
client = hashserv.create_client(args.address)
# Try to establish a connection to the server now to detect failures
# early
client.connect()
return func(args, client)
return 0
if __name__ == '__main__':
try:
ret = main()
except Exception:
ret = 1
import traceback
traceback.print_exc()
sys.exit(ret)

View File

@@ -11,26 +11,20 @@ import logging
import argparse
import sqlite3
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib'))
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),'lib'))
import hashserv
VERSION = "1.0.0"
DEFAULT_BIND = 'unix://./hashserve.sock'
DEFAULT_HOST = ''
DEFAULT_PORT = 8686
def main():
parser = argparse.ArgumentParser(description='Hash Equivalence Reference Server. Version=%s' % VERSION,
epilog='''The bind address is the path to a unix domain socket if it is
prefixed with "unix://". Otherwise, it is an IP address
and port in form ADDRESS:PORT. To bind to all addresses, leave
the ADDRESS empty, e.g. "--bind :8686". To bind to a specific
IPv6 address, enclose the address in "[]", e.g.
"--bind [::1]:8686"'''
)
parser.add_argument('--bind', default=DEFAULT_BIND, help='Bind address (default "%(default)s")')
parser = argparse.ArgumentParser(description='HTTP Equivalence Reference Server. Version=%s' % VERSION)
parser.add_argument('--address', default=DEFAULT_HOST, help='Bind address (default "%(default)s")')
parser.add_argument('--port', type=int, default=DEFAULT_PORT, help='Bind port (default %(default)d)')
parser.add_argument('--prefix', default='', help='HTTP path prefix (default "%(default)s")')
parser.add_argument('--database', default='./hashserv.db', help='Database file (default "%(default)s")')
parser.add_argument('--log', default='WARNING', help='Set logging level')
@@ -47,11 +41,12 @@ def main():
console.setLevel(level)
logger.addHandler(console)
server = hashserv.create_server(args.bind, args.database)
db = sqlite3.connect(args.database)
server = hashserv.create_server((args.address, args.port), db, args.prefix)
server.serve_forever()
return 0
if __name__ == '__main__':
try:
ret = main()
@@ -60,3 +55,4 @@ if __name__ == '__main__':
import traceback
traceback.print_exc()
sys.exit(ret)

View File

@@ -52,9 +52,7 @@ def main():
# Need to re-run logger_create with color argument
# (will be the same logger since it has the same name)
bb.msg.logger_create('bitbake-layers', output=sys.stdout,
color=global_args.color,
level=logger.getEffectiveLevel())
bb.msg.logger_create('bitbake-layers', output=sys.stdout, color=global_args.color)
plugins = []
tinfoil = bb.tinfoil.Tinfoil(tracking=True)

View File

@@ -25,7 +25,6 @@ tests = ["bb.tests.codeparser",
"bb.tests.fetch",
"bb.tests.parse",
"bb.tests.persist_data",
"bb.tests.runqueue",
"bb.tests.utils",
"hashserv.tests",
"layerindexlib.tests.layerindexobj",

View File

@@ -65,6 +65,7 @@ if 0:
format_str = "%(levelname)s: %(message)s"
conlogformat = bb.msg.BBLogFormatter(format_str)
consolelog = logging.FileHandler(logfilename)
bb.msg.addDefaultlogFilter(consolelog)
consolelog.setFormatter(conlogformat)
logger.addHandler(consolelog)
@@ -235,8 +236,6 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, taskha
the_data.setVar(varname, value)
bb.parse.siggen.set_taskdata(workerdata["sigdata"])
if "newhashes" in workerdata:
bb.parse.siggen.set_taskhashes(workerdata["newhashes"])
ret = 0
the_data = bb_cache.loadDataFull(fn, appends)
@@ -380,7 +379,6 @@ class BitbakeWorker(object):
self.handle_item(b"cookerconfig", self.handle_cookercfg)
self.handle_item(b"extraconfigdata", self.handle_extraconfigdata)
self.handle_item(b"workerdata", self.handle_workerdata)
self.handle_item(b"newtaskhashes", self.handle_newtaskhashes)
self.handle_item(b"runtask", self.handle_runtask)
self.handle_item(b"finishnow", self.handle_finishnow)
self.handle_item(b"ping", self.handle_ping)
@@ -413,16 +411,12 @@ class BitbakeWorker(object):
def handle_workerdata(self, data):
self.workerdata = pickle.loads(data)
bb.build.verboseShellLogging = self.workerdata["build_verbose_shell"]
bb.build.verboseStdoutLogging = self.workerdata["build_verbose_stdout"]
bb.msg.loggerDefaultLogLevel = self.workerdata["logdefaultlevel"]
bb.msg.loggerDefaultDebugLevel = self.workerdata["logdefaultdebug"]
bb.msg.loggerDefaultVerbose = self.workerdata["logdefaultverbose"]
bb.msg.loggerVerboseLogs = self.workerdata["logdefaultverboselogs"]
bb.msg.loggerDefaultDomains = self.workerdata["logdefaultdomain"]
for mc in self.databuilder.mcdata:
self.databuilder.mcdata[mc].setVar("PRSERV_HOST", self.workerdata["prhost"])
self.databuilder.mcdata[mc].setVar("BB_HASHSERVE", self.workerdata["hashservaddr"])
def handle_newtaskhashes(self, data):
self.workerdata["newhashes"] = pickle.loads(data)
def handle_ping(self, _):
workerlog_write("Handling ping\n")
@@ -505,11 +499,9 @@ except BaseException as e:
import traceback
sys.stderr.write(traceback.format_exc())
sys.stderr.write(str(e))
finally:
worker_thread_exit = True
worker_thread.join()
workerlog_write("exiting")
if not normalexit:
sys.exit(1)
worker_thread_exit = True
worker_thread.join()
workerlog_write("exitting")
sys.exit(0)

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2005 Holger Hans Peter Freyther
#

View File

@@ -8,13 +8,12 @@
#
HELP="
Usage 1: source toaster start|stop [webport=<address:port>] [noweb] [nobuild] [toasterdir]
Usage: source toaster start|stop [webport=<address:port>] [noweb] [nobuild] [toasterdir]
Optional arguments:
[nobuild] Setup the environment for capturing builds with toaster but disable managed builds
[noweb] Setup the environment for capturing builds with toaster but don't start the web server
[webport] Set the development server (default: localhost:8000)
[toasterdir] Set absolute path to be used as TOASTER_DIR (default: BUILDDIR/../)
Usage 2: source toaster manage [createsuperuser|lsupdates|migrate|makemigrations|checksettings|collectstatic|...]
"
custom_extention()
@@ -209,21 +208,13 @@ for param in $*; do
toasterdir=*)
TOASTERDIR="${param#*=}"
;;
manage )
CMD=$param
manage_cmd=""
;;
--help)
echo "$HELP"
return 0
;;
*)
if [ "manage" == "$CMD" ] ; then
manage_cmd="$manage_cmd $param"
else
echo "$HELP"
exit 1
fi
echo "$HELP"
return 1
;;
esac
@@ -315,10 +306,6 @@ case $CMD in
stop_system
echo "Successful ${CMD}."
;;
manage )
cd $BBBASEDIR/lib/toaster
$MANAGE $manage_cmd
;;
esac
custom_extention toaster_postpend $CMD $ADDR_PORT

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2014 Alex Damian
#

View File

@@ -1,13 +0,0 @@
{
"version": 1,
"loggers": {
"BitBake.SigGen.HashEquiv": {
"level": "VERBOSE",
"handlers": ["BitBake.verbconsole"]
},
"BitBake.RunQueue.HashEquiv": {
"level": "VERBOSE",
"handlers": ["BitBake.verbconsole"]
}
}
}

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2012, 2018 Wind River Systems, Inc.
#

View File

@@ -1,343 +0,0 @@
" Vim indent file
" Language: BitBake
" Copyright: Copyright (C) 2019 Agilent Technologies, Inc.
" Maintainer: Chris Laplante <chris.laplante@agilent.com>
" License: You may redistribute this under the same terms as Vim itself
if exists("b:did_indent")
finish
endif
if exists("*BitbakeIndent")
finish
endif
runtime! indent/sh.vim
unlet b:did_indent
setlocal indentexpr=BitbakeIndent(v:lnum)
setlocal autoindent nolisp
function s:is_bb_python_func_def(lnum)
let stack = synstack(a:lnum, 1)
if len(stack) == 0
return 0
endif
let top = synIDattr(stack[0], "name")
echo top
return synIDattr(stack[0], "name") == "bbPyFuncDef"
endfunction
"""" begin modified from indent/python.vim, upstream commit 7a9bd7c1e0ce1baf5a02daf36eeae3638aa315c7
"""" This copied code is licensed the same as Vim itself.
setlocal indentkeys+=<:>,=elif,=except
let s:keepcpo= &cpo
set cpo&vim
let s:maxoff = 50 " maximum number of lines to look backwards for ()
function GetPythonIndent(lnum)
" If this line is explicitly joined: If the previous line was also joined,
" line it up with that one, otherwise add two 'shiftwidth'
if getline(a:lnum - 1) =~ '\\$'
if a:lnum > 1 && getline(a:lnum - 2) =~ '\\$'
return indent(a:lnum - 1)
endif
return indent(a:lnum - 1) + (exists("g:pyindent_continue") ? eval(g:pyindent_continue) : (shiftwidth() * 2))
endif
" If the start of the line is in a string don't change the indent.
if has('syntax_items')
\ && synIDattr(synID(a:lnum, 1, 1), "name") =~ "String$"
return -1
endif
" Search backwards for the previous non-empty line.
let plnum = prevnonblank(v:lnum - 1)
if plnum == 0
" This is the first non-empty line, use zero indent.
return 0
endif
call cursor(plnum, 1)
" Identing inside parentheses can be very slow, regardless of the searchpair()
" timeout, so let the user disable this feature if he doesn't need it
let disable_parentheses_indenting = get(g:, "pyindent_disable_parentheses_indenting", 0)
if disable_parentheses_indenting == 1
let plindent = indent(plnum)
let plnumstart = plnum
else
" searchpair() can be slow sometimes, limit the time to 150 msec or what is
" put in g:pyindent_searchpair_timeout
let searchpair_stopline = 0
let searchpair_timeout = get(g:, 'pyindent_searchpair_timeout', 150)
" If the previous line is inside parenthesis, use the indent of the starting
" line.
" Trick: use the non-existing "dummy" variable to break out of the loop when
" going too far back.
let parlnum = searchpair('(\|{\|\[', '', ')\|}\|\]', 'nbW',
\ "line('.') < " . (plnum - s:maxoff) . " ? dummy :"
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'",
\ searchpair_stopline, searchpair_timeout)
if parlnum > 0
" We may have found the opening brace of a BitBake Python task, e.g. 'python do_task {'
" If so, ignore it here - it will be handled later.
if s:is_bb_python_func_def(parlnum)
let parlnum = 0
let plindent = indent(plnum)
let plnumstart = plnum
else
let plindent = indent(parlnum)
let plnumstart = parlnum
endif
else
let plindent = indent(plnum)
let plnumstart = plnum
endif
" When inside parenthesis: If at the first line below the parenthesis add
" two 'shiftwidth', otherwise same as previous line.
" i = (a
" + b
" + c)
call cursor(a:lnum, 1)
let p = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'",
\ searchpair_stopline, searchpair_timeout)
if p > 0
if s:is_bb_python_func_def(p)
" Handle first non-empty line inside a BB Python task
if p == plnum
return shiftwidth()
endif
" Handle the user actually trying to close a BitBake Python task
let line = getline(a:lnum)
if line =~ '^\s*}'
return -2
endif
" Otherwise ignore the brace
let p = 0
else
if p == plnum
" When the start is inside parenthesis, only indent one 'shiftwidth'.
let pp = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'",
\ searchpair_stopline, searchpair_timeout)
if pp > 0
return indent(plnum) + (exists("g:pyindent_nested_paren") ? eval(g:pyindent_nested_paren) : shiftwidth())
endif
return indent(plnum) + (exists("g:pyindent_open_paren") ? eval(g:pyindent_open_paren) : (shiftwidth() * 2))
endif
if plnumstart == p
return indent(plnum)
endif
return plindent
endif
endif
endif
" Get the line and remove a trailing comment.
" Use syntax highlighting attributes when possible.
let pline = getline(plnum)
let pline_len = strlen(pline)
if has('syntax_items')
" If the last character in the line is a comment, do a binary search for
" the start of the comment. synID() is slow, a linear search would take
" too long on a long line.
if synIDattr(synID(plnum, pline_len, 1), "name") =~ "\\(Comment\\|Todo\\)$"
let min = 1
let max = pline_len
while min < max
let col = (min + max) / 2
if synIDattr(synID(plnum, col, 1), "name") =~ "\\(Comment\\|Todo\\)$"
let max = col
else
let min = col + 1
endif
endwhile
let pline = strpart(pline, 0, min - 1)
endif
else
let col = 0
while col < pline_len
if pline[col] == '#'
let pline = strpart(pline, 0, col)
break
endif
let col = col + 1
endwhile
endif
" If the previous line ended with a colon, indent this line
if pline =~ ':\s*$'
return plindent + shiftwidth()
endif
" If the previous line was a stop-execution statement...
" TODO: utilize this logic to deindent when ending a bbPyDefRegion
if getline(plnum) =~ '^\s*\(break\|continue\|raise\|return\|pass\|bb\.fatal\)\>'
" See if the user has already dedented
if indent(a:lnum) > indent(plnum) - shiftwidth()
" If not, recommend one dedent
return indent(plnum) - shiftwidth()
endif
" Otherwise, trust the user
return -1
endif
" If the current line begins with a keyword that lines up with "try"
if getline(a:lnum) =~ '^\s*\(except\|finally\)\>'
let lnum = a:lnum - 1
while lnum >= 1
if getline(lnum) =~ '^\s*\(try\|except\)\>'
let ind = indent(lnum)
if ind >= indent(a:lnum)
return -1 " indent is already less than this
endif
return ind " line up with previous try or except
endif
let lnum = lnum - 1
endwhile
return -1 " no matching "try"!
endif
" If the current line begins with a header keyword, dedent
if getline(a:lnum) =~ '^\s*\(elif\|else\)\>'
" Unless the previous line was a one-liner
if getline(plnumstart) =~ '^\s*\(for\|if\|try\)\>'
return plindent
endif
" Or the user has already dedented
if indent(a:lnum) <= plindent - shiftwidth()
return -1
endif
return plindent - shiftwidth()
endif
" When after a () construct we probably want to go back to the start line.
" a = (b
" + c)
" here
if parlnum > 0
return plindent
endif
return -1
endfunction
let &cpo = s:keepcpo
unlet s:keepcpo
""" end of stuff from indent/python.vim
let b:did_indent = 1
setlocal indentkeys+=0\"
function BitbakeIndent(lnum)
if !has('syntax_items')
return -1
endif
let stack = synstack(a:lnum, 1)
if len(stack) == 0
return -1
endif
let name = synIDattr(stack[0], "name")
" TODO: support different styles of indentation for assignments. For now,
" we only support like this:
" VAR = " \
" value1 \
" value2 \
" "
"
" i.e. each value indented by shiftwidth(), with the final quote " completely unindented.
if name == "bbVarValue"
" Quote handling is tricky. kernel.bbclass has this line for instance:
" EXTRA_OEMAKE = " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" " HOSTCPP="${BUILD_CPP}""
" Instead of trying to handle crazy cases like that, just assume that a
" double-quote on a line by itself (following an assignment) means the
" user is closing the assignment, and de-dent.
if getline(a:lnum) =~ '^\s*"$'
return 0
endif
let prevstack = synstack(a:lnum - 1, 1)
if len(prevstack) == 0
return -1
endif
let prevname = synIDattr(prevstack[0], "name")
" Only indent if there was actually a continuation character on
" the previous line, to avoid misleading indentation.
let prevlinelastchar = synIDattr(synID(a:lnum - 1, col([a:lnum - 1, "$"]) - 1, 1), "name")
let prev_continued = prevlinelastchar == "bbContinue"
" Did the previous line introduce an assignment?
if index(["bbVarDef", "bbVarFlagDef"], prevname) != -1
if prev_continued
return shiftwidth()
endif
endif
if !prev_continued
return 0
endif
" Autoindent can take it from here
return -1
endif
if index(["bbPyDefRegion", "bbPyFuncRegion"], name) != -1
let ret = GetPythonIndent(a:lnum)
" Should normally always be indented by at least one shiftwidth; but allow
" return of -1 (defer to autoindent) or -2 (force indent to 0)
if ret == 0
return shiftwidth()
elseif ret == -2
return 0
endif
return ret
endif
" TODO: GetShIndent doesn't detect tasks prepended with 'fakeroot'
" Need to submit a patch upstream to Vim to provide an extension point.
" Unlike the Python indenter, the Sh indenter is way too large to copy and
" modify here.
if name == "bbShFuncRegion"
return GetShIndent()
endif
" TODO:
" + heuristics for de-denting out of a bbPyDefRegion? e.g. when the user
" types an obvious BB keyword like addhandler or addtask, or starts
" writing a shell task. Maybe too hard to implement...
return -1
endfunction

View File

@@ -1 +0,0 @@
_build/

View File

@@ -1,35 +1,91 @@
# Minimal makefile for Sphinx documentation
# This is a single Makefile to handle all generated BitBake documents.
# The Makefile needs to live in the documentation directory and all figures used
# in any manuals must be .PNG files and live in the individual book's figures
# directory.
#
# The Makefile has these targets:
#
# pdf: generates a PDF version of a manual.
# html: generates an HTML version of a manual.
# tarball: creates a tarball for the doc files.
# validate: validates
# clean: removes files
#
# The Makefile generates an HTML version of every document. The
# variable DOC indicates the folder name for a given manual.
#
# To build a manual, you must invoke 'make' with the DOC argument.
#
# Examples:
#
# make DOC=bitbake-user-manual
# make pdf DOC=bitbake-user-manual
#
# The first example generates the HTML version of the User Manual.
# The second example generates the PDF version of the User Manual.
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
DESTDIR = final
ifeq ($(DOC),bitbake-user-manual)
XSLTOPTS = --stringparam html.stylesheet bitbake-user-manual-style.css \
--stringparam chapter.autolabel 1 \
--stringparam section.autolabel 1 \
--stringparam section.label.includes.component.label 1 \
--xinclude
ALLPREQ = html tarball
TARFILES = bitbake-user-manual-style.css bitbake-user-manual.html figures/bitbake-title.png
MANUALS = $(DOC)/$(DOC).html
FIGURES = figures
STYLESHEET = $(DOC)/*.css
ifeq ($(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi),0)
$(error "The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed")
endif
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
##
# These URI should be rewritten by your distribution's xml catalog to
# match your localy installed XSL stylesheets.
XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current
XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
.PHONY: help Makefile clean publish
all: $(ALLPREQ)
publish: Makefile html singlehtml
rm -rf $(BUILDDIR)/$(DESTDIR)/
mkdir -p $(BUILDDIR)/$(DESTDIR)/
cp -r $(BUILDDIR)/html/* $(BUILDDIR)/$(DESTDIR)/
cp $(BUILDDIR)/singlehtml/index.html $(BUILDDIR)/$(DESTDIR)/singleindex.html
sed -i -e 's@index.html#@singleindex.html#@g' $(BUILDDIR)/$(DESTDIR)/singleindex.html
pdf:
ifeq ($(DOC),bitbake-user-manual)
@echo " "
@echo "********** Building."$(DOC)
@echo " "
cd $(DOC); ../tools/docbook-to-pdf $(DOC).xml ../template; cd ..
endif
html:
ifeq ($(DOC),bitbake-user-manual)
# See http://www.sagehill.net/docbookxsl/HtmlOutput.html
@echo " "
@echo "******** Building "$(DOC)
@echo " "
cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd ..
endif
tarball: html
@echo " "
@echo "******** Creating Tarball of document files"
@echo " "
cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd ..
validate:
cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd ..
publish:
@if test -f $(DOC)/$(DOC).html; \
then \
echo " "; \
echo "******** Publishing "$(DOC)".html"; \
echo " "; \
scp -r $(MANUALS) $(STYLESHEET) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \
cd $(DOC); scp -r $(FIGURES) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \
else \
echo " "; \
echo $(DOC)".html missing. Generate the file first then try again."; \
echo " "; \
fi
clean:
@rm -rf $(BUILDDIR)
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz;

View File

@@ -15,41 +15,25 @@ Each folder is self-contained regarding content and figures.
If you want to find HTML versions of the BitBake manuals on the web,
go to http://www.openembedded.org/wiki/Documentation.
Sphinx
======
Makefile
========
The BitBake documentation was migrated from the original DocBook
format to Sphinx based documentation for the Yocto Project 3.2
release.
The Makefile processes manual directories to create HTML, PDF,
tarballs, etc. Details on how the Makefile work are documented
inside the Makefile. See that file for more information.
Additional information related to the Sphinx migration, and guidelines
for developers willing to contribute to the BitBake documentation can
be found in the Yocto Project Documentation README file:
To build a manual, you run the make command and pass it the name
of the folder containing the manual's contents.
For example, the following command run from the documentation directory
creates an HTML and a PDF version of the BitBake User Manual.
The DOC variable specifies the manual you are making:
https://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/README
$ make DOC=bitbake-user-manual
How to build the Yocto Project documentation
============================================
template
========
Contains various templates, fonts, and some old PNG files.
Sphinx is written in Python. While it might work with Python2, for
obvious reasons, we will only support building the BitBake
documentation with Python3.
Sphinx might be available in your Linux distro packages repositories,
however it is not recommend using distro packages, as they might be
old versions, especially if you are using an LTS version of your
distro. The recommended method to install Sphinx and all required
dependencies is to use the Python Package Index (pip).
To install all required packages run:
$ pip3 install sphinx sphinx_rtd_theme pyyaml
To build the documentation locally, run:
$ cd documentation
$ make html
The resulting HTML index page will be _build/html/index.html, and you
can browse your own copy of the locally generated documentation with
your browser.
tools
=====
Contains a tool to convert the DocBook files to PDF format.

View File

@@ -1,14 +0,0 @@
{% extends "!breadcrumbs.html" %}
{% block breadcrumbs %}
<li>
<span class="doctype_switcher_placeholder">{{ doctype or 'single' }}</span>
<span class="version_switcher_placeholder">{{ release }}</span>
</li>
<li> &raquo;</li>
{% for doc in parents %}
<li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &raquo;</li>
{% endfor %}
<li>{{ title }}</li>
{% endblock %}

View File

@@ -1,7 +0,0 @@
{% extends "!layout.html" %}
{% block extrabody %}
<div id="outdated-warning" style="text-align: center; background-color: #FFBABA; color: #6A0E0E;">
</div>
{% endblock %}

View File

@@ -0,0 +1,29 @@
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
<xsl:import href="http://downloads.yoctoproject.org/mirror/docbook-mirror/docbook-xsl-1.76.1/xhtml/docbook.xsl" />
<!--
<xsl:import href="../template/1.76.1/docbook-xsl-1.76.1/xhtml/docbook.xsl" />
<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.76.1/xhtml/docbook.xsl" />
-->
<xsl:include href="../template/permalinks.xsl"/>
<xsl:include href="../template/section.title.xsl"/>
<xsl:include href="../template/component.title.xsl"/>
<xsl:include href="../template/division.title.xsl"/>
<xsl:include href="../template/formal.object.heading.xsl"/>
<xsl:include href="../template/gloss-permalinks.xsl"/>
<xsl:param name="html.stylesheet" select="'user-manual-style.css'" />
<xsl:param name="chapter.autolabel" select="1" />
<xsl:param name="section.autolabel" select="1" />
<xsl:param name="section.label.includes.component.label" select="1" />
<xsl:param name="appendix.autolabel">A</xsl:param>
<!-- <xsl:param name="generate.toc" select="'article nop'"></xsl:param> -->
</xsl:stylesheet>

View File

@@ -1,733 +0,0 @@
.. SPDX-License-Identifier: CC-BY-2.5
=========
Execution
=========
|
The primary purpose for running BitBake is to produce some kind of
output such as a single installable package, a kernel, a software
development kit, or even a full, board-specific bootable Linux image,
complete with bootloader, kernel, and root filesystem. Of course, you
can execute the ``bitbake`` command with options that cause it to
execute single tasks, compile single recipe files, capture or clear
data, or simply return information about the execution environment.
This chapter describes BitBake's execution process from start to finish
when you use it to create an image. The execution process is launched
using the following command form: ::
$ bitbake target
For information on
the BitBake command and its options, see ":ref:`The BitBake Command
<bitbake-user-manual-command>`" section.
.. note::
Prior to executing BitBake, you should take advantage of available
parallel thread execution on your build host by setting the
:term:`BB_NUMBER_THREADS` variable in
your project's ``local.conf`` configuration file.
A common method to determine this value for your build host is to run
the following: ::
$ grep processor /proc/cpuinfo
This command returns
the number of processors, which takes into account hyper-threading.
Thus, a quad-core build host with hyper-threading most likely shows
eight processors, which is the value you would then assign to
``BB_NUMBER_THREADS``.
A possibly simpler solution is that some Linux distributions (e.g.
Debian and Ubuntu) provide the ``ncpus`` command.
Parsing the Base Configuration Metadata
=======================================
The first thing BitBake does is parse base configuration metadata. Base
configuration metadata consists of your project's ``bblayers.conf`` file
to determine what layers BitBake needs to recognize, all necessary
``layer.conf`` files (one from each layer), and ``bitbake.conf``. The
data itself is of various types:
- **Recipes:** Details about particular pieces of software.
- **Class Data:** An abstraction of common build information (e.g. how to
build a Linux kernel).
- **Configuration Data:** Machine-specific settings, policy decisions,
and so forth. Configuration data acts as the glue to bind everything
together.
The ``layer.conf`` files are used to construct key variables such as
:term:`BBPATH` and :term:`BBFILES`.
``BBPATH`` is used to search for configuration and class files under the
``conf`` and ``classes`` directories, respectively. ``BBFILES`` is used
to locate both recipe and recipe append files (``.bb`` and
``.bbappend``). If there is no ``bblayers.conf`` file, it is assumed the
user has set the ``BBPATH`` and ``BBFILES`` directly in the environment.
Next, the ``bitbake.conf`` file is located using the ``BBPATH`` variable
that was just constructed. The ``bitbake.conf`` file may also include
other configuration files using the ``include`` or ``require``
directives.
Prior to parsing configuration files, BitBake looks at certain
variables, including:
- :term:`BB_ENV_WHITELIST`
- :term:`BB_ENV_EXTRAWHITE`
- :term:`BB_PRESERVE_ENV`
- :term:`BB_ORIGENV`
- :term:`BITBAKE_UI`
The first four variables in this list relate to how BitBake treats shell
environment variables during task execution. By default, BitBake cleans
the environment variables and provides tight control over the shell
execution environment. However, through the use of these first four
variables, you can apply your control regarding the environment
variables allowed to be used by BitBake in the shell during execution of
tasks. See the
":ref:`bitbake-user-manual/bitbake-user-manual-metadata:Passing Information Into the Build Task Environment`"
section and the information about these variables in the variable
glossary for more information on how they work and on how to use them.
The base configuration metadata is global and therefore affects all
recipes and tasks that are executed.
BitBake first searches the current working directory for an optional
``conf/bblayers.conf`` configuration file. This file is expected to
contain a :term:`BBLAYERS` variable that is a
space-delimited list of 'layer' directories. Recall that if BitBake
cannot find a ``bblayers.conf`` file, then it is assumed the user has
set the ``BBPATH`` and ``BBFILES`` variables directly in the
environment.
For each directory (layer) in this list, a ``conf/layer.conf`` file is
located and parsed with the :term:`LAYERDIR` variable
being set to the directory where the layer was found. The idea is these
files automatically set up :term:`BBPATH` and other
variables correctly for a given build directory.
BitBake then expects to find the ``conf/bitbake.conf`` file somewhere in
the user-specified ``BBPATH``. That configuration file generally has
include directives to pull in any other metadata such as files specific
to the architecture, the machine, the local environment, and so forth.
Only variable definitions and include directives are allowed in BitBake
``.conf`` files. Some variables directly influence BitBake's behavior.
These variables might have been set from the environment depending on
the environment variables previously mentioned or set in the
configuration files. The ":ref:`bitbake-user-manual/bitbake-user-manual-ref-variables:Variables Glossary`"
chapter presents a full list of
variables.
After parsing configuration files, BitBake uses its rudimentary
inheritance mechanism, which is through class files, to inherit some
standard classes. BitBake parses a class when the inherit directive
responsible for getting that class is encountered.
The ``base.bbclass`` file is always included. Other classes that are
specified in the configuration using the
:term:`INHERIT` variable are also included. BitBake
searches for class files in a ``classes`` subdirectory under the paths
in ``BBPATH`` in the same way as configuration files.
A good way to get an idea of the configuration files and the class files
used in your execution environment is to run the following BitBake
command: ::
$ bitbake -e > mybb.log
Examining the top of the ``mybb.log``
shows you the many configuration files and class files used in your
execution environment.
.. note::
You need to be aware of how BitBake parses curly braces. If a recipe
uses a closing curly brace within the function and the character has
no leading spaces, BitBake produces a parsing error. If you use a
pair of curly braces in a shell function, the closing curly brace
must not be located at the start of the line without leading spaces.
Here is an example that causes BitBake to produce a parsing error: ::
fakeroot create_shar() {
cat << "EOF" > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
usage()
{
echo "test"
###### The following "}" at the start of the line causes a parsing error ######
}
EOF
}
Writing the recipe this way avoids the error:
fakeroot create_shar() {
cat << "EOF" > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
usage()
{
echo "test"
###### The following "}" with a leading space at the start of the line avoids the error ######
}
EOF
}
Locating and Parsing Recipes
============================
During the configuration phase, BitBake will have set
:term:`BBFILES`. BitBake now uses it to construct a
list of recipes to parse, along with any append files (``.bbappend``) to
apply. ``BBFILES`` is a space-separated list of available files and
supports wildcards. An example would be: ::
BBFILES = "/path/to/bbfiles/*.bb /path/to/appends/*.bbappend"
BitBake parses each
recipe and append file located with ``BBFILES`` and stores the values of
various variables into the datastore.
.. note::
Append files are applied in the order they are encountered in BBFILES.
For each file, a fresh copy of the base configuration is made, then the
recipe is parsed line by line. Any inherit statements cause BitBake to
find and then parse class files (``.bbclass``) using
:term:`BBPATH` as the search path. Finally, BitBake
parses in order any append files found in ``BBFILES``.
One common convention is to use the recipe filename to define pieces of
metadata. For example, in ``bitbake.conf`` the recipe name and version
are used to set the variables :term:`PN` and
:term:`PV`: ::
PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}"
In this example, a recipe called "something_1.2.3.bb" would set
``PN`` to "something" and ``PV`` to "1.2.3".
By the time parsing is complete for a recipe, BitBake has a list of
tasks that the recipe defines and a set of data consisting of keys and
values as well as dependency information about the tasks.
BitBake does not need all of this information. It only needs a small
subset of the information to make decisions about the recipe.
Consequently, BitBake caches the values in which it is interested and
does not store the rest of the information. Experience has shown it is
faster to re-parse the metadata than to try and write it out to the disk
and then reload it.
Where possible, subsequent BitBake commands reuse this cache of recipe
information. The validity of this cache is determined by first computing
a checksum of the base configuration data (see
:term:`BB_HASHCONFIG_WHITELIST`) and
then checking if the checksum matches. If that checksum matches what is
in the cache and the recipe and class files have not changed, BitBake is
able to use the cache. BitBake then reloads the cached information about
the recipe instead of reparsing it from scratch.
Recipe file collections exist to allow the user to have multiple
repositories of ``.bb`` files that contain the same exact package. For
example, one could easily use them to make one's own local copy of an
upstream repository, but with custom modifications that one does not
want upstream. Here is an example: ::
BBFILES = "/stuff/openembedded/*/*.bb /stuff/openembedded.modified/*/*.bb"
BBFILE_COLLECTIONS = "upstream local"
BBFILE_PATTERN_upstream = "^/stuff/openembedded/"
BBFILE_PATTERN_local = "^/stuff/openembedded.modified/"
BBFILE_PRIORITY_upstream = "5" BBFILE_PRIORITY_local = "10"
.. note::
The layers mechanism is now the preferred method of collecting code.
While the collections code remains, its main use is to set layer
priorities and to deal with overlap (conflicts) between layers.
.. _bb-bitbake-providers:
Providers
=========
Assuming BitBake has been instructed to execute a target and that all
the recipe files have been parsed, BitBake starts to figure out how to
build the target. BitBake looks through the ``PROVIDES`` list for each
of the recipes. A ``PROVIDES`` list is the list of names by which the
recipe can be known. Each recipe's ``PROVIDES`` list is created
implicitly through the recipe's :term:`PN` variable and
explicitly through the recipe's :term:`PROVIDES`
variable, which is optional.
When a recipe uses ``PROVIDES``, that recipe's functionality can be
found under an alternative name or names other than the implicit ``PN``
name. As an example, suppose a recipe named ``keyboard_1.0.bb``
contained the following: ::
PROVIDES += "fullkeyboard"
The ``PROVIDES``
list for this recipe becomes "keyboard", which is implicit, and
"fullkeyboard", which is explicit. Consequently, the functionality found
in ``keyboard_1.0.bb`` can be found under two different names.
.. _bb-bitbake-preferences:
Preferences
===========
The ``PROVIDES`` list is only part of the solution for figuring out a
target's recipes. Because targets might have multiple providers, BitBake
needs to prioritize providers by determining provider preferences.
A common example in which a target has multiple providers is
"virtual/kernel", which is on the ``PROVIDES`` list for each kernel
recipe. Each machine often selects the best kernel provider by using a
line similar to the following in the machine configuration file: ::
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
The default :term:`PREFERRED_PROVIDER` is the provider
with the same name as the target. BitBake iterates through each target
it needs to build and resolves them and their dependencies using this
process.
Understanding how providers are chosen is made complicated by the fact
that multiple versions might exist for a given provider. BitBake
defaults to the highest version of a provider. Version comparisons are
made using the same method as Debian. You can use the
:term:`PREFERRED_VERSION` variable to
specify a particular version. You can influence the order by using the
:term:`DEFAULT_PREFERENCE` variable.
By default, files have a preference of "0". Setting
``DEFAULT_PREFERENCE`` to "-1" makes the recipe unlikely to be used
unless it is explicitly referenced. Setting ``DEFAULT_PREFERENCE`` to
"1" makes it likely the recipe is used. ``PREFERRED_VERSION`` overrides
any ``DEFAULT_PREFERENCE`` setting. ``DEFAULT_PREFERENCE`` is often used
to mark newer and more experimental recipe versions until they have
undergone sufficient testing to be considered stable.
When there are multiple "versions" of a given recipe, BitBake defaults
to selecting the most recent version, unless otherwise specified. If the
recipe in question has a
:term:`DEFAULT_PREFERENCE` set lower than
the other recipes (default is 0), then it will not be selected. This
allows the person or persons maintaining the repository of recipe files
to specify their preference for the default selected version.
Additionally, the user can specify their preferred version.
If the first recipe is named ``a_1.1.bb``, then the
:term:`PN` variable will be set to "a", and the
:term:`PV` variable will be set to 1.1.
Thus, if a recipe named ``a_1.2.bb`` exists, BitBake will choose 1.2 by
default. However, if you define the following variable in a ``.conf``
file that BitBake parses, you can change that preference: ::
PREFERRED_VERSION_a = "1.1"
.. note::
It is common for a recipe to provide two versions -- a stable,
numbered (and preferred) version, and a version that is automatically
checked out from a source code repository that is considered more
"bleeding edge" but can be selected only explicitly.
For example, in the OpenEmbedded codebase, there is a standard,
versioned recipe file for BusyBox, ``busybox_1.22.1.bb``, but there
is also a Git-based version, ``busybox_git.bb``, which explicitly
contains the line ::
DEFAULT_PREFERENCE = "-1"
to ensure that the
numbered, stable version is always preferred unless the developer
selects otherwise.
.. _bb-bitbake-dependencies:
Dependencies
============
Each target BitBake builds consists of multiple tasks such as ``fetch``,
``unpack``, ``patch``, ``configure``, and ``compile``. For best
performance on multi-core systems, BitBake considers each task as an
independent entity with its own set of dependencies.
Dependencies are defined through several variables. You can find
information about variables BitBake uses in the
:doc:`bitbake-user-manual-ref-variables` near the end of this manual. At a
basic level, it is sufficient to know that BitBake uses the
:term:`DEPENDS` and
:term:`RDEPENDS` variables when calculating
dependencies.
For more information on how BitBake handles dependencies, see the
:ref:`bitbake-user-manual/bitbake-user-manual-metadata:Dependencies`
section.
.. _ref-bitbake-tasklist:
The Task List
=============
Based on the generated list of providers and the dependency information,
BitBake can now calculate exactly what tasks it needs to run and in what
order it needs to run them. The
:ref:`bitbake-user-manual/bitbake-user-manual-execution:executing tasks`
section has more information on how BitBake chooses which task to
execute next.
The build now starts with BitBake forking off threads up to the limit
set in the :term:`BB_NUMBER_THREADS`
variable. BitBake continues to fork threads as long as there are tasks
ready to run, those tasks have all their dependencies met, and the
thread threshold has not been exceeded.
It is worth noting that you can greatly speed up the build time by
properly setting the ``BB_NUMBER_THREADS`` variable.
As each task completes, a timestamp is written to the directory
specified by the :term:`STAMP` variable. On subsequent
runs, BitBake looks in the build directory within ``tmp/stamps`` and
does not rerun tasks that are already completed unless a timestamp is
found to be invalid. Currently, invalid timestamps are only considered
on a per recipe file basis. So, for example, if the configure stamp has
a timestamp greater than the compile timestamp for a given target, then
the compile task would rerun. Running the compile task again, however,
has no effect on other providers that depend on that target.
The exact format of the stamps is partly configurable. In modern
versions of BitBake, a hash is appended to the stamp so that if the
configuration changes, the stamp becomes invalid and the task is
automatically rerun. This hash, or signature used, is governed by the
signature policy that is configured (see the
:ref:`bitbake-user-manual/bitbake-user-manual-execution:checksums (signatures)`
section for information). It is also
possible to append extra metadata to the stamp using the
``[stamp-extra-info]`` task flag. For example, OpenEmbedded uses this
flag to make some tasks machine-specific.
.. note::
Some tasks are marked as "nostamp" tasks. No timestamp file is
created when these tasks are run. Consequently, "nostamp" tasks are
always rerun.
For more information on tasks, see the
:ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks` section.
Executing Tasks
===============
Tasks can be either a shell task or a Python task. For shell tasks,
BitBake writes a shell script to
``${``\ :term:`T`\ ``}/run.do_taskname.pid`` and then
executes the script. The generated shell script contains all the
exported variables, and the shell functions with all variables expanded.
Output from the shell script goes to the file
``${T}/log.do_taskname.pid``. Looking at the expanded shell functions in
the run file and the output in the log files is a useful debugging
technique.
For Python tasks, BitBake executes the task internally and logs
information to the controlling terminal. Future versions of BitBake will
write the functions to files similar to the way shell tasks are handled.
Logging will be handled in a way similar to shell tasks as well.
The order in which BitBake runs the tasks is controlled by its task
scheduler. It is possible to configure the scheduler and define custom
implementations for specific use cases. For more information, see these
variables that control the behavior:
- :term:`BB_SCHEDULER`
- :term:`BB_SCHEDULERS`
It is possible to have functions run before and after a task's main
function. This is done using the ``[prefuncs]`` and ``[postfuncs]``
flags of the task that lists the functions to run.
.. _checksums:
Checksums (Signatures)
======================
A checksum is a unique signature of a task's inputs. The signature of a
task can be used to determine if a task needs to be run. Because it is a
change in a task's inputs that triggers running the task, BitBake needs
to detect all the inputs to a given task. For shell tasks, this turns
out to be fairly easy because BitBake generates a "run" shell script for
each task and it is possible to create a checksum that gives you a good
idea of when the task's data changes.
To complicate the problem, some things should not be included in the
checksum. First, there is the actual specific build path of a given task
- the working directory. It does not matter if the working directory
changes because it should not affect the output for target packages. The
simplistic approach for excluding the working directory is to set it to
some fixed value and create the checksum for the "run" script. BitBake
goes one step better and uses the
:term:`BB_HASHBASE_WHITELIST` variable
to define a list of variables that should never be included when
generating the signatures.
Another problem results from the "run" scripts containing functions that
might or might not get called. The incremental build solution contains
code that figures out dependencies between shell functions. This code is
used to prune the "run" scripts down to the minimum set, thereby
alleviating this problem and making the "run" scripts much more readable
as a bonus.
So far we have solutions for shell scripts. What about Python tasks? The
same approach applies even though these tasks are more difficult. The
process needs to figure out what variables a Python function accesses
and what functions it calls. Again, the incremental build solution
contains code that first figures out the variable and function
dependencies, and then creates a checksum for the data used as the input
to the task.
Like the working directory case, situations exist where dependencies
should be ignored. For these cases, you can instruct the build process
to ignore a dependency by using a line like the following: ::
PACKAGE_ARCHS[vardepsexclude] = "MACHINE"
This example ensures that the
``PACKAGE_ARCHS`` variable does not depend on the value of ``MACHINE``,
even if it does reference it.
Equally, there are cases where we need to add dependencies BitBake is
not able to find. You can accomplish this by using a line like the
following: ::
PACKAGE_ARCHS[vardeps] = "MACHINE"
This example explicitly
adds the ``MACHINE`` variable as a dependency for ``PACKAGE_ARCHS``.
Consider a case with in-line Python, for example, where BitBake is not
able to figure out dependencies. When running in debug mode (i.e. using
``-DDD``), BitBake produces output when it discovers something for which
it cannot figure out dependencies.
Thus far, this section has limited discussion to the direct inputs into
a task. Information based on direct inputs is referred to as the
"basehash" in the code. However, there is still the question of a task's
indirect inputs - the things that were already built and present in the
build directory. The checksum (or signature) for a particular task needs
to add the hashes of all the tasks on which the particular task depends.
Choosing which dependencies to add is a policy decision. However, the
effect is to generate a master checksum that combines the basehash and
the hashes of the task's dependencies.
At the code level, there are a variety of ways both the basehash and the
dependent task hashes can be influenced. Within the BitBake
configuration file, we can give BitBake some extra information to help
it construct the basehash. The following statement effectively results
in a list of global variable dependency excludes - variables never
included in any checksum. This example uses variables from OpenEmbedded
to help illustrate the concept: ::
BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR \
SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM \
USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST \
PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE \
CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE CCACHE_DISABLE LICENSE_PATH SDKPKGSUFFIX"
The previous example excludes the work directory, which is part of
``TMPDIR``.
The rules for deciding which hashes of dependent tasks to include
through dependency chains are more complex and are generally
accomplished with a Python function. The code in
``meta/lib/oe/sstatesig.py`` shows two examples of this and also
illustrates how you can insert your own policy into the system if so
desired. This file defines the two basic signature generators
OpenEmbedded-Core uses: "OEBasic" and "OEBasicHash". By default, there
is a dummy "noop" signature handler enabled in BitBake. This means that
behavior is unchanged from previous versions. ``OE-Core`` uses the
"OEBasicHash" signature handler by default through this setting in the
``bitbake.conf`` file: ::
BB_SIGNATURE_HANDLER ?= "OEBasicHash"
The "OEBasicHash" ``BB_SIGNATURE_HANDLER`` is the same as the "OEBasic"
version but adds the task hash to the stamp files. This results in any
metadata change that changes the task hash, automatically causing the
task to be run again. This removes the need to bump
:term:`PR` values, and changes to metadata automatically
ripple across the build.
It is also worth noting that the end result of these signature
generators is to make some dependency and hash information available to
the build. This information includes:
- ``BB_BASEHASH_task-``\ *taskname*: The base hashes for each task in the
recipe.
- ``BB_BASEHASH_``\ *filename:taskname*: The base hashes for each
dependent task.
- ``BBHASHDEPS_``\ *filename:taskname*: The task dependencies for
each task.
- ``BB_TASKHASH``: The hash of the currently running task.
It is worth noting that BitBake's "-S" option lets you debug BitBake's
processing of signatures. The options passed to -S allow different
debugging modes to be used, either using BitBake's own debug functions
or possibly those defined in the metadata/signature handler itself. The
simplest parameter to pass is "none", which causes a set of signature
information to be written out into ``STAMPS_DIR`` corresponding to the
targets specified. The other currently available parameter is
"printdiff", which causes BitBake to try to establish the closest
signature match it can (e.g. in the sstate cache) and then run
``bitbake-diffsigs`` over the matches to determine the stamps and delta
where these two stamp trees diverge.
.. note::
It is likely that future versions of BitBake will provide other
signature handlers triggered through additional "-S" parameters.
You can find more information on checksum metadata in the
:ref:`bitbake-user-manual/bitbake-user-manual-metadata:task checksums and setscene`
section.
Setscene
========
The setscene process enables BitBake to handle "pre-built" artifacts.
The ability to handle and reuse these artifacts allows BitBake the
luxury of not having to build something from scratch every time.
Instead, BitBake can use, when possible, existing build artifacts.
BitBake needs to have reliable data indicating whether or not an
artifact is compatible. Signatures, described in the previous section,
provide an ideal way of representing whether an artifact is compatible.
If a signature is the same, an object can be reused.
If an object can be reused, the problem then becomes how to replace a
given task or set of tasks with the pre-built artifact. BitBake solves
the problem with the "setscene" process.
When BitBake is asked to build a given target, before building anything,
it first asks whether cached information is available for any of the
targets it's building, or any of the intermediate targets. If cached
information is available, BitBake uses this information instead of
running the main tasks.
BitBake first calls the function defined by the
:term:`BB_HASHCHECK_FUNCTION` variable
with a list of tasks and corresponding hashes it wants to build. This
function is designed to be fast and returns a list of the tasks for
which it believes in can obtain artifacts.
Next, for each of the tasks that were returned as possibilities, BitBake
executes a setscene version of the task that the possible artifact
covers. Setscene versions of a task have the string "_setscene" appended
to the task name. So, for example, the task with the name ``xxx`` has a
setscene task named ``xxx_setscene``. The setscene version of the task
executes and provides the necessary artifacts returning either success
or failure.
As previously mentioned, an artifact can cover more than one task. For
example, it is pointless to obtain a compiler if you already have the
compiled binary. To handle this, BitBake calls the
:term:`BB_SETSCENE_DEPVALID` function for
each successful setscene task to know whether or not it needs to obtain
the dependencies of that task.
Finally, after all the setscene tasks have executed, BitBake calls the
function listed in
:term:`BB_SETSCENE_VERIFY_FUNCTION2`
with the list of tasks BitBake thinks has been "covered". The metadata
can then ensure that this list is correct and can inform BitBake that it
wants specific tasks to be run regardless of the setscene result.
You can find more information on setscene metadata in the
:ref:`bitbake-user-manual/bitbake-user-manual-metadata:task checksums and setscene`
section.
Logging
=======
In addition to the standard command line option to control how verbose
builds are when execute, bitbake also supports user defined
configuration of the `Python
logging <https://docs.python.org/3/library/logging.html>`__ facilities
through the :term:`BB_LOGCONFIG` variable. This
variable defines a json or yaml `logging
configuration <https://docs.python.org/3/library/logging.config.html>`__
that will be intelligently merged into the default configuration. The
logging configuration is merged using the following rules:
- The user defined configuration will completely replace the default
configuration if top level key ``bitbake_merge`` is set to the value
``False``. In this case, all other rules are ignored.
- The user configuration must have a top level ``version`` which must
match the value of the default configuration.
- Any keys defined in the ``handlers``, ``formatters``, or ``filters``,
will be merged into the same section in the default configuration,
with the user specified keys taking replacing a default one if there
is a conflict. In practice, this means that if both the default
configuration and user configuration specify a handler named
``myhandler``, the user defined one will replace the default. To
prevent the user from inadvertently replacing a default handler,
formatter, or filter, all of the default ones are named with a prefix
of "``BitBake.``"
- If a logger is defined by the user with the key ``bitbake_merge`` set
to ``False``, that logger will be completely replaced by user
configuration. In this case, no other rules will apply to that
logger.
- All user defined ``filter`` and ``handlers`` properties for a given
logger will be merged with corresponding properties from the default
logger. For example, if the user configuration adds a filter called
``myFilter`` to the ``BitBake.SigGen``, and the default configuration
adds a filter called ``BitBake.defaultFilter``, both filters will be
applied to the logger
As an example, consider the following user logging configuration file
which logs all Hash Equivalence related messages of VERBOSE or higher to
a file called ``hashequiv.log`` ::
{
"version": 1,
"handlers": {
"autobuilderlog": {
"class": "logging.FileHandler",
"formatter": "logfileFormatter",
"level": "DEBUG",
"filename": "hashequiv.log",
"mode": "w"
}
},
"formatters": {
"logfileFormatter": {
"format": "%(name)s: %(levelname)s: %(message)s"
}
},
"loggers": {
"BitBake.SigGen.HashEquiv": {
"level": "VERBOSE",
"handlers": ["autobuilderlog"]
},
"BitBake.RunQueue.HashEquiv": {
"level": "VERBOSE",
"handlers": ["autobuilderlog"]
}
}
}

View File

@@ -0,0 +1,932 @@
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<chapter id="bitbake-user-manual-execution">
<title>Execution</title>
<para>
The primary purpose for running BitBake is to produce some kind
of output such as a single installable package, a kernel, a software
development kit, or even a full, board-specific bootable Linux image,
complete with bootloader, kernel, and root filesystem.
Of course, you can execute the <filename>bitbake</filename>
command with options that cause it to execute single tasks,
compile single recipe files, capture or clear data, or simply
return information about the execution environment.
</para>
<para>
This chapter describes BitBake's execution process from start
to finish when you use it to create an image.
The execution process is launched using the following command
form:
<literallayout class='monospaced'>
$ bitbake <replaceable>target</replaceable>
</literallayout>
For information on the BitBake command and its options,
see
"<link linkend='bitbake-user-manual-command'>The BitBake Command</link>"
section.
<note>
<para>
Prior to executing BitBake, you should take advantage of available
parallel thread execution on your build host by setting the
<link linkend='var-bb-BB_NUMBER_THREADS'><filename>BB_NUMBER_THREADS</filename></link>
variable in your project's <filename>local.conf</filename>
configuration file.
</para>
<para>
A common method to determine this value for your build host is to run
the following:
<literallayout class='monospaced'>
$ grep processor /proc/cpuinfo
</literallayout>
This command returns the number of processors, which takes into
account hyper-threading.
Thus, a quad-core build host with hyper-threading most likely
shows eight processors, which is the value you would then assign to
<filename>BB_NUMBER_THREADS</filename>.
</para>
<para>
A possibly simpler solution is that some Linux distributions
(e.g. Debian and Ubuntu) provide the <filename>ncpus</filename> command.
</para>
</note>
</para>
<section id='parsing-the-base-configuration-metadata'>
<title>Parsing the Base Configuration Metadata</title>
<para>
The first thing BitBake does is parse base configuration
metadata.
Base configuration metadata consists of your project's
<filename>bblayers.conf</filename> file to determine what
layers BitBake needs to recognize, all necessary
<filename>layer.conf</filename> files (one from each layer),
and <filename>bitbake.conf</filename>.
The data itself is of various types:
<itemizedlist>
<listitem><para><emphasis>Recipes:</emphasis>
Details about particular pieces of software.
</para></listitem>
<listitem><para><emphasis>Class Data:</emphasis>
An abstraction of common build information
(e.g. how to build a Linux kernel).
</para></listitem>
<listitem><para><emphasis>Configuration Data:</emphasis>
Machine-specific settings, policy decisions,
and so forth.
Configuration data acts as the glue to bind everything
together.</para></listitem>
</itemizedlist>
</para>
<para>
The <filename>layer.conf</filename> files are used to
construct key variables such as
<link linkend='var-bb-BBPATH'><filename>BBPATH</filename></link>
and
<link linkend='var-bb-BBFILES'><filename>BBFILES</filename></link>.
<filename>BBPATH</filename> is used to search for
configuration and class files under the
<filename>conf</filename> and <filename>classes</filename>
directories, respectively.
<filename>BBFILES</filename> is used to locate both recipe
and recipe append files
(<filename>.bb</filename> and <filename>.bbappend</filename>).
If there is no <filename>bblayers.conf</filename> file,
it is assumed the user has set the <filename>BBPATH</filename>
and <filename>BBFILES</filename> directly in the environment.
</para>
<para>
Next, the <filename>bitbake.conf</filename> file is located
using the <filename>BBPATH</filename> variable that was
just constructed.
The <filename>bitbake.conf</filename> file may also include other
configuration files using the
<filename>include</filename> or
<filename>require</filename> directives.
</para>
<para>
Prior to parsing configuration files, Bitbake looks
at certain variables, including:
<itemizedlist>
<listitem><para>
<link linkend='var-bb-BB_ENV_WHITELIST'><filename>BB_ENV_WHITELIST</filename></link>
</para></listitem>
<listitem><para>
<link linkend='var-bb-BB_ENV_EXTRAWHITE'><filename>BB_ENV_EXTRAWHITE</filename></link>
</para></listitem>
<listitem><para>
<link linkend='var-bb-BB_PRESERVE_ENV'><filename>BB_PRESERVE_ENV</filename></link>
</para></listitem>
<listitem><para>
<link linkend='var-bb-BB_ORIGENV'><filename>BB_ORIGENV</filename></link>
</para></listitem>
<listitem><para>
<link linkend='var-bb-BITBAKE_UI'><filename>BITBAKE_UI</filename></link>
</para></listitem>
</itemizedlist>
The first four variables in this list relate to how BitBake treats shell
environment variables during task execution.
By default, BitBake cleans the environment variables and provides tight
control over the shell execution environment.
However, through the use of these first four variables, you can
apply your control regarding the
environment variables allowed to be used by BitBake in the shell
during execution of tasks.
See the
"<link linkend='passing-information-into-the-build-task-environment'>Passing Information Into the Build Task Environment</link>"
section and the information about these variables in the
variable glossary for more information on how they work and
on how to use them.
</para>
<para>
The base configuration metadata is global
and therefore affects all recipes and tasks that are executed.
</para>
<para>
BitBake first searches the current working directory for an
optional <filename>conf/bblayers.conf</filename> configuration file.
This file is expected to contain a
<link linkend='var-bb-BBLAYERS'><filename>BBLAYERS</filename></link>
variable that is a space-delimited list of 'layer' directories.
Recall that if BitBake cannot find a <filename>bblayers.conf</filename>
file, then it is assumed the user has set the <filename>BBPATH</filename>
and <filename>BBFILES</filename> variables directly in the environment.
</para>
<para>
For each directory (layer) in this list, a <filename>conf/layer.conf</filename>
file is located and parsed with the
<link linkend='var-bb-LAYERDIR'><filename>LAYERDIR</filename></link>
variable being set to the directory where the layer was found.
The idea is these files automatically set up
<link linkend='var-bb-BBPATH'><filename>BBPATH</filename></link>
and other variables correctly for a given build directory.
</para>
<para>
BitBake then expects to find the <filename>conf/bitbake.conf</filename>
file somewhere in the user-specified <filename>BBPATH</filename>.
That configuration file generally has include directives to pull
in any other metadata such as files specific to the architecture,
the machine, the local environment, and so forth.
</para>
<para>
Only variable definitions and include directives are allowed
in BitBake <filename>.conf</filename> files.
Some variables directly influence BitBake's behavior.
These variables might have been set from the environment
depending on the environment variables previously
mentioned or set in the configuration files.
The
"<link linkend='ref-bb-variables-glos'>Variables Glossary</link>"
chapter presents a full list of variables.
</para>
<para>
After parsing configuration files, BitBake uses its rudimentary
inheritance mechanism, which is through class files, to inherit
some standard classes.
BitBake parses a class when the inherit directive responsible
for getting that class is encountered.
</para>
<para>
The <filename>base.bbclass</filename> file is always included.
Other classes that are specified in the configuration using the
<link linkend='var-bb-INHERIT'><filename>INHERIT</filename></link>
variable are also included.
BitBake searches for class files in a
<filename>classes</filename> subdirectory under
the paths in <filename>BBPATH</filename> in the same way as
configuration files.
</para>
<para>
A good way to get an idea of the configuration files and
the class files used in your execution environment is to
run the following BitBake command:
<literallayout class='monospaced'>
$ bitbake -e > mybb.log
</literallayout>
Examining the top of the <filename>mybb.log</filename>
shows you the many configuration files and class files
used in your execution environment.
</para>
<note>
<para>
You need to be aware of how BitBake parses curly braces.
If a recipe uses a closing curly brace within the function and
the character has no leading spaces, BitBake produces a parsing
error.
If you use a pair of curly braces in a shell function, the
closing curly brace must not be located at the start of the line
without leading spaces.
</para>
<para>
Here is an example that causes BitBake to produce a parsing
error:
<literallayout class='monospaced'>
fakeroot create_shar() {
cat &lt;&lt; "EOF" &gt; ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
usage()
{
echo "test"
###### The following "}" at the start of the line causes a parsing error ######
}
EOF
}
</literallayout>
Writing the recipe this way avoids the error:
<literallayout class='monospaced'>
fakeroot create_shar() {
cat &lt;&lt; "EOF" &gt; ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
usage()
{
echo "test"
######The following "}" with a leading space at the start of the line avoids the error ######
}
EOF
}
</literallayout>
</para>
</note>
</section>
<section id='locating-and-parsing-recipes'>
<title>Locating and Parsing Recipes</title>
<para>
During the configuration phase, BitBake will have set
<link linkend='var-bb-BBFILES'><filename>BBFILES</filename></link>.
BitBake now uses it to construct a list of recipes to parse,
along with any append files (<filename>.bbappend</filename>)
to apply.
<filename>BBFILES</filename> is a space-separated list of
available files and supports wildcards.
An example would be:
<literallayout class='monospaced'>
BBFILES = "/path/to/bbfiles/*.bb /path/to/appends/*.bbappend"
</literallayout>
BitBake parses each recipe and append file located
with <filename>BBFILES</filename> and stores the values of
various variables into the datastore.
<note>
Append files are applied in the order they are encountered in
<filename>BBFILES</filename>.
</note>
For each file, a fresh copy of the base configuration is
made, then the recipe is parsed line by line.
Any inherit statements cause BitBake to find and
then parse class files (<filename>.bbclass</filename>)
using
<link linkend='var-bb-BBPATH'><filename>BBPATH</filename></link>
as the search path.
Finally, BitBake parses in order any append files found in
<filename>BBFILES</filename>.
</para>
<para>
One common convention is to use the recipe filename to define
pieces of metadata.
For example, in <filename>bitbake.conf</filename> the recipe
name and version are used to set the variables
<link linkend='var-bb-PN'><filename>PN</filename></link> and
<link linkend='var-bb-PV'><filename>PV</filename></link>:
<literallayout class='monospaced'>
PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}"
</literallayout>
In this example, a recipe called "something_1.2.3.bb" would set
<filename>PN</filename> to "something" and
<filename>PV</filename> to "1.2.3".
</para>
<para>
By the time parsing is complete for a recipe, BitBake
has a list of tasks that the recipe defines and a set of
data consisting of keys and values as well as
dependency information about the tasks.
</para>
<para>
BitBake does not need all of this information.
It only needs a small subset of the information to make
decisions about the recipe.
Consequently, BitBake caches the values in which it is
interested and does not store the rest of the information.
Experience has shown it is faster to re-parse the metadata than to
try and write it out to the disk and then reload it.
</para>
<para>
Where possible, subsequent BitBake commands reuse this cache of
recipe information.
The validity of this cache is determined by first computing a
checksum of the base configuration data (see
<link linkend='var-bb-BB_HASHCONFIG_WHITELIST'><filename>BB_HASHCONFIG_WHITELIST</filename></link>)
and then checking if the checksum matches.
If that checksum matches what is in the cache and the recipe
and class files have not changed, Bitbake is able to use
the cache.
BitBake then reloads the cached information about the recipe
instead of reparsing it from scratch.
</para>
<para>
Recipe file collections exist to allow the user to
have multiple repositories of
<filename>.bb</filename> files that contain the same
exact package.
For example, one could easily use them to make one's
own local copy of an upstream repository, but with
custom modifications that one does not want upstream.
Here is an example:
<literallayout class='monospaced'>
BBFILES = "/stuff/openembedded/*/*.bb /stuff/openembedded.modified/*/*.bb"
BBFILE_COLLECTIONS = "upstream local"
BBFILE_PATTERN_upstream = "^/stuff/openembedded/"
BBFILE_PATTERN_local = "^/stuff/openembedded.modified/"
BBFILE_PRIORITY_upstream = "5"
BBFILE_PRIORITY_local = "10"
</literallayout>
<note>
The layers mechanism is now the preferred method of collecting
code.
While the collections code remains, its main use is to set layer
priorities and to deal with overlap (conflicts) between layers.
</note>
</para>
</section>
<section id='bb-bitbake-providers'>
<title>Providers</title>
<para>
Assuming BitBake has been instructed to execute a target
and that all the recipe files have been parsed, BitBake
starts to figure out how to build the target.
BitBake looks through the <filename>PROVIDES</filename> list
for each of the recipes.
A <filename>PROVIDES</filename> list is the list of names by which
the recipe can be known.
Each recipe's <filename>PROVIDES</filename> list is created
implicitly through the recipe's
<link linkend='var-bb-PN'><filename>PN</filename></link> variable
and explicitly through the recipe's
<link linkend='var-bb-PROVIDES'><filename>PROVIDES</filename></link>
variable, which is optional.
</para>
<para>
When a recipe uses <filename>PROVIDES</filename>, that recipe's
functionality can be found under an alternative name or names other
than the implicit <filename>PN</filename> name.
As an example, suppose a recipe named <filename>keyboard_1.0.bb</filename>
contained the following:
<literallayout class='monospaced'>
PROVIDES += "fullkeyboard"
</literallayout>
The <filename>PROVIDES</filename> list for this recipe becomes
"keyboard", which is implicit, and "fullkeyboard", which is explicit.
Consequently, the functionality found in
<filename>keyboard_1.0.bb</filename> can be found under two
different names.
</para>
</section>
<section id='bb-bitbake-preferences'>
<title>Preferences</title>
<para>
The <filename>PROVIDES</filename> list is only part of the solution
for figuring out a target's recipes.
Because targets might have multiple providers, BitBake needs
to prioritize providers by determining provider preferences.
</para>
<para>
A common example in which a target has multiple providers
is "virtual/kernel", which is on the
<filename>PROVIDES</filename> list for each kernel recipe.
Each machine often selects the best kernel provider by using a
line similar to the following in the machine configuration file:
<literallayout class='monospaced'>
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
</literallayout>
The default
<link linkend='var-bb-PREFERRED_PROVIDER'><filename>PREFERRED_PROVIDER</filename></link>
is the provider with the same name as the target.
Bitbake iterates through each target it needs to build and
resolves them and their dependencies using this process.
</para>
<para>
Understanding how providers are chosen is made complicated by the fact
that multiple versions might exist for a given provider.
BitBake defaults to the highest version of a provider.
Version comparisons are made using the same method as Debian.
You can use the
<link linkend='var-bb-PREFERRED_VERSION'><filename>PREFERRED_VERSION</filename></link>
variable to specify a particular version.
You can influence the order by using the
<link linkend='var-bb-DEFAULT_PREFERENCE'><filename>DEFAULT_PREFERENCE</filename></link>
variable.
</para>
<para>
By default, files have a preference of "0".
Setting <filename>DEFAULT_PREFERENCE</filename> to "-1" makes the
recipe unlikely to be used unless it is explicitly referenced.
Setting <filename>DEFAULT_PREFERENCE</filename> to "1" makes it
likely the recipe is used.
<filename>PREFERRED_VERSION</filename> overrides any
<filename>DEFAULT_PREFERENCE</filename> setting.
<filename>DEFAULT_PREFERENCE</filename> is often used to mark newer
and more experimental recipe versions until they have undergone
sufficient testing to be considered stable.
</para>
<para>
When there are multiple “versions” of a given recipe,
BitBake defaults to selecting the most recent
version, unless otherwise specified.
If the recipe in question has a
<link linkend='var-bb-DEFAULT_PREFERENCE'><filename>DEFAULT_PREFERENCE</filename></link>
set lower than the other recipes (default is 0), then
it will not be selected.
This allows the person or persons maintaining
the repository of recipe files to specify
their preference for the default selected version.
Additionally, the user can specify their preferred version.
</para>
<para>
If the first recipe is named <filename>a_1.1.bb</filename>, then the
<link linkend='var-bb-PN'><filename>PN</filename></link> variable
will be set to “a”, and the
<link linkend='var-bb-PV'><filename>PV</filename></link>
variable will be set to 1.1.
</para>
<para>
Thus, if a recipe named <filename>a_1.2.bb</filename> exists, BitBake
will choose 1.2 by default.
However, if you define the following variable in a
<filename>.conf</filename> file that BitBake parses, you
can change that preference:
<literallayout class='monospaced'>
PREFERRED_VERSION_a = "1.1"
</literallayout>
</para>
<note>
<para>
It is common for a recipe to provide two versions -- a stable,
numbered (and preferred) version, and a version that is
automatically checked out from a source code repository that
is considered more "bleeding edge" but can be selected only
explicitly.
</para>
<para>
For example, in the OpenEmbedded codebase, there is a standard,
versioned recipe file for BusyBox,
<filename>busybox_1.22.1.bb</filename>,
but there is also a Git-based version,
<filename>busybox_git.bb</filename>, which explicitly contains the line
<literallayout class='monospaced'>
DEFAULT_PREFERENCE = "-1"
</literallayout>
to ensure that the numbered, stable version is always preferred
unless the developer selects otherwise.
</para>
</note>
</section>
<section id='bb-bitbake-dependencies'>
<title>Dependencies</title>
<para>
Each target BitBake builds consists of multiple tasks such as
<filename>fetch</filename>, <filename>unpack</filename>,
<filename>patch</filename>, <filename>configure</filename>,
and <filename>compile</filename>.
For best performance on multi-core systems, BitBake considers each
task as an independent
entity with its own set of dependencies.
</para>
<para>
Dependencies are defined through several variables.
You can find information about variables BitBake uses in
the <link linkend='ref-bb-variables-glos'>Variables Glossary</link>
near the end of this manual.
At a basic level, it is sufficient to know that BitBake uses the
<link linkend='var-bb-DEPENDS'><filename>DEPENDS</filename></link> and
<link linkend='var-bb-RDEPENDS'><filename>RDEPENDS</filename></link> variables when
calculating dependencies.
</para>
<para>
For more information on how BitBake handles dependencies, see the
"<link linkend='dependencies'>Dependencies</link>" section.
</para>
</section>
<section id='ref-bitbake-tasklist'>
<title>The Task List</title>
<para>
Based on the generated list of providers and the dependency information,
BitBake can now calculate exactly what tasks it needs to run and in what
order it needs to run them.
The
"<link linkend='executing-tasks'>Executing Tasks</link>" section has more
information on how BitBake chooses which task to execute next.
</para>
<para>
The build now starts with BitBake forking off threads up to the limit set in the
<link linkend='var-bb-BB_NUMBER_THREADS'><filename>BB_NUMBER_THREADS</filename></link>
variable.
BitBake continues to fork threads as long as there are tasks ready to run,
those tasks have all their dependencies met, and the thread threshold has not been
exceeded.
</para>
<para>
It is worth noting that you can greatly speed up the build time by properly setting
the <filename>BB_NUMBER_THREADS</filename> variable.
</para>
<para>
As each task completes, a timestamp is written to the directory specified by the
<link linkend='var-bb-STAMP'><filename>STAMP</filename></link> variable.
On subsequent runs, BitBake looks in the build directory within
<filename>tmp/stamps</filename> and does not rerun
tasks that are already completed unless a timestamp is found to be invalid.
Currently, invalid timestamps are only considered on a per
recipe file basis.
So, for example, if the configure stamp has a timestamp greater than the
compile timestamp for a given target, then the compile task would rerun.
Running the compile task again, however, has no effect on other providers
that depend on that target.
</para>
<para>
The exact format of the stamps is partly configurable.
In modern versions of BitBake, a hash is appended to the
stamp so that if the configuration changes, the stamp becomes
invalid and the task is automatically rerun.
This hash, or signature used, is governed by the signature policy
that is configured (see the
"<link linkend='checksums'>Checksums (Signatures)</link>"
section for information).
It is also possible to append extra metadata to the stamp using
the <filename>[stamp-extra-info]</filename> task flag.
For example, OpenEmbedded uses this flag to make some tasks machine-specific.
</para>
<note>
Some tasks are marked as "nostamp" tasks.
No timestamp file is created when these tasks are run.
Consequently, "nostamp" tasks are always rerun.
</note>
<para>
For more information on tasks, see the
"<link linkend='tasks'>Tasks</link>" section.
</para>
</section>
<section id='executing-tasks'>
<title>Executing Tasks</title>
<para>
Tasks can be either a shell task or a Python task.
For shell tasks, BitBake writes a shell script to
<filename>${</filename><link linkend='var-bb-T'><filename>T</filename></link><filename>}/run.do_taskname.pid</filename>
and then executes the script.
The generated shell script contains all the exported variables,
and the shell functions with all variables expanded.
Output from the shell script goes to the file
<filename>${T}/log.do_taskname.pid</filename>.
Looking at the expanded shell functions in the run file and
the output in the log files is a useful debugging technique.
</para>
<para>
For Python tasks, BitBake executes the task internally and logs
information to the controlling terminal.
Future versions of BitBake will write the functions to files
similar to the way shell tasks are handled.
Logging will be handled in a way similar to shell tasks as well.
</para>
<para>
The order in which BitBake runs the tasks is controlled by its
task scheduler.
It is possible to configure the scheduler and define custom
implementations for specific use cases.
For more information, see these variables that control the
behavior:
<itemizedlist>
<listitem><para>
<link linkend='var-bb-BB_SCHEDULER'><filename>BB_SCHEDULER</filename></link>
</para></listitem>
<listitem><para>
<link linkend='var-bb-BB_SCHEDULERS'><filename>BB_SCHEDULERS</filename></link>
</para></listitem>
</itemizedlist>
It is possible to have functions run before and after a task's main
function.
This is done using the <filename>[prefuncs]</filename>
and <filename>[postfuncs]</filename> flags of the task
that lists the functions to run.
</para>
</section>
<section id='checksums'>
<title>Checksums (Signatures)</title>
<para>
A checksum is a unique signature of a task's inputs.
The signature of a task can be used to determine if a task
needs to be run.
Because it is a change in a task's inputs that triggers running
the task, BitBake needs to detect all the inputs to a given task.
For shell tasks, this turns out to be fairly easy because
BitBake generates a "run" shell script for each task and
it is possible to create a checksum that gives you a good idea of when
the task's data changes.
</para>
<para>
To complicate the problem, some things should not be included in
the checksum.
First, there is the actual specific build path of a given task -
the working directory.
It does not matter if the working directory changes because it should not
affect the output for target packages.
The simplistic approach for excluding the working directory is to set
it to some fixed value and create the checksum for the "run" script.
BitBake goes one step better and uses the
<link linkend='var-bb-BB_HASHBASE_WHITELIST'><filename>BB_HASHBASE_WHITELIST</filename></link>
variable to define a list of variables that should never be included
when generating the signatures.
</para>
<para>
Another problem results from the "run" scripts containing functions that
might or might not get called.
The incremental build solution contains code that figures out dependencies
between shell functions.
This code is used to prune the "run" scripts down to the minimum set,
thereby alleviating this problem and making the "run" scripts much more
readable as a bonus.
</para>
<para>
So far we have solutions for shell scripts.
What about Python tasks?
The same approach applies even though these tasks are more difficult.
The process needs to figure out what variables a Python function accesses
and what functions it calls.
Again, the incremental build solution contains code that first figures out
the variable and function dependencies, and then creates a checksum for the data
used as the input to the task.
</para>
<para>
Like the working directory case, situations exist where dependencies
should be ignored.
For these cases, you can instruct the build process to ignore a dependency
by using a line like the following:
<literallayout class='monospaced'>
PACKAGE_ARCHS[vardepsexclude] = "MACHINE"
</literallayout>
This example ensures that the <filename>PACKAGE_ARCHS</filename> variable does not
depend on the value of <filename>MACHINE</filename>, even if it does reference it.
</para>
<para>
Equally, there are cases where we need to add dependencies BitBake
is not able to find.
You can accomplish this by using a line like the following:
<literallayout class='monospaced'>
PACKAGE_ARCHS[vardeps] = "MACHINE"
</literallayout>
This example explicitly adds the <filename>MACHINE</filename> variable as a
dependency for <filename>PACKAGE_ARCHS</filename>.
</para>
<para>
Consider a case with in-line Python, for example, where BitBake is not
able to figure out dependencies.
When running in debug mode (i.e. using <filename>-DDD</filename>), BitBake
produces output when it discovers something for which it cannot figure out
dependencies.
</para>
<para>
Thus far, this section has limited discussion to the direct inputs into a task.
Information based on direct inputs is referred to as the "basehash" in the
code.
However, there is still the question of a task's indirect inputs - the
things that were already built and present in the build directory.
The checksum (or signature) for a particular task needs to add the hashes
of all the tasks on which the particular task depends.
Choosing which dependencies to add is a policy decision.
However, the effect is to generate a master checksum that combines the basehash
and the hashes of the task's dependencies.
</para>
<para>
At the code level, there are a variety of ways both the basehash and the
dependent task hashes can be influenced.
Within the BitBake configuration file, we can give BitBake some extra information
to help it construct the basehash.
The following statement effectively results in a list of global variable
dependency excludes - variables never included in any checksum.
This example uses variables from OpenEmbedded to help illustrate
the concept:
<literallayout class='monospaced'>
BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR \
SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM \
USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST \
PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE \
CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE CCACHE_DISABLE LICENSE_PATH SDKPKGSUFFIX"
</literallayout>
The previous example excludes the work directory, which is part of
<filename>TMPDIR</filename>.
</para>
<para>
The rules for deciding which hashes of dependent tasks to include through
dependency chains are more complex and are generally accomplished with a
Python function.
The code in <filename>meta/lib/oe/sstatesig.py</filename> shows two examples
of this and also illustrates how you can insert your own policy into the system
if so desired.
This file defines the two basic signature generators OpenEmbedded-Core
uses: "OEBasic" and "OEBasicHash".
By default, there is a dummy "noop" signature handler enabled in BitBake.
This means that behavior is unchanged from previous versions.
<filename>OE-Core</filename> uses the "OEBasicHash" signature handler by default
through this setting in the <filename>bitbake.conf</filename> file:
<literallayout class='monospaced'>
BB_SIGNATURE_HANDLER ?= "OEBasicHash"
</literallayout>
The "OEBasicHash" <filename>BB_SIGNATURE_HANDLER</filename> is the same as the
"OEBasic" version but adds the task hash to the stamp files.
This results in any metadata change that changes the task hash, automatically
causing the task to be run again.
This removes the need to bump
<link linkend='var-bb-PR'><filename>PR</filename></link>
values, and changes to metadata automatically ripple across the build.
</para>
<para>
It is also worth noting that the end result of these signature generators is to
make some dependency and hash information available to the build.
This information includes:
<itemizedlist>
<listitem><para><filename>BB_BASEHASH_task-</filename><replaceable>taskname</replaceable>:
The base hashes for each task in the recipe.
</para></listitem>
<listitem><para><filename>BB_BASEHASH_</filename><replaceable>filename</replaceable><filename>:</filename><replaceable>taskname</replaceable>:
The base hashes for each dependent task.
</para></listitem>
<listitem><para><filename>BBHASHDEPS_</filename><replaceable>filename</replaceable><filename>:</filename><replaceable>taskname</replaceable>:
The task dependencies for each task.
</para></listitem>
<listitem><para><filename>BB_TASKHASH</filename>:
The hash of the currently running task.
</para></listitem>
</itemizedlist>
</para>
<para>
It is worth noting that BitBake's "-S" option lets you
debug Bitbake's processing of signatures.
The options passed to -S allow different debugging modes
to be used, either using BitBake's own debug functions
or possibly those defined in the metadata/signature handler
itself.
The simplest parameter to pass is "none", which causes a
set of signature information to be written out into
<filename>STAMPS_DIR</filename>
corresponding to the targets specified.
The other currently available parameter is "printdiff",
which causes BitBake to try to establish the closest
signature match it can (e.g. in the sstate cache) and then
run <filename>bitbake-diffsigs</filename> over the matches
to determine the stamps and delta where these two
stamp trees diverge.
<note>
It is likely that future versions of BitBake will
provide other signature handlers triggered through
additional "-S" parameters.
</note>
</para>
<para>
You can find more information on checksum metadata in the
"<link linkend='task-checksums-and-setscene'>Task Checksums and Setscene</link>"
section.
</para>
</section>
<section id='setscene'>
<title>Setscene</title>
<para>
The setscene process enables BitBake to handle "pre-built" artifacts.
The ability to handle and reuse these artifacts allows BitBake
the luxury of not having to build something from scratch every time.
Instead, BitBake can use, when possible, existing build artifacts.
</para>
<para>
BitBake needs to have reliable data indicating whether or not an
artifact is compatible.
Signatures, described in the previous section, provide an ideal
way of representing whether an artifact is compatible.
If a signature is the same, an object can be reused.
</para>
<para>
If an object can be reused, the problem then becomes how to
replace a given task or set of tasks with the pre-built artifact.
BitBake solves the problem with the "setscene" process.
</para>
<para>
When BitBake is asked to build a given target, before building anything,
it first asks whether cached information is available for any of the
targets it's building, or any of the intermediate targets.
If cached information is available, BitBake uses this information instead of
running the main tasks.
</para>
<para>
BitBake first calls the function defined by the
<link linkend='var-bb-BB_HASHCHECK_FUNCTION'><filename>BB_HASHCHECK_FUNCTION</filename></link>
variable with a list of tasks and corresponding
hashes it wants to build.
This function is designed to be fast and returns a list
of the tasks for which it believes in can obtain artifacts.
</para>
<para>
Next, for each of the tasks that were returned as possibilities,
BitBake executes a setscene version of the task that the possible
artifact covers.
Setscene versions of a task have the string "_setscene" appended to the
task name.
So, for example, the task with the name <filename>xxx</filename> has
a setscene task named <filename>xxx_setscene</filename>.
The setscene version of the task executes and provides the necessary
artifacts returning either success or failure.
</para>
<para>
As previously mentioned, an artifact can cover more than one task.
For example, it is pointless to obtain a compiler if you
already have the compiled binary.
To handle this, BitBake calls the
<link linkend='var-bb-BB_SETSCENE_DEPVALID'><filename>BB_SETSCENE_DEPVALID</filename></link>
function for each successful setscene task to know whether or not it needs
to obtain the dependencies of that task.
</para>
<para>
Finally, after all the setscene tasks have executed, BitBake calls the
function listed in
<link linkend='var-bb-BB_SETSCENE_VERIFY_FUNCTION2'><filename>BB_SETSCENE_VERIFY_FUNCTION2</filename></link>
with the list of tasks BitBake thinks has been "covered".
The metadata can then ensure that this list is correct and can
inform BitBake that it wants specific tasks to be run regardless
of the setscene result.
</para>
<para>
You can find more information on setscene metadata in the
"<link linkend='task-checksums-and-setscene'>Task Checksums and Setscene</link>"
section.
</para>
</section>
</chapter>

View File

@@ -1,621 +0,0 @@
.. SPDX-License-Identifier: CC-BY-2.5
=====================
File Download Support
=====================
|
BitBake's fetch module is a standalone piece of library code that deals
with the intricacies of downloading source code and files from remote
systems. Fetching source code is one of the cornerstones of building
software. As such, this module forms an important part of BitBake.
The current fetch module is called "fetch2" and refers to the fact that
it is the second major version of the API. The original version is
obsolete and has been removed from the codebase. Thus, in all cases,
"fetch" refers to "fetch2" in this manual.
The Download (Fetch)
====================
BitBake takes several steps when fetching source code or files. The
fetcher codebase deals with two distinct processes in order: obtaining
the files from somewhere (cached or otherwise) and then unpacking those
files into a specific location and perhaps in a specific way. Getting
and unpacking the files is often optionally followed by patching.
Patching, however, is not covered by this module.
The code to execute the first part of this process, a fetch, looks
something like the following: ::
src_uri = (d.getVar('SRC_URI') or "").split()
fetcher = bb.fetch2.Fetch(src_uri, d)
fetcher.download()
This code sets up an instance of the fetch class. The instance uses a
space-separated list of URLs from the :term:`SRC_URI`
variable and then calls the ``download`` method to download the files.
The instantiation of the fetch class is usually followed by: ::
rootdir = l.getVar('WORKDIR')
fetcher.unpack(rootdir)
This code unpacks the downloaded files to the specified by ``WORKDIR``.
.. note::
For convenience, the naming in these examples matches the variables
used by OpenEmbedded. If you want to see the above code in action,
examine the OpenEmbedded class file ``base.bbclass``
.
The ``SRC_URI`` and ``WORKDIR`` variables are not hardcoded into the
fetcher, since those fetcher methods can be (and are) called with
different variable names. In OpenEmbedded for example, the shared state
(sstate) code uses the fetch module to fetch the sstate files.
When the ``download()`` method is called, BitBake tries to resolve the
URLs by looking for source files in a specific search order:
- *Pre-mirror Sites:* BitBake first uses pre-mirrors to try and find
source files. These locations are defined using the
:term:`PREMIRRORS` variable.
- *Source URI:* If pre-mirrors fail, BitBake uses the original URL (e.g
from ``SRC_URI``).
- *Mirror Sites:* If fetch failures occur, BitBake next uses mirror
locations as defined by the :term:`MIRRORS` variable.
For each URL passed to the fetcher, the fetcher calls the submodule that
handles that particular URL type. This behavior can be the source of
some confusion when you are providing URLs for the ``SRC_URI`` variable.
Consider the following two URLs: ::
http://git.yoctoproject.org/git/poky;protocol=git
git://git.yoctoproject.org/git/poky;protocol=http
In the former case, the URL is passed to the ``wget`` fetcher, which does not
understand "git". Therefore, the latter case is the correct form since the Git
fetcher does know how to use HTTP as a transport.
Here are some examples that show commonly used mirror definitions: ::
PREMIRRORS ?= "\
bzr://.*/.\* http://somemirror.org/sources/ \\n \
cvs://.*/.\* http://somemirror.org/sources/ \\n \
git://.*/.\* http://somemirror.org/sources/ \\n \
hg://.*/.\* http://somemirror.org/sources/ \\n \
osc://.*/.\* http://somemirror.org/sources/ \\n \
p4://.*/.\* http://somemirror.org/sources/ \\n \
svn://.*/.\* http://somemirror.org/sources/ \\n"
MIRRORS =+ "\
ftp://.*/.\* http://somemirror.org/sources/ \\n \
http://.*/.\* http://somemirror.org/sources/ \\n \
https://.*/.\* http://somemirror.org/sources/ \\n"
It is useful to note that BitBake
supports cross-URLs. It is possible to mirror a Git repository on an
HTTP server as a tarball. This is what the ``git://`` mapping in the
previous example does.
Since network accesses are slow, BitBake maintains a cache of files
downloaded from the network. Any source files that are not local (i.e.
downloaded from the Internet) are placed into the download directory,
which is specified by the :term:`DL_DIR` variable.
File integrity is of key importance for reproducing builds. For
non-local archive downloads, the fetcher code can verify SHA-256 and MD5
checksums to ensure the archives have been downloaded correctly. You can
specify these checksums by using the ``SRC_URI`` variable with the
appropriate varflags as follows: ::
SRC_URI[md5sum] = "value"
SRC_URI[sha256sum] = "value"
You can also specify the checksums as
parameters on the ``SRC_URI`` as shown below: ::
SRC_URI = "http://example.com/foobar.tar.bz2;md5sum=4a8e0f237e961fd7785d19d07fdb994d"
If multiple URIs exist, you can specify the checksums either directly as
in the previous example, or you can name the URLs. The following syntax
shows how you name the URIs: ::
SRC_URI = "http://example.com/foobar.tar.bz2;name=foo"
SRC_URI[foo.md5sum] = 4a8e0f237e961fd7785d19d07fdb994d
After a file has been downloaded and
has had its checksum checked, a ".done" stamp is placed in ``DL_DIR``.
BitBake uses this stamp during subsequent builds to avoid downloading or
comparing a checksum for the file again.
.. note::
It is assumed that local storage is safe from data corruption. If
this were not the case, there would be bigger issues to worry about.
If :term:`BB_STRICT_CHECKSUM` is set, any
download without a checksum triggers an error message. The
:term:`BB_NO_NETWORK` variable can be used to
make any attempted network access a fatal error, which is useful for
checking that mirrors are complete as well as other things.
.. _bb-the-unpack:
The Unpack
==========
The unpack process usually immediately follows the download. For all
URLs except Git URLs, BitBake uses the common ``unpack`` method.
A number of parameters exist that you can specify within the URL to
govern the behavior of the unpack stage:
- *unpack:* Controls whether the URL components are unpacked. If set to
"1", which is the default, the components are unpacked. If set to
"0", the unpack stage leaves the file alone. This parameter is useful
when you want an archive to be copied in and not be unpacked.
- *dos:* Applies to ``.zip`` and ``.jar`` files and specifies whether
to use DOS line ending conversion on text files.
- *basepath:* Instructs the unpack stage to strip the specified
directories from the source path when unpacking.
- *subdir:* Unpacks the specific URL to the specified subdirectory
within the root directory.
The unpack call automatically decompresses and extracts files with ".Z",
".z", ".gz", ".xz", ".zip", ".jar", ".ipk", ".rpm". ".srpm", ".deb" and
".bz2" extensions as well as various combinations of tarball extensions.
As mentioned, the Git fetcher has its own unpack method that is
optimized to work with Git trees. Basically, this method works by
cloning the tree into the final directory. The process is completed
using references so that there is only one central copy of the Git
metadata needed.
.. _bb-fetchers:
Fetchers
========
As mentioned earlier, the URL prefix determines which fetcher submodule
BitBake uses. Each submodule can support different URL parameters, which
are described in the following sections.
.. _local-file-fetcher:
Local file fetcher (``file://``)
--------------------------------
This submodule handles URLs that begin with ``file://``. The filename
you specify within the URL can be either an absolute or relative path to
a file. If the filename is relative, the contents of the
:term:`FILESPATH` variable is used in the same way
``PATH`` is used to find executables. If the file cannot be found, it is
assumed that it is available in :term:`DL_DIR` by the
time the ``download()`` method is called.
If you specify a directory, the entire directory is unpacked.
Here are a couple of example URLs, the first relative and the second
absolute: ::
SRC_URI = "file://relativefile.patch"
SRC_URI = "file:///Users/ich/very_important_software"
.. _http-ftp-fetcher:
HTTP/FTP wget fetcher (``http://``, ``ftp://``, ``https://``)
-------------------------------------------------------------
This fetcher obtains files from web and FTP servers. Internally, the
fetcher uses the wget utility.
The executable and parameters used are specified by the
``FETCHCMD_wget`` variable, which defaults to sensible values. The
fetcher supports a parameter "downloadfilename" that allows the name of
the downloaded file to be specified. Specifying the name of the
downloaded file is useful for avoiding collisions in
:term:`DL_DIR` when dealing with multiple files that
have the same name.
Some example URLs are as follows: ::
SRC_URI = "http://oe.handhelds.org/not_there.aac"
SRC_URI = "ftp://oe.handhelds.org/not_there_as_well.aac"
SRC_URI = "ftp://you@oe.handhelds.org/home/you/secret.plan"
.. note::
Because URL parameters are delimited by semi-colons, this can
introduce ambiguity when parsing URLs that also contain semi-colons,
for example:
::
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47"
Such URLs should should be modified by replacing semi-colons with '&'
characters:
::
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47"
In most cases this should work. Treating semi-colons and '&' in
queries identically is recommended by the World Wide Web Consortium
(W3C). Note that due to the nature of the URL, you may have to
specify the name of the downloaded file as well:
::
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47;downloadfilename=myfile.bz2"
.. _cvs-fetcher:
CVS fetcher (``(cvs://``)
-------------------------
This submodule handles checking out files from the CVS version control
system. You can configure it using a number of different variables:
- :term:`FETCHCMD_cvs <FETCHCMD>`: The name of the executable to use when running
the ``cvs`` command. This name is usually "cvs".
- :term:`SRCDATE`: The date to use when fetching the CVS source code. A
special value of "now" causes the checkout to be updated on every
build.
- :term:`CVSDIR`: Specifies where a temporary
checkout is saved. The location is often ``DL_DIR/cvs``.
- CVS_PROXY_HOST: The name to use as a "proxy=" parameter to the
``cvs`` command.
- CVS_PROXY_PORT: The port number to use as a "proxyport="
parameter to the ``cvs`` command.
As well as the standard username and password URL syntax, you can also
configure the fetcher with various URL parameters:
The supported parameters are as follows:
- *"method":* The protocol over which to communicate with the CVS
server. By default, this protocol is "pserver". If "method" is set to
"ext", BitBake examines the "rsh" parameter and sets ``CVS_RSH``. You
can use "dir" for local directories.
- *"module":* Specifies the module to check out. You must supply this
parameter.
- *"tag":* Describes which CVS TAG should be used for the checkout. By
default, the TAG is empty.
- *"date":* Specifies a date. If no "date" is specified, the
:term:`SRCDATE` of the configuration is used to
checkout a specific date. The special value of "now" causes the
checkout to be updated on every build.
- *"localdir":* Used to rename the module. Effectively, you are
renaming the output directory to which the module is unpacked. You
are forcing the module into a special directory relative to
:term:`CVSDIR`.
- *"rsh":* Used in conjunction with the "method" parameter.
- *"scmdata":* Causes the CVS metadata to be maintained in the tarball
the fetcher creates when set to "keep". The tarball is expanded into
the work directory. By default, the CVS metadata is removed.
- *"fullpath":* Controls whether the resulting checkout is at the
module level, which is the default, or is at deeper paths.
- *"norecurse":* Causes the fetcher to only checkout the specified
directory with no recurse into any subdirectories.
- *"port":* The port to which the CVS server connects.
Some example URLs are as follows: ::
SRC_URI = "cvs://CVSROOT;module=mymodule;tag=some-version;method=ext"
SRC_URI = "cvs://CVSROOT;module=mymodule;date=20060126;localdir=usethat"
.. _svn-fetcher:
Subversion (SVN) Fetcher (``svn://``)
-------------------------------------
This fetcher submodule fetches code from the Subversion source control
system. The executable used is specified by ``FETCHCMD_svn``, which
defaults to "svn". The fetcher's temporary working directory is set by
:term:`SVNDIR`, which is usually ``DL_DIR/svn``.
The supported parameters are as follows:
- *"module":* The name of the svn module to checkout. You must provide
this parameter. You can think of this parameter as the top-level
directory of the repository data you want.
- *"path_spec":* A specific directory in which to checkout the
specified svn module.
- *"protocol":* The protocol to use, which defaults to "svn". If
"protocol" is set to "svn+ssh", the "ssh" parameter is also used.
- *"rev":* The revision of the source code to checkout.
- *"scmdata":* Causes the ".svn" directories to be available during
compile-time when set to "keep". By default, these directories are
removed.
- *"ssh":* An optional parameter used when "protocol" is set to
"svn+ssh". You can use this parameter to specify the ssh program used
by svn.
- *"transportuser":* When required, sets the username for the
transport. By default, this parameter is empty. The transport
username is different than the username used in the main URL, which
is passed to the subversion command.
Following are three examples using svn: ::
SRC_URI = "svn://myrepos/proj1;module=vip;protocol=http;rev=667"
SRC_URI = "svn://myrepos/proj1;module=opie;protocol=svn+ssh"
SRC_URI = "svn://myrepos/proj1;module=trunk;protocol=http;path_spec=${MY_DIR}/proj1"
.. _git-fetcher:
Git Fetcher (``git://``)
------------------------
This fetcher submodule fetches code from the Git source control system.
The fetcher works by creating a bare clone of the remote into
:term:`GITDIR`, which is usually ``DL_DIR/git2``. This
bare clone is then cloned into the work directory during the unpack
stage when a specific tree is checked out. This is done using alternates
and by reference to minimize the amount of duplicate data on the disk
and make the unpack process fast. The executable used can be set with
``FETCHCMD_git``.
This fetcher supports the following parameters:
- *"protocol":* The protocol used to fetch the files. The default is
"git" when a hostname is set. If a hostname is not set, the Git
protocol is "file". You can also use "http", "https", "ssh" and
"rsync".
- *"nocheckout":* Tells the fetcher to not checkout source code when
unpacking when set to "1". Set this option for the URL where there is
a custom routine to checkout code. The default is "0".
- *"rebaseable":* Indicates that the upstream Git repository can be
rebased. You should set this parameter to "1" if revisions can become
detached from branches. In this case, the source mirror tarball is
done per revision, which has a loss of efficiency. Rebasing the
upstream Git repository could cause the current revision to disappear
from the upstream repository. This option reminds the fetcher to
preserve the local cache carefully for future use. The default value
for this parameter is "0".
- *"nobranch":* Tells the fetcher to not check the SHA validation for
the branch when set to "1". The default is "0". Set this option for
the recipe that refers to the commit that is valid for any namespace
(branch, tag, ...) instead of the branch.
- *"bareclone":* Tells the fetcher to clone a bare clone into the
destination directory without checking out a working tree. Only the
raw Git metadata is provided. This parameter implies the "nocheckout"
parameter as well.
- *"branch":* The branch(es) of the Git tree to clone. If unset, this
is assumed to be "master". The number of branch parameters much match
the number of name parameters.
- *"rev":* The revision to use for the checkout. The default is
"master".
- *"tag":* Specifies a tag to use for the checkout. To correctly
resolve tags, BitBake must access the network. For that reason, tags
are often not used. As far as Git is concerned, the "tag" parameter
behaves effectively the same as the "rev" parameter.
- *"subpath":* Limits the checkout to a specific subpath of the tree.
By default, the whole tree is checked out.
- *"destsuffix":* The name of the path in which to place the checkout.
By default, the path is ``git/``.
- *"usehead":* Enables local ``git://`` URLs to use the current branch
HEAD as the revision for use with ``AUTOREV``. The "usehead"
parameter implies no branch and only works when the transfer protocol
is ``file://``.
Here are some example URLs: ::
SRC_URI = "git://git.oe.handhelds.org/git/vip.git;tag=version-1"
SRC_URI = "git://git.oe.handhelds.org/git/vip.git;protocol=http"
.. _gitsm-fetcher:
Git Submodule Fetcher (``gitsm://``)
------------------------------------
This fetcher submodule inherits from the :ref:`Git
fetcher<bitbake-user-manual/bitbake-user-manual-fetching:git fetcher
(\`\`git://\`\`)>` and extends that fetcher's behavior by fetching a
repository's submodules. :term:`SRC_URI` is passed to the Git fetcher as
described in the :ref:`bitbake-user-manual/bitbake-user-manual-fetching:git
fetcher (\`\`git://\`\`)` section.
.. note::
You must clean a recipe when switching between '``git://``' and
'``gitsm://``' URLs.
The Git Submodules fetcher is not a complete fetcher implementation.
The fetcher has known issues where it does not use the normal source
mirroring infrastructure properly. Further, the submodule sources it
fetches are not visible to the licensing and source archiving
infrastructures.
.. _clearcase-fetcher:
ClearCase Fetcher (``ccrc://``)
-------------------------------
This fetcher submodule fetches code from a
`ClearCase <http://en.wikipedia.org/wiki/Rational_ClearCase>`__
repository.
To use this fetcher, make sure your recipe has proper
:term:`SRC_URI`, :term:`SRCREV`, and
:term:`PV` settings. Here is an example: ::
SRC_URI = "ccrc://cc.example.org/ccrc;vob=/example_vob;module=/example_module"
SRCREV = "EXAMPLE_CLEARCASE_TAG"
PV = "${@d.getVar("SRCREV", False).replace("/", "+")}"
The fetcher uses the ``rcleartool`` or
``cleartool`` remote client, depending on which one is available.
Following are options for the ``SRC_URI`` statement:
- *vob*: The name, which must include the prepending "/" character,
of the ClearCase VOB. This option is required.
- *module*: The module, which must include the prepending "/"
character, in the selected VOB.
.. note::
The module and vob options are combined to create the load rule in the
view config spec. As an example, consider the vob and module values from
the SRC_URI statement at the start of this section. Combining those values
results in the following: ::
load /example_vob/example_module
- *proto*: The protocol, which can be either ``http`` or ``https``.
By default, the fetcher creates a configuration specification. If you
want this specification written to an area other than the default, use
the ``CCASE_CUSTOM_CONFIG_SPEC`` variable in your recipe to define where
the specification is written.
.. note::
the SRCREV loses its functionality if you specify this variable. However,
SRCREV is still used to label the archive after a fetch even though it does
not define what is fetched.
Here are a couple of other behaviors worth mentioning:
- When using ``cleartool``, the login of ``cleartool`` is handled by
the system. The login require no special steps.
- In order to use ``rcleartool`` with authenticated users, an
"rcleartool login" is necessary before using the fetcher.
.. _perforce-fetcher:
Perforce Fetcher (``p4://``)
----------------------------
This fetcher submodule fetches code from the
`Perforce <https://www.perforce.com/>`__ source control system. The
executable used is specified by ``FETCHCMD_p4``, which defaults to "p4".
The fetcher's temporary working directory is set by
:term:`P4DIR`, which defaults to "DL_DIR/p4".
The fetcher does not make use of a perforce client, instead it
relies on ``p4 files`` to retrieve a list of
files and ``p4 print`` to transfer the content
of those files locally.
To use this fetcher, make sure your recipe has proper
:term:`SRC_URI`, :term:`SRCREV`, and
:term:`PV` values. The p4 executable is able to use the
config file defined by your system's ``P4CONFIG`` environment variable
in order to define the Perforce server URL and port, username, and
password if you do not wish to keep those values in a recipe itself. If
you choose not to use ``P4CONFIG``, or to explicitly set variables that
``P4CONFIG`` can contain, you can specify the ``P4PORT`` value, which is
the server's URL and port number, and you can specify a username and
password directly in your recipe within ``SRC_URI``.
Here is an example that relies on ``P4CONFIG`` to specify the server URL
and port, username, and password, and fetches the Head Revision: ::
SRC_URI = "p4://example-depot/main/source/..."
SRCREV = "${AUTOREV}"
PV = "p4-${SRCPV}"
S = "${WORKDIR}/p4"
Here is an example that specifies the server URL and port, username, and
password, and fetches a Revision based on a Label: ::
P4PORT = "tcp:p4server.example.net:1666"
SRC_URI = "p4://user:passwd@example-depot/main/source/..."
SRCREV = "release-1.0"
PV = "p4-${SRCPV}"
S = "${WORKDIR}/p4"
.. note::
You should always set S to "${WORKDIR}/p4" in your recipe.
.. _repo-fetcher:
Repo Fetcher (``repo://``)
--------------------------
This fetcher submodule fetches code from ``google-repo`` source control
system. The fetcher works by initiating and syncing sources of the
repository into :term:`REPODIR`, which is usually
``${DL_DIR}/repo``.
This fetcher supports the following parameters:
- *"protocol":* Protocol to fetch the repository manifest (default:
git).
- *"branch":* Branch or tag of repository to get (default: master).
- *"manifest":* Name of the manifest file (default: ``default.xml``).
Here are some example URLs: ::
SRC_URI = "repo://REPOROOT;protocol=git;branch=some_branch;manifest=my_manifest.xml"
SRC_URI = "repo://REPOROOT;protocol=file;branch=some_branch;manifest=my_manifest.xml"
Other Fetchers
--------------
Fetch submodules also exist for the following:
- Bazaar (``bzr://``)
- Mercurial (``hg://``)
- npm (``npm://``)
- OSC (``osc://``)
- Secure FTP (``sftp://``)
- Secure Shell (``ssh://``)
- Trees using Git Annex (``gitannex://``)
No documentation currently exists for these lesser used fetcher
submodules. However, you might find the code helpful and readable.
Auto Revisions
==============
We need to document ``AUTOREV`` and ``SRCREV_FORMAT`` here.

View File

@@ -0,0 +1,865 @@
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<chapter>
<title>File Download Support</title>
<para>
BitBake's fetch module is a standalone piece of library code
that deals with the intricacies of downloading source code
and files from remote systems.
Fetching source code is one of the cornerstones of building software.
As such, this module forms an important part of BitBake.
</para>
<para>
The current fetch module is called "fetch2" and refers to the
fact that it is the second major version of the API.
The original version is obsolete and has been removed from the codebase.
Thus, in all cases, "fetch" refers to "fetch2" in this
manual.
</para>
<section id='the-download-fetch'>
<title>The Download (Fetch)</title>
<para>
BitBake takes several steps when fetching source code or files.
The fetcher codebase deals with two distinct processes in order:
obtaining the files from somewhere (cached or otherwise)
and then unpacking those files into a specific location and
perhaps in a specific way.
Getting and unpacking the files is often optionally followed
by patching.
Patching, however, is not covered by this module.
</para>
<para>
The code to execute the first part of this process, a fetch,
looks something like the following:
<literallayout class='monospaced'>
src_uri = (d.getVar('SRC_URI') or "").split()
fetcher = bb.fetch2.Fetch(src_uri, d)
fetcher.download()
</literallayout>
This code sets up an instance of the fetch class.
The instance uses a space-separated list of URLs from the
<link linkend='var-bb-SRC_URI'><filename>SRC_URI</filename></link>
variable and then calls the <filename>download</filename>
method to download the files.
</para>
<para>
The instantiation of the fetch class is usually followed by:
<literallayout class='monospaced'>
rootdir = l.getVar('WORKDIR')
fetcher.unpack(rootdir)
</literallayout>
This code unpacks the downloaded files to the
specified by <filename>WORKDIR</filename>.
<note>
For convenience, the naming in these examples matches
the variables used by OpenEmbedded.
If you want to see the above code in action, examine
the OpenEmbedded class file <filename>base.bbclass</filename>.
</note>
The <filename>SRC_URI</filename> and <filename>WORKDIR</filename>
variables are not hardcoded into the fetcher, since those fetcher
methods can be (and are) called with different variable names.
In OpenEmbedded for example, the shared state (sstate) code uses
the fetch module to fetch the sstate files.
</para>
<para>
When the <filename>download()</filename> method is called,
BitBake tries to resolve the URLs by looking for source files
in a specific search order:
<itemizedlist>
<listitem><para><emphasis>Pre-mirror Sites:</emphasis>
BitBake first uses pre-mirrors to try and find source files.
These locations are defined using the
<link linkend='var-bb-PREMIRRORS'><filename>PREMIRRORS</filename></link>
variable.
</para></listitem>
<listitem><para><emphasis>Source URI:</emphasis>
If pre-mirrors fail, BitBake uses the original URL (e.g from
<filename>SRC_URI</filename>).
</para></listitem>
<listitem><para><emphasis>Mirror Sites:</emphasis>
If fetch failures occur, BitBake next uses mirror locations as
defined by the
<link linkend='var-bb-MIRRORS'><filename>MIRRORS</filename></link>
variable.
</para></listitem>
</itemizedlist>
</para>
<para>
For each URL passed to the fetcher, the fetcher
calls the submodule that handles that particular URL type.
This behavior can be the source of some confusion when you
are providing URLs for the <filename>SRC_URI</filename>
variable.
Consider the following two URLs:
<literallayout class='monospaced'>
http://git.yoctoproject.org/git/poky;protocol=git
git://git.yoctoproject.org/git/poky;protocol=http
</literallayout>
In the former case, the URL is passed to the
<filename>wget</filename> fetcher, which does not
understand "git".
Therefore, the latter case is the correct form since the
Git fetcher does know how to use HTTP as a transport.
</para>
<para>
Here are some examples that show commonly used mirror
definitions:
<literallayout class='monospaced'>
PREMIRRORS ?= "\
bzr://.*/.* http://somemirror.org/sources/ \n \
cvs://.*/.* http://somemirror.org/sources/ \n \
git://.*/.* http://somemirror.org/sources/ \n \
hg://.*/.* http://somemirror.org/sources/ \n \
osc://.*/.* http://somemirror.org/sources/ \n \
p4://.*/.* http://somemirror.org/sources/ \n \
svn://.*/.* http://somemirror.org/sources/ \n"
MIRRORS =+ "\
ftp://.*/.* http://somemirror.org/sources/ \n \
http://.*/.* http://somemirror.org/sources/ \n \
https://.*/.* http://somemirror.org/sources/ \n"
</literallayout>
It is useful to note that BitBake supports
cross-URLs.
It is possible to mirror a Git repository on an HTTP
server as a tarball.
This is what the <filename>git://</filename> mapping in
the previous example does.
</para>
<para>
Since network accesses are slow, Bitbake maintains a
cache of files downloaded from the network.
Any source files that are not local (i.e.
downloaded from the Internet) are placed into the download
directory, which is specified by the
<link linkend='var-bb-DL_DIR'><filename>DL_DIR</filename></link>
variable.
</para>
<para>
File integrity is of key importance for reproducing builds.
For non-local archive downloads, the fetcher code can verify
SHA-256 and MD5 checksums to ensure the archives have been
downloaded correctly.
You can specify these checksums by using the
<filename>SRC_URI</filename> variable with the appropriate
varflags as follows:
<literallayout class='monospaced'>
SRC_URI[md5sum] = "<replaceable>value</replaceable>"
SRC_URI[sha256sum] = "<replaceable>value</replaceable>"
</literallayout>
You can also specify the checksums as parameters on the
<filename>SRC_URI</filename> as shown below:
<literallayout class='monospaced'>
SRC_URI = "http://example.com/foobar.tar.bz2;md5sum=4a8e0f237e961fd7785d19d07fdb994d"
</literallayout>
If multiple URIs exist, you can specify the checksums either
directly as in the previous example, or you can name the URLs.
The following syntax shows how you name the URIs:
<literallayout class='monospaced'>
SRC_URI = "http://example.com/foobar.tar.bz2;name=foo"
SRC_URI[foo.md5sum] = 4a8e0f237e961fd7785d19d07fdb994d
</literallayout>
After a file has been downloaded and has had its checksum checked,
a ".done" stamp is placed in <filename>DL_DIR</filename>.
BitBake uses this stamp during subsequent builds to avoid
downloading or comparing a checksum for the file again.
<note>
It is assumed that local storage is safe from data corruption.
If this were not the case, there would be bigger issues to worry about.
</note>
</para>
<para>
If
<link linkend='var-bb-BB_STRICT_CHECKSUM'><filename>BB_STRICT_CHECKSUM</filename></link>
is set, any download without a checksum triggers an
error message.
The
<link linkend='var-bb-BB_NO_NETWORK'><filename>BB_NO_NETWORK</filename></link>
variable can be used to make any attempted network access a fatal
error, which is useful for checking that mirrors are complete
as well as other things.
</para>
</section>
<section id='bb-the-unpack'>
<title>The Unpack</title>
<para>
The unpack process usually immediately follows the download.
For all URLs except Git URLs, BitBake uses the common
<filename>unpack</filename> method.
</para>
<para>
A number of parameters exist that you can specify within the
URL to govern the behavior of the unpack stage:
<itemizedlist>
<listitem><para><emphasis>unpack:</emphasis>
Controls whether the URL components are unpacked.
If set to "1", which is the default, the components
are unpacked.
If set to "0", the unpack stage leaves the file alone.
This parameter is useful when you want an archive to be
copied in and not be unpacked.
</para></listitem>
<listitem><para><emphasis>dos:</emphasis>
Applies to <filename>.zip</filename> and
<filename>.jar</filename> files and specifies whether to
use DOS line ending conversion on text files.
</para></listitem>
<listitem><para><emphasis>basepath:</emphasis>
Instructs the unpack stage to strip the specified
directories from the source path when unpacking.
</para></listitem>
<listitem><para><emphasis>subdir:</emphasis>
Unpacks the specific URL to the specified subdirectory
within the root directory.
</para></listitem>
</itemizedlist>
The unpack call automatically decompresses and extracts files
with ".Z", ".z", ".gz", ".xz", ".zip", ".jar", ".ipk", ".rpm".
".srpm", ".deb" and ".bz2" extensions as well as various combinations
of tarball extensions.
</para>
<para>
As mentioned, the Git fetcher has its own unpack method that
is optimized to work with Git trees.
Basically, this method works by cloning the tree into the final
directory.
The process is completed using references so that there is
only one central copy of the Git metadata needed.
</para>
</section>
<section id='bb-fetchers'>
<title>Fetchers</title>
<para>
As mentioned earlier, the URL prefix determines which
fetcher submodule BitBake uses.
Each submodule can support different URL parameters,
which are described in the following sections.
</para>
<section id='local-file-fetcher'>
<title>Local file fetcher (<filename>file://</filename>)</title>
<para>
This submodule handles URLs that begin with
<filename>file://</filename>.
The filename you specify within the URL can be
either an absolute or relative path to a file.
If the filename is relative, the contents of the
<link linkend='var-bb-FILESPATH'><filename>FILESPATH</filename></link>
variable is used in the same way
<filename>PATH</filename> is used to find executables.
If the file cannot be found, it is assumed that it is available in
<link linkend='var-bb-DL_DIR'><filename>DL_DIR</filename></link>
by the time the <filename>download()</filename> method is called.
</para>
<para>
If you specify a directory, the entire directory is
unpacked.
</para>
<para>
Here are a couple of example URLs, the first relative and
the second absolute:
<literallayout class='monospaced'>
SRC_URI = "file://relativefile.patch"
SRC_URI = "file:///Users/ich/very_important_software"
</literallayout>
</para>
</section>
<section id='http-ftp-fetcher'>
<title>HTTP/FTP wget fetcher (<filename>http://</filename>, <filename>ftp://</filename>, <filename>https://</filename>)</title>
<para>
This fetcher obtains files from web and FTP servers.
Internally, the fetcher uses the wget utility.
</para>
<para>
The executable and parameters used are specified by the
<filename>FETCHCMD_wget</filename> variable, which defaults
to sensible values.
The fetcher supports a parameter "downloadfilename" that
allows the name of the downloaded file to be specified.
Specifying the name of the downloaded file is useful
for avoiding collisions in
<link linkend='var-bb-DL_DIR'><filename>DL_DIR</filename></link>
when dealing with multiple files that have the same name.
</para>
<para>
Some example URLs are as follows:
<literallayout class='monospaced'>
SRC_URI = "http://oe.handhelds.org/not_there.aac"
SRC_URI = "ftp://oe.handhelds.org/not_there_as_well.aac"
SRC_URI = "ftp://you@oe.handhelds.org/home/you/secret.plan"
</literallayout>
</para>
<note>
Because URL parameters are delimited by semi-colons, this can
introduce ambiguity when parsing URLs that also contain semi-colons,
for example:
<literallayout class='monospaced'>
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47"
</literallayout>
Such URLs should should be modified by replacing semi-colons with '&amp;' characters:
<literallayout class='monospaced'>
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&amp;a=snapshot&amp;h=a5dd47"
</literallayout>
In most cases this should work. Treating semi-colons and '&amp;' in queries
identically is recommended by the World Wide Web Consortium (W3C).
Note that due to the nature of the URL, you may have to specify the name
of the downloaded file as well:
<literallayout class='monospaced'>
SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&amp;a=snapshot&amp;h=a5dd47;downloadfilename=myfile.bz2"
</literallayout>
</note>
</section>
<section id='cvs-fetcher'>
<title>CVS fetcher (<filename>(cvs://</filename>)</title>
<para>
This submodule handles checking out files from the
CVS version control system.
You can configure it using a number of different variables:
<itemizedlist>
<listitem><para><emphasis><filename>FETCHCMD_cvs</filename>:</emphasis>
The name of the executable to use when running
the <filename>cvs</filename> command.
This name is usually "cvs".
</para></listitem>
<listitem><para><emphasis><filename>SRCDATE</filename>:</emphasis>
The date to use when fetching the CVS source code.
A special value of "now" causes the checkout to
be updated on every build.
</para></listitem>
<listitem><para><emphasis><link linkend='var-bb-CVSDIR'><filename>CVSDIR</filename></link>:</emphasis>
Specifies where a temporary checkout is saved.
The location is often <filename>DL_DIR/cvs</filename>.
</para></listitem>
<listitem><para><emphasis><filename>CVS_PROXY_HOST</filename>:</emphasis>
The name to use as a "proxy=" parameter to the
<filename>cvs</filename> command.
</para></listitem>
<listitem><para><emphasis><filename>CVS_PROXY_PORT</filename>:</emphasis>
The port number to use as a "proxyport=" parameter to
the <filename>cvs</filename> command.
</para></listitem>
</itemizedlist>
As well as the standard username and password URL syntax,
you can also configure the fetcher with various URL parameters:
</para>
<para>
The supported parameters are as follows:
<itemizedlist>
<listitem><para><emphasis>"method":</emphasis>
The protocol over which to communicate with the CVS
server.
By default, this protocol is "pserver".
If "method" is set to "ext", BitBake examines the
"rsh" parameter and sets <filename>CVS_RSH</filename>.
You can use "dir" for local directories.
</para></listitem>
<listitem><para><emphasis>"module":</emphasis>
Specifies the module to check out.
You must supply this parameter.
</para></listitem>
<listitem><para><emphasis>"tag":</emphasis>
Describes which CVS TAG should be used for
the checkout.
By default, the TAG is empty.
</para></listitem>
<listitem><para><emphasis>"date":</emphasis>
Specifies a date.
If no "date" is specified, the
<link linkend='var-bb-SRCDATE'><filename>SRCDATE</filename></link>
of the configuration is used to checkout a specific date.
The special value of "now" causes the checkout to be
updated on every build.
</para></listitem>
<listitem><para><emphasis>"localdir":</emphasis>
Used to rename the module.
Effectively, you are renaming the output directory
to which the module is unpacked.
You are forcing the module into a special
directory relative to
<link linkend='var-bb-CVSDIR'><filename>CVSDIR</filename></link>.
</para></listitem>
<listitem><para><emphasis>"rsh"</emphasis>
Used in conjunction with the "method" parameter.
</para></listitem>
<listitem><para><emphasis>"scmdata":</emphasis>
Causes the CVS metadata to be maintained in the tarball
the fetcher creates when set to "keep".
The tarball is expanded into the work directory.
By default, the CVS metadata is removed.
</para></listitem>
<listitem><para><emphasis>"fullpath":</emphasis>
Controls whether the resulting checkout is at the
module level, which is the default, or is at deeper
paths.
</para></listitem>
<listitem><para><emphasis>"norecurse":</emphasis>
Causes the fetcher to only checkout the specified
directory with no recurse into any subdirectories.
</para></listitem>
<listitem><para><emphasis>"port":</emphasis>
The port to which the CVS server connects.
</para></listitem>
</itemizedlist>
Some example URLs are as follows:
<literallayout class='monospaced'>
SRC_URI = "cvs://CVSROOT;module=mymodule;tag=some-version;method=ext"
SRC_URI = "cvs://CVSROOT;module=mymodule;date=20060126;localdir=usethat"
</literallayout>
</para>
</section>
<section id='svn-fetcher'>
<title>Subversion (SVN) Fetcher (<filename>svn://</filename>)</title>
<para>
This fetcher submodule fetches code from the
Subversion source control system.
The executable used is specified by
<filename>FETCHCMD_svn</filename>, which defaults
to "svn".
The fetcher's temporary working directory is set by
<link linkend='var-bb-SVNDIR'><filename>SVNDIR</filename></link>,
which is usually <filename>DL_DIR/svn</filename>.
</para>
<para>
The supported parameters are as follows:
<itemizedlist>
<listitem><para><emphasis>"module":</emphasis>
The name of the svn module to checkout.
You must provide this parameter.
You can think of this parameter as the top-level
directory of the repository data you want.
</para></listitem>
<listitem><para><emphasis>"path_spec":</emphasis>
A specific directory in which to checkout the
specified svn module.
</para></listitem>
<listitem><para><emphasis>"protocol":</emphasis>
The protocol to use, which defaults to "svn".
If "protocol" is set to "svn+ssh", the "ssh"
parameter is also used.
</para></listitem>
<listitem><para><emphasis>"rev":</emphasis>
The revision of the source code to checkout.
</para></listitem>
<listitem><para><emphasis>"scmdata":</emphasis>
Causes the “.svn” directories to be available during
compile-time when set to "keep".
By default, these directories are removed.
</para></listitem>
<listitem><para><emphasis>"ssh":</emphasis>
An optional parameter used when "protocol" is set
to "svn+ssh".
You can use this parameter to specify the ssh
program used by svn.
</para></listitem>
<listitem><para><emphasis>"transportuser":</emphasis>
When required, sets the username for the transport.
By default, this parameter is empty.
The transport username is different than the username
used in the main URL, which is passed to the subversion
command.
</para></listitem>
</itemizedlist>
Following are three examples using svn:
<literallayout class='monospaced'>
SRC_URI = "svn://myrepos/proj1;module=vip;protocol=http;rev=667"
SRC_URI = "svn://myrepos/proj1;module=opie;protocol=svn+ssh"
SRC_URI = "svn://myrepos/proj1;module=trunk;protocol=http;path_spec=${MY_DIR}/proj1"
</literallayout>
</para>
</section>
<section id='git-fetcher'>
<title>Git Fetcher (<filename>git://</filename>)</title>
<para>
This fetcher submodule fetches code from the Git
source control system.
The fetcher works by creating a bare clone of the
remote into
<link linkend='var-bb-GITDIR'><filename>GITDIR</filename></link>,
which is usually <filename>DL_DIR/git2</filename>.
This bare clone is then cloned into the work directory during the
unpack stage when a specific tree is checked out.
This is done using alternates and by reference to
minimize the amount of duplicate data on the disk and
make the unpack process fast.
The executable used can be set with
<filename>FETCHCMD_git</filename>.
</para>
<para>
This fetcher supports the following parameters:
<itemizedlist>
<listitem><para><emphasis>"protocol":</emphasis>
The protocol used to fetch the files.
The default is "git" when a hostname is set.
If a hostname is not set, the Git protocol is "file".
You can also use "http", "https", "ssh" and "rsync".
</para></listitem>
<listitem><para><emphasis>"nocheckout":</emphasis>
Tells the fetcher to not checkout source code when
unpacking when set to "1".
Set this option for the URL where there is a custom
routine to checkout code.
The default is "0".
</para></listitem>
<listitem><para><emphasis>"rebaseable":</emphasis>
Indicates that the upstream Git repository can be rebased.
You should set this parameter to "1" if
revisions can become detached from branches.
In this case, the source mirror tarball is done per
revision, which has a loss of efficiency.
Rebasing the upstream Git repository could cause the
current revision to disappear from the upstream repository.
This option reminds the fetcher to preserve the local cache
carefully for future use.
The default value for this parameter is "0".
</para></listitem>
<listitem><para><emphasis>"nobranch":</emphasis>
Tells the fetcher to not check the SHA validation
for the branch when set to "1".
The default is "0".
Set this option for the recipe that refers to
the commit that is valid for a tag instead of
the branch.
</para></listitem>
<listitem><para><emphasis>"bareclone":</emphasis>
Tells the fetcher to clone a bare clone into the
destination directory without checking out a working tree.
Only the raw Git metadata is provided.
This parameter implies the "nocheckout" parameter as well.
</para></listitem>
<listitem><para><emphasis>"branch":</emphasis>
The branch(es) of the Git tree to clone.
If unset, this is assumed to be "master".
The number of branch parameters much match the number of
name parameters.
</para></listitem>
<listitem><para><emphasis>"rev":</emphasis>
The revision to use for the checkout.
The default is "master".
</para></listitem>
<listitem><para><emphasis>"tag":</emphasis>
Specifies a tag to use for the checkout.
To correctly resolve tags, BitBake must access the
network.
For that reason, tags are often not used.
As far as Git is concerned, the "tag" parameter behaves
effectively the same as the "rev" parameter.
</para></listitem>
<listitem><para><emphasis>"subpath":</emphasis>
Limits the checkout to a specific subpath of the tree.
By default, the whole tree is checked out.
</para></listitem>
<listitem><para><emphasis>"destsuffix":</emphasis>
The name of the path in which to place the checkout.
By default, the path is <filename>git/</filename>.
</para></listitem>
<listitem><para><emphasis>"usehead":</emphasis>
Enables local <filename>git://</filename> URLs to use the
current branch HEAD as the revision for use with
<filename>AUTOREV</filename>.
The "usehead" parameter implies no branch and only works
when the transfer protocol is
<filename>file://</filename>.
</para></listitem>
</itemizedlist>
Here are some example URLs:
<literallayout class='monospaced'>
SRC_URI = "git://git.oe.handhelds.org/git/vip.git;tag=version-1"
SRC_URI = "git://git.oe.handhelds.org/git/vip.git;protocol=http"
</literallayout>
</para>
</section>
<section id='gitsm-fetcher'>
<title>Git Submodule Fetcher (<filename>gitsm://</filename>)</title>
<para>
This fetcher submodule inherits from the
<link linkend='git-fetcher'>Git fetcher</link> and extends
that fetcher's behavior by fetching a repository's submodules.
<link linkend='var-bb-SRC_URI'><filename>SRC_URI</filename></link>
is passed to the Git fetcher as described in the
"<link linkend='git-fetcher'>Git Fetcher (<filename>git://</filename>)</link>"
section.
<note>
<title>Notes and Warnings</title>
<para>
You must clean a recipe when switching between
'<filename>git://</filename>' and
'<filename>gitsm://</filename>' URLs.
</para>
<para>
The Git Submodules fetcher is not a complete fetcher
implementation.
The fetcher has known issues where it does not use the
normal source mirroring infrastructure properly. Further,
the submodule sources it fetches are not visible to the
licensing and source archiving infrastructures.
</para>
</note>
</para>
</section>
<section id='clearcase-fetcher'>
<title>ClearCase Fetcher (<filename>ccrc://</filename>)</title>
<para>
This fetcher submodule fetches code from a
<ulink url='http://en.wikipedia.org/wiki/Rational_ClearCase'>ClearCase</ulink>
repository.
</para>
<para>
To use this fetcher, make sure your recipe has proper
<link linkend='var-bb-SRC_URI'><filename>SRC_URI</filename></link>,
<link linkend='var-bb-SRCREV'><filename>SRCREV</filename></link>, and
<link linkend='var-bb-PV'><filename>PV</filename></link> settings.
Here is an example:
<literallayout class='monospaced'>
SRC_URI = "ccrc://cc.example.org/ccrc;vob=/example_vob;module=/example_module"
SRCREV = "EXAMPLE_CLEARCASE_TAG"
PV = "${@d.getVar("SRCREV", False).replace("/", "+")}"
</literallayout>
The fetcher uses the <filename>rcleartool</filename> or
<filename>cleartool</filename> remote client, depending on
which one is available.
</para>
<para>
Following are options for the <filename>SRC_URI</filename>
statement:
<itemizedlist>
<listitem><para><emphasis><filename>vob</filename></emphasis>:
The name, which must include the
prepending "/" character, of the ClearCase VOB.
This option is required.
</para></listitem>
<listitem><para><emphasis><filename>module</filename></emphasis>:
The module, which must include the
prepending "/" character, in the selected VOB.
<note>
The <filename>module</filename> and <filename>vob</filename>
options are combined to create the <filename>load</filename> rule in
the view config spec.
As an example, consider the <filename>vob</filename> and
<filename>module</filename> values from the
<filename>SRC_URI</filename> statement at the start of this section.
Combining those values results in the following:
<literallayout class='monospaced'>
load /example_vob/example_module
</literallayout>
</note>
</para></listitem>
<listitem><para><emphasis><filename>proto</filename></emphasis>:
The protocol, which can be either <filename>http</filename> or
<filename>https</filename>.
</para></listitem>
</itemizedlist>
</para>
<para>
By default, the fetcher creates a configuration specification.
If you want this specification written to an area other than the default,
use the <filename>CCASE_CUSTOM_CONFIG_SPEC</filename> variable
in your recipe to define where the specification is written.
<note>
the <filename>SRCREV</filename> loses its functionality if you
specify this variable.
However, <filename>SRCREV</filename> is still used to label the
archive after a fetch even though it does not define what is
fetched.
</note>
</para>
<para>
Here are a couple of other behaviors worth mentioning:
<itemizedlist>
<listitem><para>
When using <filename>cleartool</filename>, the login of
<filename>cleartool</filename> is handled by the system.
The login require no special steps.
</para></listitem>
<listitem><para>
In order to use <filename>rcleartool</filename> with authenticated
users, an "rcleartool login" is necessary before using the fetcher.
</para></listitem>
</itemizedlist>
</para>
</section>
<section id='perforce-fetcher'>
<title>Perforce Fetcher (<filename>p4://</filename>)</title>
<para>
This fetcher submodule fetches code from the
<ulink url='https://www.perforce.com/'>Perforce</ulink>
source control system.
The executable used is specified by
<filename>FETCHCMD_p4</filename>, which defaults
to "p4".
The fetcher's temporary working directory is set by
<link linkend='var-bb-P4DIR'><filename>P4DIR</filename></link>,
which defaults to "DL_DIR/p4".
</para>
<para>
To use this fetcher, make sure your recipe has proper
<link linkend='var-bb-SRC_URI'><filename>SRC_URI</filename></link>,
<link linkend='var-bb-SRCREV'><filename>SRCREV</filename></link>, and
<link linkend='var-bb-PV'><filename>PV</filename></link> values.
The p4 executable is able to use the config file defined by your
system's <filename>P4CONFIG</filename> environment variable in
order to define the Perforce server URL and port, username, and
password if you do not wish to keep those values in a recipe
itself.
If you choose not to use <filename>P4CONFIG</filename>,
or to explicitly set variables that <filename>P4CONFIG</filename>
can contain, you can specify the <filename>P4PORT</filename> value,
which is the server's URL and port number, and you can
specify a username and password directly in your recipe within
<filename>SRC_URI</filename>.
</para>
<para>
Here is an example that relies on <filename>P4CONFIG</filename>
to specify the server URL and port, username, and password, and
fetches the Head Revision:
<literallayout class='monospaced'>
SRC_URI = "p4://example-depot/main/source/..."
SRCREV = "${AUTOREV}"
PV = "p4-${SRCPV}"
S = "${WORKDIR}/p4"
</literallayout>
</para>
<para>
Here is an example that specifies the server URL and port,
username, and password, and fetches a Revision based on a Label:
<literallayout class='monospaced'>
P4PORT = "tcp:p4server.example.net:1666"
SRC_URI = "p4://user:passwd@example-depot/main/source/..."
SRCREV = "release-1.0"
PV = "p4-${SRCPV}"
S = "${WORKDIR}/p4"
</literallayout>
<note>
You should always set <filename>S</filename>
to <filename>"${WORKDIR}/p4"</filename> in your recipe.
</note>
</para>
</section>
<section id='repo-fetcher'>
<title>Repo Fetcher (<filename>repo://</filename>)</title>
<para>
This fetcher submodule fetches code from
<filename>google-repo</filename> source control system.
The fetcher works by initiating and syncing sources of the
repository into
<link linkend='var-bb-REPODIR'><filename>REPODIR</filename></link>,
which is usually
<link linkend='var-bb-DL_DIR'><filename>DL_DIR</filename></link><filename>/repo</filename>.
</para>
<para>
This fetcher supports the following parameters:
<itemizedlist>
<listitem><para>
<emphasis>"protocol":</emphasis>
Protocol to fetch the repository manifest (default: git).
</para></listitem>
<listitem><para>
<emphasis>"branch":</emphasis>
Branch or tag of repository to get (default: master).
</para></listitem>
<listitem><para>
<emphasis>"manifest":</emphasis>
Name of the manifest file (default: <filename>default.xml</filename>).
</para></listitem>
</itemizedlist>
Here are some example URLs:
<literallayout class='monospaced'>
SRC_URI = "repo://REPOROOT;protocol=git;branch=some_branch;manifest=my_manifest.xml"
SRC_URI = "repo://REPOROOT;protocol=file;branch=some_branch;manifest=my_manifest.xml"
</literallayout>
</para>
</section>
<section id='other-fetchers'>
<title>Other Fetchers</title>
<para>
Fetch submodules also exist for the following:
<itemizedlist>
<listitem><para>
Bazaar (<filename>bzr://</filename>)
</para></listitem>
<listitem><para>
Trees using Git Annex (<filename>gitannex://</filename>)
</para></listitem>
<listitem><para>
Secure FTP (<filename>sftp://</filename>)
</para></listitem>
<listitem><para>
Secure Shell (<filename>ssh://</filename>)
</para></listitem>
<listitem><para>
OSC (<filename>osc://</filename>)
</para></listitem>
<listitem><para>
Mercurial (<filename>hg://</filename>)
</para></listitem>
</itemizedlist>
No documentation currently exists for these lesser used
fetcher submodules.
However, you might find the code helpful and readable.
</para>
</section>
</section>
<section id='auto-revisions'>
<title>Auto Revisions</title>
<para>
We need to document <filename>AUTOREV</filename> and
<filename>SRCREV_FORMAT</filename> here.
</para>
</section>
</chapter>

View File

@@ -1,415 +0,0 @@
.. SPDX-License-Identifier: CC-BY-2.5
===================
Hello World Example
===================
BitBake Hello World
===================
The simplest example commonly used to demonstrate any new programming
language or tool is the "`Hello
World <http://en.wikipedia.org/wiki/Hello_world_program>`__" example.
This appendix demonstrates, in tutorial form, Hello World within the
context of BitBake. The tutorial describes how to create a new project
and the applicable metadata files necessary to allow BitBake to build
it.
Obtaining BitBake
=================
See the :ref:`bitbake-user-manual/bitbake-user-manual-hello:obtaining bitbake` section for
information on how to obtain BitBake. Once you have the source code on
your machine, the BitBake directory appears as follows: ::
$ ls -al
total 100
drwxrwxr-x. 9 wmat wmat 4096 Jan 31 13:44 .
drwxrwxr-x. 3 wmat wmat 4096 Feb 4 10:45 ..
-rw-rw-r--. 1 wmat wmat 365 Nov 26 04:55 AUTHORS
drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 bin
drwxrwxr-x. 4 wmat wmat 4096 Jan 31 13:44 build
-rw-rw-r--. 1 wmat wmat 16501 Nov 26 04:55 ChangeLog
drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 classes
drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 conf
drwxrwxr-x. 3 wmat wmat 4096 Nov 26 04:55 contrib
-rw-rw-r--. 1 wmat wmat 17987 Nov 26 04:55 COPYING
drwxrwxr-x. 3 wmat wmat 4096 Nov 26 04:55 doc
-rw-rw-r--. 1 wmat wmat 69 Nov 26 04:55 .gitignore
-rw-rw-r--. 1 wmat wmat 849 Nov 26 04:55 HEADER
drwxrwxr-x. 5 wmat wmat 4096 Jan 31 13:44 lib
-rw-rw-r--. 1 wmat wmat 195 Nov 26 04:55 MANIFEST.in
-rw-rw-r--. 1 wmat wmat 2887 Nov 26 04:55 TODO
At this point, you should have BitBake cloned to a directory that
matches the previous listing except for dates and user names.
Setting Up the BitBake Environment
==================================
First, you need to be sure that you can run BitBake. Set your working
directory to where your local BitBake files are and run the following
command: ::
$ ./bin/bitbake --version
BitBake Build Tool Core version 1.23.0, bitbake version 1.23.0
The console output tells you what version
you are running.
The recommended method to run BitBake is from a directory of your
choice. To be able to run BitBake from any directory, you need to add
the executable binary to your binary to your shell's environment
``PATH`` variable. First, look at your current ``PATH`` variable by
entering the following: ::
$ echo $PATH
Next, add the directory location
for the BitBake binary to the ``PATH``. Here is an example that adds the
``/home/scott-lenovo/bitbake/bin`` directory to the front of the
``PATH`` variable: ::
$ export PATH=/home/scott-lenovo/bitbake/bin:$PATH
You should now be able to enter the ``bitbake`` command from the command
line while working from any directory.
The Hello World Example
=======================
The overall goal of this exercise is to build a complete "Hello World"
example utilizing task and layer concepts. Because this is how modern
projects such as OpenEmbedded and the Yocto Project utilize BitBake, the
example provides an excellent starting point for understanding BitBake.
To help you understand how to use BitBake to build targets, the example
starts with nothing but the ``bitbake`` command, which causes BitBake to
fail and report problems. The example progresses by adding pieces to the
build to eventually conclude with a working, minimal "Hello World"
example.
While every attempt is made to explain what is happening during the
example, the descriptions cannot cover everything. You can find further
information throughout this manual. Also, you can actively participate
in the :oe_lists:`/g/bitbake-devel`
discussion mailing list about the BitBake build tool.
.. note::
This example was inspired by and drew heavily from
`Mailing List post - The BitBake equivalent of "Hello, World!"
<http://www.mail-archive.com/yocto@yoctoproject.org/msg09379.html>`_.
As stated earlier, the goal of this example is to eventually compile
"Hello World". However, it is unknown what BitBake needs and what you
have to provide in order to achieve that goal. Recall that BitBake
utilizes three types of metadata files:
:ref:`bitbake-user-manual/bitbake-user-manual-intro:configuration files`,
:ref:`bitbake-user-manual/bitbake-user-manual-intro:classes`, and
:ref:`bitbake-user-manual/bitbake-user-manual-intro:recipes`.
But where do they go? How does BitBake find
them? BitBake's error messaging helps you answer these types of
questions and helps you better understand exactly what is going on.
Following is the complete "Hello World" example.
#. **Create a Project Directory:** First, set up a directory for the
"Hello World" project. Here is how you can do so in your home
directory: ::
$ mkdir ~/hello
$ cd ~/hello
This is the directory that
BitBake will use to do all of its work. You can use this directory
to keep all the metafiles needed by BitBake. Having a project
directory is a good way to isolate your project.
#. **Run BitBake:** At this point, you have nothing but a project
directory. Run the ``bitbake`` command and see what it does: ::
$ bitbake
The BBPATH variable is not set and bitbake did not
find a conf/bblayers.conf file in the expected location.
Maybe you accidentally invoked bitbake from the wrong directory?
DEBUG: Removed the following variables from the environment:
GNOME_DESKTOP_SESSION_ID, XDG_CURRENT_DESKTOP,
GNOME_KEYRING_CONTROL, DISPLAY, SSH_AGENT_PID, LANG, no_proxy,
XDG_SESSION_PATH, XAUTHORITY, SESSION_MANAGER, SHLVL,
MANDATORY_PATH, COMPIZ_CONFIG_PROFILE, WINDOWID, EDITOR,
GPG_AGENT_INFO, SSH_AUTH_SOCK, GDMSESSION, GNOME_KEYRING_PID,
XDG_SEAT_PATH, XDG_CONFIG_DIRS, LESSOPEN, DBUS_SESSION_BUS_ADDRESS,
_, XDG_SESSION_COOKIE, DESKTOP_SESSION, LESSCLOSE, DEFAULTS_PATH,
UBUNTU_MENUPROXY, OLDPWD, XDG_DATA_DIRS, COLORTERM, LS_COLORS
The majority of this output is specific to environment variables that
are not directly relevant to BitBake. However, the very first
message regarding the ``BBPATH`` variable and the
``conf/bblayers.conf`` file is relevant.
When you run BitBake, it begins looking for metadata files. The
:term:`BBPATH` variable is what tells BitBake where
to look for those files. ``BBPATH`` is not set and you need to set
it. Without ``BBPATH``, BitBake cannot find any configuration files
(``.conf``) or recipe files (``.bb``) at all. BitBake also cannot
find the ``bitbake.conf`` file.
#. **Setting BBPATH:** For this example, you can set ``BBPATH`` in
the same manner that you set ``PATH`` earlier in the appendix. You
should realize, though, that it is much more flexible to set the
``BBPATH`` variable up in a configuration file for each project.
From your shell, enter the following commands to set and export the
``BBPATH`` variable: ::
$ BBPATH="projectdirectory"
$ export BBPATH
Use your actual project directory in the command. BitBake uses that
directory to find the metadata it needs for your project.
.. note::
When specifying your project directory, do not use the tilde
("~") character as BitBake does not expand that character as the
shell would.
#. **Run BitBake:** Now that you have ``BBPATH`` defined, run the
``bitbake`` command again: ::
$ bitbake
ERROR: Traceback (most recent call last):
File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 163, in wrapped
return func(fn, *args)
File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 173, in parse_config_file
return bb.parse.handle(fn, data, include)
File "/home/scott-lenovo/bitbake/lib/bb/parse/__init__.py", line 99, in handle
return h['handle'](fn, data, include)
File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 120, in handle
abs_fn = resolve_file(fn, data)
File "/home/scott-lenovo/bitbake/lib/bb/parse/__init__.py", line 117, in resolve_file
raise IOError("file %s not found in %s" % (fn, bbpath))
IOError: file conf/bitbake.conf not found in /home/scott-lenovo/hello
ERROR: Unable to parse conf/bitbake.conf: file conf/bitbake.conf not found in /home/scott-lenovo/hello
This sample output shows that BitBake could not find the
``conf/bitbake.conf`` file in the project directory. This file is
the first thing BitBake must find in order to build a target. And,
since the project directory for this example is empty, you need to
provide a ``conf/bitbake.conf`` file.
#. **Creating conf/bitbake.conf:** The ``conf/bitbake.conf`` includes
a number of configuration variables BitBake uses for metadata and
recipe files. For this example, you need to create the file in your
project directory and define some key BitBake variables. For more
information on the ``bitbake.conf`` file, see
http://git.openembedded.org/bitbake/tree/conf/bitbake.conf.
Use the following commands to create the ``conf`` directory in the
project directory: ::
$ mkdir conf
From within the ``conf`` directory,
use some editor to create the ``bitbake.conf`` so that it contains
the following: ::
PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
TMPDIR = "${TOPDIR}/tmp"
CACHE = "${TMPDIR}/cache"
STAMP = "${TMPDIR}/${PN}/stamps"
T = "${TMPDIR}/${PN}/work"
B = "${TMPDIR}/${PN}"
.. note::
Without a value for PN , the variables STAMP , T , and B , prevent more
than one recipe from working. You can fix this by either setting PN to
have a value similar to what OpenEmbedded and BitBake use in the default
bitbake.conf file (see previous example). Or, by manually updating each
recipe to set PN . You will also need to include PN as part of the STAMP
, T , and B variable definitions in the local.conf file.
The ``TMPDIR`` variable establishes a directory that BitBake uses
for build output and intermediate files other than the cached
information used by the
:ref:`bitbake-user-manual/bitbake-user-manual-execution:setscene`
process. Here, the ``TMPDIR`` directory is set to ``hello/tmp``.
.. tip::
You can always safely delete the tmp directory in order to rebuild a
BitBake target. The build process creates the directory for you when you
run BitBake.
For information about each of the other variables defined in this
example, check :term:`PN`, :term:`TOPDIR`, :term:`CACHE`, :term:`STAMP`,
:term:`T` or :term:`B` to take you to the definitions in the
glossary.
#. **Run BitBake:** After making sure that the ``conf/bitbake.conf`` file
exists, you can run the ``bitbake`` command again: ::
$ bitbake
ERROR: Traceback (most recent call last):
File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 163, in wrapped
return func(fn, *args)
File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 177, in _inherit
bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data)
File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 92, in inherit
include(fn, file, lineno, d, "inherit")
File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 100, in include
raise ParseError("Could not %(error_out)s file %(fn)s" % vars(), oldfn, lineno)
ParseError: ParseError in configuration INHERITs: Could not inherit file classes/base.bbclass
ERROR: Unable to parse base: ParseError in configuration INHERITs: Could not inherit file classes/base.bbclass
In the sample output,
BitBake could not find the ``classes/base.bbclass`` file. You need
to create that file next.
#. **Creating classes/base.bbclass:** BitBake uses class files to
provide common code and functionality. The minimally required class
for BitBake is the ``classes/base.bbclass`` file. The ``base`` class
is implicitly inherited by every recipe. BitBake looks for the class
in the ``classes`` directory of the project (i.e ``hello/classes``
in this example).
Create the ``classes`` directory as follows: ::
$ cd $HOME/hello
$ mkdir classes
Move to the ``classes`` directory and then create the
``base.bbclass`` file by inserting this single line: addtask build
The minimal task that BitBake runs is the ``do_build`` task. This is
all the example needs in order to build the project. Of course, the
``base.bbclass`` can have much more depending on which build
environments BitBake is supporting.
#. **Run BitBake:** After making sure that the ``classes/base.bbclass``
file exists, you can run the ``bitbake`` command again: ::
$ bitbake
Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.
BitBake is finally reporting
no errors. However, you can see that it really does not have
anything to do. You need to create a recipe that gives BitBake
something to do.
#. **Creating a Layer:** While it is not really necessary for such a
small example, it is good practice to create a layer in which to
keep your code separate from the general metadata used by BitBake.
Thus, this example creates and uses a layer called "mylayer".
.. note::
You can find additional information on layers in the
":ref:`bitbake-user-manual/bitbake-user-manual-intro:Layers`" section.
Minimally, you need a recipe file and a layer configuration file in
your layer. The configuration file needs to be in the ``conf``
directory inside the layer. Use these commands to set up the layer
and the ``conf`` directory: ::
$ cd $HOME
$ mkdir mylayer
$ cd mylayer
$ mkdir conf
Move to the ``conf`` directory and create a ``layer.conf`` file that has the
following: ::
BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/\*.bb"
BBFILE_COLLECTIONS += "mylayer"
`BBFILE_PATTERN_mylayer := "^${LAYERDIR_RE}/"
For information on these variables, click on :term:`BBFILES`,
:term:`LAYERDIR`, :term:`BBFILE_COLLECTIONS` or :term:`BBFILE_PATTERN_mylayer <BBFILE_PATTERN>`
to go to the definitions in the glossary.
You need to create the recipe file next. Inside your layer at the
top-level, use an editor and create a recipe file named
``printhello.bb`` that has the following: ::
DESCRIPTION = "Prints Hello World"
PN = 'printhello'
PV = '1'
python do_build() {
bb.plain("********************");
bb.plain("* *");
bb.plain("* Hello, World! *");
bb.plain("* *");
bb.plain("********************");
}
The recipe file simply provides
a description of the recipe, the name, version, and the ``do_build``
task, which prints out "Hello World" to the console. For more
information on :term:`DESCRIPTION`, :term:`PN` or :term:`PV`
follow the links to the glossary.
#. **Run BitBake With a Target:** Now that a BitBake target exists, run
the command and provide that target: ::
$ cd $HOME/hello
$ bitbake printhello
ERROR: no recipe files to build, check your BBPATH and BBFILES?
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
We have created the layer with the recipe and
the layer configuration file but it still seems that BitBake cannot
find the recipe. BitBake needs a ``conf/bblayers.conf`` that lists
the layers for the project. Without this file, BitBake cannot find
the recipe.
#. **Creating conf/bblayers.conf:** BitBake uses the
``conf/bblayers.conf`` file to locate layers needed for the project.
This file must reside in the ``conf`` directory of the project (i.e.
``hello/conf`` for this example).
Set your working directory to the ``hello/conf`` directory and then
create the ``bblayers.conf`` file so that it contains the following: ::
BBLAYERS ?= " \
/home/<you>/mylayer \
"
You need to provide your own information for ``you`` in the file.
#. **Run BitBake With a Target:** Now that you have supplied the
``bblayers.conf`` file, run the ``bitbake`` command and provide the
target: ::
$ bitbake printhello
Parsing recipes: 100% |##################################################################################|
Time: 00:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
********************
* *
* Hello, World! *
* *
********************
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.
.. note::
After the first execution, re-running bitbake printhello again will not
result in a BitBake run that prints the same console output. The reason
for this is that the first time the printhello.bb recipe's do_build task
executes successfully, BitBake writes a stamp file for the task. Thus,
the next time you attempt to run the task using that same bitbake
command, BitBake notices the stamp and therefore determines that the task
does not need to be re-run. If you delete the tmp directory or run
bitbake -c clean printhello and then re-run the build, the "Hello,
World!" message will be printed again.

View File

@@ -0,0 +1,513 @@
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<appendix id='hello-world-example'>
<title>Hello World Example</title>
<section id='bitbake-hello-world'>
<title>BitBake Hello World</title>
<para>
The simplest example commonly used to demonstrate any new
programming language or tool is the
"<ulink url="http://en.wikipedia.org/wiki/Hello_world_program">Hello World</ulink>"
example.
This appendix demonstrates, in tutorial form, Hello
World within the context of BitBake.
The tutorial describes how to create a new project
and the applicable metadata files necessary to allow
BitBake to build it.
</para>
</section>
<section id='example-obtaining-bitbake'>
<title>Obtaining BitBake</title>
<para>
See the
"<link linkend='obtaining-bitbake'>Obtaining BitBake</link>"
section for information on how to obtain BitBake.
Once you have the source code on your machine, the BitBake directory
appears as follows:
<literallayout class='monospaced'>
$ ls -al
total 100
drwxrwxr-x. 9 wmat wmat 4096 Jan 31 13:44 .
drwxrwxr-x. 3 wmat wmat 4096 Feb 4 10:45 ..
-rw-rw-r--. 1 wmat wmat 365 Nov 26 04:55 AUTHORS
drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 bin
drwxrwxr-x. 4 wmat wmat 4096 Jan 31 13:44 build
-rw-rw-r--. 1 wmat wmat 16501 Nov 26 04:55 ChangeLog
drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 classes
drwxrwxr-x. 2 wmat wmat 4096 Nov 26 04:55 conf
drwxrwxr-x. 3 wmat wmat 4096 Nov 26 04:55 contrib
-rw-rw-r--. 1 wmat wmat 17987 Nov 26 04:55 COPYING
drwxrwxr-x. 3 wmat wmat 4096 Nov 26 04:55 doc
-rw-rw-r--. 1 wmat wmat 69 Nov 26 04:55 .gitignore
-rw-rw-r--. 1 wmat wmat 849 Nov 26 04:55 HEADER
drwxrwxr-x. 5 wmat wmat 4096 Jan 31 13:44 lib
-rw-rw-r--. 1 wmat wmat 195 Nov 26 04:55 MANIFEST.in
-rw-rw-r--. 1 wmat wmat 2887 Nov 26 04:55 TODO
</literallayout>
</para>
<para>
At this point, you should have BitBake cloned to
a directory that matches the previous listing except for
dates and user names.
</para>
</section>
<section id='setting-up-the-bitbake-environment'>
<title>Setting Up the BitBake Environment</title>
<para>
First, you need to be sure that you can run BitBake.
Set your working directory to where your local BitBake
files are and run the following command:
<literallayout class='monospaced'>
$ ./bin/bitbake --version
BitBake Build Tool Core version 1.23.0, bitbake version 1.23.0
</literallayout>
The console output tells you what version you are running.
</para>
<para>
The recommended method to run BitBake is from a directory of your
choice.
To be able to run BitBake from any directory, you need to add the
executable binary to your binary to your shell's environment
<filename>PATH</filename> variable.
First, look at your current <filename>PATH</filename> variable
by entering the following:
<literallayout class='monospaced'>
$ echo $PATH
</literallayout>
Next, add the directory location for the BitBake binary to the
<filename>PATH</filename>.
Here is an example that adds the
<filename>/home/scott-lenovo/bitbake/bin</filename> directory
to the front of the <filename>PATH</filename> variable:
<literallayout class='monospaced'>
$ export PATH=/home/scott-lenovo/bitbake/bin:$PATH
</literallayout>
You should now be able to enter the <filename>bitbake</filename>
command from the command line while working from any directory.
</para>
</section>
<section id='the-hello-world-example'>
<title>The Hello World Example</title>
<para>
The overall goal of this exercise is to build a
complete "Hello World" example utilizing task and layer
concepts.
Because this is how modern projects such as OpenEmbedded and
the Yocto Project utilize BitBake, the example
provides an excellent starting point for understanding
BitBake.
</para>
<para>
To help you understand how to use BitBake to build targets,
the example starts with nothing but the <filename>bitbake</filename>
command, which causes BitBake to fail and report problems.
The example progresses by adding pieces to the build to
eventually conclude with a working, minimal "Hello World"
example.
</para>
<para>
While every attempt is made to explain what is happening during
the example, the descriptions cannot cover everything.
You can find further information throughout this manual.
Also, you can actively participate in the
<ulink url='http://lists.openembedded.org/mailman/listinfo/bitbake-devel'></ulink>
discussion mailing list about the BitBake build tool.
</para>
<note>
This example was inspired by and drew heavily from
<ulink url="http://www.mail-archive.com/yocto@yoctoproject.org/msg09379.html">Mailing List post - The BitBake equivalent of "Hello, World!"</ulink>.
</note>
<para>
As stated earlier, the goal of this example
is to eventually compile "Hello World".
However, it is unknown what BitBake needs and what you have
to provide in order to achieve that goal.
Recall that BitBake utilizes three types of metadata files:
<link linkend='configuration-files'>Configuration Files</link>,
<link linkend='classes'>Classes</link>, and
<link linkend='recipes'>Recipes</link>.
But where do they go?
How does BitBake find them?
BitBake's error messaging helps you answer these types of questions
and helps you better understand exactly what is going on.
</para>
<para>
Following is the complete "Hello World" example.
</para>
<orderedlist>
<listitem><para><emphasis>Create a Project Directory:</emphasis>
First, set up a directory for the "Hello World" project.
Here is how you can do so in your home directory:
<literallayout class='monospaced'>
$ mkdir ~/hello
$ cd ~/hello
</literallayout>
This is the directory that BitBake will use to do all of
its work.
You can use this directory to keep all the metafiles needed
by BitBake.
Having a project directory is a good way to isolate your
project.
</para></listitem>
<listitem><para><emphasis>Run Bitbake:</emphasis>
At this point, you have nothing but a project directory.
Run the <filename>bitbake</filename> command and see what
it does:
<literallayout class='monospaced'>
$ bitbake
The BBPATH variable is not set and bitbake did not
find a conf/bblayers.conf file in the expected location.
Maybe you accidentally invoked bitbake from the wrong directory?
DEBUG: Removed the following variables from the environment:
GNOME_DESKTOP_SESSION_ID, XDG_CURRENT_DESKTOP,
GNOME_KEYRING_CONTROL, DISPLAY, SSH_AGENT_PID, LANG, no_proxy,
XDG_SESSION_PATH, XAUTHORITY, SESSION_MANAGER, SHLVL,
MANDATORY_PATH, COMPIZ_CONFIG_PROFILE, WINDOWID, EDITOR,
GPG_AGENT_INFO, SSH_AUTH_SOCK, GDMSESSION, GNOME_KEYRING_PID,
XDG_SEAT_PATH, XDG_CONFIG_DIRS, LESSOPEN, DBUS_SESSION_BUS_ADDRESS,
_, XDG_SESSION_COOKIE, DESKTOP_SESSION, LESSCLOSE, DEFAULTS_PATH,
UBUNTU_MENUPROXY, OLDPWD, XDG_DATA_DIRS, COLORTERM, LS_COLORS
</literallayout>
The majority of this output is specific to environment variables
that are not directly relevant to BitBake.
However, the very first message regarding the
<filename>BBPATH</filename> variable and the
<filename>conf/bblayers.conf</filename> file
is relevant.</para>
<para>
When you run BitBake, it begins looking for metadata files.
The
<link linkend='var-bb-BBPATH'><filename>BBPATH</filename></link>
variable is what tells BitBake where to look for those files.
<filename>BBPATH</filename> is not set and you need to set it.
Without <filename>BBPATH</filename>, Bitbake cannot
find any configuration files (<filename>.conf</filename>)
or recipe files (<filename>.bb</filename>) at all.
BitBake also cannot find the <filename>bitbake.conf</filename>
file.
</para></listitem>
<listitem><para><emphasis>Setting <filename>BBPATH</filename>:</emphasis>
For this example, you can set <filename>BBPATH</filename>
in the same manner that you set <filename>PATH</filename>
earlier in the appendix.
You should realize, though, that it is much more flexible to set the
<filename>BBPATH</filename> variable up in a configuration
file for each project.</para>
<para>From your shell, enter the following commands to set and
export the <filename>BBPATH</filename> variable:
<literallayout class='monospaced'>
$ BBPATH="<replaceable>projectdirectory</replaceable>"
$ export BBPATH
</literallayout>
Use your actual project directory in the command.
BitBake uses that directory to find the metadata it needs for
your project.
<note>
When specifying your project directory, do not use the
tilde ("~") character as BitBake does not expand that character
as the shell would.
</note>
</para></listitem>
<listitem><para><emphasis>Run Bitbake:</emphasis>
Now that you have <filename>BBPATH</filename> defined, run
the <filename>bitbake</filename> command again:
<literallayout class='monospaced'>
$ bitbake
ERROR: Traceback (most recent call last):
File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 163, in wrapped
return func(fn, *args)
File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 173, in parse_config_file
return bb.parse.handle(fn, data, include)
File "/home/scott-lenovo/bitbake/lib/bb/parse/__init__.py", line 99, in handle
return h['handle'](fn, data, include)
File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 120, in handle
abs_fn = resolve_file(fn, data)
File "/home/scott-lenovo/bitbake/lib/bb/parse/__init__.py", line 117, in resolve_file
raise IOError("file %s not found in %s" % (fn, bbpath))
IOError: file conf/bitbake.conf not found in /home/scott-lenovo/hello
ERROR: Unable to parse conf/bitbake.conf: file conf/bitbake.conf not found in /home/scott-lenovo/hello
</literallayout>
This sample output shows that BitBake could not find the
<filename>conf/bitbake.conf</filename> file in the project
directory.
This file is the first thing BitBake must find in order
to build a target.
And, since the project directory for this example is
empty, you need to provide a <filename>conf/bitbake.conf</filename>
file.
</para></listitem>
<listitem><para><emphasis>Creating <filename>conf/bitbake.conf</filename>:</emphasis>
The <filename>conf/bitbake.conf</filename> includes a number of
configuration variables BitBake uses for metadata and recipe
files.
For this example, you need to create the file in your project directory
and define some key BitBake variables.
For more information on the <filename>bitbake.conf</filename> file,
see
<ulink url='http://git.openembedded.org/bitbake/tree/conf/bitbake.conf'></ulink>.
</para>
<para>Use the following commands to create the <filename>conf</filename>
directory in the project directory:
<literallayout class='monospaced'>
$ mkdir conf
</literallayout>
From within the <filename>conf</filename> directory, use
some editor to create the <filename>bitbake.conf</filename>
so that it contains the following:
<literallayout class='monospaced'>
<link linkend='var-bb-PN'>PN</link> = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
</literallayout>
<literallayout class='monospaced'>
TMPDIR = "${<link linkend='var-bb-TOPDIR'>TOPDIR</link>}/tmp"
<link linkend='var-bb-CACHE'>CACHE</link> = "${TMPDIR}/cache"
<link linkend='var-bb-STAMP'>STAMP</link> = "${TMPDIR}/${PN}/stamps"
<link linkend='var-bb-T'>T</link> = "${TMPDIR}/${PN}/work"
<link linkend='var-bb-B'>B</link> = "${TMPDIR}/${PN}"
</literallayout>
<note>
Without a value for <filename>PN</filename>, the
variables <filename>STAMP</filename>,
<filename>T</filename>, and <filename>B</filename>,
prevent more than one recipe from working. You can fix
this by either setting <filename>PN</filename> to have
a value similar to what OpenEmbedded and BitBake use
in the default <filename>bitbake.conf</filename> file
(see previous example). Or, by manually updating each
recipe to set <filename>PN</filename>. You will also
need to include <filename>PN</filename> as part of the
<filename>STAMP</filename>, <filename>T</filename>, and
<filename>B</filename> variable definitions in the
<filename>local.conf</filename> file.
</note>
The <filename>TMPDIR</filename> variable establishes a directory
that BitBake uses for build output and intermediate files other
than the cached information used by the
<link linkend='setscene'>Setscene</link> process.
Here, the <filename>TMPDIR</filename> directory is set to
<filename>hello/tmp</filename>.
<note><title>Tip</title>
You can always safely delete the <filename>tmp</filename>
directory in order to rebuild a BitBake target.
The build process creates the directory for you
when you run BitBake.
</note></para>
<para>For information about each of the other variables defined in this
example, click on the links to take you to the definitions in
the glossary.
</para></listitem>
<listitem><para><emphasis>Run Bitbake:</emphasis>
After making sure that the <filename>conf/bitbake.conf</filename>
file exists, you can run the <filename>bitbake</filename>
command again:
<literallayout class='monospaced'>
$ bitbake
ERROR: Traceback (most recent call last):
File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 163, in wrapped
return func(fn, *args)
File "/home/scott-lenovo/bitbake/lib/bb/cookerdata.py", line 177, in _inherit
bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data)
File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 92, in inherit
include(fn, file, lineno, d, "inherit")
File "/home/scott-lenovo/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 100, in include
raise ParseError("Could not %(error_out)s file %(fn)s" % vars(), oldfn, lineno)
ParseError: ParseError in configuration INHERITs: Could not inherit file classes/base.bbclass
ERROR: Unable to parse base: ParseError in configuration INHERITs: Could not inherit file classes/base.bbclass
</literallayout>
In the sample output, BitBake could not find the
<filename>classes/base.bbclass</filename> file.
You need to create that file next.
</para></listitem>
<listitem><para><emphasis>Creating <filename>classes/base.bbclass</filename>:</emphasis>
BitBake uses class files to provide common code and functionality.
The minimally required class for BitBake is the
<filename>classes/base.bbclass</filename> file.
The <filename>base</filename> class is implicitly inherited by
every recipe.
BitBake looks for the class in the <filename>classes</filename>
directory of the project (i.e <filename>hello/classes</filename>
in this example).
</para>
<para>Create the <filename>classes</filename> directory as follows:
<literallayout class='monospaced'>
$ cd $HOME/hello
$ mkdir classes
</literallayout>
Move to the <filename>classes</filename> directory and then
create the <filename>base.bbclass</filename> file by inserting
this single line:
<literallayout class='monospaced'>
addtask build
</literallayout>
The minimal task that BitBake runs is the
<filename>do_build</filename> task.
This is all the example needs in order to build the project.
Of course, the <filename>base.bbclass</filename> can have much
more depending on which build environments BitBake is
supporting.
</para></listitem>
<listitem><para><emphasis>Run Bitbake:</emphasis>
After making sure that the <filename>classes/base.bbclass</filename>
file exists, you can run the <filename>bitbake</filename>
command again:
<literallayout class='monospaced'>
$ bitbake
Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.
</literallayout>
BitBake is finally reporting no errors.
However, you can see that it really does not have anything
to do.
You need to create a recipe that gives BitBake something to do.
</para></listitem>
<listitem><para><emphasis>Creating a Layer:</emphasis>
While it is not really necessary for such a small example,
it is good practice to create a layer in which to keep your
code separate from the general metadata used by BitBake.
Thus, this example creates and uses a layer called "mylayer".
<note>
You can find additional information on layers in the
"<link linkend='layers'>Layers</link>" section.
</note></para>
<para>Minimally, you need a recipe file and a layer configuration
file in your layer.
The configuration file needs to be in the <filename>conf</filename>
directory inside the layer.
Use these commands to set up the layer and the <filename>conf</filename>
directory:
<literallayout class='monospaced'>
$ cd $HOME
$ mkdir mylayer
$ cd mylayer
$ mkdir conf
</literallayout>
Move to the <filename>conf</filename> directory and create a
<filename>layer.conf</filename> file that has the following:
<literallayout class='monospaced'>
BBPATH .= ":${<link linkend='var-bb-LAYERDIR'>LAYERDIR</link>}"
<link linkend='var-bb-BBFILES'>BBFILES</link> += "${LAYERDIR}/*.bb"
<link linkend='var-bb-BBFILE_COLLECTIONS'>BBFILE_COLLECTIONS</link> += "mylayer"
<link linkend='var-bb-BBFILE_PATTERN'>BBFILE_PATTERN_mylayer</link> := "^${LAYERDIR_RE}/"
</literallayout>
For information on these variables, click the links
to go to the definitions in the glossary.</para>
<para>You need to create the recipe file next.
Inside your layer at the top-level, use an editor and create
a recipe file named <filename>printhello.bb</filename> that
has the following:
<literallayout class='monospaced'>
<link linkend='var-bb-DESCRIPTION'>DESCRIPTION</link> = "Prints Hello World"
<link linkend='var-bb-PN'>PN</link> = 'printhello'
<link linkend='var-bb-PV'>PV</link> = '1'
python do_build() {
bb.plain("********************");
bb.plain("* *");
bb.plain("* Hello, World! *");
bb.plain("* *");
bb.plain("********************");
}
</literallayout>
The recipe file simply provides a description of the
recipe, the name, version, and the <filename>do_build</filename>
task, which prints out "Hello World" to the console.
For more information on these variables, follow the links
to the glossary.
</para></listitem>
<listitem><para><emphasis>Run Bitbake With a Target:</emphasis>
Now that a BitBake target exists, run the command and provide
that target:
<literallayout class='monospaced'>
$ cd $HOME/hello
$ bitbake printhello
ERROR: no recipe files to build, check your BBPATH and BBFILES?
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
</literallayout>
We have created the layer with the recipe and the layer
configuration file but it still seems that BitBake cannot
find the recipe.
BitBake needs a <filename>conf/bblayers.conf</filename> that
lists the layers for the project.
Without this file, BitBake cannot find the recipe.
</para></listitem>
<listitem><para><emphasis>Creating <filename>conf/bblayers.conf</filename>:</emphasis>
BitBake uses the <filename>conf/bblayers.conf</filename> file
to locate layers needed for the project.
This file must reside in the <filename>conf</filename> directory
of the project (i.e. <filename>hello/conf</filename> for this
example).</para>
<para>Set your working directory to the <filename>hello/conf</filename>
directory and then create the <filename>bblayers.conf</filename>
file so that it contains the following:
<literallayout class='monospaced'>
BBLAYERS ?= " \
/home/&lt;you&gt;/mylayer \
"
</literallayout>
You need to provide your own information for
<filename>you</filename> in the file.
</para></listitem>
<listitem><para><emphasis>Run Bitbake With a Target:</emphasis>
Now that you have supplied the <filename>bblayers.conf</filename>
file, run the <filename>bitbake</filename> command and provide
the target:
<literallayout class='monospaced'>
$ bitbake printhello
Parsing recipes: 100% |##################################################################################|
Time: 00:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
********************
* *
* Hello, World! *
* *
********************
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.
</literallayout>
BitBake finds the <filename>printhello</filename> recipe and
successfully runs the task.
<note>
After the first execution, re-running
<filename>bitbake printhello</filename> again will not
result in a BitBake run that prints the same console
output.
The reason for this is that the first time the
<filename>printhello.bb</filename> recipe's
<filename>do_build</filename> task executes
successfully, BitBake writes a stamp file for the task.
Thus, the next time you attempt to run the task
using that same <filename>bitbake</filename> command,
BitBake notices the stamp and therefore determines
that the task does not need to be re-run.
If you delete the <filename>tmp</filename> directory
or run <filename>bitbake -c clean printhello</filename>
and then re-run the build, the "Hello, World!" message will
be printed again.
</note>
</para></listitem>
</orderedlist>
</section>
</appendix>

View File

@@ -1,651 +0,0 @@
.. SPDX-License-Identifier: CC-BY-2.5
========
Overview
========
|
Welcome to the BitBake User Manual. This manual provides information on
the BitBake tool. The information attempts to be as independent as
possible regarding systems that use BitBake, such as OpenEmbedded and
the Yocto Project. In some cases, scenarios or examples within the
context of a build system are used in the manual to help with
understanding. For these cases, the manual clearly states the context.
.. _intro:
Introduction
============
Fundamentally, BitBake is a generic task execution engine that allows
shell and Python tasks to be run efficiently and in parallel while
working within complex inter-task dependency constraints. One of
BitBake's main users, OpenEmbedded, takes this core and builds embedded
Linux software stacks using a task-oriented approach.
Conceptually, BitBake is similar to GNU Make in some regards but has
significant differences:
- BitBake executes tasks according to provided metadata that builds up
the tasks. Metadata is stored in recipe (``.bb``) and related recipe
"append" (``.bbappend``) files, configuration (``.conf``) and
underlying include (``.inc``) files, and in class (``.bbclass``)
files. The metadata provides BitBake with instructions on what tasks
to run and the dependencies between those tasks.
- BitBake includes a fetcher library for obtaining source code from
various places such as local files, source control systems, or
websites.
- The instructions for each unit to be built (e.g. a piece of software)
are known as "recipe" files and contain all the information about the
unit (dependencies, source file locations, checksums, description and
so on).
- BitBake includes a client/server abstraction and can be used from a
command line or used as a service over XML-RPC and has several
different user interfaces.
History and Goals
=================
BitBake was originally a part of the OpenEmbedded project. It was
inspired by the Portage package management system used by the Gentoo
Linux distribution. On December 7, 2004, OpenEmbedded project team
member Chris Larson split the project into two distinct pieces:
- BitBake, a generic task executor
- OpenEmbedded, a metadata set utilized by BitBake
Today, BitBake is the primary basis of the
`OpenEmbedded <http://www.openembedded.org/>`__ project, which is being
used to build and maintain Linux distributions such as the `Angstrom
Distribution <http://www.angstrom-distribution.org/>`__, and which is
also being used as the build tool for Linux projects such as the `Yocto
Project <http://www.yoctoproject.org>`__.
Prior to BitBake, no other build tool adequately met the needs of an
aspiring embedded Linux distribution. All of the build systems used by
traditional desktop Linux distributions lacked important functionality,
and none of the ad hoc Buildroot-based systems, prevalent in the
embedded space, were scalable or maintainable.
Some important original goals for BitBake were:
- Handle cross-compilation.
- Handle inter-package dependencies (build time on target architecture,
build time on native architecture, and runtime).
- Support running any number of tasks within a given package,
including, but not limited to, fetching upstream sources, unpacking
them, patching them, configuring them, and so forth.
- Be Linux distribution agnostic for both build and target systems.
- Be architecture agnostic.
- Support multiple build and target operating systems (e.g. Cygwin, the
BSDs, and so forth).
- Be self-contained, rather than tightly integrated into the build
machine's root filesystem.
- Handle conditional metadata on the target architecture, operating
system, distribution, and machine.
- Be easy to use the tools to supply local metadata and packages
against which to operate.
- Be easy to use BitBake to collaborate between multiple projects for
their builds.
- Provide an inheritance mechanism to share common metadata between
many packages.
Over time it became apparent that some further requirements were
necessary:
- Handle variants of a base recipe (e.g. native, sdk, and multilib).
- Split metadata into layers and allow layers to enhance or override
other layers.
- Allow representation of a given set of input variables to a task as a
checksum. Based on that checksum, allow acceleration of builds with
prebuilt components.
BitBake satisfies all the original requirements and many more with
extensions being made to the basic functionality to reflect the
additional requirements. Flexibility and power have always been the
priorities. BitBake is highly extensible and supports embedded Python
code and execution of any arbitrary tasks.
.. _Concepts:
Concepts
========
BitBake is a program written in the Python language. At the highest
level, BitBake interprets metadata, decides what tasks are required to
run, and executes those tasks. Similar to GNU Make, BitBake controls how
software is built. GNU Make achieves its control through "makefiles",
while BitBake uses "recipes".
BitBake extends the capabilities of a simple tool like GNU Make by
allowing for the definition of much more complex tasks, such as
assembling entire embedded Linux distributions.
The remainder of this section introduces several concepts that should be
understood in order to better leverage the power of BitBake.
Recipes
-------
BitBake Recipes, which are denoted by the file extension ``.bb``, are
the most basic metadata files. These recipe files provide BitBake with
the following:
- Descriptive information about the package (author, homepage, license,
and so on)
- The version of the recipe
- Existing dependencies (both build and runtime dependencies)
- Where the source code resides and how to fetch it
- Whether the source code requires any patches, where to find them, and
how to apply them
- How to configure and compile the source code
- How to assemble the generated artifacts into one or more installable
packages
- Where on the target machine to install the package or packages
created
Within the context of BitBake, or any project utilizing BitBake as its
build system, files with the ``.bb`` extension are referred to as
recipes.
.. note::
The term "package" is also commonly used to describe recipes.
However, since the same word is used to describe packaged output from
a project, it is best to maintain a single descriptive term -
"recipes". Put another way, a single "recipe" file is quite capable
of generating a number of related but separately installable
"packages". In fact, that ability is fairly common.
Configuration Files
-------------------
Configuration files, which are denoted by the ``.conf`` extension,
define various configuration variables that govern the project's build
process. These files fall into several areas that define machine
configuration, distribution configuration, possible compiler tuning,
general common configuration, and user configuration. The main
configuration file is the sample ``bitbake.conf`` file, which is located
within the BitBake source tree ``conf`` directory.
Classes
-------
Class files, which are denoted by the ``.bbclass`` extension, contain
information that is useful to share between metadata files. The BitBake
source tree currently comes with one class metadata file called
``base.bbclass``. You can find this file in the ``classes`` directory.
The ``base.bbclass`` class files is special since it is always included
automatically for all recipes and classes. This class contains
definitions for standard basic tasks such as fetching, unpacking,
configuring (empty by default), compiling (runs any Makefile present),
installing (empty by default) and packaging (empty by default). These
tasks are often overridden or extended by other classes added during the
project development process.
Layers
------
Layers allow you to isolate different types of customizations from each
other. While you might find it tempting to keep everything in one layer
when working on a single project, the more modular your metadata, the
easier it is to cope with future changes.
To illustrate how you can use layers to keep things modular, consider
customizations you might make to support a specific target machine.
These types of customizations typically reside in a special layer,
rather than a general layer, called a Board Support Package (BSP) layer.
Furthermore, the machine customizations should be isolated from recipes
and metadata that support a new GUI environment, for example. This
situation gives you a couple of layers: one for the machine
configurations and one for the GUI environment. It is important to
understand, however, that the BSP layer can still make machine-specific
additions to recipes within the GUI environment layer without polluting
the GUI layer itself with those machine-specific changes. You can
accomplish this through a recipe that is a BitBake append
(``.bbappend``) file.
.. _append-bbappend-files:
Append Files
------------
Append files, which are files that have the ``.bbappend`` file
extension, extend or override information in an existing recipe file.
BitBake expects every append file to have a corresponding recipe file.
Furthermore, the append file and corresponding recipe file must use the
same root filename. The filenames can differ only in the file type
suffix used (e.g. ``formfactor_0.0.bb`` and
``formfactor_0.0.bbappend``).
Information in append files extends or overrides the information in the
underlying, similarly-named recipe files.
When you name an append file, you can use the "``%``" wildcard character
to allow for matching recipe names. For example, suppose you have an
append file named as follows: ::
busybox_1.21.%.bbappend
That append file
would match any ``busybox_1.21.``\ x\ ``.bb`` version of the recipe. So,
the append file would match the following recipe names: ::
busybox_1.21.1.bb
busybox_1.21.2.bb
busybox_1.21.3.bb
.. note::
The use of the " % " character is limited in that it only works directly in
front of the .bbappend portion of the append file's name. You cannot use the
wildcard character in any other location of the name.
If the ``busybox`` recipe was updated to ``busybox_1.3.0.bb``, the
append name would not match. However, if you named the append file
``busybox_1.%.bbappend``, then you would have a match.
In the most general case, you could name the append file something as
simple as ``busybox_%.bbappend`` to be entirely version independent.
Obtaining BitBake
=================
You can obtain BitBake several different ways:
- **Cloning BitBake:** Using Git to clone the BitBake source code
repository is the recommended method for obtaining BitBake. Cloning
the repository makes it easy to get bug fixes and have access to
stable branches and the master branch. Once you have cloned BitBake,
you should use the latest stable branch for development since the
master branch is for BitBake development and might contain less
stable changes.
You usually need a version of BitBake that matches the metadata you
are using. The metadata is generally backwards compatible but not
forward compatible.
Here is an example that clones the BitBake repository: ::
$ git clone git://git.openembedded.org/bitbake
This command clones the BitBake
Git repository into a directory called ``bitbake``. Alternatively,
you can designate a directory after the ``git clone`` command if you
want to call the new directory something other than ``bitbake``. Here
is an example that names the directory ``bbdev``: ::
$ git clone git://git.openembedded.org/bitbake bbdev
- **Installation using your Distribution Package Management System:**
This method is not recommended because the BitBake version that is
provided by your distribution, in most cases, is several releases
behind a snapshot of the BitBake repository.
- **Taking a snapshot of BitBake:** Downloading a snapshot of BitBake
from the source code repository gives you access to a known branch or
release of BitBake.
.. note::
Cloning the Git repository, as described earlier, is the preferred
method for getting BitBake. Cloning the repository makes it easier
to update as patches are added to the stable branches.
The following example downloads a snapshot of BitBake version 1.17.0: ::
$ wget http://git.openembedded.org/bitbake/snapshot/bitbake-1.17.0.tar.gz
$ tar zxpvf bitbake-1.17.0.tar.gz
After extraction of the tarball using
the tar utility, you have a directory entitled ``bitbake-1.17.0``.
- **Using the BitBake that Comes With Your Build Checkout:** A final
possibility for getting a copy of BitBake is that it already comes
with your checkout of a larger BitBake-based build system, such as
Poky. Rather than manually checking out individual layers and gluing
them together yourself, you can check out an entire build system. The
checkout will already include a version of BitBake that has been
thoroughly tested for compatibility with the other components. For
information on how to check out a particular BitBake-based build
system, consult that build system's supporting documentation.
.. _bitbake-user-manual-command:
The BitBake Command
===================
The ``bitbake`` command is the primary interface to the BitBake tool.
This section presents the BitBake command syntax and provides several
execution examples.
Usage and syntax
----------------
Following is the usage and syntax for BitBake: ::
$ bitbake -h
Usage: bitbake [options] [recipename/target recipe:do_task ...]
Executes the specified task (default is 'build') for a given set of target recipes (.bb files).
It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH which
will provide the layer, BBFILES and other configuration information.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-b BUILDFILE, --buildfile=BUILDFILE
Execute tasks from a specific .bb recipe directly.
WARNING: Does not handle any dependencies from other
recipes.
-k, --continue Continue as much as possible after an error. While the
target that failed and anything depending on it cannot
be built, as much as possible will be built before
stopping.
-f, --force Force the specified targets/task to run (invalidating
any existing stamp file).
-c CMD, --cmd=CMD Specify the task to execute. The exact options
available depend on the metadata. Some examples might
be 'compile' or 'populate_sysroot' or 'listtasks' may
give a list of the tasks available.
-C INVALIDATE_STAMP, --clear-stamp=INVALIDATE_STAMP
Invalidate the stamp for the specified task such as
'compile' and then run the default task for the
specified target(s).
-r PREFILE, --read=PREFILE
Read the specified file before bitbake.conf.
-R POSTFILE, --postread=POSTFILE
Read the specified file after bitbake.conf.
-v, --verbose Enable tracing of shell tasks (with 'set -x'). Also
print bb.note(...) messages to stdout (in addition to
writing them to ${T}/log.do_&lt;task&gt;).
-D, --debug Increase the debug level. You can specify this more
than once. -D sets the debug level to 1, where only
bb.debug(1, ...) messages are printed to stdout; -DD
sets the debug level to 2, where both bb.debug(1, ...)
and bb.debug(2, ...) messages are printed; etc.
Without -D, no debug messages are printed. Note that
-D only affects output to stdout. All debug messages
are written to ${T}/log.do_taskname, regardless of the
debug level.
-q, --quiet Output less log message data to the terminal. You can
specify this more than once.
-n, --dry-run Don't execute, just go through the motions.
-S SIGNATURE_HANDLER, --dump-signatures=SIGNATURE_HANDLER
Dump out the signature construction information, with
no task execution. The SIGNATURE_HANDLER parameter is
passed to the handler. Two common values are none and
printdiff but the handler may define more/less. none
means only dump the signature, printdiff means compare
the dumped signature with the cached one.
-p, --parse-only Quit after parsing the BB recipes.
-s, --show-versions Show current and preferred versions of all recipes.
-e, --environment Show the global or per-recipe environment complete
with information about where variables were
set/changed.
-g, --graphviz Save dependency tree information for the specified
targets in the dot syntax.
-I EXTRA_ASSUME_PROVIDED, --ignore-deps=EXTRA_ASSUME_PROVIDED
Assume these dependencies don't exist and are already
provided (equivalent to ASSUME_PROVIDED). Useful to
make dependency graphs more appealing
-l DEBUG_DOMAINS, --log-domains=DEBUG_DOMAINS
Show debug logging for the specified logging domains
-P, --profile Profile the command and save reports.
-u UI, --ui=UI The user interface to use (knotty, ncurses or taskexp
- default knotty).
--token=XMLRPCTOKEN Specify the connection token to be used when
connecting to a remote server.
--revisions-changed Set the exit code depending on whether upstream
floating revisions have changed or not.
--server-only Run bitbake without a UI, only starting a server
(cooker) process.
-B BIND, --bind=BIND The name/address for the bitbake xmlrpc server to bind
to.
-T SERVER_TIMEOUT, --idle-timeout=SERVER_TIMEOUT
Set timeout to unload bitbake server due to
inactivity, set to -1 means no unload, default:
Environment variable BB_SERVER_TIMEOUT.
--no-setscene Do not run any setscene tasks. sstate will be ignored
and everything needed, built.
--setscene-only Only run setscene tasks, don't run any real tasks.
--remote-server=REMOTE_SERVER
Connect to the specified server.
-m, --kill-server Terminate any running bitbake server.
--observe-only Connect to a server as an observing-only client.
--status-only Check the status of the remote bitbake server.
-w WRITEEVENTLOG, --write-log=WRITEEVENTLOG
Writes the event log of the build to a bitbake event
json file. Use '' (empty string) to assign the name
automatically.
--runall=RUNALL Run the specified task for any recipe in the taskgraph
of the specified target (even if it wouldn't otherwise
have run).
--runonly=RUNONLY Run only the specified task within the taskgraph of
the specified targets (and any task dependencies those
tasks may have).
.. _bitbake-examples:
Examples
--------
This section presents some examples showing how to use BitBake.
.. _example-executing-a-task-against-a-single-recipe:
Executing a Task Against a Single Recipe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Executing tasks for a single recipe file is relatively simple. You
specify the file in question, and BitBake parses it and executes the
specified task. If you do not specify a task, BitBake executes the
default task, which is "build". BitBake obeys inter-task dependencies
when doing so.
The following command runs the build task, which is the default task, on
the ``foo_1.0.bb`` recipe file: ::
$ bitbake -b foo_1.0.bb
The following command runs the clean task on the ``foo.bb`` recipe file: ::
$ bitbake -b foo.bb -c clean
.. note::
The "-b" option explicitly does not handle recipe dependencies. Other
than for debugging purposes, it is instead recommended that you use
the syntax presented in the next section.
Executing Tasks Against a Set of Recipe Files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There are a number of additional complexities introduced when one wants
to manage multiple ``.bb`` files. Clearly there needs to be a way to
tell BitBake what files are available and, of those, which you want to
execute. There also needs to be a way for each recipe to express its
dependencies, both for build-time and runtime. There must be a way for
you to express recipe preferences when multiple recipes provide the same
functionality, or when there are multiple versions of a recipe.
The ``bitbake`` command, when not using "--buildfile" or "-b" only
accepts a "PROVIDES". You cannot provide anything else. By default, a
recipe file generally "PROVIDES" its "packagename" as shown in the
following example: ::
$ bitbake foo
This next example "PROVIDES" the
package name and also uses the "-c" option to tell BitBake to just
execute the ``do_clean`` task: ::
$ bitbake -c clean foo
Executing a List of Task and Recipe Combinations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The BitBake command line supports specifying different tasks for
individual targets when you specify multiple targets. For example,
suppose you had two targets (or recipes) ``myfirstrecipe`` and
``mysecondrecipe`` and you needed BitBake to run ``taskA`` for the first
recipe and ``taskB`` for the second recipe: ::
$ bitbake myfirstrecipe:do_taskA mysecondrecipe:do_taskB
Generating Dependency Graphs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BitBake is able to generate dependency graphs using the ``dot`` syntax.
You can convert these graphs into images using the ``dot`` tool from
`Graphviz <http://www.graphviz.org>`__.
When you generate a dependency graph, BitBake writes two files to the
current working directory:
- ``task-depends.dot``: Shows dependencies between tasks. These
dependencies match BitBake's internal task execution list.
- ``pn-buildlist``: Shows a simple list of targets that are to be
built.
To stop depending on common depends, use the "-I" depend option and
BitBake omits them from the graph. Leaving this information out can
produce more readable graphs. This way, you can remove from the graph
``DEPENDS`` from inherited classes such as ``base.bbclass``.
Here are two examples that create dependency graphs. The second example
omits depends common in OpenEmbedded from the graph: ::
$ bitbake -g foo
$ bitbake -g -I virtual/kernel -I eglibc foo
Executing a Multiple Configuration Build
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BitBake is able to build multiple images or packages using a single
command where the different targets require different configurations
(multiple configuration builds). Each target, in this scenario, is
referred to as a "multiconfig".
To accomplish a multiple configuration build, you must define each
target's configuration separately using a parallel configuration file in
the build directory. The location for these multiconfig configuration
files is specific. They must reside in the current build directory in a
sub-directory of ``conf`` named ``multiconfig``. Following is an example
for two separate targets:
.. image:: figures/bb_multiconfig_files.png
:align: center
The reason for this required file hierarchy is because the ``BBPATH``
variable is not constructed until the layers are parsed. Consequently,
using the configuration file as a pre-configuration file is not possible
unless it is located in the current working directory.
Minimally, each configuration file must define the machine and the
temporary directory BitBake uses for the build. Suggested practice
dictates that you do not overlap the temporary directories used during
the builds.
Aside from separate configuration files for each target, you must also
enable BitBake to perform multiple configuration builds. Enabling is
accomplished by setting the
:term:`BBMULTICONFIG` variable in the
``local.conf`` configuration file. As an example, suppose you had
configuration files for ``target1`` and ``target2`` defined in the build
directory. The following statement in the ``local.conf`` file both
enables BitBake to perform multiple configuration builds and specifies
the two extra multiconfigs: ::
BBMULTICONFIG = "target1 target2"
Once the target configuration files are in place and BitBake has been
enabled to perform multiple configuration builds, use the following
command form to start the builds: ::
$ bitbake [mc:multiconfigname:]target [[[mc:multiconfigname:]target] ... ]
Here is an example for two extra multiconfigs: ``target1`` and ``target2``: ::
$ bitbake mc::target mc:target1:target mc:target2:target
.. _bb-enabling-multiple-configuration-build-dependencies:
Enabling Multiple Configuration Build Dependencies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sometimes dependencies can exist between targets (multiconfigs) in a
multiple configuration build. For example, suppose that in order to
build an image for a particular architecture, the root filesystem of
another build for a different architecture needs to exist. In other
words, the image for the first multiconfig depends on the root
filesystem of the second multiconfig. This dependency is essentially
that the task in the recipe that builds one multiconfig is dependent on
the completion of the task in the recipe that builds another
multiconfig.
To enable dependencies in a multiple configuration build, you must
declare the dependencies in the recipe using the following statement
form: ::
task_or_package[mcdepends] = "mc:from_multiconfig:to_multiconfig:recipe_name:task_on_which_to_depend"
To better show how to use this statement, consider an example with two
multiconfigs: ``target1`` and ``target2``: ::
image_task[mcdepends] = "mc:target1:target2:image2:rootfs_task"
In this example, the
``from_multiconfig`` is "target1" and the ``to_multiconfig`` is "target2". The
task on which the image whose recipe contains image_task depends on the
completion of the rootfs_task used to build out image2, which is
associated with the "target2" multiconfig.
Once you set up this dependency, you can build the "target1" multiconfig
using a BitBake command as follows: ::
$ bitbake mc:target1:image1
This command executes all the tasks needed to create ``image1`` for the "target1"
multiconfig. Because of the dependency, BitBake also executes through
the ``rootfs_task`` for the "target2" multiconfig build.
Having a recipe depend on the root filesystem of another build might not
seem that useful. Consider this change to the statement in the image1
recipe: ::
image_task[mcdepends] = "mc:target1:target2:image2:image_task"
In this case, BitBake must create ``image2`` for the "target2" build since
the "target1" build depends on it.
Because "target1" and "target2" are enabled for multiple configuration
builds and have separate configuration files, BitBake places the
artifacts for each build in the respective temporary build directories.

View File

@@ -0,0 +1,894 @@
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<chapter id="bitbake-user-manual-intro">
<title>Overview</title>
<para>
Welcome to the BitBake User Manual.
This manual provides information on the BitBake tool.
The information attempts to be as independent as possible regarding
systems that use BitBake, such as OpenEmbedded and the
Yocto Project.
In some cases, scenarios or examples within the context of
a build system are used in the manual to help with understanding.
For these cases, the manual clearly states the context.
</para>
<section id="intro">
<title>Introduction</title>
<para>
Fundamentally, BitBake is a generic task execution
engine that allows shell and Python tasks to be run
efficiently and in parallel while working within
complex inter-task dependency constraints.
One of BitBake's main users, OpenEmbedded, takes this core
and builds embedded Linux software stacks using
a task-oriented approach.
</para>
<para>
Conceptually, BitBake is similar to GNU Make in
some regards but has significant differences:
<itemizedlist>
<listitem><para>
BitBake executes tasks according to provided
metadata that builds up the tasks.
Metadata is stored in recipe (<filename>.bb</filename>)
and related recipe "append" (<filename>.bbappend</filename>)
files, configuration (<filename>.conf</filename>) and
underlying include (<filename>.inc</filename>) files, and
in class (<filename>.bbclass</filename>) files.
The metadata provides
BitBake with instructions on what tasks to run and
the dependencies between those tasks.
</para></listitem>
<listitem><para>
BitBake includes a fetcher library for obtaining source
code from various places such as local files, source control
systems, or websites.
</para></listitem>
<listitem><para>
The instructions for each unit to be built (e.g. a piece
of software) are known as "recipe" files and
contain all the information about the unit
(dependencies, source file locations, checksums, description
and so on).
</para></listitem>
<listitem><para>
BitBake includes a client/server abstraction and can
be used from a command line or used as a service over
XML-RPC and has several different user interfaces.
</para></listitem>
</itemizedlist>
</para>
</section>
<section id="history-and-goals">
<title>History and Goals</title>
<para>
BitBake was originally a part of the OpenEmbedded project.
It was inspired by the Portage package management system
used by the Gentoo Linux distribution.
On December 7, 2004, OpenEmbedded project team member
Chris Larson split the project into two distinct pieces:
<itemizedlist>
<listitem><para>BitBake, a generic task executor</para></listitem>
<listitem><para>OpenEmbedded, a metadata set utilized by
BitBake</para></listitem>
</itemizedlist>
Today, BitBake is the primary basis of the
<ulink url="http://www.openembedded.org/">OpenEmbedded</ulink>
project, which is being used to build and maintain Linux
distributions such as the
<ulink url='http://www.angstrom-distribution.org/'>Angstrom Distribution</ulink>,
and which is also being used as the build tool for Linux projects
such as the
<ulink url='http://www.yoctoproject.org'>Yocto Project</ulink>.
</para>
<para>
Prior to BitBake, no other build tool adequately met the needs of
an aspiring embedded Linux distribution.
All of the build systems used by traditional desktop Linux
distributions lacked important functionality, and none of the
ad hoc Buildroot-based systems, prevalent in the
embedded space, were scalable or maintainable.
</para>
<para>
Some important original goals for BitBake were:
<itemizedlist>
<listitem><para>
Handle cross-compilation.
</para></listitem>
<listitem><para>
Handle inter-package dependencies (build time on
target architecture, build time on native
architecture, and runtime).
</para></listitem>
<listitem><para>
Support running any number of tasks within a given
package, including, but not limited to, fetching
upstream sources, unpacking them, patching them,
configuring them, and so forth.
</para></listitem>
<listitem><para>
Be Linux distribution agnostic for both build and
target systems.
</para></listitem>
<listitem><para>
Be architecture agnostic.
</para></listitem>
<listitem><para>
Support multiple build and target operating systems
(e.g. Cygwin, the BSDs, and so forth).
</para></listitem>
<listitem><para>
Be self contained, rather than tightly
integrated into the build machine's root
filesystem.
</para></listitem>
<listitem><para>
Handle conditional metadata on the target architecture,
operating system, distribution, and machine.
</para></listitem>
<listitem><para>
Be easy to use the tools to supply local metadata and packages
against which to operate.
</para></listitem>
<listitem><para>
Be easy to use BitBake to collaborate between multiple
projects for their builds.
</para></listitem>
<listitem><para>
Provide an inheritance mechanism to share
common metadata between many packages.
</para></listitem>
</itemizedlist>
Over time it became apparent that some further requirements
were necessary:
<itemizedlist>
<listitem><para>
Handle variants of a base recipe (e.g. native, sdk,
and multilib).
</para></listitem>
<listitem><para>
Split metadata into layers and allow layers
to enhance or override other layers.
</para></listitem>
<listitem><para>
Allow representation of a given set of input variables
to a task as a checksum.
Based on that checksum, allow acceleration of builds
with prebuilt components.
</para></listitem>
</itemizedlist>
BitBake satisfies all the original requirements and many more
with extensions being made to the basic functionality to
reflect the additional requirements.
Flexibility and power have always been the priorities.
BitBake is highly extensible and supports embedded Python code and
execution of any arbitrary tasks.
</para>
</section>
<section id="Concepts">
<title>Concepts</title>
<para>
BitBake is a program written in the Python language.
At the highest level, BitBake interprets metadata, decides
what tasks are required to run, and executes those tasks.
Similar to GNU Make, BitBake controls how software is
built.
GNU Make achieves its control through "makefiles", while
BitBake uses "recipes".
</para>
<para>
BitBake extends the capabilities of a simple
tool like GNU Make by allowing for the definition of much more
complex tasks, such as assembling entire embedded Linux
distributions.
</para>
<para>
The remainder of this section introduces several concepts
that should be understood in order to better leverage
the power of BitBake.
</para>
<section id='recipes'>
<title>Recipes</title>
<para>
BitBake Recipes, which are denoted by the file extension
<filename>.bb</filename>, are the most basic metadata files.
These recipe files provide BitBake with the following:
<itemizedlist>
<listitem><para>Descriptive information about the
package (author, homepage, license, and so on)</para></listitem>
<listitem><para>The version of the recipe</para></listitem>
<listitem><para>Existing dependencies (both build
and runtime dependencies)</para></listitem>
<listitem><para>Where the source code resides and
how to fetch it</para></listitem>
<listitem><para>Whether the source code requires
any patches, where to find them, and how to apply
them</para></listitem>
<listitem><para>How to configure and compile the
source code</para></listitem>
<listitem><para>Where on the target machine to install the
package or packages created</para></listitem>
</itemizedlist>
</para>
<para>
Within the context of BitBake, or any project utilizing BitBake
as its build system, files with the <filename>.bb</filename>
extension are referred to as recipes.
<note>
The term "package" is also commonly used to describe recipes.
However, since the same word is used to describe packaged
output from a project, it is best to maintain a single
descriptive term - "recipes".
Put another way, a single "recipe" file is quite capable
of generating a number of related but separately installable
"packages".
In fact, that ability is fairly common.
</note>
</para>
</section>
<section id='configuration-files'>
<title>Configuration Files</title>
<para>
Configuration files, which are denoted by the
<filename>.conf</filename> extension, define
various configuration variables that govern the project's build
process.
These files fall into several areas that define
machine configuration options, distribution configuration
options, compiler tuning options, general common
configuration options, and user configuration options.
The main configuration file is the sample
<filename>bitbake.conf</filename> file, which is
located within the BitBake source tree
<filename>conf</filename> directory.
</para>
</section>
<section id='classes'>
<title>Classes</title>
<para>
Class files, which are denoted by the
<filename>.bbclass</filename> extension, contain
information that is useful to share between metadata files.
The BitBake source tree currently comes with one class metadata file
called <filename>base.bbclass</filename>.
You can find this file in the
<filename>classes</filename> directory.
The <filename>base.bbclass</filename> class files is special since it
is always included automatically for all recipes
and classes.
This class contains definitions for standard basic tasks such
as fetching, unpacking, configuring (empty by default),
compiling (runs any Makefile present), installing (empty by
default) and packaging (empty by default).
These tasks are often overridden or extended by other classes
added during the project development process.
</para>
</section>
<section id='layers'>
<title>Layers</title>
<para>
Layers allow you to isolate different types of
customizations from each other.
While you might find it tempting to keep everything in one layer
when working on a single project, the more modular you organize
your metadata, the easier it is to cope with future changes.
</para>
<para>
To illustrate how you can use layers to keep things modular,
consider customizations you might make to support a specific target machine.
These types of customizations typically reside in a special layer,
rather than a general layer, called a Board Support Package (BSP)
Layer.
Furthermore, the machine customizations should be isolated from
recipes and metadata that support a new GUI environment, for
example.
This situation gives you a couple of layers: one for the machine
configurations and one for the GUI environment.
It is important to understand, however, that the BSP layer can still
make machine-specific additions to recipes within
the GUI environment layer without polluting the GUI layer itself
with those machine-specific changes.
You can accomplish this through a recipe that is a BitBake append
(<filename>.bbappend</filename>) file.
</para>
</section>
<section id='append-bbappend-files'>
<title>Append Files</title>
<para>
Append files, which are files that have the
<filename>.bbappend</filename> file extension, extend or
override information in an existing recipe file.
</para>
<para>
BitBake expects every append file to have a corresponding recipe file.
Furthermore, the append file and corresponding recipe file
must use the same root filename.
The filenames can differ only in the file type suffix used
(e.g. <filename>formfactor_0.0.bb</filename> and
<filename>formfactor_0.0.bbappend</filename>).
</para>
<para>
Information in append files extends or
overrides the information in the underlying,
similarly-named recipe files.
</para>
<para>
When you name an append file, you can use the
"<filename>%</filename>" wildcard character to allow for matching
recipe names.
For example, suppose you have an append file named
as follows:
<literallayout class='monospaced'>
busybox_1.21.%.bbappend
</literallayout>
That append file would match any <filename>busybox_1.21.</filename><replaceable>x</replaceable><filename>.bb</filename>
version of the recipe.
So, the append file would match the following recipe names:
<literallayout class='monospaced'>
busybox_1.21.1.bb
busybox_1.21.2.bb
busybox_1.21.3.bb
</literallayout>
<note><title>Important</title>
The use of the "<filename>%</filename>" character
is limited in that it only works directly in front of the
<filename>.bbappend</filename> portion of the append file's
name.
You cannot use the wildcard character in any other
location of the name.
</note>
If the <filename>busybox</filename> recipe was updated to
<filename>busybox_1.3.0.bb</filename>, the append name would not
match.
However, if you named the append file
<filename>busybox_1.%.bbappend</filename>, then you would have a match.
</para>
<para>
In the most general case, you could name the append file something as
simple as <filename>busybox_%.bbappend</filename> to be entirely
version independent.
</para>
</section>
</section>
<section id='obtaining-bitbake'>
<title>Obtaining BitBake</title>
<para>
You can obtain BitBake several different ways:
<itemizedlist>
<listitem><para><emphasis>Cloning BitBake:</emphasis>
Using Git to clone the BitBake source code repository
is the recommended method for obtaining BitBake.
Cloning the repository makes it easy to get bug fixes
and have access to stable branches and the master
branch.
Once you have cloned BitBake, you should use
the latest stable
branch for development since the master branch is for
BitBake development and might contain less stable changes.
</para>
<para>You usually need a version of BitBake
that matches the metadata you are using.
The metadata is generally backwards compatible but
not forward compatible.</para>
<para>Here is an example that clones the BitBake repository:
<literallayout class='monospaced'>
$ git clone git://git.openembedded.org/bitbake
</literallayout>
This command clones the BitBake Git repository into a
directory called <filename>bitbake</filename>.
Alternatively, you can
designate a directory after the
<filename>git clone</filename> command
if you want to call the new directory something
other than <filename>bitbake</filename>.
Here is an example that names the directory
<filename>bbdev</filename>:
<literallayout class='monospaced'>
$ git clone git://git.openembedded.org/bitbake bbdev
</literallayout></para></listitem>
<listitem><para><emphasis>Installation using your Distribution
Package Management System:</emphasis>
This method is not
recommended because the BitBake version that is
provided by your distribution, in most cases,
is several
releases behind a snapshot of the BitBake repository.
</para></listitem>
<listitem><para><emphasis>Taking a snapshot of BitBake:</emphasis>
Downloading a snapshot of BitBake from the
source code repository gives you access to a known
branch or release of BitBake.
<note>
Cloning the Git repository, as described earlier,
is the preferred method for getting BitBake.
Cloning the repository makes it easier to update as
patches are added to the stable branches.
</note></para>
<para>The following example downloads a snapshot of
BitBake version 1.17.0:
<literallayout class='monospaced'>
$ wget http://git.openembedded.org/bitbake/snapshot/bitbake-1.17.0.tar.gz
$ tar zxpvf bitbake-1.17.0.tar.gz
</literallayout>
After extraction of the tarball using the tar utility,
you have a directory entitled
<filename>bitbake-1.17.0</filename>.
</para></listitem>
<listitem><para><emphasis>Using the BitBake that Comes With Your
Build Checkout:</emphasis>
A final possibility for getting a copy of BitBake is that it
already comes with your checkout of a larger Bitbake-based build
system, such as Poky.
Rather than manually checking out individual layers and
gluing them together yourself, you can check
out an entire build system.
The checkout will already include a version of BitBake that
has been thoroughly tested for compatibility with the other
components.
For information on how to check out a particular BitBake-based
build system, consult that build system's supporting documentation.
</para></listitem>
</itemizedlist>
</para>
</section>
<section id="bitbake-user-manual-command">
<title>The BitBake Command</title>
<para>
The <filename>bitbake</filename> command is the primary interface
to the BitBake tool.
This section presents the BitBake command syntax and provides
several execution examples.
</para>
<section id='usage-and-syntax'>
<title>Usage and syntax</title>
<para>
Following is the usage and syntax for BitBake:
<literallayout class='monospaced'>
$ bitbake -h
Usage: bitbake [options] [recipename/target recipe:do_task ...]
Executes the specified task (default is 'build') for a given set of target recipes (.bb files).
It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH which
will provide the layer, BBFILES and other configuration information.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-b BUILDFILE, --buildfile=BUILDFILE
Execute tasks from a specific .bb recipe directly.
WARNING: Does not handle any dependencies from other
recipes.
-k, --continue Continue as much as possible after an error. While the
target that failed and anything depending on it cannot
be built, as much as possible will be built before
stopping.
-f, --force Force the specified targets/task to run (invalidating
any existing stamp file).
-c CMD, --cmd=CMD Specify the task to execute. The exact options
available depend on the metadata. Some examples might
be 'compile' or 'populate_sysroot' or 'listtasks' may
give a list of the tasks available.
-C INVALIDATE_STAMP, --clear-stamp=INVALIDATE_STAMP
Invalidate the stamp for the specified task such as
'compile' and then run the default task for the
specified target(s).
-r PREFILE, --read=PREFILE
Read the specified file before bitbake.conf.
-R POSTFILE, --postread=POSTFILE
Read the specified file after bitbake.conf.
-v, --verbose Enable tracing of shell tasks (with 'set -x'). Also
print bb.note(...) messages to stdout (in addition to
writing them to ${T}/log.do_&lt;task&gt;).
-D, --debug Increase the debug level. You can specify this more
than once. -D sets the debug level to 1, where only
bb.debug(1, ...) messages are printed to stdout; -DD
sets the debug level to 2, where both bb.debug(1, ...)
and bb.debug(2, ...) messages are printed; etc.
Without -D, no debug messages are printed. Note that
-D only affects output to stdout. All debug messages
are written to ${T}/log.do_taskname, regardless of the
debug level.
-q, --quiet Output less log message data to the terminal. You can
specify this more than once.
-n, --dry-run Don't execute, just go through the motions.
-S SIGNATURE_HANDLER, --dump-signatures=SIGNATURE_HANDLER
Dump out the signature construction information, with
no task execution. The SIGNATURE_HANDLER parameter is
passed to the handler. Two common values are none and
printdiff but the handler may define more/less. none
means only dump the signature, printdiff means compare
the dumped signature with the cached one.
-p, --parse-only Quit after parsing the BB recipes.
-s, --show-versions Show current and preferred versions of all recipes.
-e, --environment Show the global or per-recipe environment complete
with information about where variables were
set/changed.
-g, --graphviz Save dependency tree information for the specified
targets in the dot syntax.
-I EXTRA_ASSUME_PROVIDED, --ignore-deps=EXTRA_ASSUME_PROVIDED
Assume these dependencies don't exist and are already
provided (equivalent to ASSUME_PROVIDED). Useful to
make dependency graphs more appealing
-l DEBUG_DOMAINS, --log-domains=DEBUG_DOMAINS
Show debug logging for the specified logging domains
-P, --profile Profile the command and save reports.
-u UI, --ui=UI The user interface to use (knotty, ncurses or taskexp
- default knotty).
--token=XMLRPCTOKEN Specify the connection token to be used when
connecting to a remote server.
--revisions-changed Set the exit code depending on whether upstream
floating revisions have changed or not.
--server-only Run bitbake without a UI, only starting a server
(cooker) process.
-B BIND, --bind=BIND The name/address for the bitbake xmlrpc server to bind
to.
-T SERVER_TIMEOUT, --idle-timeout=SERVER_TIMEOUT
Set timeout to unload bitbake server due to
inactivity, set to -1 means no unload, default:
Environment variable BB_SERVER_TIMEOUT.
--no-setscene Do not run any setscene tasks. sstate will be ignored
and everything needed, built.
--setscene-only Only run setscene tasks, don't run any real tasks.
--remote-server=REMOTE_SERVER
Connect to the specified server.
-m, --kill-server Terminate any running bitbake server.
--observe-only Connect to a server as an observing-only client.
--status-only Check the status of the remote bitbake server.
-w WRITEEVENTLOG, --write-log=WRITEEVENTLOG
Writes the event log of the build to a bitbake event
json file. Use '' (empty string) to assign the name
automatically.
--runall=RUNALL Run the specified task for any recipe in the taskgraph
of the specified target (even if it wouldn't otherwise
have run).
--runonly=RUNONLY Run only the specified task within the taskgraph of
the specified targets (and any task dependencies those
tasks may have).
</literallayout>
</para>
</section>
<section id='bitbake-examples'>
<title>Examples</title>
<para>
This section presents some examples showing how to use BitBake.
</para>
<section id='example-executing-a-task-against-a-single-recipe'>
<title>Executing a Task Against a Single Recipe</title>
<para>
Executing tasks for a single recipe file is relatively simple.
You specify the file in question, and BitBake parses
it and executes the specified task.
If you do not specify a task, BitBake executes the default
task, which is "build”.
BitBake obeys inter-task dependencies when doing
so.
</para>
<para>
The following command runs the build task, which is
the default task, on the <filename>foo_1.0.bb</filename>
recipe file:
<literallayout class='monospaced'>
$ bitbake -b foo_1.0.bb
</literallayout>
The following command runs the clean task on the
<filename>foo.bb</filename> recipe file:
<literallayout class='monospaced'>
$ bitbake -b foo.bb -c clean
</literallayout>
<note>
The "-b" option explicitly does not handle recipe
dependencies.
Other than for debugging purposes, it is instead
recommended that you use the syntax presented in the
next section.
</note>
</para>
</section>
<section id='executing-tasks-against-a-set-of-recipe-files'>
<title>Executing Tasks Against a Set of Recipe Files</title>
<para>
There are a number of additional complexities introduced
when one wants to manage multiple <filename>.bb</filename>
files.
Clearly there needs to be a way to tell BitBake what
files are available and, of those, which you
want to execute.
There also needs to be a way for each recipe
to express its dependencies, both for build-time and
runtime.
There must be a way for you to express recipe preferences
when multiple recipes provide the same functionality, or when
there are multiple versions of a recipe.
</para>
<para>
The <filename>bitbake</filename> command, when not using
"--buildfile" or "-b" only accepts a "PROVIDES".
You cannot provide anything else.
By default, a recipe file generally "PROVIDES" its
"packagename" as shown in the following example:
<literallayout class='monospaced'>
$ bitbake foo
</literallayout>
This next example "PROVIDES" the package name and also uses
the "-c" option to tell BitBake to just execute the
<filename>do_clean</filename> task:
<literallayout class='monospaced'>
$ bitbake -c clean foo
</literallayout>
</para>
</section>
<section id='executing-a-list-of-task-and-recipe-combinations'>
<title>Executing a List of Task and Recipe Combinations</title>
<para>
The BitBake command line supports specifying different
tasks for individual targets when you specify multiple
targets.
For example, suppose you had two targets (or recipes)
<filename>myfirstrecipe</filename> and
<filename>mysecondrecipe</filename> and you needed
BitBake to run <filename>taskA</filename> for the first
recipe and <filename>taskB</filename> for the second
recipe:
<literallayout class='monospaced'>
$ bitbake myfirstrecipe:do_taskA mysecondrecipe:do_taskB
</literallayout>
</para>
</section>
<section id='generating-dependency-graphs'>
<title>Generating Dependency Graphs</title>
<para>
BitBake is able to generate dependency graphs using
the <filename>dot</filename> syntax.
You can convert these graphs into images using the
<filename>dot</filename> tool from
<ulink url='http://www.graphviz.org'>Graphviz</ulink>.
</para>
<para>
When you generate a dependency graph, BitBake writes three files
to the current working directory:
<itemizedlist>
<listitem><para>
<emphasis><filename>recipe-depends.dot</filename>:</emphasis>
Shows dependencies between recipes (i.e. a collapsed version of
<filename>task-depends.dot</filename>).
</para></listitem>
<listitem><para>
<emphasis><filename>task-depends.dot</filename>:</emphasis>
Shows dependencies between tasks.
These dependencies match BitBake's internal task execution list.
</para></listitem>
<listitem><para>
<emphasis><filename>pn-buildlist</filename>:</emphasis>
Shows a simple list of targets that are to be built.
</para></listitem>
</itemizedlist>
</para>
<para>
To stop depending on common depends, use the "-I" depend
option and BitBake omits them from the graph.
Leaving this information out can produce more readable graphs.
This way, you can remove from the graph
<filename>DEPENDS</filename> from inherited classes
such as <filename>base.bbclass</filename>.
</para>
<para>
Here are two examples that create dependency graphs.
The second example omits depends common in OpenEmbedded from
the graph:
<literallayout class='monospaced'>
$ bitbake -g foo
$ bitbake -g -I virtual/kernel -I eglibc foo
</literallayout>
</para>
</section>
<section id='executing-a-multiple-configuration-build'>
<title>Executing a Multiple Configuration Build</title>
<para>
BitBake is able to build multiple images or packages
using a single command where the different targets
require different configurations (multiple configuration
builds).
Each target, in this scenario, is referred to as a
"multiconfig".
</para>
<para>
To accomplish a multiple configuration build, you must
define each target's configuration separately using
a parallel configuration file in the build directory.
The location for these multiconfig configuration files
is specific.
They must reside in the current build directory in
a sub-directory of <filename>conf</filename> named
<filename>multiconfig</filename>.
Following is an example for two separate targets:
<imagedata fileref="figures/bb_multiconfig_files.png" align="center" width="4in" depth="3in" />
</para>
<para>
The reason for this required file hierarchy
is because the <filename>BBPATH</filename> variable
is not constructed until the layers are parsed.
Consequently, using the configuration file as a
pre-configuration file is not possible unless it is
located in the current working directory.
</para>
<para>
Minimally, each configuration file must define the
machine and the temporary directory BitBake uses
for the build.
Suggested practice dictates that you do not
overlap the temporary directories used during the
builds.
</para>
<para>
Aside from separate configuration files for each
target, you must also enable BitBake to perform multiple
configuration builds.
Enabling is accomplished by setting the
<link linkend='var-bb-BBMULTICONFIG'><filename>BBMULTICONFIG</filename></link>
variable in the <filename>local.conf</filename>
configuration file.
As an example, suppose you had configuration files
for <filename>target1</filename> and
<filename>target2</filename> defined in the build
directory.
The following statement in the
<filename>local.conf</filename> file both enables
BitBake to perform multiple configuration builds and
specifies the two multiconfigs:
<literallayout class='monospaced'>
BBMULTICONFIG = "target1 target2"
</literallayout>
</para>
<para>
Once the target configuration files are in place and
BitBake has been enabled to perform multiple configuration
builds, use the following command form to start the
builds:
<literallayout class='monospaced'>
$ bitbake [multiconfig:<replaceable>multiconfigname</replaceable>:]<replaceable>target</replaceable> [[[multiconfig:<replaceable>multiconfigname</replaceable>:]<replaceable>target</replaceable>] ... ]
</literallayout>
Here is an example for two multiconfigs:
<filename>target1</filename> and
<filename>target2</filename>:
<literallayout class='monospaced'>
$ bitbake multiconfig:target1:<replaceable>target</replaceable> multiconfig:target2:<replaceable>target</replaceable>
</literallayout>
</para>
</section>
<section id='bb-enabling-multiple-configuration-build-dependencies'>
<title>Enabling Multiple Configuration Build Dependencies</title>
<para>
Sometimes dependencies can exist between targets
(multiconfigs) in a multiple configuration build.
For example, suppose that in order to build an image
for a particular architecture, the root filesystem of
another build for a different architecture needs to
exist.
In other words, the image for the first multiconfig depends
on the root filesystem of the second multiconfig.
This dependency is essentially that the task in the recipe
that builds one multiconfig is dependent on the
completion of the task in the recipe that builds
another multiconfig.
</para>
<para>
To enable dependencies in a multiple configuration
build, you must declare the dependencies in the recipe
using the following statement form:
<literallayout class='monospaced'>
<replaceable>task_or_package</replaceable>[mcdepends] = "multiconfig:<replaceable>from_multiconfig</replaceable>:<replaceable>to_multiconfig</replaceable>:<replaceable>recipe_name</replaceable>:<replaceable>task_on_which_to_depend</replaceable>"
</literallayout>
To better show how to use this statement, consider an
example with two multiconfigs: <filename>target1</filename>
and <filename>target2</filename>:
<literallayout class='monospaced'>
<replaceable>image_task</replaceable>[mcdepends] = "multiconfig:target1:target2:<replaceable>image2</replaceable>:<replaceable>rootfs_task</replaceable>"
</literallayout>
In this example, the
<replaceable>from_multiconfig</replaceable> is "target1" and
the <replaceable>to_multiconfig</replaceable> is "target2".
The task on which the image whose recipe contains
<replaceable>image_task</replaceable> depends on the
completion of the <replaceable>rootfs_task</replaceable>
used to build out <replaceable>image2</replaceable>, which
is associated with the "target2" multiconfig.
</para>
<para>
Once you set up this dependency, you can build the
"target1" multiconfig using a BitBake command as follows:
<literallayout class='monospaced'>
$ bitbake multiconfig:target1:<replaceable>image1</replaceable>
</literallayout>
This command executes all the tasks needed to create
<replaceable>image1</replaceable> for the "target1"
multiconfig.
Because of the dependency, BitBake also executes through
the <replaceable>rootfs_task</replaceable> for the "target2"
multiconfig build.
</para>
<para>
Having a recipe depend on the root filesystem of another
build might not seem that useful.
Consider this change to the statement in the
<replaceable>image1</replaceable> recipe:
<literallayout class='monospaced'>
<replaceable>image_task</replaceable>[mcdepends] = "multiconfig:target1:target2:<replaceable>image2</replaceable>:<replaceable>image_task</replaceable>"
</literallayout>
In this case, BitBake must create
<replaceable>image2</replaceable> for the "target2"
build since the "target1" build depends on it.
</para>
<para>
Because "target1" and "target2" are enabled for multiple
configuration builds and have separate configuration
files, BitBake places the artifacts for each build in the
respective temporary build directories.
</para>
</section>
</section>
</section>
</chapter>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,984 @@
/*
Generic XHTML / DocBook XHTML CSS Stylesheet.
Browser wrangling and typographic design by
Oyvind Kolas / pippin@gimp.org
Customised for Poky by
Matthew Allum / mallum@o-hand.com
Thanks to:
Liam R. E. Quin
William Skaggs
Jakub Steiner
Structure
---------
The stylesheet is divided into the following sections:
Positioning
Margins, paddings, width, font-size, clearing.
Decorations
Borders, style
Colors
Colors
Graphics
Graphical backgrounds
Nasty IE tweaks
Workarounds needed to make it work in internet explorer,
currently makes the stylesheet non validating, but up until
this point it is validating.
Mozilla extensions
Transparency for footer
Rounded corners on boxes
*/
/*************** /
/ Positioning /
/ ***************/
body {
font-family: Verdana, Sans, sans-serif;
min-width: 640px;
width: 80%;
margin: 0em auto;
padding: 2em 5em 5em 5em;
color: #333;
}
h1,h2,h3,h4,h5,h6,h7 {
font-family: Arial, Sans;
color: #00557D;
clear: both;
}
h1 {
font-size: 2em;
text-align: left;
padding: 0em 0em 0em 0em;
margin: 2em 0em 0em 0em;
}
h2.subtitle {
margin: 0.10em 0em 3.0em 0em;
padding: 0em 0em 0em 0em;
font-size: 1.8em;
padding-left: 20%;
font-weight: normal;
font-style: italic;
}
h2 {
margin: 2em 0em 0.66em 0em;
padding: 0.5em 0em 0em 0em;
font-size: 1.5em;
font-weight: bold;
}
h3.subtitle {
margin: 0em 0em 1em 0em;
padding: 0em 0em 0em 0em;
font-size: 142.14%;
text-align: right;
}
h3 {
margin: 1em 0em 0.5em 0em;
padding: 1em 0em 0em 0em;
font-size: 140%;
font-weight: bold;
}
h4 {
margin: 1em 0em 0.5em 0em;
padding: 1em 0em 0em 0em;
font-size: 120%;
font-weight: bold;
}
h5 {
margin: 1em 0em 0.5em 0em;
padding: 1em 0em 0em 0em;
font-size: 110%;
font-weight: bold;
}
h6 {
margin: 1em 0em 0em 0em;
padding: 1em 0em 0em 0em;
font-size: 110%;
font-weight: bold;
}
.authorgroup {
background-color: transparent;
background-repeat: no-repeat;
padding-top: 256px;
background-image: url("figures/bitbake-title.png");
background-position: left top;
margin-top: -256px;
padding-right: 50px;
margin-left: 0px;
text-align: right;
width: 740px;
}
h3.author {
margin: 0em 0me 0em 0em;
padding: 0em 0em 0em 0em;
font-weight: normal;
font-size: 100%;
color: #333;
clear: both;
}
.author tt.email {
font-size: 66%;
}
.titlepage hr {
width: 0em;
clear: both;
}
.revhistory {
padding-top: 2em;
clear: both;
}
.toc,
.list-of-tables,
.list-of-examples,
.list-of-figures {
padding: 1.33em 0em 2.5em 0em;
color: #00557D;
}
.toc p,
.list-of-tables p,
.list-of-figures p,
.list-of-examples p {
padding: 0em 0em 0em 0em;
padding: 0em 0em 0.3em;
margin: 1.5em 0em 0em 0em;
}
.toc p b,
.list-of-tables p b,
.list-of-figures p b,
.list-of-examples p b{
font-size: 100.0%;
font-weight: bold;
}
.toc dl,
.list-of-tables dl,
.list-of-figures dl,
.list-of-examples dl {
margin: 0em 0em 0.5em 0em;
padding: 0em 0em 0em 0em;
}
.toc dt {
margin: 0em 0em 0em 0em;
padding: 0em 0em 0em 0em;
}
.toc dd {
margin: 0em 0em 0em 2.6em;
padding: 0em 0em 0em 0em;
}
div.glossary dl,
div.variablelist dl {
}
.glossary dl dt,
.variablelist dl dt,
.variablelist dl dt span.term {
font-weight: normal;
width: 20em;
text-align: right;
}
.variablelist dl dt {
margin-top: 0.5em;
}
.glossary dl dd,
.variablelist dl dd {
margin-top: -1em;
margin-left: 25.5em;
}
.glossary dd p,
.variablelist dd p {
margin-top: 0em;
margin-bottom: 1em;
}
div.calloutlist table td {
padding: 0em 0em 0em 0em;
margin: 0em 0em 0em 0em;
}
div.calloutlist table td p {
margin-top: 0em;
margin-bottom: 1em;
}
div p.copyright {
text-align: left;
}
div.legalnotice p.legalnotice-title {
margin-bottom: 0em;
}
p {
line-height: 1.5em;
margin-top: 0em;
}
dl {
padding-top: 0em;
}
hr {
border: solid 1px;
}
.mediaobject,
.mediaobjectco {
text-align: center;
}
img {
border: none;
}
ul {
padding: 0em 0em 0em 1.5em;
}
ul li {
padding: 0em 0em 0em 0em;
}
ul li p {
text-align: left;
}
table {
width :100%;
}
th {
padding: 0.25em;
text-align: left;
font-weight: normal;
vertical-align: top;
}
td {
padding: 0.25em;
vertical-align: top;
}
p a[id] {
margin: 0px;
padding: 0px;
display: inline;
background-image: none;
}
a {
text-decoration: underline;
color: #444;
}
pre {
overflow: auto;
}
a:hover {
text-decoration: underline;
/*font-weight: bold;*/
}
/* This style defines how the permalink character
appears by itself and when hovered over with
the mouse. */
[alt='Permalink'] { color: #eee; }
[alt='Permalink']:hover { color: black; }
div.informalfigure,
div.informalexample,
div.informaltable,
div.figure,
div.table,
div.example {
margin: 1em 0em;
padding: 1em;
page-break-inside: avoid;
}
div.informalfigure p.title b,
div.informalexample p.title b,
div.informaltable p.title b,
div.figure p.title b,
div.example p.title b,
div.table p.title b{
padding-top: 0em;
margin-top: 0em;
font-size: 100%;
font-weight: normal;
}
.mediaobject .caption,
.mediaobject .caption p {
text-align: center;
font-size: 80%;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
.epigraph {
padding-left: 55%;
margin-bottom: 1em;
}
.epigraph p {
text-align: left;
}
.epigraph .quote {
font-style: italic;
}
.epigraph .attribution {
font-style: normal;
text-align: right;
}
span.application {
font-style: italic;
}
.programlisting {
font-family: monospace;
font-size: 80%;
white-space: pre;
margin: 1.33em 0em;
padding: 1.33em;
}
.tip,
.warning,
.caution,
.note {
margin-top: 1em;
margin-bottom: 1em;
}
/* force full width of table within div */
.tip table,
.warning table,
.caution table,
.note table {
border: none;
width: 100%;
}
.tip table th,
.warning table th,
.caution table th,
.note table th {
padding: 0.8em 0.0em 0.0em 0.0em;
margin : 0em 0em 0em 0em;
}
.tip p,
.warning p,
.caution p,
.note p {
margin-top: 0.5em;
margin-bottom: 0.5em;
padding-right: 1em;
text-align: left;
}
.acronym {
text-transform: uppercase;
}
b.keycap,
.keycap {
padding: 0.09em 0.3em;
margin: 0em;
}
.itemizedlist li {
clear: none;
}
.filename {
font-size: medium;
font-family: Courier, monospace;
}
div.navheader, div.heading{
position: absolute;
left: 0em;
top: 0em;
width: 100%;
background-color: #cdf;
width: 100%;
}
div.navfooter, div.footing{
position: fixed;
left: 0em;
bottom: 0em;
background-color: #eee;
width: 100%;
}
div.navheader td,
div.navfooter td {
font-size: 66%;
}
div.navheader table th {
/*font-family: Georgia, Times, serif;*/
/*font-size: x-large;*/
font-size: 80%;
}
div.navheader table {
border-left: 0em;
border-right: 0em;
border-top: 0em;
width: 100%;
}
div.navfooter table {
border-left: 0em;
border-right: 0em;
border-bottom: 0em;
width: 100%;
}
div.navheader table td a,
div.navfooter table td a {
color: #777;
text-decoration: none;
}
/* normal text in the footer */
div.navfooter table td {
color: black;
}
div.navheader table td a:visited,
div.navfooter table td a:visited {
color: #444;
}
/* links in header and footer */
div.navheader table td a:hover,
div.navfooter table td a:hover {
text-decoration: underline;
background-color: transparent;
color: #33a;
}
div.navheader hr,
div.navfooter hr {
display: none;
}
.qandaset tr.question td p {
margin: 0em 0em 1em 0em;
padding: 0em 0em 0em 0em;
}
.qandaset tr.answer td p {
margin: 0em 0em 1em 0em;
padding: 0em 0em 0em 0em;
}
.answer td {
padding-bottom: 1.5em;
}
.emphasis {
font-weight: bold;
}
/************* /
/ decorations /
/ *************/
.titlepage {
}
.part .title {
}
.subtitle {
border: none;
}
/*
h1 {
border: none;
}
h2 {
border-top: solid 0.2em;
border-bottom: solid 0.06em;
}
h3 {
border-top: 0em;
border-bottom: solid 0.06em;
}
h4 {
border: 0em;
border-bottom: solid 0.06em;
}
h5 {
border: 0em;
}
*/
.programlisting {
border: solid 1px;
}
div.figure,
div.table,
div.informalfigure,
div.informaltable,
div.informalexample,
div.example {
border: 1px solid;
}
.tip,
.warning,
.caution,
.note {
border: 1px solid;
}
.tip table th,
.warning table th,
.caution table th,
.note table th {
border-bottom: 1px solid;
}
.question td {
border-top: 1px solid black;
}
.answer {
}
b.keycap,
.keycap {
border: 1px solid;
}
div.navheader, div.heading{
border-bottom: 1px solid;
}
div.navfooter, div.footing{
border-top: 1px solid;
}
/********* /
/ colors /
/ *********/
body {
color: #333;
background: white;
}
a {
background: transparent;
}
a:hover {
background-color: #dedede;
}
h1,
h2,
h3,
h4,
h5,
h6,
h7,
h8 {
background-color: transparent;
}
hr {
border-color: #aaa;
}
.tip, .warning, .caution, .note {
border-color: #fff;
}
.tip table th,
.warning table th,
.caution table th,
.note table th {
border-bottom-color: #fff;
}
.warning {
background-color: #f0f0f2;
}
.caution {
background-color: #f0f0f2;
}
.tip {
background-color: #f0f0f2;
}
.note {
background-color: #f0f0f2;
}
.glossary dl dt,
.variablelist dl dt,
.variablelist dl dt span.term {
color: #044;
}
div.figure,
div.table,
div.example,
div.informalfigure,
div.informaltable,
div.informalexample {
border-color: #aaa;
}
pre.programlisting {
color: black;
background-color: #fff;
border-color: #aaa;
border-width: 2px;
}
.guimenu,
.guilabel,
.guimenuitem {
background-color: #eee;
}
b.keycap,
.keycap {
background-color: #eee;
border-color: #999;
}
div.navheader {
border-color: black;
}
div.navfooter {
border-color: black;
}
/*********** /
/ graphics /
/ ***********/
/*
body {
background-image: url("images/body_bg.jpg");
background-attachment: fixed;
}
.navheader,
.note,
.tip {
background-image: url("images/note_bg.jpg");
background-attachment: fixed;
}
.warning,
.caution {
background-image: url("images/warning_bg.jpg");
background-attachment: fixed;
}
.figure,
.informalfigure,
.example,
.informalexample,
.table,
.informaltable {
background-image: url("images/figure_bg.jpg");
background-attachment: fixed;
}
*/
h1,
h2,
h3,
h4,
h5,
h6,
h7{
}
/*
Example of how to stick an image as part of the title.
div.article .titlepage .title
{
background-image: url("figures/white-on-black.png");
background-position: center;
background-repeat: repeat-x;
}
*/
div.preface .titlepage .title,
div.colophon .title,
div.chapter .titlepage .title,
div.article .titlepage .title
{
}
div.section div.section .titlepage .title,
div.sect2 .titlepage .title {
background: none;
}
h1.title {
background-color: transparent;
background-repeat: no-repeat;
height: 256px;
text-indent: -9000px;
overflow:hidden;
}
h2.subtitle {
background-color: transparent;
text-indent: -9000px;
overflow:hidden;
width: 0px;
display: none;
}
/*************************************** /
/ pippin.gimp.org specific alterations /
/ ***************************************/
/*
div.heading, div.navheader {
color: #777;
font-size: 80%;
padding: 0;
margin: 0;
text-align: left;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 50px;
background: url('/gfx/heading_bg.png') transparent;
background-repeat: repeat-x;
background-attachment: fixed;
border: none;
}
div.heading a {
color: #444;
}
div.footing, div.navfooter {
border: none;
color: #ddd;
font-size: 80%;
text-align:right;
width: 100%;
padding-top: 10px;
position: absolute;
bottom: 0px;
left: 0px;
background: url('/gfx/footing_bg.png') transparent;
}
*/
/****************** /
/ nasty ie tweaks /
/ ******************/
/*
div.heading, div.navheader {
width:expression(document.body.clientWidth + "px");
}
div.footing, div.navfooter {
width:expression(document.body.clientWidth + "px");
margin-left:expression("-5em");
}
body {
padding:expression("4em 5em 0em 5em");
}
*/
/**************************************** /
/ mozilla vendor specific css extensions /
/ ****************************************/
/*
div.navfooter, div.footing{
-moz-opacity: 0.8em;
}
div.figure,
div.table,
div.informalfigure,
div.informaltable,
div.informalexample,
div.example,
.tip,
.warning,
.caution,
.note {
-moz-border-radius: 0.5em;
}
b.keycap,
.keycap {
-moz-border-radius: 0.3em;
}
*/
table tr td table tr td {
display: none;
}
hr {
display: none;
}
table {
border: 0em;
}
.photo {
float: right;
margin-left: 1.5em;
margin-bottom: 1.5em;
margin-top: 0em;
max-width: 17em;
border: 1px solid gray;
padding: 3px;
background: white;
}
.seperator {
padding-top: 2em;
clear: both;
}
#validators {
margin-top: 5em;
text-align: right;
color: #777;
}
@media print {
body {
font-size: 8pt;
}
.noprint {
display: none;
}
}
.tip,
.note {
background: #f0f0f2;
color: #333;
padding: 20px;
margin: 20px;
}
.tip h3,
.note h3 {
padding: 0em;
margin: 0em;
font-size: 2em;
font-weight: bold;
color: #333;
}
.tip a,
.note a {
color: #333;
text-decoration: underline;
}
.footnote {
font-size: small;
color: #333;
}
/* Changes the announcement text */
.tip h3,
.warning h3,
.caution h3,
.note h3 {
font-size:large;
color: #00557D;
}

View File

@@ -0,0 +1,88 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<book id='bitbake-user-manual' lang='en'
xmlns:xi="http://www.w3.org/2003/XInclude"
xmlns="http://docbook.org/ns/docbook"
>
<bookinfo>
<mediaobject>
<imageobject>
<imagedata fileref='figures/bitbake-title.png'
format='SVG'
align='left' scalefit='1' width='100%'/>
</imageobject>
</mediaobject>
<title>
BitBake User Manual
</title>
<authorgroup>
<author>
<firstname>Richard Purdie, Chris Larson, and </firstname> <surname>Phil Blundell</surname>
<affiliation>
<orgname>BitBake Community</orgname>
</affiliation>
<email>bitbake-devel@lists.openembedded.org</email>
</author>
</authorgroup>
<!--
# Add in some revision history if we want it here.
<revhistory>
<revision>
<revnumber>x.x</revnumber>
<date>dd month year</date>
<revremark>Some relevent comment</revremark>
</revision>
<revision>
<revnumber>x.x</revnumber>
<date>dd month year</date>
<revremark>Some relevent comment</revremark>
</revision>
<revision>
<revnumber>x.x</revnumber>
<date>dd month year</date>
<revremark>Some relevent comment</revremark>
</revision>
<revision>
<revnumber>x.x</revnumber>
<date>dd month year</date>
<revremark>Some relevent comment</revremark>
</revision>
</revhistory>
-->
<copyright>
<year>2004-2018</year>
<holder>Richard Purdie</holder>
<holder>Chris Larson</holder>
<holder>and Phil Blundell</holder>
</copyright>
<legalnotice>
<para>
This work is licensed under the Creative Commons Attribution License.
To view a copy of this license, visit
<ulink url="http://creativecommons.org/licenses/by/2.5/">http://creativecommons.org/licenses/by/2.5/</ulink>
or send a letter to Creative Commons, 444 Castro Street,
Suite 900, Mountain View, California 94041, USA.
</para>
</legalnotice>
</bookinfo>
<xi:include href="bitbake-user-manual-intro.xml"/>
<xi:include href="bitbake-user-manual-execution.xml"/>
<xi:include href="bitbake-user-manual-metadata.xml"/>
<xi:include href="bitbake-user-manual-fetching.xml"/>
<xi:include href="bitbake-user-manual-ref-variables.xml"/>
<xi:include href="bitbake-user-manual-hello.xml"/>
</book>

View File

@@ -0,0 +1,281 @@
/* Feuille de style DocBook du projet Traduc.org */
/* DocBook CSS stylesheet of the Traduc.org project */
/* (c) Jean-Philippe Gu<47>rard - 14 ao<61>t 2004 */
/* (c) Jean-Philippe Gu<47>rard - 14 August 2004 */
/* Cette feuille de style est libre, vous pouvez la */
/* redistribuer et la modifier selon les termes de la Licence */
/* Art Libre. Vous trouverez un exemplaire de cette Licence sur */
/* http://tigreraye.org/Petit-guide-du-traducteur.html#licence-art-libre */
/* This work of art is free, you can redistribute it and/or */
/* modify it according to terms of the Free Art license. You */
/* will find a specimen of this license on the Copyleft */
/* Attitude web site: http://artlibre.org as well as on other */
/* sites. */
/* Please note that the French version of this licence as shown */
/* on http://tigreraye.org/Petit-guide-du-traducteur.html#licence-art-libre */
/* is only official licence of this document. The English */
/* is only provided to help you understand this licence. */
/* La derni<6E>re version de cette feuille de style est toujours */
/* disponible sur<75>: http://tigreraye.org/style.css */
/* Elle est <20>galement disponible sur<75>: */
/* http://www.traduc.org/docs/HOWTO/lecture/style.css */
/* The latest version of this stylesheet is available from: */
/* http://tigreraye.org/style.css */
/* It is also available on: */
/* http://www.traduc.org/docs/HOWTO/lecture/style.css */
/* N'h<>sitez pas <20> envoyer vos commentaires et corrections <20> */
/* Jean-Philippe Gu<47>rard <jean-philippe.guerard@tigreraye.org> */
/* Please send feedback and bug reports to */
/* Jean-Philippe Gu<47>rard <jean-philippe.guerard@tigreraye.org> */
/* $Id: style.css,v 1.14 2004/09/10 20:12:09 fevrier Exp fevrier $ */
/* Pr<50>sentation g<>n<EFBFBD>rale du document */
/* Overall document presentation */
body {
/*
font-family: Apolline, "URW Palladio L", Garamond, jGaramond,
"Bitstream Cyberbit", "Palatino Linotype", serif;
*/
margin: 7%;
background-color: white;
}
/* Taille du texte */
/* Text size */
* { font-size: 100%; }
/* Gestion des textes mis en relief imbriqu<71>s */
/* Embedded emphasis */
em { font-style: italic; }
em em { font-style: normal; }
em em em { font-style: italic; }
/* Titres */
/* Titles */
h1 { font-size: 200%; font-weight: 900; }
h2 { font-size: 160%; font-weight: 900; }
h3 { font-size: 130%; font-weight: bold; }
h4 { font-size: 115%; font-weight: bold; }
h5 { font-size: 108%; font-weight: bold; }
h6 { font-weight: bold; }
/* Nom de famille en petites majuscules (uniquement en fran<61>ais) */
/* Last names in small caps (for French only) */
*[class~="surname"]:lang(fr) { font-variant: small-caps; }
/* Blocs de citation */
/* Quotation blocs */
div[class~="blockquote"] {
border: solid 2px #AAA;
padding: 5px;
margin: 5px;
}
div[class~="blockquote"] > table {
border: none;
}
/* Blocs lit<69>raux<75>: fond gris clair */
/* Literal blocs: light gray background */
*[class~="literallayout"] {
background: #f0f0f0;
padding: 5px;
margin: 5px;
}
/* Programmes et captures texte<74>: fond bleu clair */
/* Listing and text screen snapshots: light blue background */
*[class~="programlisting"], *[class~="screen"] {
background: #f0f0ff;
padding: 5px;
margin: 5px;
}
/* Les textes <20> remplacer sont surlign<67>s en vert p<>le */
/* Replaceable text in highlighted in pale green */
*[class~="replaceable"] {
background-color: #98fb98;
font-style: normal; }
/* Tables<65>: fonds gris clair & bords simples */
/* Tables: light gray background and solid borders */
*[class~="table"] *[class~="title"] { width:100%; border: 0px; }
table {
border: 1px solid #aaa;
border-collapse: collapse;
padding: 2px;
margin: 5px;
}
/* Listes simples en style table */
/* Simples lists in table presentation */
table[class~="simplelist"] {
background-color: #F0F0F0;
margin: 5px;
border: solid 1px #AAA;
}
table[class~="simplelist"] td {
border: solid 1px #AAA;
}
/* Les tables */
/* Tables */
*[class~="table"] table {
background-color: #F0F0F0;
border: solid 1px #AAA;
}
*[class~="informaltable"] table { background-color: #F0F0F0; }
th,td {
vertical-align: baseline;
text-align: left;
padding: 0.1em 0.3em;
empty-cells: show;
}
/* Alignement des colonnes */
/* Colunms alignment */
td[align=center] , th[align=center] { text-align: center; }
td[align=right] , th[align=right] { text-align: right; }
td[align=left] , th[align=left] { text-align: left; }
td[align=justify] , th[align=justify] { text-align: justify; }
/* Pas de marge autour des images */
/* No inside margins for images */
img { border: 0; }
/* Les liens ne sont pas soulign<67>s */
/* No underlines for links */
:link , :visited , :active { text-decoration: none; }
/* Prudence<63>: cadre jaune et fond jaune clair */
/* Caution: yellow border and light yellow background */
*[class~="caution"] {
border: solid 2px yellow;
background-color: #ffffe0;
padding: 1em 6px 1em ;
margin: 5px;
}
*[class~="caution"] th {
vertical-align: middle
}
*[class~="caution"] table {
background-color: #ffffe0;
border: none;
}
/* Note importante<74>: cadre jaune et fond jaune clair */
/* Important: yellow border and light yellow background */
*[class~="important"] {
border: solid 2px yellow;
background-color: #ffffe0;
padding: 1em 6px 1em;
margin: 5px;
}
*[class~="important"] th {
vertical-align: middle
}
*[class~="important"] table {
background-color: #ffffe0;
border: none;
}
/* Mise en <20>vidence<63>: texte l<>g<EFBFBD>rement plus grand */
/* Highlights: slightly larger texts */
*[class~="highlights"] {
font-size: 110%;
}
/* Note<74>: cadre bleu et fond bleu clair */
/* Notes: blue border and light blue background */
*[class~="note"] {
border: solid 2px #7099C5;
background-color: #f0f0ff;
padding: 1em 6px 1em ;
margin: 5px;
}
*[class~="note"] th {
vertical-align: middle
}
*[class~="note"] table {
background-color: #f0f0ff;
border: none;
}
/* Astuce<63>: cadre vert et fond vert clair */
/* Tip: green border and light green background */
*[class~="tip"] {
border: solid 2px #00ff00;
background-color: #f0ffff;
padding: 1em 6px 1em ;
margin: 5px;
}
*[class~="tip"] th {
vertical-align: middle;
}
*[class~="tip"] table {
background-color: #f0ffff;
border: none;
}
/* Avertissement<6E>: cadre rouge et fond rouge clair */
/* Warning: red border and light red background */
*[class~="warning"] {
border: solid 2px #ff0000;
background-color: #fff0f0;
padding: 1em 6px 1em ;
margin: 5px;
}
*[class~="warning"] th {
vertical-align: middle;
}
*[class~="warning"] table {
background-color: #fff0f0;
border: none;
}
/* Fin */
/* The End */

View File

@@ -1,101 +0,0 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import sys
import datetime
current_version = "dev"
# String used in sidebar
version = 'Version: ' + current_version
if current_version == 'dev':
version = 'Version: Current Development'
# Version seen in documentation_options.js and hence in js switchers code
release = current_version
# -- Project information -----------------------------------------------------
project = 'Bitbake'
copyright = '2004-%s, Richard Purdie, Chris Larson, and Phil Blundell' \
% datetime.datetime.now().year
author = 'Richard Purdie, Chris Larson, and Phil Blundell'
# external links and substitutions
extlinks = {
'yocto_docs': ('https://docs.yoctoproject.org%s', None),
'oe_lists': ('https://lists.openembedded.org%s', None),
}
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autosectionlabel',
'sphinx.ext.extlinks',
]
autosectionlabel_prefix_document = True
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# master document name. The default changed from contents to index. so better
# set it ourselves.
master_doc = 'index'
# create substitution for project configuration variables
rst_prolog = """
.. |project_name| replace:: %s
.. |copyright| replace:: %s
.. |author| replace:: %s
""" % (project, copyright, author)
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
except ImportError:
sys.stderr.write("The Sphinx sphinx_rtd_theme HTML theme was not found.\
\nPlease make sure to install the sphinx_rtd_theme python package.\n")
sys.exit(1)
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['sphinx-static']
# Add customm CSS and JS files
html_css_files = ['theme_overrides.css']
html_js_files = ['switchers.js']
# Hide 'Created using Sphinx' text
html_show_sphinx = False
# Add 'Last updated' on each page
html_last_updated_fmt = '%b %d, %Y'
# Remove the trailing 'dot' in section numbers
html_secnumber_suffix = " "

View File

@@ -1,3 +0,0 @@
=====
Index
=====

View File

@@ -1,38 +0,0 @@
.. SPDX-License-Identifier: CC-BY-2.5
===================
BitBake User Manual
===================
|
.. toctree::
:caption: Table of Contents
:numbered:
bitbake-user-manual/bitbake-user-manual-intro
bitbake-user-manual/bitbake-user-manual-execution
bitbake-user-manual/bitbake-user-manual-metadata
bitbake-user-manual/bitbake-user-manual-fetching
bitbake-user-manual/bitbake-user-manual-ref-variables
bitbake-user-manual/bitbake-user-manual-hello
.. toctree::
:maxdepth: 1
:hidden:
genindex
releases
----
.. include:: <xhtml1-lat1.txt>
| BitBake Community
| Copyright |copy| |copyright|
| <bitbake-devel@lists.openembedded.org>
This work is licensed under the Creative Commons Attribution License. To view a
copy of this license, visit http://creativecommons.org/licenses/by/2.5/ or send
a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View,
California 94041, USA.

51
bitbake/doc/poky.ent Normal file
View File

@@ -0,0 +1,51 @@
<!ENTITY DISTRO "1.4">
<!ENTITY DISTRO_NAME "tbd">
<!ENTITY YOCTO_DOC_VERSION "1.4">
<!ENTITY POKYVERSION "8.0">
<!ENTITY YOCTO_POKY "poky-&DISTRO_NAME;-&POKYVERSION;">
<!ENTITY COPYRIGHT_YEAR "2010-2013">
<!ENTITY YOCTO_DL_URL "http://downloads.yoctoproject.org">
<!ENTITY YOCTO_HOME_URL "http://www.yoctoproject.org">
<!ENTITY YOCTO_LISTS_URL "http://lists.yoctoproject.org">
<!ENTITY YOCTO_BUGZILLA_URL "http://bugzilla.yoctoproject.org">
<!ENTITY YOCTO_WIKI_URL "https://wiki.yoctoproject.org">
<!ENTITY YOCTO_AB_URL "http://autobuilder.yoctoproject.org">
<!ENTITY YOCTO_GIT_URL "http://git.yoctoproject.org">
<!ENTITY YOCTO_ADTREPO_URL "http://adtrepo.yoctoproject.org">
<!ENTITY OE_HOME_URL "http://www.openembedded.org">
<!ENTITY OE_LISTS_URL "http://lists.linuxtogo.org/cgi-bin/mailman">
<!ENTITY OE_DOCS_URL "http://docs.openembedded.org">
<!ENTITY OH_HOME_URL "http://o-hand.com">
<!ENTITY BITBAKE_HOME_URL "http://developer.berlios.de/projects/bitbake/">
<!ENTITY YOCTO_DOCS_URL "&YOCTO_HOME_URL;/docs">
<!ENTITY YOCTO_SOURCES_URL "&YOCTO_HOME_URL;/sources/">
<!ENTITY YOCTO_AB_PORT_URL "&YOCTO_AB_URL;:8010">
<!ENTITY YOCTO_AB_NIGHTLY_URL "&YOCTO_AB_URL;/nightly/">
<!ENTITY YOCTO_POKY_URL "&YOCTO_DL_URL;/releases/poky/">
<!ENTITY YOCTO_RELEASE_DL_URL "&YOCTO_DL_URL;/releases/yocto/yocto-&DISTRO;">
<!ENTITY YOCTO_TOOLCHAIN_DL_URL "&YOCTO_RELEASE_DL_URL;/toolchain/">
<!ENTITY YOCTO_ADTINSTALLER_DL_URL "&YOCTO_RELEASE_DL_URL;/adt_installer">
<!ENTITY YOCTO_POKY_DL_URL "&YOCTO_RELEASE_DL_URL;/&YOCTO_POKY;.tar.bz2">
<!ENTITY YOCTO_MACHINES_DL_URL "&YOCTO_RELEASE_DL_URL;/machines">
<!ENTITY YOCTO_QEMU_DL_URL "&YOCTO_MACHINES_DL_URL;/qemu">
<!ENTITY YOCTO_PYTHON-i686_DL_URL "&YOCTO_DL_URL;/releases/miscsupport/python-nativesdk-standalone-i686.tar.bz2">
<!ENTITY YOCTO_PYTHON-x86_64_DL_URL "&YOCTO_DL_URL;/releases/miscsupport/python-nativesdk-standalone-x86_64.tar.bz2">
<!ENTITY YOCTO_DOCS_QS_URL "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/yocto-project-qs/yocto-project-qs.html">
<!ENTITY YOCTO_DOCS_ADT_URL "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/adt-manual/adt-manual.html">
<!ENTITY YOCTO_DOCS_REF_URL "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/ref-manual/ref-manual.html">
<!ENTITY YOCTO_DOCS_BSP_URL "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/bsp-guide/bsp-guide.html">
<!ENTITY YOCTO_DOCS_DEV_URL "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/dev-manual/dev-manual.html">
<!ENTITY YOCTO_DOCS_KERNEL_URL "&YOCTO_DOCS_URL;/&YOCTO_DOC_VERSION;/kernel-manual/kernel-manual.html">
<!ENTITY YOCTO_ADTPATH_DIR "/opt/poky/&DISTRO;">
<!ENTITY YOCTO_POKY_TARBALL "&YOCTO_POKY;.tar.bz2">
<!ENTITY OE_INIT_PATH "&YOCTO_POKY;/oe-init-build-env">
<!ENTITY OE_INIT_FILE "oe-init-build-env">
<!ENTITY UBUNTU_HOST_PACKAGES_ESSENTIAL "gawk wget git-core diffstat unzip texinfo \
build-essential chrpath">
<!ENTITY FEDORA_HOST_PACKAGES_ESSENTIAL "gawk make wget tar bzip2 gzip python unzip perl patch \
diffutils diffstat git cpp gcc gcc-c++ eglibc-devel texinfo chrpath \
ccache">
<!ENTITY OPENSUSE_HOST_PACKAGES_ESSENTIAL "python gcc gcc-c++ git chrpath make wget python-xml \
diffstat texinfo python-curses">
<!ENTITY CENTOS_HOST_PACKAGES_ESSENTIAL "gawk make wget tar bzip2 gzip python unzip perl patch \
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath">

View File

@@ -1,130 +0,0 @@
.. SPDX-License-Identifier: CC-BY-2.5
=========================
Current Release Manuals
=========================
****************************
3.1 'dunfell' Release Series
****************************
- :yocto_docs:`3.1 BitBake User Manual </3.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`3.1.1 BitBake User Manual </3.1.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`3.1.2 BitBake User Manual </3.1.2/bitbake-user-manual/bitbake-user-manual.html>`
==========================
Previous Release Manuals
==========================
*************************
3.0 'zeus' Release Series
*************************
- :yocto_docs:`3.0 BitBake User Manual </3.0/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`3.0.1 BitBake User Manual </3.0.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`3.0.2 BitBake User Manual </3.0.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`3.0.3 BitBake User Manual </3.0.3/bitbake-user-manual/bitbake-user-manual.html>`
****************************
2.7 'warrior' Release Series
****************************
- :yocto_docs:`2.7 BitBake User Manual </2.7/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.7.1 BitBake User Manual </2.7.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.7.2 BitBake User Manual </2.7.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.7.3 BitBake User Manual </2.7.3/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.7.4 BitBake User Manual </2.7.4/bitbake-user-manual/bitbake-user-manual.html>`
*************************
2.6 'thud' Release Series
*************************
- :yocto_docs:`2.6 BitBake User Manual </2.6/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.6.1 BitBake User Manual </2.6.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.6.2 BitBake User Manual </2.6.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.6.3 BitBake User Manual </2.6.3/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.6.4 BitBake User Manual </2.6.4/bitbake-user-manual/bitbake-user-manual.html>`
*************************
2.5 'sumo' Release Series
*************************
- :yocto_docs:`2.5 BitBake User Manual </2.5/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.5.1 BitBake User Manual </2.5.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.5.2 BitBake User Manual </2.5.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.5.3 BitBake User Manual </2.5.3/bitbake-user-manual/bitbake-user-manual.html>`
**************************
2.4 'rocko' Release Series
**************************
- :yocto_docs:`2.4 BitBake User Manual </2.4/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.4.1 BitBake User Manual </2.4.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.4.2 BitBake User Manual </2.4.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.4.3 BitBake User Manual </2.4.3/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.4.4 BitBake User Manual </2.4.4/bitbake-user-manual/bitbake-user-manual.html>`
*************************
2.3 'pyro' Release Series
*************************
- :yocto_docs:`2.3 BitBake User Manual </2.3/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.3.1 BitBake User Manual </2.3.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.3.2 BitBake User Manual </2.3.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.3.3 BitBake User Manual </2.3.3/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.3.4 BitBake User Manual </2.3.4/bitbake-user-manual/bitbake-user-manual.html>`
**************************
2.2 'morty' Release Series
**************************
- :yocto_docs:`2.2 BitBake User Manual </2.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.2.1 BitBake User Manual </2.2.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.2.2 BitBake User Manual </2.2.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.2.3 BitBake User Manual </2.2.3/bitbake-user-manual/bitbake-user-manual.html>`
****************************
2.1 'krogoth' Release Series
****************************
- :yocto_docs:`2.1 BitBake User Manual </2.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.1.1 BitBake User Manual </2.1.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.1.2 BitBake User Manual </2.1.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.1.3 BitBake User Manual </2.1.3/bitbake-user-manual/bitbake-user-manual.html>`
***************************
2.0 'jethro' Release Series
***************************
- :yocto_docs:`1.9 BitBake User Manual </1.9/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.0 BitBake User Manual </2.0/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.0.1 BitBake User Manual </2.0.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.0.2 BitBake User Manual </2.0.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`2.0.3 BitBake User Manual </2.0.3/bitbake-user-manual/bitbake-user-manual.html>`
*************************
1.8 'fido' Release Series
*************************
- :yocto_docs:`1.8 BitBake User Manual </1.8/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`1.8.1 BitBake User Manual </1.8.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`1.8.2 BitBake User Manual </1.8.2/bitbake-user-manual/bitbake-user-manual.html>`
**************************
1.7 'dizzy' Release Series
**************************
- :yocto_docs:`1.7 BitBake User Manual </1.7/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`1.7.1 BitBake User Manual </1.7.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`1.7.2 BitBake User Manual </1.7.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`1.7.3 BitBake User Manual </1.7.3/bitbake-user-manual/bitbake-user-manual.html>`
**************************
1.6 'daisy' Release Series
**************************
- :yocto_docs:`1.6 BitBake User Manual </1.6/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`1.6.1 BitBake User Manual </1.6.1/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`1.6.2 BitBake User Manual </1.6.2/bitbake-user-manual/bitbake-user-manual.html>`
- :yocto_docs:`1.6.3 BitBake User Manual </1.6.3/bitbake-user-manual/bitbake-user-manual.html>`

View File

@@ -1,233 +0,0 @@
(function() {
'use strict';
var all_versions = {
'dev': 'dev (3.2)',
'3.1.2': '3.1.2',
'3.0.3': '3.0.3',
'2.7.4': '2.7.4',
};
var all_doctypes = {
'single': 'Individual Webpages',
'mega': "All-in-one 'Mega' Manual",
};
// Simple version comparision
// Return 1 if a > b
// Return -1 if a < b
// Return 0 if a == b
function ver_compare(a, b) {
if (a == "dev") {
return 1;
}
if (a === b) {
return 0;
}
var a_components = a.split(".");
var b_components = b.split(".");
var len = Math.min(a_components.length, b_components.length);
// loop while the components are equal
for (var i = 0; i < len; i++) {
// A bigger than B
if (parseInt(a_components[i]) > parseInt(b_components[i])) {
return 1;
}
// B bigger than A
if (parseInt(a_components[i]) < parseInt(b_components[i])) {
return -1;
}
}
// If one's a prefix of the other, the longer one is greater.
if (a_components.length > b_components.length) {
return 1;
}
if (a_components.length < b_components.length) {
return -1;
}
// Otherwise they are the same.
return 0;
}
function build_version_select(current_series, current_version) {
var buf = ['<select>'];
$.each(all_versions, function(version, title) {
var series = version.substr(0, 3);
if (series == current_series) {
if (version == current_version)
buf.push('<option value="' + version + '" selected="selected">' + title + '</option>');
else
buf.push('<option value="' + version + '">' + title + '</option>');
if (version != current_version)
buf.push('<option value="' + current_version + '" selected="selected">' + current_version + '</option>');
} else {
buf.push('<option value="' + version + '">' + title + '</option>');
}
});
buf.push('</select>');
return buf.join('');
}
function build_doctype_select(current_doctype) {
var buf = ['<select>'];
$.each(all_doctypes, function(doctype, title) {
if (doctype == current_doctype)
buf.push('<option value="' + doctype + '" selected="selected">' +
all_doctypes[current_doctype] + '</option>');
else
buf.push('<option value="' + doctype + '">' + title + '</option>');
});
if (!(current_doctype in all_doctypes)) {
// In case we're browsing a doctype that is not yet in all_doctypes.
buf.push('<option value="' + current_doctype + '" selected="selected">' +
current_doctype + '</option>');
all_doctypes[current_doctype] = current_doctype;
}
buf.push('</select>');
return buf.join('');
}
function navigate_to_first_existing(urls) {
// Navigate to the first existing URL in urls.
var url = urls.shift();
// Web browsers won't redirect file:// urls to file urls using ajax but
// its useful for local testing
if (url.startsWith("file://")) {
window.location.href = url;
return;
}
if (urls.length == 0) {
window.location.href = url;
return;
}
$.ajax({
url: url,
success: function() {
window.location.href = url;
},
error: function() {
navigate_to_first_existing(urls);
}
});
}
function get_docroot_url() {
var url = window.location.href;
var root = DOCUMENTATION_OPTIONS.URL_ROOT;
var urlarray = url.split('/');
// Trim off anything after '/'
urlarray.pop();
var depth = (root.match(/\.\.\//g) || []).length;
for (var i = 0; i < depth; i++) {
urlarray.pop();
}
return urlarray.join('/') + '/';
}
function on_version_switch() {
var selected_version = $(this).children('option:selected').attr('value');
var url = window.location.href;
var current_version = DOCUMENTATION_OPTIONS.VERSION;
var docroot = get_docroot_url()
var new_versionpath = selected_version + '/';
if (selected_version == "dev")
new_versionpath = '';
// dev versions have no version prefix
if (current_version == "dev") {
var new_url = docroot + new_versionpath + url.replace(docroot, "");
var fallback_url = docroot + new_versionpath;
} else {
var new_url = url.replace('/' + current_version + '/', '/' + new_versionpath);
var fallback_url = new_url.replace(url.replace(docroot, ""), "");
}
console.log(get_docroot_url())
console.log(url + " to url " + new_url);
console.log(url + " to fallback " + fallback_url);
if (new_url != url) {
navigate_to_first_existing([
new_url,
fallback_url,
'https://www.yoctoproject.org/docs/',
]);
}
}
function on_doctype_switch() {
var selected_doctype = $(this).children('option:selected').attr('value');
var url = window.location.href;
if (selected_doctype == 'mega') {
var docroot = get_docroot_url()
var current_version = DOCUMENTATION_OPTIONS.VERSION;
// Assume manuals before 3.2 are using old docbook mega-manual
if (ver_compare(current_version, "3.2") < 0) {
var new_url = docroot + "mega-manual/mega-manual.html";
} else {
var new_url = docroot + "singleindex.html";
}
} else {
var new_url = url.replace("singleindex.html", "index.html")
}
if (new_url != url) {
navigate_to_first_existing([
new_url,
'https://www.yoctoproject.org/docs/',
]);
}
}
// Returns the current doctype based upon the url
function doctype_segment_from_url(url) {
if (url.includes("singleindex") || url.includes("mega-manual"))
return "mega";
return "single";
}
$(document).ready(function() {
var release = DOCUMENTATION_OPTIONS.VERSION;
var current_doctype = doctype_segment_from_url(window.location.href);
var current_series = release.substr(0, 3);
var version_select = build_version_select(current_series, release);
$('.version_switcher_placeholder').html(version_select);
$('.version_switcher_placeholder select').bind('change', on_version_switch);
var doctype_select = build_doctype_select(current_doctype);
$('.doctype_switcher_placeholder').html(doctype_select);
$('.doctype_switcher_placeholder select').bind('change', on_doctype_switch);
if (ver_compare(release, "3.1") < 0) {
$('#outdated-warning').html('Version ' + release + ' of the project is now considered obsolete, please select and use a more recent version');
$('#outdated-warning').css('padding', '.5em');
} else if (release != "dev") {
$.each(all_versions, function(version, title) {
var series = version.substr(0, 3);
if (series == current_series && version != release) {
$('#outdated-warning').html('This document is for outdated version ' + release + ', you should select the latest release version in this series, ' + version + '.');
$('#outdated-warning').css('padding', '.5em');
}
});
}
});
})();

View File

@@ -1,162 +0,0 @@
/*
SPDX-License-Identifier: CC-BY-2.0-UK
*/
body {
font-family: Verdana, Sans, sans-serif;
margin: 0em auto;
color: #333;
}
h1,h2,h3,h4,h5,h6,h7 {
font-family: Arial, Sans;
color: #00557D;
clear: both;
}
h1 {
font-size: 2em;
text-align: left;
padding: 0em 0em 0em 0em;
margin: 2em 0em 0em 0em;
}
h2.subtitle {
margin: 0.10em 0em 3.0em 0em;
padding: 0em 0em 0em 0em;
font-size: 1.8em;
padding-left: 20%;
font-weight: normal;
font-style: italic;
}
h2 {
margin: 2em 0em 0.66em 0em;
padding: 0.5em 0em 0em 0em;
font-size: 1.5em;
font-weight: bold;
}
h3.subtitle {
margin: 0em 0em 1em 0em;
padding: 0em 0em 0em 0em;
font-size: 142.14%;
text-align: right;
}
h3 {
margin: 1em 0em 0.5em 0em;
padding: 1em 0em 0em 0em;
font-size: 140%;
font-weight: bold;
}
h4 {
margin: 1em 0em 0.5em 0em;
padding: 1em 0em 0em 0em;
font-size: 120%;
font-weight: bold;
}
h5 {
margin: 1em 0em 0.5em 0em;
padding: 1em 0em 0em 0em;
font-size: 110%;
font-weight: bold;
}
h6 {
margin: 1em 0em 0em 0em;
padding: 1em 0em 0em 0em;
font-size: 110%;
font-weight: bold;
}
em {
font-weight: bold;
}
.pre {
font-size: medium;
font-family: Courier, monospace;
}
.wy-nav-content a {
text-decoration: underline;
color: #444;
background: transparent;
}
.wy-nav-content a:hover {
text-decoration: underline;
background-color: #dedede;
}
.wy-nav-content a:visited {
color: #444;
}
[alt='Permalink'] { color: #eee; }
[alt='Permalink']:hover { color: black; }
@media screen {
/* content column
*
* RTD theme's default is 800px as max width for the content, but we have
* tables with tons of columns, which need the full width of the view-port.
*/
.wy-nav-content{max-width: none; }
/* inline literal: drop the borderbox, padding and red color */
code, .rst-content tt, .rst-content code {
color: inherit;
border: none;
padding: unset;
background: inherit;
font-size: 85%;
}
.rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal {
color: inherit;
}
/* Admonition should be gray, not blue or green */
.rst-content .note .admonition-title,
.rst-content .tip .admonition-title,
.rst-content .warning .admonition-title,
.rst-content .caution .admonition-title,
.rst-content .important .admonition-title {
background: #f0f0f2;
color: #00557D;
}
.rst-content .note,
.rst-content .tip,
.rst-content .important,
.rst-content .warning,
.rst-content .caution {
background: #f0f0f2;
}
/* Remove the icon in front of note/tip element, and before the logo */
.icon-home:before, .rst-content .admonition-title:before {
display: none
}
/* a custom informalexample container is used in some doc */
.informalexample {
border: 1px solid;
border-color: #aaa;
margin: 1em 0em;
padding: 1em;
page-break-inside: avoid;
}
/* Remove the blue background in the top left corner, around the logo */
.wy-side-nav-search {
background: inherit;
}
}

1
bitbake/doc/template/Vera.xml vendored Normal file

File diff suppressed because one or more lines are too long

1
bitbake/doc/template/VeraMoBd.xml vendored Normal file

File diff suppressed because one or more lines are too long

1
bitbake/doc/template/VeraMono.xml vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,39 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:d="http://docbook.org/ns/docbook"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="d">
<xsl:template name="component.title">
<xsl:param name="node" select="."/>
<xsl:variable name="level">
<xsl:choose>
<xsl:when test="ancestor::d:section">
<xsl:value-of select="count(ancestor::d:section)+1"/>
</xsl:when>
<xsl:when test="ancestor::d:sect5">6</xsl:when>
<xsl:when test="ancestor::d:sect4">5</xsl:when>
<xsl:when test="ancestor::d:sect3">4</xsl:when>
<xsl:when test="ancestor::d:sect2">3</xsl:when>
<xsl:when test="ancestor::d:sect1">2</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:element name="h{$level+1}" namespace="http://www.w3.org/1999/xhtml">
<xsl:attribute name="class">title</xsl:attribute>
<xsl:if test="$generate.id.attributes = 0">
<xsl:call-template name="anchor">
<xsl:with-param name="node" select="$node"/>
<xsl:with-param name="conditional" select="0"/>
</xsl:call-template>
</xsl:if>
<xsl:apply-templates select="$node" mode="object.title.markup">
<xsl:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
<xsl:call-template name="permalink">
<xsl:with-param name="node" select="$node"/>
</xsl:call-template>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

64
bitbake/doc/template/db-pdf.xsl vendored Normal file
View File

@@ -0,0 +1,64 @@
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" />
<!-- check project-plan.sh for how this is generated, needed to tweak
the cover page
-->
<xsl:include href="/tmp/titlepage.xsl"/>
<!-- To force a page break in document, i.e per section add a
<?hard-pagebreak?> tag.
-->
<xsl:template match="processing-instruction('hard-pagebreak')">
<fo:block break-before='page' />
</xsl:template>
<!--Fix for defualt indent getting TOC all wierd..
See http://sources.redhat.com/ml/docbook-apps/2005-q1/msg00455.html
FIXME: must be a better fix
-->
<xsl:param name="body.start.indent" select="'0'"/>
<!--<xsl:param name="title.margin.left" select="'0'"/>-->
<!-- stop long-ish header titles getting wrapped -->
<xsl:param name="header.column.widths">1 10 1</xsl:param>
<!-- customise headers and footers a little -->
<xsl:template name="head.sep.rule">
<xsl:if test="$header.rule != 0">
<xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-bottom-style">solid</xsl:attribute>
<xsl:attribute name="border-bottom-color">#cccccc</xsl:attribute>
</xsl:if>
</xsl:template>
<xsl:template name="foot.sep.rule">
<xsl:if test="$footer.rule != 0">
<xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-top-style">solid</xsl:attribute>
<xsl:attribute name="border-top-color">#cccccc</xsl:attribute>
</xsl:if>
</xsl:template>
<xsl:attribute-set name="header.content.properties">
<xsl:attribute name="color">#cccccc</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="footer.content.properties">
<xsl:attribute name="color">#cccccc</xsl:attribute>
</xsl:attribute-set>
<!-- general settings -->
<xsl:param name="fop1.extensions" select="1"></xsl:param>
<xsl:param name="paper.type" select="'A4'"></xsl:param>
<xsl:param name="section.autolabel" select="1"></xsl:param>
<xsl:param name="body.font.family" select="'verasans'"></xsl:param>
<xsl:param name="title.font.family" select="'verasans'"></xsl:param>
<xsl:param name="monospace.font.family" select="'veramono'"></xsl:param>
</xsl:stylesheet>

25
bitbake/doc/template/division.title.xsl vendored Normal file
View File

@@ -0,0 +1,25 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:d="http://docbook.org/ns/docbook"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="d">
<xsl:template name="division.title">
<xsl:param name="node" select="."/>
<h1>
<xsl:attribute name="class">title</xsl:attribute>
<xsl:call-template name="anchor">
<xsl:with-param name="node" select="$node"/>
<xsl:with-param name="conditional" select="0"/>
</xsl:call-template>
<xsl:apply-templates select="$node" mode="object.title.markup">
<xsl:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
<xsl:call-template name="permalink">
<xsl:with-param name="node" select="$node"/>
</xsl:call-template>
</h1>
</xsl:template>
</xsl:stylesheet>

58
bitbake/doc/template/fop-config.xml vendored Normal file
View File

@@ -0,0 +1,58 @@
<fop version="1.0">
<!-- Strict user configuration -->
<strict-configuration>true</strict-configuration>
<!-- Strict FO validation -->
<strict-validation>true</strict-validation>
<!--
Set the baseDir so common/openedhand.svg references in plans still
work ok. Note, relative file references to current dir should still work.
-->
<base>../template</base>
<font-base>../template</font-base>
<!-- Source resolution in dpi (dots/pixels per inch) for determining the
size of pixels in SVG and bitmap images, default: 72dpi -->
<!-- <source-resolution>72</source-resolution> -->
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the
target resolution for generated bitmaps, default: 72dpi -->
<!-- <target-resolution>72</target-resolution> -->
<!-- default page-height and page-width, in case
value is specified as auto -->
<default-page-settings height="11in" width="8.26in"/>
<!-- <use-cache>false</use-cache> -->
<renderers>
<renderer mime="application/pdf">
<fonts>
<font metrics-file="VeraMono.xml"
kerning="yes"
embed-url="VeraMono.ttf">
<font-triplet name="veramono" style="normal" weight="normal"/>
</font>
<font metrics-file="VeraMoBd.xml"
kerning="yes"
embed-url="VeraMoBd.ttf">
<font-triplet name="veramono" style="normal" weight="bold"/>
</font>
<font metrics-file="Vera.xml"
kerning="yes"
embed-url="Vera.ttf">
<font-triplet name="verasans" style="normal" weight="normal"/>
<font-triplet name="verasans" style="normal" weight="bold"/>
<font-triplet name="verasans" style="italic" weight="normal"/>
<font-triplet name="verasans" style="italic" weight="bold"/>
</font>
<auto-detect/>
</fonts>
</renderer>
</renderers>
</fop>

View File

@@ -0,0 +1,21 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:d="http://docbook.org/ns/docbook"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="d">
<xsl:template name="formal.object.heading">
<xsl:param name="object" select="."/>
<xsl:param name="title">
<xsl:apply-templates select="$object" mode="object.title.markup">
<xsl:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
</xsl:param>
<p class="title">
<b><xsl:copy-of select="$title"/></b>
<xsl:call-template name="permalink">
<xsl:with-param name="node" select="$object"/>
</xsl:call-template>
</p>
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,14 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:d="http://docbook.org/ns/docbook"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:template match="glossentry/glossterm">
<xsl:apply-imports/>
<xsl:if test="$generate.permalink != 0">
<xsl:call-template name="permalink">
<xsl:with-param name="node" select=".."/>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

25
bitbake/doc/template/permalinks.xsl vendored Normal file
View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="generate.permalink" select="1"/>
<xsl:param name="permalink.text"></xsl:param>
<xsl:template name="permalink">
<xsl:param name="node"/>
<xsl:if test="$generate.permalink != '0'">
<span class="permalink">
<a alt="Permalink" title="Permalink">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
<xsl:with-param name="object" select="$node"/>
</xsl:call-template>
</xsl:attribute>
<xsl:copy-of select="$permalink.text"/>
</a>
</span>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

55
bitbake/doc/template/section.title.xsl vendored Normal file
View File

@@ -0,0 +1,55 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:d="http://docbook.org/ns/docbook"
xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="d">
<xsl:template name="section.title">
<xsl:variable name="section"
select="(ancestor::section |
ancestor::simplesect|
ancestor::sect1|
ancestor::sect2|
ancestor::sect3|
ancestor::sect4|
ancestor::sect5)[last()]"/>
<xsl:variable name="renderas">
<xsl:choose>
<xsl:when test="$section/@renderas = 'sect1'">1</xsl:when>
<xsl:when test="$section/@renderas = 'sect2'">2</xsl:when>
<xsl:when test="$section/@renderas = 'sect3'">3</xsl:when>
<xsl:when test="$section/@renderas = 'sect4'">4</xsl:when>
<xsl:when test="$section/@renderas = 'sect5'">5</xsl:when>
<xsl:otherwise><xsl:value-of select="''"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="level">
<xsl:choose>
<xsl:when test="$renderas != ''">
<xsl:value-of select="$renderas"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="section.level">
<xsl:with-param name="node" select="$section"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="section.heading">
<xsl:with-param name="section" select="$section"/>
<xsl:with-param name="level" select="$level"/>
<xsl:with-param name="title">
<xsl:apply-templates select="$section" mode="object.title.markup">
<xsl:with-param name="allow-anchors" select="1"/>
</xsl:apply-templates>
<xsl:if test="$level &gt; 0">
<xsl:call-template name="permalink">
<xsl:with-param name="node" select="$section"/>
</xsl:call-template>
</xsl:if>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,51 @@
#!/bin/sh
if [ -z "$1" -o -z "$2" ]; then
echo "usage: [-v] $0 <docbook file> <templatedir>"
echo
echo "*NOTE* you need xsltproc, fop and nwalsh docbook stylesheets"
echo " installed for this to work!"
echo
exit 0
fi
FO=`echo $1 | sed s/.xml/.fo/` || exit 1
PDF=`echo $1 | sed s/.xml/.pdf/` || exit 1
TEMPLATEDIR=$2
##
# These URI should be rewritten by your distribution's xml catalog to
# match your localy installed XSL stylesheets.
XSL_BASE_URI="http://docbook.sourceforge.net/release/xsl/current"
# Creates a temporary XSL stylesheet based on titlepage.xsl
xsltproc -o /tmp/titlepage.xsl \
--xinclude \
$XSL_BASE_URI/template/titlepage.xsl \
$TEMPLATEDIR/titlepage.templates.xml || exit 1
# Creates the file needed for FOP
xsltproc --xinclude \
--stringparam hyphenate false \
--stringparam formal.title.placement "figure after" \
--stringparam ulink.show 1 \
--stringparam body.font.master 9 \
--stringparam title.font.master 11 \
--stringparam draft.watermark.image "$TEMPLATEDIR/draft.png" \
--stringparam chapter.autolabel 1 \
--stringparam appendix.autolabel A \
--stringparam section.autolabel 1 \
--stringparam section.label.includes.component.label 1 \
--output $FO \
$TEMPLATEDIR/db-pdf.xsl \
$1 || exit 1
# Invokes the Java version of FOP. Uses the additional configuration file common/fop-config.xml
fop -c $TEMPLATEDIR/fop-config.xml -fo $FO -pdf $PDF || exit 1
rm -f $FO
rm -f /tmp/titlepage.xsl
echo
echo " #### Success! $PDF ready. ####"
echo

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# This is a copy on write dictionary and set which abuses classes to try and be nice and fast.
#
@@ -10,6 +12,7 @@
import copy
import types
ImmutableTypes = (
bool,
complex,

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# BitBake Build System Python Library
#
@@ -9,19 +11,12 @@
# SPDX-License-Identifier: GPL-2.0-only
#
__version__ = "1.46.0"
__version__ = "1.42.0"
import sys
if sys.version_info < (3, 5, 0):
raise RuntimeError("Sorry, python 3.5.0 or later is required for this version of bitbake")
if sys.version_info < (3, 4, 0):
raise RuntimeError("Sorry, python 3.4.0 or later is required for this version of bitbake")
if sys.version_info < (3, 10, 0):
# With python 3.8 and 3.9, we see errors of "libgcc_s.so.1 must be installed for pthread_cancel to work"
# https://stackoverflow.com/questions/64797838/libgcc-s-so-1-must-be-installed-for-pthread-cancel-to-work
# https://bugs.ams1.psf.io/issue42888
# so ensure libgcc_s is loaded early on
import ctypes
libgcc_s = ctypes.CDLL('libgcc_s.so.1')
class BBHandledException(Exception):
"""
@@ -50,13 +45,7 @@ class BBLogger(Logger):
Logger.__init__(self, name)
def bbdebug(self, level, msg, *args, **kwargs):
loglevel = logging.DEBUG - level + 1
if not bb.event.worker_pid:
if self.name in bb.msg.loggerDefaultDomains and loglevel > (bb.msg.loggerDefaultDomains[self.name]):
return
if loglevel < bb.msg.loggerDefaultLogLevel:
return
return self.log(loglevel, msg, *args, **kwargs)
return self.log(logging.DEBUG - level + 1, msg, *args, **kwargs)
def plain(self, msg, *args, **kwargs):
return self.log(logging.INFO + 1, msg, *args, **kwargs)

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# BitBake 'Build' implementation
#
@@ -15,6 +17,7 @@
import os
import sys
import logging
import shlex
import glob
import time
import stat
@@ -27,9 +30,6 @@ from bb import data, event, utils
bblogger = logging.getLogger('BitBake')
logger = logging.getLogger('BitBake.Build')
verboseShellLogging = False
verboseStdoutLogging = False
__mtime_cache = {}
def cached_mtime_noerror(f):
@@ -56,20 +56,34 @@ else:
builtins['bb'] = bb
builtins['os'] = os
class FuncFailed(Exception):
def __init__(self, name = None, logfile = None):
self.logfile = logfile
self.name = name
if name:
self.msg = 'Function failed: %s' % name
else:
self.msg = "Function failed"
def __str__(self):
if self.logfile and os.path.exists(self.logfile):
msg = ("%s (log file is located at %s)" %
(self.msg, self.logfile))
else:
msg = self.msg
return msg
class TaskBase(event.Event):
"""Base class for task events"""
def __init__(self, t, fn, logfile, d):
def __init__(self, t, 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")
self.taskname = self._task
self.logfile = logfile
self.time = time.time()
self.pn = d.getVar("PN")
self.pv = d.getVar("PV")
event.Event.__init__(self)
self._message = "recipe %s: task %s: %s" % (d.getVar("PF"), t, self.getDisplayName())
@@ -86,8 +100,8 @@ class TaskBase(event.Event):
class TaskStarted(TaskBase):
"""Task execution started"""
def __init__(self, t, fn, logfile, taskflags, d):
super(TaskStarted, self).__init__(t, fn, logfile, d)
def __init__(self, t, logfile, taskflags, d):
super(TaskStarted, self).__init__(t, logfile, d)
self.taskflags = taskflags
class TaskSucceeded(TaskBase):
@@ -96,9 +110,9 @@ class TaskSucceeded(TaskBase):
class TaskFailed(TaskBase):
"""Task execution failed"""
def __init__(self, task, fn, logfile, metadata, errprinted = False):
def __init__(self, task, logfile, metadata, errprinted = False):
self.errprinted = errprinted
super(TaskFailed, self).__init__(task, fn, logfile, metadata)
super(TaskFailed, self).__init__(task, logfile, metadata)
class TaskFailedSilent(TaskBase):
"""Task execution failed (silently)"""
@@ -108,8 +122,8 @@ class TaskFailedSilent(TaskBase):
class TaskInvalid(TaskBase):
def __init__(self, task, fn, metadata):
super(TaskInvalid, self).__init__(task, fn, None, metadata)
def __init__(self, task, metadata):
super(TaskInvalid, self).__init__(task, None, metadata)
self._message = "No such task '%s'" % task
class TaskProgress(event.Event):
@@ -151,33 +165,15 @@ class LogTee(object):
def __repr__(self):
return '<LogTee {0}>'.format(self.name)
def flush(self):
self.outfile.flush()
class StdoutNoopContextManager:
"""
This class acts like sys.stdout, but adds noop __enter__ and __exit__ methods.
"""
def __enter__(self):
return sys.stdout
def __exit__(self, *exc_info):
pass
def write(self, string):
return sys.stdout.write(string)
def flush(self):
sys.stdout.flush()
@property
def name(self):
return sys.stdout.name
def exec_func(func, d, dirs = None):
#
# pythonexception allows the python exceptions generated to be raised
# as the real exceptions (not FuncFailed) and without a backtrace at the
# origin of the failure.
#
def exec_func(func, d, dirs = None, pythonexception=False):
"""Execute a BB 'function'"""
try:
@@ -249,7 +245,7 @@ def exec_func(func, d, dirs = None):
with bb.utils.fileslocked(lockfiles):
if ispython:
exec_func_python(func, d, runfile, cwd=adir)
exec_func_python(func, d, runfile, cwd=adir, pythonexception=pythonexception)
else:
exec_func_shell(func, d, runfile, cwd=adir)
@@ -269,7 +265,7 @@ _functionfmt = """
{function}(d)
"""
logformatter = bb.msg.BBLogFormatter("%(levelname)s: %(message)s")
def exec_func_python(func, d, runfile, cwd=None):
def exec_func_python(func, d, runfile, cwd=None, pythonexception=False):
"""Execute a python BB 'function'"""
code = _functionfmt.format(function=func)
@@ -293,8 +289,15 @@ def exec_func_python(func, d, runfile, cwd=None):
lineno = int(d.getVarFlag(func, "lineno", False))
bb.methodpool.insert_method(func, text, fn, lineno - 1)
comp = utils.better_compile(code, func, "exec_func_python() autogenerated")
utils.better_exec(comp, {"d": d}, code, "exec_func_python() autogenerated")
comp = utils.better_compile(code, func, "exec_python_func() autogenerated")
utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated", pythonexception=pythonexception)
except (bb.parse.SkipRecipe, bb.build.FuncFailed):
raise
except Exception as e:
if pythonexception:
raise
logger.error(str(e))
raise FuncFailed(func, None)
finally:
bb.debug(2, "Python function %s finished" % func)
@@ -322,42 +325,6 @@ trap 'bb_exit_handler' 0
set -e
'''
def create_progress_handler(func, progress, logfile, d):
if progress == 'percent':
# Use default regex
return bb.progress.BasicProgressHandler(d, outfile=logfile)
elif progress.startswith('percent:'):
# Use specified regex
return bb.progress.BasicProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile)
elif progress.startswith('outof:'):
# Use specified regex
return bb.progress.OutOfProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile)
elif progress.startswith("custom:"):
# Use a custom progress handler that was injected via OE_EXTRA_IMPORTS or __builtins__
import functools
from types import ModuleType
parts = progress.split(":", 2)
_, cls, otherargs = parts[0], parts[1], (parts[2] or None) if parts[2:] else None
if cls:
def resolve(x, y):
if not x:
return None
if isinstance(x, ModuleType):
return getattr(x, y, None)
return x.get(y)
cls_obj = functools.reduce(resolve, cls.split("."), bb.utils._context)
if not cls_obj:
# Fall-back on __builtins__
cls_obj = functools.reduce(lambda x, y: x.get(y), cls.split("."), __builtins__)
if cls_obj:
return cls_obj(d, outfile=logfile, otherargs=otherargs)
bb.warn('%s: unknown custom progress handler in task progress varflag value "%s", ignoring' % (func, cls))
else:
bb.warn('%s: invalid task progress varflag value "%s", ignoring' % (func, progress))
return logfile
def exec_func_shell(func, d, runfile, cwd=None):
"""Execute a shell function from the metadata
@@ -374,7 +341,7 @@ def exec_func_shell(func, d, runfile, cwd=None):
bb.data.emit_func(func, script, d)
if verboseShellLogging or bb.utils.to_boolean(d.getVar("BB_VERBOSE_LOGS", False)):
if bb.msg.loggerVerboseLogs:
script.write("set -x\n")
if cwd:
script.write("cd '%s'\n" % cwd)
@@ -394,14 +361,24 @@ exit $ret
if fakerootcmd:
cmd = [fakerootcmd, runfile]
if verboseStdoutLogging:
logfile = LogTee(logger, StdoutNoopContextManager())
if bb.msg.loggerDefaultVerbose:
logfile = LogTee(logger, sys.stdout)
else:
logfile = StdoutNoopContextManager()
logfile = sys.stdout
progress = d.getVarFlag(func, 'progress')
if progress:
logfile = create_progress_handler(func, progress, logfile, d)
if progress == 'percent':
# Use default regex
logfile = bb.progress.BasicProgressHandler(d, outfile=logfile)
elif progress.startswith('percent:'):
# Use specified regex
logfile = bb.progress.BasicProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile)
elif progress.startswith('outof:'):
# Use specified regex
logfile = bb.progress.OutOfProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile)
else:
bb.warn('%s: invalid task progress varflag value "%s", ignoring' % (func, progress))
fifobuffer = bytearray()
def readfifo(data):
@@ -420,8 +397,6 @@ exit $ret
bb.plain(value)
elif cmd == 'bbnote':
bb.note(value)
elif cmd == 'bbverbnote':
bb.verbnote(value)
elif cmd == 'bbwarn':
bb.warn(value)
elif cmd == 'bberror':
@@ -451,8 +426,13 @@ exit $ret
with open(fifopath, 'r+b', buffering=0) as fifo:
try:
bb.debug(2, "Executing shell function %s" % func)
with open(os.devnull, 'r+') as stdin, logfile:
bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
try:
with open(os.devnull, 'r+') as stdin:
bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
except bb.process.CmdError:
logfn = d.getVar('BB_LOGFILE')
raise FuncFailed(func, logfn)
finally:
os.unlink(fifopath)
@@ -577,9 +557,12 @@ def _exec_task(fn, task, d, quieterr):
try:
try:
event.fire(TaskStarted(task, fn, logfn, flags, localdata), localdata)
event.fire(TaskStarted(task, logfn, flags, localdata), localdata)
except (bb.BBHandledException, SystemExit):
return 1
except FuncFailed as exc:
logger.error(str(exc))
return 1
try:
for func in (prefuncs or '').split():
@@ -587,20 +570,16 @@ def _exec_task(fn, task, d, quieterr):
exec_func(task, localdata)
for func in (postfuncs or '').split():
exec_func(func, localdata)
except bb.BBHandledException:
event.fire(TaskFailed(task, fn, logfn, localdata, True), localdata)
return 1
except (Exception, SystemExit) as exc:
except FuncFailed as exc:
if quieterr:
event.fire(TaskFailedSilent(task, fn, logfn, localdata), localdata)
event.fire(TaskFailedSilent(task, logfn, localdata), localdata)
else:
errprinted = errchk.triggered
# If the output is already on stdout, we've printed the information in the
# logs once already so don't duplicate
if verboseStdoutLogging:
errprinted = True
logger.error(str(exc))
event.fire(TaskFailed(task, fn, logfn, localdata, errprinted), localdata)
event.fire(TaskFailed(task, logfn, localdata, errprinted), localdata)
return 1
except bb.BBHandledException:
event.fire(TaskFailed(task, logfn, localdata, True), localdata)
return 1
finally:
sys.stdout.flush()
@@ -623,7 +602,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, fn, logfn, localdata), localdata)
event.fire(TaskSucceeded(task, logfn, localdata), localdata)
if not localdata.getVarFlag(task, 'nostamp', False) and not localdata.getVarFlag(task, 'selfstamp', False):
make_stamp(task, localdata)
@@ -825,9 +804,6 @@ def add_tasks(tasklist, d):
task_deps['parents'][task] = []
if 'deps' in flags:
for dep in flags['deps']:
# Check and warn for "addtask task after foo" while foo does not exist
#if not dep in tasklist:
# bb.warn('%s: dependent task %s for %s does not exist' % (d.getVar('PN'), dep, task))
dep = d.expand(dep)
task_deps['parents'][task].append(dep)
@@ -908,8 +884,6 @@ def tasksbetween(task_start, task_end, d):
def follow_chain(task, endtask, chain=None):
if not chain:
chain = []
if task in chain:
bb.fatal("Circular task dependencies as %s depends on itself via the chain %s" % (task, " -> ".join(chain)))
chain.append(task)
for othertask in tasks:
if othertask == task:

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# BitBake Cache implementation
#
@@ -17,11 +19,11 @@
#
import os
import sys
import logging
import pickle
from collections import defaultdict
import bb.utils
import re
logger = logging.getLogger("BitBake.Cache")
@@ -83,21 +85,21 @@ class CoreRecipeInfo(RecipeInfoCommon):
self.appends = self.listvar('__BBAPPEND', metadata)
self.nocache = self.getvar('BB_DONT_CACHE', metadata)
self.provides = self.depvar('PROVIDES', metadata)
self.rprovides = self.depvar('RPROVIDES', metadata)
self.pn = self.getvar('PN', metadata) or bb.parse.vars_from_file(filename,metadata)[0]
self.packages = self.listvar('PACKAGES', metadata)
if not self.packages:
self.packages.append(self.pn)
self.packages_dynamic = self.listvar('PACKAGES_DYNAMIC', metadata)
self.skipreason = self.getvar('__SKIPPED', metadata)
if self.skipreason:
self.pn = self.getvar('PN', metadata) or bb.parse.vars_from_file(filename,metadata)[0]
self.skipped = True
self.provides = self.depvar('PROVIDES', metadata)
self.rprovides = self.depvar('RPROVIDES', metadata)
return
self.tasks = metadata.getVar('__BBTASKS', False)
self.pn = self.getvar('PN', metadata)
self.packages = self.listvar('PACKAGES', metadata)
if not self.packages:
self.packages.append(self.pn)
self.basetaskhashes = self.taskvar('BB_BASEHASH', self.tasks, metadata)
self.hashfilename = self.getvar('BB_HASHFILENAME', metadata)
@@ -113,8 +115,11 @@ class CoreRecipeInfo(RecipeInfoCommon):
self.stampclean = self.getvar('STAMPCLEAN', metadata)
self.stamp_extrainfo = self.flaglist('stamp-extra-info', self.tasks, metadata)
self.file_checksums = self.flaglist('file-checksums', self.tasks, metadata, True)
self.packages_dynamic = self.listvar('PACKAGES_DYNAMIC', metadata)
self.depends = self.depvar('DEPENDS', metadata)
self.provides = self.depvar('PROVIDES', metadata)
self.rdepends = self.depvar('RDEPENDS', metadata)
self.rprovides = self.depvar('RPROVIDES', metadata)
self.rrecommends = self.depvar('RRECOMMENDS', metadata)
self.rprovides_pkg = self.pkgvar('RPROVIDES', self.packages, metadata)
self.rdepends_pkg = self.pkgvar('RDEPENDS', self.packages, metadata)
@@ -208,10 +213,10 @@ class CoreRecipeInfo(RecipeInfoCommon):
# Collect files we may need for possible world-dep
# calculations
if not self.not_world:
if self.not_world:
logger.debug(1, "EXCLUDE FROM WORLD: %s", fn)
else:
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
@@ -220,7 +225,7 @@ class CoreRecipeInfo(RecipeInfoCommon):
cachedata.hashfn[fn] = self.hashfilename
for task, taskhash in self.basetaskhashes.items():
identifier = '%s:%s' % (fn, task)
identifier = '%s.%s' % (fn, task)
cachedata.basetaskhash[identifier] = taskhash
cachedata.inherits[fn] = self.inherits
@@ -234,7 +239,7 @@ def virtualfn2realfn(virtualfn):
Convert a virtual file name to a real one + the associated subclass keyword
"""
mc = ""
if virtualfn.startswith('mc:'):
if virtualfn.startswith('multiconfig:'):
elems = virtualfn.split(':')
mc = elems[1]
virtualfn = ":".join(elems[2:])
@@ -255,7 +260,7 @@ def realfn2virtual(realfn, cls, mc):
if cls:
realfn = "virtual:" + cls + ":" + realfn
if mc:
realfn = "mc:" + mc + ":" + realfn
realfn = "multiconfig:" + mc + ":" + realfn
return realfn
def variant2virtual(realfn, variant):
@@ -264,11 +269,11 @@ def variant2virtual(realfn, variant):
"""
if variant == "":
return realfn
if variant.startswith("mc:"):
if variant.startswith("multiconfig:"):
elems = variant.split(":")
if elems[2]:
return "mc:" + elems[1] + ":virtual:" + ":".join(elems[2:]) + ":" + realfn
return "mc:" + elems[1] + ":" + realfn
return "multiconfig:" + elems[1] + ":virtual:" + ":".join(elems[2:]) + ":" + realfn
return "multiconfig:" + elems[1] + ":" + realfn
return "virtual:" + variant + ":" + realfn
def parse_recipe(bb_data, bbfile, appends, mc=''):
@@ -346,7 +351,7 @@ class NoCache(object):
bb_data = self.databuilder.mcdata[mc].createCopy()
newstores = parse_recipe(bb_data, bbfile, appends, mc)
for ns in newstores:
datastores["mc:%s:%s" % (mc, ns)] = newstores[ns]
datastores["multiconfig:%s:%s" % (mc, ns)] = newstores[ns]
return datastores
@@ -370,7 +375,6 @@ class Cache(NoCache):
self.data_fn = None
self.cacheclean = True
self.data_hash = data_hash
self.filelist_regex = re.compile(r'(?:(?<=:True)|(?<=:False))\s+')
if self.cachedir in [None, '']:
self.has_cache = False
@@ -397,15 +401,6 @@ class Cache(NoCache):
else:
logger.debug(1, "Cache file %s not found, building..." % self.cachefile)
# We don't use the symlink, its just for debugging convinience
symlink = os.path.join(self.cachedir, "bb_cache.dat")
if os.path.exists(symlink):
bb.utils.remove(symlink)
try:
os.symlink(os.path.basename(self.cachefile), symlink)
except OSError:
pass
def load_cachefile(self):
cachesize = 0
previous_progress = 0
@@ -609,12 +604,20 @@ class Cache(NoCache):
if hasattr(info_array[0], 'file_checksums'):
for _, fl in info_array[0].file_checksums.items():
fl = fl.strip()
if not fl:
continue
# Have to be careful about spaces and colons in filenames
flist = self.filelist_regex.split(fl)
for f in flist:
if not f or "*" in f:
while fl:
# A .split() would be simpler but means spaces or colons in filenames would break
a = fl.find(":True")
b = fl.find(":False")
if ((a < 0) and b) or ((b > 0) and (b < a)):
f = fl[:b+6]
fl = fl[b+7:]
elif ((b < 0) and a) or ((a > 0) and (a < b)):
f = fl[:a+5]
fl = fl[a+6:]
else:
break
fl = fl.strip()
if "*" in f:
continue
f, exist = f.split(":")
if (exist == "True" and not os.path.exists(f)) or (exist == "False" and os.path.exists(f)):
@@ -876,56 +879,3 @@ class MultiProcessCache(object):
p.dump([data, self.__class__.CACHE_VERSION])
bb.utils.unlockfile(glf)
class SimpleCache(object):
"""
BitBake multi-process cache implementation
Used by the codeparser & file checksum caches
"""
def __init__(self, version):
self.cachefile = None
self.cachedata = None
self.cacheversion = version
def init_cache(self, d, cache_file_name=None, defaultdata=None):
cachedir = (d.getVar("PERSISTENT_DIR") or
d.getVar("CACHE"))
if not cachedir:
return defaultdata
bb.utils.mkdirhier(cachedir)
self.cachefile = os.path.join(cachedir,
cache_file_name or self.__class__.cache_file_name)
logger.debug(1, "Using cache in '%s'", self.cachefile)
glf = bb.utils.lockfile(self.cachefile + ".lock")
try:
with open(self.cachefile, "rb") as f:
p = pickle.Unpickler(f)
data, version = p.load()
except:
bb.utils.unlockfile(glf)
return defaultdata
bb.utils.unlockfile(glf)
if version != self.cacheversion:
return defaultdata
return data
def save(self, data):
if not self.cachefile:
return
glf = bb.utils.lockfile(self.cachefile + ".lock")
with open(self.cachefile, "wb") as f:
p = pickle.Pickler(f, -1)
p.dump([data, self.cacheversion])
bb.utils.unlockfile(glf)

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Extra RecipeInfo will be all defined in this file. Currently,
# Only Hob (Image Creator) Requests some extra fields. So

View File

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

View File

@@ -25,11 +25,13 @@ import ast
import sys
import codegen
import logging
import pickle
import bb.pysh as pysh
import os.path
import bb.utils, bb.data
import hashlib
from itertools import chain
from bb.pysh import pyshyacc, pyshlex
from bb.pysh import pyshyacc, pyshlex, sherrors
from bb.cache import MultiProcessCache
logger = logging.getLogger('BitBake.CodeParser')
@@ -56,10 +58,30 @@ def check_indent(codestr):
return codestr
# Basically pickle, in python 2.7.3 at least, does badly with data duplication
# upon pickling and unpickling. Combine this with duplicate objects and things
# are a mess.
#
# When the sets are originally created, python calls intern() on the set keys
# which significantly improves memory usage. Sadly the pickle/unpickle process
# doesn't call intern() on the keys and results in the same strings being duplicated
# in memory. This also means pickle will save the same string multiple times in
# the cache file.
#
# By having shell and python cacheline objects with setstate/getstate, we force
# the object creation through our own routine where we can call intern (via internSet).
#
# We also use hashable frozensets and ensure we use references to these so that
# duplicates can be removed, both in memory and in the resulting pickled data.
#
# By playing these games, the size of the cache file shrinks dramatically
# meaning faster load times and the reloaded cache files also consume much less
# memory. Smaller cache files, faster load times and lower memory usage is good.
#
# A custom getstate/setstate using tuples is actually worth 15% cachesize by
# avoiding duplication of the attribute names!
class SetCache(object):
def __init__(self):
self.setcache = {}

View File

@@ -20,7 +20,6 @@ Commands are queued in a CommandQueue
from collections import OrderedDict, defaultdict
import io
import bb.event
import bb.cooker
import bb.remotedata
@@ -66,7 +65,7 @@ class Command:
# Can run synchronous commands straight away
command_method = getattr(self.cmds_sync, command)
if ro_only:
if not hasattr(command_method, 'readonly') or not getattr(command_method, 'readonly'):
if not hasattr(command_method, 'readonly') or False == getattr(command_method, 'readonly'):
return None, "Not able to execute not readonly commands in readonly mode"
try:
self.cooker.process_inotify_updates()
@@ -75,12 +74,8 @@ class Command:
result = command_method(self, commandline)
except CommandError as exc:
return None, exc.args[0]
except (Exception, SystemExit) as exc:
except (Exception, SystemExit):
import traceback
if isinstance(exc, bb.BBHandledException):
# We need to start returning real exceptions here. Until we do, we can't
# tell if an exception is an instance of bb.BBHandledException
return None, "bb.BBHandledException()\n" + traceback.format_exc()
return None, traceback.format_exc()
else:
return result, None
@@ -419,11 +414,7 @@ class CommandsSync:
getAllAppends.readonly = True
def findProviders(self, command, params):
try:
mc = params[0]
except IndexError:
mc = ''
return command.cooker.findProviders(mc)
return command.cooker.findProviders()
findProviders.readonly = True
def findBestProvider(self, command, params):
@@ -455,49 +446,54 @@ class CommandsSync:
return all_p, best
getRuntimeProviders.readonly = True
def dataStoreConnectorCmd(self, command, params):
def dataStoreConnectorFindVar(self, command, params):
dsindex = params[0]
method = params[1]
args = params[2]
kwargs = params[3]
name = params[1]
datastore = command.remotedatastores[dsindex]
value, overridedata = datastore._findVar(name)
d = command.remotedatastores[dsindex]
ret = getattr(d, method)(*args, **kwargs)
if value:
content = value.get('_content', None)
if isinstance(content, bb.data_smart.DataSmart):
# Value is a datastore (e.g. BB_ORIGENV) - need to handle this carefully
idx = command.remotedatastores.check_store(content, True)
return {'_content': DataStoreConnectionHandle(idx),
'_connector_origtype': 'DataStoreConnectionHandle',
'_connector_overrides': overridedata}
elif isinstance(content, set):
return {'_content': list(content),
'_connector_origtype': 'set',
'_connector_overrides': overridedata}
else:
value['_connector_overrides'] = overridedata
else:
value = {}
value['_connector_overrides'] = overridedata
return value
dataStoreConnectorFindVar.readonly = True
if isinstance(ret, bb.data_smart.DataSmart):
idx = command.remotedatastores.store(ret)
return DataStoreConnectionHandle(idx)
return ret
def dataStoreConnectorVarHistCmd(self, command, params):
def dataStoreConnectorGetKeys(self, command, params):
dsindex = params[0]
method = params[1]
args = params[2]
kwargs = params[3]
datastore = command.remotedatastores[dsindex]
return list(datastore.keys())
dataStoreConnectorGetKeys.readonly = True
d = command.remotedatastores[dsindex].varhistory
return getattr(d, method)(*args, **kwargs)
def dataStoreConnectorVarHistCmdEmit(self, command, params):
def dataStoreConnectorGetVarHistory(self, command, params):
dsindex = params[0]
var = params[1]
oval = params[2]
val = params[3]
d = command.remotedatastores[params[4]]
name = params[1]
datastore = command.remotedatastores[dsindex]
return datastore.varhistory.variable(name)
dataStoreConnectorGetVarHistory.readonly = True
o = io.StringIO()
command.remotedatastores[dsindex].varhistory.emit(var, oval, val, o, d)
return o.getvalue()
def dataStoreConnectorExpandPythonRef(self, command, params):
config_data_dict = params[0]
varname = params[1]
expr = params[2]
def dataStoreConnectorIncHistCmd(self, command, params):
dsindex = params[0]
method = params[1]
args = params[2]
kwargs = params[3]
config_data = command.remotedatastores.receive_datastore(config_data_dict)
d = command.remotedatastores[dsindex].inchistory
return getattr(d, method)(*args, **kwargs)
varparse = bb.data_smart.VariableParse(varname, config_data)
return varparse.python_sub(expr)
def dataStoreConnectorRelease(self, command, params):
dsindex = params[0]
@@ -505,6 +501,31 @@ class CommandsSync:
raise CommandError('dataStoreConnectorRelease: invalid index %d' % dsindex)
command.remotedatastores.release(dsindex)
def dataStoreConnectorSetVarFlag(self, command, params):
dsindex = params[0]
name = params[1]
flag = params[2]
value = params[3]
datastore = command.remotedatastores[dsindex]
datastore.setVarFlag(name, flag, value)
def dataStoreConnectorDelVar(self, command, params):
dsindex = params[0]
name = params[1]
datastore = command.remotedatastores[dsindex]
if len(params) > 2:
flag = params[2]
datastore.delVarFlag(name, flag)
else:
datastore.delVar(name)
def dataStoreConnectorRenameVar(self, command, params):
dsindex = params[0]
name = params[1]
newname = params[2]
datastore = command.remotedatastores[dsindex]
datastore.renameVar(name, newname)
def parseRecipeFile(self, command, params):
"""
Parse the specified recipe file (with or without bbappends)
@@ -515,7 +536,8 @@ class CommandsSync:
appends = params[1]
appendlist = params[2]
if len(params) > 3:
config_data = command.remotedatastores[params[3]]
config_data_dict = params[3]
config_data = command.remotedatastores.receive_datastore(config_data_dict)
else:
config_data = None
@@ -636,16 +658,6 @@ class CommandsAsync:
command.finishAsyncCommand()
findFilesMatchingInDir.needcache = False
def testCookerCommandEvent(self, command, params):
"""
Dummy command used by OEQA selftest to test tinfoil without IO
"""
pattern = params[0]
command.cooker.testCookerCommandEvent(pattern)
command.finishAsyncCommand()
testCookerCommandEvent.needcache = False
def findConfigFilePath(self, command, params):
"""
Find the path of the requested configuration file

10
bitbake/lib/bb/compat.py Normal file
View File

@@ -0,0 +1,10 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
"""Code pulled from future python versions, here for compatibility"""
from collections import MutableMapping, KeysView, ValuesView, ItemsView, OrderedDict
from functools import total_ordering

View File

@@ -1,3 +1,6 @@
#!/usr/bin/env python
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2003, 2004 Chris Larson
# Copyright (C) 2003, 2004 Phil Blundell
@@ -10,23 +13,27 @@
#
import sys, os, glob, os.path, re, time
import atexit
import itertools
import logging
import multiprocessing
import sre_constants
import threading
from io import StringIO, UnsupportedOperation
from contextlib import closing
from functools import wraps
from collections import defaultdict, namedtuple
import bb, bb.exceptions, bb.command
from bb import utils, data, parse, event, cache, providers, taskdata, runqueue, build
import queue
import signal
import subprocess
import errno
import prserv.serv
import pyinotify
import json
import pickle
import codecs
import hashserv
logger = logging.getLogger("BitBake")
collectlog = logging.getLogger("BitBake.Collection")
@@ -188,8 +195,6 @@ class BBCooker:
bb.parse.BBHandler.cached_statements = {}
self.ui_cmdline = None
self.hashserv = None
self.hashservaddr = None
self.initConfigurationData()
@@ -366,6 +371,12 @@ class BBCooker:
self.data.setVar('BB_CMDLINE', self.ui_cmdline)
#
# Copy of the data store which has been expanded.
# Used for firing events and accessing variables where expansion needs to be accounted for
#
bb.parse.init_parser(self.data)
if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset:
self.disableDataTracking()
@@ -383,22 +394,6 @@ class BBCooker:
except prserv.serv.PRServiceConfigError as e:
bb.fatal("Unable to start PR Server, exitting")
if self.data.getVar("BB_HASHSERVE") == "auto":
# Create a new hash server bound to a unix domain socket
if not self.hashserv:
dbfile = (self.data.getVar("PERSISTENT_DIR") or self.data.getVar("CACHE")) + "/hashserv.db"
self.hashservaddr = "unix://%s/hashserve.sock" % self.data.getVar("TOPDIR")
self.hashserv = hashserv.create_server(self.hashservaddr, dbfile, sync=False)
self.hashserv.process = multiprocessing.Process(target=self.hashserv.serve_forever)
self.hashserv.process.start()
self.data.setVar("BB_HASHSERVE", self.hashservaddr)
self.databuilder.origdata.setVar("BB_HASHSERVE", self.hashservaddr)
self.databuilder.data.setVar("BB_HASHSERVE", self.hashservaddr)
for mc in self.databuilder.mcdata:
self.databuilder.mcdata[mc].setVar("BB_HASHSERVE", self.hashservaddr)
bb.parse.init_parser(self.data)
def enableDataTracking(self):
self.configuration.tracking = True
if hasattr(self, "data"):
@@ -410,7 +405,10 @@ class BBCooker:
self.data.disableTracking()
def parseConfiguration(self):
self.updateCacheSync()
# Set log file verbosity
verboselogs = bb.utils.to_boolean(self.data.getVar("BB_VERBOSE_LOGS", False))
if verboselogs:
bb.msg.loggerVerboseLogs = True
# Change nice level if we're asked to
nice = self.data.getVar("BB_NICE_LEVEL")
@@ -499,7 +497,6 @@ class BBCooker:
"""
fn = None
envdata = None
mc = ''
if not pkgs_to_build:
pkgs_to_build = []
@@ -508,12 +505,6 @@ class BBCooker:
self.enableDataTracking()
self.reset()
def mc_base(p):
if p.startswith('mc:'):
s = p.split(':')
if len(s) == 2:
return s[1]
return None
if buildfile:
# Parse the configuration here. We need to do it explicitly here since
@@ -524,16 +515,18 @@ class BBCooker:
fn = self.matchFile(fn)
fn = bb.cache.realfn2virtual(fn, cls, mc)
elif len(pkgs_to_build) == 1:
mc = mc_base(pkgs_to_build[0])
if not mc:
ignore = self.data.getVar("ASSUME_PROVIDED") or ""
if pkgs_to_build[0] in set(ignore.split()):
bb.fatal("%s is in ASSUME_PROVIDED" % pkgs_to_build[0])
ignore = self.data.getVar("ASSUME_PROVIDED") or ""
if pkgs_to_build[0] in set(ignore.split()):
bb.fatal("%s is in ASSUME_PROVIDED" % pkgs_to_build[0])
taskdata, runlist = self.buildTaskData(pkgs_to_build, None, self.configuration.abort, allowincomplete=True)
taskdata, runlist = self.buildTaskData(pkgs_to_build, None, self.configuration.abort, allowincomplete=True)
mc = runlist[0][0]
fn = runlist[0][3]
mc = runlist[0][0]
fn = runlist[0][3]
else:
envdata = self.data
data.expandKeys(envdata)
parse.ast.runAnonFuncs(envdata)
if fn:
try:
@@ -542,12 +535,6 @@ class BBCooker:
except Exception as e:
parselog.exception("Unable to read %s", fn)
raise
else:
if not mc in self.databuilder.mcdata:
bb.fatal('Not multiconfig named "%s" found' % mc)
envdata = self.databuilder.mcdata[mc]
data.expandKeys(envdata)
parse.ast.runAnonFuncs(envdata)
# Display history
with closing(StringIO()) as env:
@@ -587,10 +574,10 @@ class BBCooker:
wildcard = False
# Wild card expansion:
# Replace string such as "mc:*:bash"
# into "mc:A:bash mc:B:bash bash"
# Replace string such as "multiconfig:*:bash"
# into "multiconfig:A:bash multiconfig:B:bash bash"
for k in targetlist:
if k.startswith("mc:"):
if k.startswith("multiconfig:"):
if wildcard:
bb.fatal('multiconfig conflict')
if k.split(":")[1] == "*":
@@ -623,7 +610,7 @@ class BBCooker:
runlist = []
for k in fulltargetlist:
mc = ""
if k.startswith("mc:"):
if k.startswith("multiconfig:"):
mc = k.split(":")[1]
k = ":".join(k.split(":")[2:])
ktask = task
@@ -708,7 +695,7 @@ class BBCooker:
@staticmethod
def add_mc_prefix(mc, pn):
if mc:
return "mc:%s:%s" % (mc, pn)
return "multiconfig:%s:%s" % (mc, pn)
return pn
def buildDependTree(self, rq, taskdata):
@@ -907,10 +894,6 @@ class BBCooker:
os.unlink('package-depends.dot')
except FileNotFoundError:
pass
try:
os.unlink('recipe-depends.dot')
except FileNotFoundError:
pass
with open('task-depends.dot', 'w') as f:
f.write("digraph depends {\n")
@@ -924,6 +907,27 @@ class BBCooker:
f.write("}\n")
logger.info("Task dependencies saved to 'task-depends.dot'")
with open('recipe-depends.dot', 'w') as f:
f.write("digraph depends {\n")
pndeps = {}
for task in sorted(depgraph["tdepends"]):
(pn, taskname) = task.rsplit(".", 1)
if pn not in pndeps:
pndeps[pn] = set()
for dep in sorted(depgraph["tdepends"][task]):
(deppn, deptaskname) = dep.rsplit(".", 1)
pndeps[pn].add(deppn)
for pn in sorted(pndeps):
fn = depgraph["pn"][pn]["filename"]
version = depgraph["pn"][pn]["version"]
f.write('"%s" [label="%s\\n%s\\n%s"]\n' % (pn, pn, version, fn))
for dep in sorted(pndeps[pn]):
if dep == pn:
continue
f.write('"%s" -> "%s"\n' % (pn, dep))
f.write("}\n")
logger.info("Flattened recipe dependencies saved to 'recipe-depends.dot'")
def show_appends_with_no_recipes(self):
# Determine which bbappends haven't been applied
@@ -1018,22 +1022,17 @@ class BBCooker:
if matches:
bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data)
def testCookerCommandEvent(self, filepattern):
# Dummy command used by OEQA selftest to test tinfoil without IO
matches = ["A", "B"]
bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data)
def findProviders(self, mc=''):
return bb.providers.findProviders(self.databuilder.mcdata[mc], self.recipecaches[mc], self.recipecaches[mc].pkg_pn)
return bb.providers.findProviders(self.data, self.recipecaches[mc], self.recipecaches[mc].pkg_pn)
def findBestProvider(self, pn, mc=''):
if pn in self.recipecaches[mc].providers:
filenames = self.recipecaches[mc].providers[pn]
eligible, foundUnique = bb.providers.filterProviders(filenames, pn, self.databuilder.mcdata[mc], self.recipecaches[mc])
eligible, foundUnique = bb.providers.filterProviders(filenames, pn, self.data, self.recipecaches[mc])
filename = eligible[0]
return None, None, None, filename
elif pn in self.recipecaches[mc].pkg_pn:
return bb.providers.findBestProvider(pn, self.databuilder.mcdata[mc], self.recipecaches[mc], self.recipecaches[mc].pkg_pn)
return bb.providers.findBestProvider(pn, self.data, self.recipecaches[mc], self.recipecaches[mc].pkg_pn)
else:
return None, None, None, None
@@ -1205,7 +1204,7 @@ class BBCooker:
for c in collection_list:
calc_layer_priority(c)
regex = self.data.getVar("BBFILE_PATTERN_%s" % c)
if regex is None:
if regex == None:
parselog.error("BBFILE_PATTERN_%s not defined" % c)
errors = True
continue
@@ -1311,7 +1310,7 @@ class BBCooker:
self.parseConfiguration()
# If we are told to do the None task then query the default task
if task is None:
if (task == None):
task = self.configuration.cmd
if not task.startswith("do_"):
task = "do_%s" % task
@@ -1455,7 +1454,7 @@ class BBCooker:
self.buildSetVars()
# If we are told to do the None task then query the default task
if task is None:
if (task == None):
task = self.configuration.cmd
if not task.startswith("do_"):
@@ -1473,7 +1472,7 @@ class BBCooker:
ntargets = []
for target in runlist:
if target[0]:
ntargets.append("mc:%s:%s:%s" % (target[0], target[1], target[2]))
ntargets.append("multiconfig:%s:%s:%s" % (target[0], target[1], target[2]))
ntargets.append("%s:%s" % (target[1], target[2]))
for mc in self.multiconfigs:
@@ -1593,12 +1592,9 @@ class BBCooker:
raise NothingToBuild
ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split()
for pkg in pkgs_to_build.copy():
for pkg in pkgs_to_build:
if pkg in ignore:
parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg)
if pkg.startswith("multiconfig:"):
pkgs_to_build.remove(pkg)
pkgs_to_build.append(pkg.replace("multiconfig:", "mc:"))
if 'world' in pkgs_to_build:
pkgs_to_build.remove('world')
@@ -1606,7 +1602,7 @@ class BBCooker:
bb.providers.buildWorldTargetList(self.recipecaches[mc], task)
for t in self.recipecaches[mc].world_target:
if mc:
t = "mc:" + mc + ":" + t
t = "multiconfig:" + mc + ":" + t
pkgs_to_build.append(t)
if 'universe' in pkgs_to_build:
@@ -1625,7 +1621,7 @@ class BBCooker:
bb.debug(1, "Skipping %s for universe tasks as task %s doesn't exist" % (t, task))
continue
if mc:
t = "mc:" + mc + ":" + t
t = "multiconfig:" + mc + ":" + t
pkgs_to_build.append(t)
return pkgs_to_build
@@ -1637,13 +1633,10 @@ class BBCooker:
return
def post_serve(self):
self.shutdown(force=True)
prserv.serv.auto_shutdown()
if self.hashserv:
self.hashserv.process.terminate()
self.hashserv.process.join()
bb.event.fire(CookerExit(), self.data)
def shutdown(self, force = False):
if force:
self.state = state.forceshutdown
@@ -1652,14 +1645,12 @@ class BBCooker:
if self.parser:
self.parser.shutdown(clean=not force, force=force)
self.parser.final_cleanup()
def finishcommand(self):
self.state = state.initial
def reset(self):
self.initConfigurationData()
self.handlePRServ()
def clientComplete(self):
"""Called when the client is done using the server"""
@@ -1668,8 +1659,6 @@ class BBCooker:
self.command.reset()
self.databuilder.reset()
self.data = self.databuilder.data
self.parsecache_valid = False
self.baseconfig_valid = False
class CookerExit(bb.event.Event):
@@ -1692,7 +1681,7 @@ class CookerCollectFiles(object):
def calc_bbfile_priority( self, filename, matched = None ):
for _, _, regex, pri in self.bbfile_config_priorities:
if regex.match(filename):
if matched is not None:
if matched != None:
if not regex in matched:
matched.add(regex)
return pri
@@ -1789,12 +1778,12 @@ 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.warning("BBMASK contains regular expression beginning with '|', fixing: %s" % mask)
collectlog.warn("BBMASK contains regular expression beginning with '|', fixing: %s" % mask)
mask = mask[1:]
try:
re.compile(mask)
bbmasks.append(mask)
except re.error:
except sre_constants.error:
collectlog.critical("BBMASK contains an invalid regular expression, ignoring: %s" % mask)
# Then validate the combined regular expressions. This should never
@@ -1802,7 +1791,7 @@ class CookerCollectFiles(object):
bbmask = "|".join(bbmasks)
try:
bbmask_compiled = re.compile(bbmask)
except re.error:
except sre_constants.error:
collectlog.critical("BBMASK is not a valid regular expression, ignoring: %s" % bbmask)
bbmask = None
@@ -1934,8 +1923,7 @@ class Parser(multiprocessing.Process):
except queue.Empty:
pass
else:
self.results.close()
self.results.join_thread()
self.results.cancel_join_thread()
break
if pending:
@@ -1944,8 +1932,6 @@ class Parser(multiprocessing.Process):
try:
job = self.jobs.pop()
except IndexError:
self.results.close()
self.results.join_thread()
break
result = self.parse(*job)
# Clear the siggen cache after parsing to control memory usage, its huge
@@ -1957,7 +1943,6 @@ class Parser(multiprocessing.Process):
def parse(self, filename, appends):
try:
origfilter = bb.event.LogHandler.filter
# Record the filename we're parsing into any events generated
def parse_filter(self, record):
record.taskpid = bb.event.worker_pid
@@ -1980,8 +1965,6 @@ class Parser(multiprocessing.Process):
# a SystemExit event for example.
except BaseException as exc:
return True, ParsingFailure(exc, filename)
finally:
bb.event.LogHandler.filter = origfilter
class CookerParser(object):
def __init__(self, cooker, filelist, masked):
@@ -2021,7 +2004,6 @@ class CookerParser(object):
self.start()
self.haveshutdown = False
self.syncthread = None
def start(self):
self.results = self.load_cached()
@@ -2063,17 +2045,12 @@ class CookerParser(object):
self.total)
bb.event.fire(event, self.cfgdata)
for process in self.processes:
self.parser_quit.put(None)
# Cleanup the queue before call process.join(), otherwise there might be
# deadlocks.
while True:
try:
self.result_queue.get(timeout=0.25)
except queue.Empty:
break
for process in self.processes:
self.parser_quit.put(None)
else:
self.parser_quit.cancel_join_thread()
for process in self.processes:
self.parser_quit.put(None)
for process in self.processes:
if force:
@@ -2082,13 +2059,9 @@ class CookerParser(object):
else:
process.join()
self.parser_quit.close()
# Allow data left in the cancel queue to be discarded
self.parser_quit.cancel_join_thread()
sync = threading.Thread(target=self.bb_cache.sync)
self.syncthread = sync
sync.start()
multiprocessing.util.Finalize(None, sync.join, exitpriority=-100)
bb.codeparser.parser_cache_savemerge()
bb.fetch.fetcher_parse_done()
if self.cooker.configuration.profile:
@@ -2102,10 +2075,6 @@ class CookerParser(object):
bb.utils.process_profilelog(profiles, pout = pout)
print("Processed parsing statistics saved to %s" % (pout))
def final_cleanup(self):
if self.syncthread:
self.syncthread.join()
def load_cached(self):
for filename, appends in self.fromcache:
cached, infos = self.bb_cache.load(filename, appends)
@@ -2138,18 +2107,18 @@ class CookerParser(object):
except bb.BBHandledException as exc:
self.error += 1
logger.error('Failed to parse recipe: %s' % exc.recipe)
self.shutdown(clean=False, force=True)
self.shutdown(clean=False)
return False
except ParsingFailure as exc:
self.error += 1
logger.error('Unable to parse %s: %s' %
(exc.recipe, bb.exceptions.to_string(exc.realexception)))
self.shutdown(clean=False, force=True)
self.shutdown(clean=False)
return False
except bb.parse.ParseError as exc:
self.error += 1
logger.error(str(exc))
self.shutdown(clean=False, force=True)
self.shutdown(clean=False)
return False
except bb.data_smart.ExpansionError as exc:
self.error += 1
@@ -2158,7 +2127,7 @@ class CookerParser(object):
tb = list(itertools.dropwhile(lambda e: e.filename.startswith(bbdir), exc.traceback))
logger.error('ExpansionError during parsing %s', value.recipe,
exc_info=(etype, value, tb))
self.shutdown(clean=False, force=True)
self.shutdown(clean=False)
return False
except Exception as exc:
self.error += 1
@@ -2170,7 +2139,7 @@ class CookerParser(object):
# Most likely, an exception occurred during raising an exception
import traceback
logger.error('Exception during parse: %s' % traceback.format_exc())
self.shutdown(clean=False, force=True)
self.shutdown(clean=False)
return False
self.current += 1

View File

@@ -1,3 +1,6 @@
#!/usr/bin/env python
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2003, 2004 Chris Larson
# Copyright (C) 2003, 2004 Phil Blundell
@@ -58,14 +61,11 @@ class ConfigParameters(object):
def updateToServer(self, server, environment):
options = {}
for o in ["abort", "force", "invalidate_stamp",
"debug", "dry_run", "dump_signatures",
"verbose", "debug", "dry_run", "dump_signatures",
"debug_domains", "extra_assume_provided", "profile",
"prefile", "postfile", "server_timeout"]:
options[o] = getattr(self.options, o)
options['build_verbose_shell'] = self.options.verbose
options['build_verbose_stdout'] = self.options.verbose
ret, error = server.runCommand(["updateConfig", options, environment, sys.argv])
if error:
raise Exception("Unable to update the server configuration with local parameters: %s" % error)
@@ -125,11 +125,8 @@ class CookerConfiguration(object):
self.profile = False
self.nosetscene = False
self.setsceneonly = False
self.skipsetscene = False
self.invalidate_stamp = False
self.dump_signatures = []
self.build_verbose_shell = False
self.build_verbose_stdout = False
self.dry_run = False
self.tracking = False
self.xmlrpcinterface = []
@@ -275,11 +272,11 @@ class CookerDataBuilder(object):
def parseBaseConfiguration(self):
data_hash = hashlib.sha256()
try:
bb.parse.init_parser(self.basedata)
self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles)
if self.data.getVar("BB_WORKERCONTEXT", False) is None:
bb.fetch.fetcher_init(self.data)
bb.parse.init_parser(self.data)
bb.codeparser.parser_cache_init(self.data)
bb.event.fire(bb.event.ConfigParsed(), self.data)
@@ -302,8 +299,6 @@ class CookerDataBuilder(object):
multiconfig = (self.data.getVar("BBMULTICONFIG") or "").split()
for config in multiconfig:
if config[0].isdigit():
bb.fatal("Multiconfig name '%s' is invalid as multiconfigs cannot start with a digit" % config)
mcdata = self.parseConfigurationFiles(self.prefiles, self.postfiles, config)
bb.event.fire(bb.event.ConfigParsed(), mcdata)
self.mcdata[config] = mcdata
@@ -353,27 +348,14 @@ class CookerDataBuilder(object):
data = parse_config_file(layerconf, data)
layers = (data.getVar('BBLAYERS') or "").split()
broken_layers = []
if not layers:
bb.fatal("The bblayers.conf file doesn't contain any BBLAYERS definition")
data = bb.data.createCopy(data)
approved = bb.utils.approved_variables()
# Check whether present layer directories exist
for layer in layers:
if not os.path.isdir(layer):
broken_layers.append(layer)
if broken_layers:
parselog.critical("The following layer directories do not exist:")
for layer in broken_layers:
parselog.critical(" %s", layer)
parselog.critical("Please check BBLAYERS in %s" % (layerconf))
sys.exit(1)
for layer in layers:
parselog.critical("Layer directory '%s' does not exist! "
"Please check BBLAYERS in %s" % (layer, layerconf))
sys.exit(1)
parselog.debug(2, "Adding layer %s", layer)
if 'HOME' in approved and '~' in layer:
layer = os.path.expanduser(layer)
@@ -409,8 +391,6 @@ class CookerDataBuilder(object):
if c in collections_tmp:
bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c)
compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split())
if compat and not layerseries:
bb.fatal("No core layer found to work with layer '%s'. Missing entry in bblayers.conf?" % c)
if compat and not (compat & layerseries):
bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)"
% (c, " ".join(layerseries), " ".join(compat)))

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Data' implementations
@@ -79,7 +81,7 @@ def expand(s, d, varname = None):
return d.expand(s, varname)
def expandKeys(alterdata, readdata = None):
if readdata is None:
if readdata == None:
readdata = alterdata
todolist = {}
@@ -130,7 +132,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
if all:
oval = d.getVar(var, False)
val = d.getVar(var)
except (KeyboardInterrupt):
except (KeyboardInterrupt, bb.build.FuncFailed):
raise
except Exception as exc:
o.write('# expansion of %s threw %s: %s\n' % (var, exc.__class__.__name__, str(exc)))
@@ -301,7 +303,6 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, d):
value += "\n_remove of %s" % r
deps |= r2.references
deps = deps | (keys & r2.execs)
value = handle_contains(value, r2.contains, d)
return value
if "vardepvalue" in varflags:
@@ -366,7 +367,7 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, d):
#bb.note("Variable %s references %s and calls %s" % (key, str(deps), str(execs)))
#d.setVarFlag(key, "vardeps", deps)
def generate_dependencies(d, whitelist):
def generate_dependencies(d):
keys = set(key for key in d if not key.startswith("__"))
shelldeps = set(key for key in d.getVar("__exportlist", False) if d.getVarFlag(key, "export", False) and not d.getVarFlag(key, "unexport", False))
@@ -381,7 +382,7 @@ def generate_dependencies(d, whitelist):
newdeps = deps[task]
seen = set()
while newdeps:
nextdeps = newdeps - whitelist
nextdeps = newdeps
seen |= nextdeps
newdeps = set()
for dep in nextdeps:
@@ -423,7 +424,7 @@ def generate_dependency_hash(tasklist, gendeps, lookupcache, whitelist, fn):
var = lookupcache[dep]
if var is not None:
data = data + str(var)
k = fn + ":" + task
k = fn + "." + task
basehash[k] = hashlib.sha256(data.encode("utf-8")).hexdigest()
taskdeps[task] = alldeps

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake Smart Dictionary Implementation
@@ -17,7 +19,7 @@ BitBake build tools.
# Based on functions from the base bb module, Copyright 2003 Holger Schurig
import copy, re, sys, traceback
from collections.abc import MutableMapping
from collections import MutableMapping
import logging
import hashlib
import bb, bb.codeparser
@@ -28,7 +30,7 @@ logger = logging.getLogger("BitBake.Data")
__setvar_keyword__ = ["_append", "_prepend", "_remove"]
__setvar_regexp__ = re.compile(r'(?P<base>.*?)(?P<keyword>_append|_prepend|_remove)(_(?P<add>[^A-Z]*))?$')
__expand_var_regexp__ = re.compile(r"\${[a-zA-Z0-9\-_+./~:]+?}")
__expand_var_regexp__ = re.compile(r"\${[a-zA-Z0-9\-_+./~]+?}")
__expand_python_regexp__ = re.compile(r"\${@.+?}")
__whitespace_split__ = re.compile(r'(\s)')
__override_regexp__ = re.compile(r'[a-z0-9]+')
@@ -107,6 +109,10 @@ class VariableParse:
else:
code = match.group()[3:-1]
if "_remote_data" in self.d:
connector = self.d["_remote_data"]
return connector.expandPythonRef(self.varname, code, self.d)
if self.varname:
varname = 'Var <%s>' % self.varname
else:
@@ -264,7 +270,12 @@ class VariableHistory(object):
self.variables[newvar].append(i.copy())
def variable(self, var):
varhistory = []
remote_connector = self.dataroot.getVar('_remote_data', False)
if remote_connector:
varhistory = remote_connector.getVarHistory(var)
else:
varhistory = []
if var in self.variables:
varhistory.extend(self.variables[var])
return varhistory
@@ -329,12 +340,11 @@ class VariableHistory(object):
lines.append(line)
return lines
def get_variable_items_files(self, var):
def get_variable_items_files(self, var, d):
"""
Use variable history to map items added to a list variable and
the files in which they were added.
"""
d = self.dataroot
history = self.variable(var)
finalitems = (d.getVar(var) or '').split()
filemap = {}
@@ -403,7 +413,7 @@ class DataSmart(MutableMapping):
s = __expand_python_regexp__.sub(varparse.python_sub, s)
except SyntaxError as e:
# Likely unmatched brackets, just don't expand the expression
if e.msg != "EOL while scanning string literal" and not e.msg.startswith("unterminated string literal"):
if e.msg != "EOL while scanning string literal":
raise
if s == olds:
break
@@ -411,8 +421,6 @@ class DataSmart(MutableMapping):
raise
except bb.parse.SkipRecipe:
raise
except bb.BBHandledException:
raise
except Exception as exc:
tb = sys.exc_info()[2]
raise ExpansionError(varname, s, exc).with_traceback(tb) from exc
@@ -464,6 +472,10 @@ class DataSmart(MutableMapping):
if var in dest:
return dest[var], self.overridedata.get(var, None)
if "_remote_data" in dest:
connector = dest["_remote_data"]["_content"]
return connector.getVar(var)
if "_data" not in dest:
break
dest = dest["_data"]
@@ -483,12 +495,17 @@ class DataSmart(MutableMapping):
def setVar(self, var, value, **loginfo):
#print("var=" + str(var) + " val=" + str(value))
var = var.replace(":", "_")
self.expand_cache = {}
parsing=False
if 'parsing' in loginfo:
parsing=True
if '_remote_data' in self.dict:
connector = self.dict["_remote_data"]["_content"]
res = connector.setVar(var, value)
if not res:
return
if 'op' not in loginfo:
loginfo['op'] = "set"
@@ -592,11 +609,11 @@ class DataSmart(MutableMapping):
"""
Rename the variable key to newkey
"""
key = key.replace(":", "_")
newkey = newkey.replace(":", "_")
if key == newkey:
bb.warn("Calling renameVar with equivalent keys (%s) is invalid" % key)
return
if '_remote_data' in self.dict:
connector = self.dict["_remote_data"]["_content"]
res = connector.renameVar(key, newkey)
if not res:
return
val = self.getVar(key, 0, parsing=True)
if val is not None:
@@ -642,8 +659,12 @@ class DataSmart(MutableMapping):
self.setVar(var + "_prepend", value, ignore=True, parsing=True)
def delVar(self, var, **loginfo):
var = var.replace(":", "_")
self.expand_cache = {}
if '_remote_data' in self.dict:
connector = self.dict["_remote_data"]["_content"]
res = connector.delVar(var)
if not res:
return
loginfo['detail'] = ""
loginfo['op'] = 'del'
@@ -670,8 +691,12 @@ class DataSmart(MutableMapping):
override = None
def setVarFlag(self, var, flag, value, **loginfo):
var = var.replace(":", "_")
self.expand_cache = {}
if '_remote_data' in self.dict:
connector = self.dict["_remote_data"]["_content"]
res = connector.setVarFlag(var, flag, value)
if not res:
return
if 'op' not in loginfo:
loginfo['op'] = "set"
@@ -694,7 +719,6 @@ class DataSmart(MutableMapping):
self.dict["__exportlist"]["_content"].add(var)
def getVarFlag(self, var, flag, expand=True, noweakdefault=False, parsing=False, retparser=False):
var = var.replace(":", "_")
if flag == "_content":
cachename = var
else:
@@ -822,8 +846,12 @@ class DataSmart(MutableMapping):
return value
def delVarFlag(self, var, flag, **loginfo):
var = var.replace(":", "_")
self.expand_cache = {}
if '_remote_data' in self.dict:
connector = self.dict["_remote_data"]["_content"]
res = connector.delVarFlag(var, flag)
if not res:
return
local_var, _ = self._findVar(var)
if not local_var:
@@ -840,7 +868,6 @@ class DataSmart(MutableMapping):
del self.dict[var][flag]
def appendVarFlag(self, var, flag, value, **loginfo):
var = var.replace(":", "_")
loginfo['op'] = 'append'
loginfo['flag'] = flag
self.varhistory.record(**loginfo)
@@ -848,7 +875,6 @@ class DataSmart(MutableMapping):
self.setVarFlag(var, flag, newvalue, ignore=True)
def prependVarFlag(self, var, flag, value, **loginfo):
var = var.replace(":", "_")
loginfo['op'] = 'prepend'
loginfo['flag'] = flag
self.varhistory.record(**loginfo)
@@ -856,7 +882,6 @@ class DataSmart(MutableMapping):
self.setVarFlag(var, flag, newvalue, ignore=True)
def setVarFlags(self, var, flags, **loginfo):
var = var.replace(":", "_")
self.expand_cache = {}
infer_caller_details(loginfo)
if not var in self.dict:
@@ -871,7 +896,6 @@ class DataSmart(MutableMapping):
self.dict[var][i] = flags[i]
def getVarFlags(self, var, expand = False, internalflags=False):
var = var.replace(":", "_")
local_var, _ = self._findVar(var)
flags = {}
@@ -888,7 +912,6 @@ class DataSmart(MutableMapping):
def delVarFlags(self, var, **loginfo):
var = var.replace(":", "_")
self.expand_cache = {}
if not var in self.dict:
self._makeShadowCopy(var)
@@ -946,7 +969,7 @@ class DataSmart(MutableMapping):
def localkeys(self):
for key in self.dict:
if key not in ['_data']:
if key not in ['_data', '_remote_data']:
yield key
def __iter__(self):
@@ -955,7 +978,7 @@ class DataSmart(MutableMapping):
def keylist(d):
klist = set()
for key in d:
if key in ["_data"]:
if key in ["_data", "_remote_data"]:
continue
if key in deleted:
continue
@@ -969,6 +992,13 @@ class DataSmart(MutableMapping):
if "_data" in d:
klist |= keylist(d["_data"])
if "_remote_data" in d:
connector = d["_remote_data"]["_content"]
for key in connector.getKeys():
if key in deleted:
continue
klist.add(key)
return klist
self.need_overrides()
@@ -1014,12 +1044,9 @@ class DataSmart(MutableMapping):
continue
value = d.getVar(key, False) or ""
if type(value) is type(self):
data.update({key:value.get_hash()})
else:
data.update({key:value})
data.update({key:value})
varflags = d.getVarFlags(key, internalflags = True, expand=["vardepvalue"])
varflags = d.getVarFlags(key, internalflags = True)
if not varflags:
continue
for f in varflags:

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Event' implementation
@@ -10,17 +12,18 @@ BitBake build tools.
# SPDX-License-Identifier: GPL-2.0-only
#
import ast
import atexit
import collections
import logging
import os, sys
import warnings
import pickle
import sys
import threading
import logging
import atexit
import traceback
import ast
import threading
import bb.exceptions
import bb.utils
import bb.compat
import bb.exceptions
# This is the pid for which we should generate the event. This is set when
# the runqueue forks off.
@@ -56,7 +59,7 @@ def set_class_handlers(h):
_handlers = h
def clean_class_handlers():
return collections.OrderedDict()
return bb.compat.OrderedDict()
# Internal
_handlers = clean_class_handlers()
@@ -123,7 +126,6 @@ def fire_class_handlers(event, d):
ui_queue = []
@atexit.register
def print_ui_queue():
global ui_queue
"""If we're exiting before a UI has been spawned, display any queued
LogRecords to the console."""
logger = logging.getLogger("BitBake")
@@ -168,7 +170,6 @@ def print_ui_queue():
logger.removeHandler(stderr)
else:
logger.removeHandler(stdout)
ui_queue = []
def fire_ui_handlers(event, d):
global _thread_lock
@@ -346,7 +347,7 @@ def set_UIHmask(handlerNum, level, debug_domains, mask):
def getName(e):
"""Returns the name of a class or class instance"""
if getattr(e, "__name__", None) is None:
if getattr(e, "__name__", None) == None:
return e.__class__.__name__
else:
return e.__name__
@@ -403,6 +404,23 @@ class RecipeTaskPreProcess(RecipeEvent):
class RecipeParsed(RecipeEvent):
""" Recipe Parsing Complete """
class StampUpdate(Event):
"""Trigger for any adjustment of the stamp files to happen"""
def __init__(self, targets, stampfns):
self._targets = targets
self._stampfns = stampfns
Event.__init__(self)
def getStampPrefix(self):
return self._stampfns
def getTargets(self):
return self._targets
stampPrefix = property(getStampPrefix)
targets = property(getTargets)
class BuildBase(Event):
"""Base class for bitbake build events"""
@@ -508,7 +526,7 @@ class NoProvider(Event):
extra = ''
if not self._reasons:
if self._close_matches:
extra = ". Close matches:\n %s" % '\n '.join(sorted(set(self._close_matches)))
extra = ". Close matches:\n %s" % '\n '.join(self._close_matches)
if self._dependees:
msg = "Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)%s" % (r, self._item, ", ".join(self._dependees), r, extra)

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' implementations
@@ -33,9 +35,6 @@ _checksum_cache = bb.checksum.FileChecksumCache()
logger = logging.getLogger("BitBake.Fetcher")
CHECKSUM_LIST = [ "md5", "sha256", "sha1", "sha384", "sha512" ]
SHOWN_CHECKSUM_LIST = ["sha256"]
class BBFetchException(Exception):
"""Class all fetch exceptions inherit from"""
def __init__(self, message):
@@ -134,9 +133,10 @@ class NonLocalMethod(Exception):
Exception.__init__(self)
class MissingChecksumEvent(bb.event.Event):
def __init__(self, url, **checksums):
def __init__(self, url, md5sum, sha256sum):
self.url = url
self.checksums = checksums
self.checksums = {'md5sum': md5sum,
'sha256sum': sha256sum}
bb.event.Event.__init__(self)
@@ -486,22 +486,17 @@ def fetcher_init(d):
Called to initialize the fetchers once the configuration data is known.
Calls before this must not hit the cache.
"""
revs = bb.persist_data.persist('BB_URI_HEADREVS', d)
try:
# fetcher_init is called multiple times, so make sure we only save the
# revs the first time it is called.
if not bb.fetch2.saved_headrevs:
bb.fetch2.saved_headrevs = dict(revs)
except:
pass
# When to drop SCM head revisions controlled by user policy
srcrev_policy = d.getVar('BB_SRCREV_POLICY') or "clear"
if srcrev_policy == "cache":
logger.debug(1, "Keeping SRCREV cache due to cache policy of: %s", srcrev_policy)
elif srcrev_policy == "clear":
logger.debug(1, "Clearing SRCREV cache due to cache policy of: %s", srcrev_policy)
revs = bb.persist_data.persist('BB_URI_HEADREVS', d)
try:
bb.fetch2.saved_headrevs = revs.items()
except:
pass
revs.clear()
else:
raise FetchError("Invalid SRCREV cache policy of: %s" % srcrev_policy)
@@ -520,12 +515,22 @@ def fetcher_parse_done():
def fetcher_compare_revisions(d):
"""
Compare the revisions in the persistent cache with the saved values from
when bitbake was started and return true if they have changed.
Compare the revisions in the persistant cache with current values and
return true/false on whether they've changed.
"""
headrevs = dict(bb.persist_data.persist('BB_URI_HEADREVS', d))
return headrevs != bb.fetch2.saved_headrevs
data = bb.persist_data.persist('BB_URI_HEADREVS', d).items()
data2 = bb.fetch2.saved_headrevs
changed = False
for key in data:
if key not in data2 or data2[key] != data[key]:
logger.debug(1, "%s changed", key)
changed = True
return True
else:
logger.debug(2, "%s did not change", key)
return False
def mirror_from_string(data):
mirrors = (data or "").replace('\\n',' ').split()
@@ -549,87 +554,71 @@ def verify_checksum(ud, d, precomputed={}):
downloading. See https://bugzilla.yoctoproject.org/show_bug.cgi?id=5571.
"""
_MD5_KEY = "md5"
_SHA256_KEY = "sha256"
if ud.ignore_checksums or not ud.method.supports_checksum(ud):
return {}
def compute_checksum_info(checksum_id):
checksum_name = getattr(ud, "%s_name" % checksum_id)
if _MD5_KEY in precomputed:
md5data = precomputed[_MD5_KEY]
else:
md5data = bb.utils.md5_file(ud.localpath)
if checksum_id in precomputed:
checksum_data = precomputed[checksum_id]
else:
checksum_data = getattr(bb.utils, "%s_file" % checksum_id)(ud.localpath)
checksum_expected = getattr(ud, "%s_expected" % checksum_id)
if checksum_expected == '':
checksum_expected = None
return {
"id": checksum_id,
"name": checksum_name,
"data": checksum_data,
"expected": checksum_expected
}
checksum_infos = []
for checksum_id in CHECKSUM_LIST:
checksum_infos.append(compute_checksum_info(checksum_id))
checksum_dict = {ci["id"] : ci["data"] for ci in checksum_infos}
checksum_event = {"%ssum" % ci["id"] : ci["data"] for ci in checksum_infos}
for ci in checksum_infos:
if ci["id"] in SHOWN_CHECKSUM_LIST:
checksum_lines = ["SRC_URI[%s] = \"%s\"" % (ci["name"], ci["data"])]
# If no checksum has been provided
if ud.method.recommends_checksum(ud) and all(ci["expected"] is None for ci in checksum_infos):
messages = []
strict = d.getVar("BB_STRICT_CHECKSUM") or "0"
if _SHA256_KEY in precomputed:
sha256data = precomputed[_SHA256_KEY]
else:
sha256data = bb.utils.sha256_file(ud.localpath)
if ud.method.recommends_checksum(ud) and not ud.md5_expected and not ud.sha256_expected:
# If strict checking enabled and neither sum defined, raise error
strict = d.getVar("BB_STRICT_CHECKSUM") or "0"
if strict == "1":
messages.append("No checksum specified for '%s', please add at " \
"least one to the recipe:" % ud.localpath)
messages.extend(checksum_lines)
logger.error("\n".join(messages))
raise NoChecksumError("Missing SRC_URI checksum", ud.url)
logger.error('No checksum specified for %s, please add at least one to the recipe:\n'
'SRC_URI[%s] = "%s"\nSRC_URI[%s] = "%s"' %
(ud.localpath, ud.md5_name, md5data,
ud.sha256_name, sha256data))
raise NoChecksumError('Missing SRC_URI checksum', ud.url)
bb.event.fire(MissingChecksumEvent(ud.url, **checksum_event), d)
bb.event.fire(MissingChecksumEvent(ud.url, md5data, sha256data), d)
if strict == "ignore":
return checksum_dict
return {
_MD5_KEY: md5data,
_SHA256_KEY: sha256data
}
# Log missing sums so user can more easily add them
messages.append("Missing checksum for '%s', consider adding at " \
"least one to the recipe:" % ud.localpath)
messages.extend(checksum_lines)
logger.warning("\n".join(messages))
logger.warning('Missing md5 SRC_URI checksum for %s, consider adding to the recipe:\n'
'SRC_URI[%s] = "%s"',
ud.localpath, ud.md5_name, md5data)
logger.warning('Missing sha256 SRC_URI checksum for %s, consider adding to the recipe:\n'
'SRC_URI[%s] = "%s"',
ud.localpath, ud.sha256_name, sha256data)
# We want to alert the user if a checksum is defined in the recipe but
# it does not match.
messages = []
messages.append("Checksum mismatch!")
bad_checksum = None
msg = ""
mismatch = False
if ud.md5_expected and ud.md5_expected != md5data:
msg = msg + "\nFile: '%s' has %s checksum %s when %s was expected" % (ud.localpath, 'md5', md5data, ud.md5_expected)
mismatch = True;
for ci in checksum_infos:
if ci["expected"] and ci["expected"] != ci["data"]:
messages.append("File: '%s' has %s checksum '%s' when '%s' was " \
"expected" % (ud.localpath, ci["id"], ci["data"], ci["expected"]))
bad_checksum = ci["data"]
if ud.sha256_expected and ud.sha256_expected != sha256data:
msg = msg + "\nFile: '%s' has %s checksum %s when %s was expected" % (ud.localpath, 'sha256', sha256data, ud.sha256_expected)
mismatch = True;
if bad_checksum:
messages.append("If this change is expected (e.g. you have upgraded " \
"to a new version without updating the checksums) " \
"then you can use these lines within the recipe:")
messages.extend(checksum_lines)
messages.append("Otherwise you should retry the download and/or " \
"check with upstream to determine if the file has " \
"become corrupted or otherwise unexpectedly modified.")
raise ChecksumError("\n".join(messages), ud.url, bad_checksum)
if mismatch:
msg = msg + '\nIf this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:\nSRC_URI[%s] = "%s"\nSRC_URI[%s] = "%s"\nOtherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.\n' % (ud.md5_name, md5data, ud.sha256_name, sha256data)
if len(msg):
raise ChecksumError('Checksum mismatch!%s' % msg, ud.url, md5data)
return {
_MD5_KEY: md5data,
_SHA256_KEY: sha256data
}
return checksum_dict
def verify_donestamp(ud, d, origud=None):
"""
@@ -856,6 +845,11 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None):
if val:
cmd = 'export ' + var + '=\"%s\"; %s' % (val, cmd)
# Ensure that a _PYTHON_SYSCONFIGDATA_NAME value set by a recipe
# (for example via python3native.bbclass since warrior) is not set for
# host Python (otherwise tools like git-make-shallow will fail)
cmd = 'unset _PYTHON_SYSCONFIGDATA_NAME; ' + cmd
# Disable pseudo as it may affect ssh, potentially causing it to hang.
cmd = 'export PSEUDO_DISABLED=1; ' + cmd
@@ -1089,7 +1083,7 @@ def try_mirrors(fetch, d, origud, mirrors, check = False):
for index, uri in enumerate(uris):
ret = try_mirror_url(fetch, origud, uds[index], ld, check)
if ret:
if ret != False:
return ret
return None
@@ -1205,14 +1199,14 @@ def get_checksum_file_list(d):
return " ".join(filelist)
def get_file_checksums(filelist, pn, localdirsexclude):
def get_file_checksums(filelist, pn):
"""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, localdirsexclude)
return _checksum_cache.get_checksums(filelist, pn)
class FetchData(object):
@@ -1238,26 +1232,24 @@ class FetchData(object):
self.pswd = self.parm["pswd"]
self.setup = False
def configure_checksum(checksum_id):
if "name" in self.parm:
checksum_name = "%s.%ssum" % (self.parm["name"], checksum_id)
else:
checksum_name = "%ssum" % checksum_id
setattr(self, "%s_name" % checksum_id, checksum_name)
if checksum_name in self.parm:
checksum_expected = self.parm[checksum_name]
elif self.type not in ["http", "https", "ftp", "ftps", "sftp", "s3"]:
checksum_expected = None
else:
checksum_expected = d.getVarFlag("SRC_URI", checksum_name)
setattr(self, "%s_expected" % checksum_id, checksum_expected)
for checksum_id in CHECKSUM_LIST:
configure_checksum(checksum_id)
if "name" in self.parm:
self.md5_name = "%s.md5sum" % self.parm["name"]
self.sha256_name = "%s.sha256sum" % self.parm["name"]
else:
self.md5_name = "md5sum"
self.sha256_name = "sha256sum"
if self.md5_name in self.parm:
self.md5_expected = self.parm[self.md5_name]
elif self.type not in ["http", "https", "ftp", "ftps", "sftp", "s3"]:
self.md5_expected = None
else:
self.md5_expected = d.getVarFlag("SRC_URI", self.md5_name)
if self.sha256_name in self.parm:
self.sha256_expected = self.parm[self.sha256_name]
elif self.type not in ["http", "https", "ftp", "ftps", "sftp", "s3"]:
self.sha256_expected = None
else:
self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name)
self.ignore_checksums = False
self.names = self.parm.get("name",'default').split(',')
@@ -1361,7 +1353,7 @@ class FetchMethod(object):
"""
# We cannot compute checksums for directories
if os.path.isdir(urldata.localpath):
if os.path.isdir(urldata.localpath) == True:
return False
if urldata.localpath.find("*") != -1:
return False
@@ -1375,18 +1367,6 @@ class FetchMethod(object):
"""
return False
def verify_donestamp(self, ud, d):
"""
Verify the donestamp file
"""
return verify_donestamp(ud, d)
def update_donestamp(self, ud, d):
"""
Update the donestamp file
"""
update_stamp(ud, d)
def _strip_leading_slashes(self, relpath):
"""
Remove leading slash as os.path.join can't cope
@@ -1561,12 +1541,6 @@ class FetchMethod(object):
"""
return True
def try_mirrors(self, fetch, urldata, d, mirrors, check=False):
"""
Try to use a mirror
"""
return bool(try_mirrors(fetch, d, urldata, mirrors, check))
def checkstatus(self, fetch, urldata, d):
"""
Check the status of a URL
@@ -1595,7 +1569,8 @@ class FetchMethod(object):
return True, str(latest_rev)
def generate_revision_key(self, ud, d, name):
return self._revision_key(ud, d, name)
key = self._revision_key(ud, d, name)
return "%s-%s" % (key, d.getVar("PN") or "")
def latest_versionstring(self, ud, d):
"""
@@ -1605,16 +1580,6 @@ class FetchMethod(object):
"""
return ('', '')
def done(self, ud, d):
"""
Is the download done ?
"""
if os.path.exists(ud.localpath):
return True
if ud.localpath.find("*") != -1:
return True
return False
class Fetch(object):
def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None):
if localonly and cache:
@@ -1629,11 +1594,8 @@ class Fetch(object):
fn = d.getVar('FILE')
mc = d.getVar('__BBMULTICONFIG') or ""
key = None
if cache and fn:
key = mc + fn + str(id(d))
if key in urldata_cache:
self.ud = urldata_cache[key]
if cache and fn and mc + fn in urldata_cache:
self.ud = urldata_cache[mc + fn + str(id(d))]
for url in urls:
if url not in self.ud:
@@ -1644,8 +1606,8 @@ class Fetch(object):
self.ud[url] = None
pass
if key:
urldata_cache[key] = self.ud
if fn and cache:
urldata_cache[mc + fn + str(id(d))] = self.ud
def localpath(self, url):
if url not in self.urls:
@@ -1681,7 +1643,7 @@ class Fetch(object):
ud = self.ud[u]
ud.setup_localpath(self.d)
m = ud.method
done = False
localpath = ""
if ud.lockfile:
lf = bb.utils.lockfile(ud.lockfile)
@@ -1689,28 +1651,28 @@ class Fetch(object):
try:
self.d.setVar("BB_NO_NETWORK", network)
if m.verify_donestamp(ud, self.d) and not m.need_update(ud, self.d):
done = True
if verify_donestamp(ud, self.d) and not m.need_update(ud, self.d):
localpath = ud.localpath
elif m.try_premirror(ud, self.d):
logger.debug(1, "Trying PREMIRRORS")
mirrors = mirror_from_string(self.d.getVar('PREMIRRORS'))
done = m.try_mirrors(self, ud, self.d, mirrors)
if done:
localpath = try_mirrors(self, self.d, ud, mirrors, False)
if localpath:
try:
# early checksum verification so that if the checksum of the premirror
# contents mismatch the fetcher can still try upstream and mirrors
m.update_donestamp(ud, self.d)
update_stamp(ud, self.d)
except ChecksumError as e:
logger.warning("Checksum failure encountered with premirror download of %s - will attempt other sources." % u)
logger.debug(1, str(e))
done = False
localpath = ""
if premirroronly:
self.d.setVar("BB_NO_NETWORK", "1")
firsterr = None
verified_stamp = m.verify_donestamp(ud, self.d)
if not done and (not verified_stamp or m.need_update(ud, self.d)):
verified_stamp = verify_donestamp(ud, self.d)
if not localpath and (not verified_stamp or m.need_update(ud, self.d)):
try:
if not trusted_network(self.d, ud.url):
raise UntrustedUrl(ud.url)
@@ -1718,10 +1680,10 @@ class Fetch(object):
m.download(ud, self.d)
if hasattr(m, "build_mirror_data"):
m.build_mirror_data(ud, self.d)
done = True
localpath = ud.localpath
# early checksum verify, so that if checksum mismatched,
# fetcher still have chance to fetch from mirror
m.update_donestamp(ud, self.d)
update_stamp(ud, self.d)
except bb.fetch2.NetworkAccess:
raise
@@ -1743,14 +1705,14 @@ class Fetch(object):
m.clean(ud, self.d)
logger.debug(1, "Trying MIRRORS")
mirrors = mirror_from_string(self.d.getVar('MIRRORS'))
done = m.try_mirrors(self, ud, self.d, mirrors)
localpath = try_mirrors(self, self.d, ud, mirrors)
if not done or not m.done(ud, self.d):
if not localpath or ((not os.path.exists(localpath)) and localpath.find("*") == -1):
if firsterr:
logger.error(str(firsterr))
raise FetchError("Unable to fetch URL from any source.", u)
m.update_donestamp(ud, self.d)
update_stamp(ud, self.d)
except IOError as e:
if e.errno in [errno.ESTALE]:
@@ -1781,14 +1743,14 @@ class Fetch(object):
logger.debug(1, "Testing URL %s", u)
# First try checking uri, u, from PREMIRRORS
mirrors = mirror_from_string(self.d.getVar('PREMIRRORS'))
ret = m.try_mirrors(self, ud, self.d, mirrors, True)
ret = try_mirrors(self, self.d, ud, mirrors, True)
if not ret:
# Next try checking from the original uri, u
ret = m.checkstatus(self, ud, self.d)
if not ret:
# Finally, try checking uri, u, from MIRRORS
mirrors = mirror_from_string(self.d.getVar('MIRRORS'))
ret = m.try_mirrors(self, ud, self.d, mirrors, True)
ret = try_mirrors(self, self.d, ud, mirrors, True)
if not ret:
raise FetchError("URL %s doesn't work" % u, u)
@@ -1893,7 +1855,6 @@ from . import osc
from . import repo
from . import clearcase
from . import npm
from . import npmsw
methods.append(local.Local())
methods.append(wget.Wget())
@@ -1912,4 +1873,3 @@ methods.append(osc.Osc())
methods.append(repo.Repo())
methods.append(clearcase.ClearCase())
methods.append(npm.Npm())
methods.append(npmsw.NpmShrinkWrap())

View File

@@ -14,6 +14,8 @@ BitBake 'Fetch' implementation for bzr.
#
import os
import sys
import logging
import bb
from bb.fetch2 import FetchMethod
from bb.fetch2 import FetchError

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' clearcase implementation
@@ -49,12 +51,11 @@ User credentials:
#
import os
import sys
import shutil
import bb
from bb.fetch2 import FetchMethod
from bb.fetch2 import FetchError
from bb.fetch2 import MissingParameterError
from bb.fetch2 import ParameterError
from bb.fetch2 import runfetchcmd
from bb.fetch2 import logger
@@ -80,7 +81,7 @@ class ClearCase(FetchMethod):
if 'protocol' in ud.parm:
ud.proto = ud.parm['protocol']
if not ud.proto in ('http', 'https'):
raise ParameterError("Invalid protocol type", ud.url)
raise fetch2.ParameterError("Invalid protocol type", ud.url)
ud.vob = ''
if 'vob' in ud.parm:
@@ -144,18 +145,18 @@ class ClearCase(FetchMethod):
basecmd = "%s %s" % (ud.basecmd, command)
if command == 'mkview':
if command is 'mkview':
if not "rcleartool" in ud.basecmd:
# Cleartool needs a -snapshot view
options.append("-snapshot")
options.append("-tag %s" % ud.viewname)
options.append(ud.viewdir)
elif command == 'rmview':
elif command is 'rmview':
options.append("-force")
options.append("%s" % ud.viewdir)
elif command == 'setcs':
elif command is 'setcs':
options.append("-overwrite")
options.append(ud.configspecfile)
@@ -237,7 +238,7 @@ class ClearCase(FetchMethod):
# Clean clearcase meta-data before tar
runfetchcmd('tar -czf "%s" .' % (ud.localpath), d, cleanup = [ud.localpath], workdir = ud.viewdir)
runfetchcmd('tar -czf "%s" .' % (ud.localpath), d, cleanup = [ud.localpath])
# Clean up so we can create a new view next time
self.clean(ud, d);

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' implementations
@@ -14,6 +16,7 @@ BitBake build tools.
#
import os
import logging
import bb
from bb.fetch2 import FetchMethod, FetchError, MissingParameterError, logger
from bb.fetch2 import runfetchcmd

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' git implementation
@@ -44,8 +46,7 @@ Supported SRC_URI options are:
- nobranch
Don't check the SHA validation for branch. set this option for the recipe
referring to commit which is valid in any namespace (branch, tag, ...)
instead of branch.
referring to commit which is valid in tag instead of branch.
The default is "0", set nobranch=1 if needed.
- usehead
@@ -64,12 +65,10 @@ import errno
import fnmatch
import os
import re
import shlex
import subprocess
import tempfile
import bb
import bb.progress
from contextlib import contextmanager
from bb.fetch2 import FetchMethod
from bb.fetch2 import runfetchcmd
from bb.fetch2 import logger
@@ -226,12 +225,7 @@ class Git(FetchMethod):
ud.shallow = False
if ud.usehead:
# When usehead is set let's associate 'HEAD' with the unresolved
# rev of this repository. This will get resolved into a revision
# later. If an actual revision happens to have also been provided
# then this setting will be overridden.
for name in ud.names:
ud.unresolvedrev[name] = 'HEAD'
ud.unresolvedrev['default'] = 'HEAD'
ud.basecmd = d.getVar("FETCHCMD_git") or "git -c core.fsyncobjectfiles=0"
@@ -248,7 +242,7 @@ class Git(FetchMethod):
ud.unresolvedrev[name] = ud.revisions[name]
ud.revisions[name] = self.latest_revision(ud, d, name)
gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.').replace(' ','_'))
gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.'))
if gitsrcname.startswith('.'):
gitsrcname = gitsrcname[1:]
@@ -304,21 +298,11 @@ class Git(FetchMethod):
def clonedir_need_update(self, ud, d):
if not os.path.exists(ud.clonedir):
return True
if ud.shallow and ud.write_shallow_tarballs and self.clonedir_need_shallow_revs(ud, d):
return True
for name in ud.names:
if not self._contains_ref(ud, d, name, ud.clonedir):
return True
return False
def clonedir_need_shallow_revs(self, ud, d):
for rev in ud.shallow_revs:
try:
runfetchcmd('%s rev-parse -q --verify %s' % (ud.basecmd, rev), d, quiet=True, workdir=ud.clonedir)
except bb.fetch2.FetchError:
return rev
return None
def shallow_tarball_need_update(self, ud):
return ud.shallow and ud.write_shallow_tarballs and not os.path.exists(ud.fullshallow)
@@ -354,24 +338,26 @@ class Git(FetchMethod):
# We do this since git will use a "-l" option automatically for local urls where possible
if repourl.startswith("file://"):
repourl = repourl[7:]
clone_cmd = "LANG=C %s clone --bare --mirror %s %s --progress" % (ud.basecmd, shlex.quote(repourl), ud.clonedir)
clone_cmd = "LANG=C %s clone --bare --mirror %s %s --progress" % (ud.basecmd, repourl, ud.clonedir)
if ud.proto.lower() != 'file':
bb.fetch2.check_network_access(d, clone_cmd, ud.url)
progresshandler = GitProgressHandler(d)
runfetchcmd(clone_cmd, d, log=progresshandler)
# Update the checkout if needed
if self.clonedir_need_update(ud, d):
needupdate = False
for name in ud.names:
if not self._contains_ref(ud, d, name, ud.clonedir):
needupdate = True
break
if needupdate:
output = runfetchcmd("%s remote" % ud.basecmd, d, quiet=True, workdir=ud.clonedir)
if "origin" in output:
runfetchcmd("%s remote rm origin" % ud.basecmd, d, workdir=ud.clonedir)
runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, shlex.quote(repourl)), d, workdir=ud.clonedir)
if ud.nobranch:
fetch_cmd = "LANG=C %s fetch -f --progress %s refs/*:refs/*" % (ud.basecmd, shlex.quote(repourl))
else:
fetch_cmd = "LANG=C %s fetch -f --progress %s refs/heads/*:refs/heads/* refs/tags/*:refs/tags/*" % (ud.basecmd, shlex.quote(repourl))
runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir)
fetch_cmd = "LANG=C %s fetch -f --progress %s refs/*:refs/*" % (ud.basecmd, repourl)
if ud.proto.lower() != 'file':
bb.fetch2.check_network_access(d, fetch_cmd, ud.url)
progresshandler = GitProgressHandler(d)
@@ -389,55 +375,7 @@ class Git(FetchMethod):
if not self._contains_ref(ud, d, name, ud.clonedir):
raise bb.fetch2.FetchError("Unable to find revision %s in branch %s even from upstream" % (ud.revisions[name], ud.branches[name]))
if ud.shallow and ud.write_shallow_tarballs:
missing_rev = self.clonedir_need_shallow_revs(ud, d)
if missing_rev:
raise bb.fetch2.FetchError("Unable to find revision %s even from upstream" % missing_rev)
if self._contains_lfs(ud, d, ud.clonedir) and self._need_lfs(ud):
# Unpack temporary working copy, use it to run 'git checkout' to force pre-fetching
# of all LFS blobs needed at the the srcrev.
#
# It would be nice to just do this inline here by running 'git-lfs fetch'
# on the bare clonedir, but that operation requires a working copy on some
# releases of Git LFS.
tmpdir = tempfile.mkdtemp(dir=d.getVar('DL_DIR'))
try:
# Do the checkout. This implicitly involves a Git LFS fetch.
Git.unpack(self, ud, tmpdir, d)
# Scoop up a copy of any stuff that Git LFS downloaded. Merge them into
# the bare clonedir.
#
# As this procedure is invoked repeatedly on incremental fetches as
# a recipe's SRCREV is bumped throughout its lifetime, this will
# result in a gradual accumulation of LFS blobs in <ud.clonedir>/lfs
# corresponding to all the blobs reachable from the different revs
# fetched across time.
#
# Only do this if the unpack resulted in a .git/lfs directory being
# created; this only happens if at least one blob needed to be
# downloaded.
if os.path.exists(os.path.join(tmpdir, "git", ".git", "lfs")):
runfetchcmd("tar -cf - lfs | tar -xf - -C %s" % ud.clonedir, d, workdir="%s/git/.git" % tmpdir)
finally:
bb.utils.remove(tmpdir, recurse=True)
def build_mirror_data(self, ud, d):
# Create as a temp file and move atomically into position to avoid races
@contextmanager
def create_atomic(filename):
fd, tfile = tempfile.mkstemp(dir=os.path.dirname(filename))
try:
yield tfile
umask = os.umask(0o666)
os.umask(umask)
os.chmod(tfile, (0o666 & ~umask))
os.rename(tfile, filename)
finally:
os.close(fd)
if ud.shallow and ud.write_shallow_tarballs:
if not os.path.exists(ud.fullshallow):
if os.path.islink(ud.fullshallow):
@@ -448,8 +386,7 @@ class Git(FetchMethod):
self.clone_shallow_local(ud, shallowclone, d)
logger.info("Creating tarball of git repository")
with create_atomic(ud.fullshallow) as tfile:
runfetchcmd("tar -czf %s ." % tfile, d, workdir=shallowclone)
runfetchcmd("tar -czf %s ." % ud.fullshallow, d, workdir=shallowclone)
runfetchcmd("touch %s.done" % ud.fullshallow, d)
finally:
bb.utils.remove(tempdir, recurse=True)
@@ -458,8 +395,7 @@ class Git(FetchMethod):
os.unlink(ud.fullmirror)
logger.info("Creating tarball of git repository")
with create_atomic(ud.fullmirror) as tfile:
runfetchcmd("tar -czf %s ." % tfile, d, workdir=ud.clonedir)
runfetchcmd("tar -czf %s ." % ud.fullmirror, d, workdir=ud.clonedir)
runfetchcmd("touch %s.done" % ud.fullmirror, d)
def clone_shallow_local(self, ud, dest, d):
@@ -534,11 +470,6 @@ class Git(FetchMethod):
if os.path.exists(destdir):
bb.utils.prunedir(destdir)
need_lfs = self._need_lfs(ud)
if not need_lfs:
ud.basecmd = "GIT_LFS_SKIP_SMUDGE=1 " + ud.basecmd
source_found = False
source_error = []
@@ -565,13 +496,17 @@ class Git(FetchMethod):
raise bb.fetch2.UnpackError("No up to date source found: " + "; ".join(source_error), ud.url)
repourl = self._get_repo_url(ud)
runfetchcmd("%s remote set-url origin %s" % (ud.basecmd, shlex.quote(repourl)), d, workdir=destdir)
runfetchcmd("%s remote set-url origin %s" % (ud.basecmd, repourl), d, workdir=destdir)
if self._contains_lfs(ud, d, destdir):
if need_lfs and not self._find_git_lfs(d):
raise bb.fetch2.FetchError("Repository %s has LFS content, install git-lfs on host to download (or set lfs=0 to ignore it)" % (repourl))
elif not need_lfs:
bb.note("Repository %s has LFS content but it is not being fetched" % (repourl))
path = d.getVar('PATH')
if path:
gitlfstool = bb.utils.which(path, "git-lfs", executable=True)
if not gitlfstool:
raise bb.fetch2.FetchError("Repository %s has lfs content, install git-lfs plugin on host to download" % (repourl))
else:
bb.note("Could not find 'PATH'")
if not ud.nocheckout:
if subdir != "":
@@ -623,28 +558,12 @@ class Git(FetchMethod):
raise bb.fetch2.FetchError("The command '%s' gave output with more then 1 line unexpectedly, output: '%s'" % (cmd, output))
return output.split()[0] != "0"
def _need_lfs(self, ud):
return ud.parm.get("lfs", "1") == "1"
def _contains_lfs(self, ud, d, wd):
"""
Check if the repository has 'lfs' (large file) content
"""
if not ud.nobranch:
branchname = ud.branches[ud.names[0]]
else:
branchname = "master"
# The bare clonedir doesn't use the remote names; it has the branch immediately.
if wd == ud.clonedir:
refname = ud.branches[ud.names[0]]
else:
refname = "origin/%s" % ud.branches[ud.names[0]]
cmd = "%s grep lfs %s:.gitattributes | wc -l" % (
ud.basecmd, refname)
cmd = "%s grep lfs HEAD:.gitattributes | wc -l" % (
ud.basecmd)
try:
output = runfetchcmd(cmd, d, quiet=True, workdir=wd)
if int(output) > 0:
@@ -653,13 +572,6 @@ class Git(FetchMethod):
pass
return False
def _find_git_lfs(self, d):
"""
Return True if git-lfs can be found, False otherwise.
"""
import shutil
return shutil.which("git-lfs", path=d.getVar('PATH')) is not None
def _get_repo_url(self, ud):
"""
Return the repository URL
@@ -674,9 +586,7 @@ class Git(FetchMethod):
"""
Return a unique key for the url
"""
# Collapse adjacent slashes
slash_re = re.compile(r"/+")
return "git:" + ud.host + slash_re.sub(".", ud.path) + ud.unresolvedrev[name]
return "git:" + ud.host + ud.path.replace('/', '.') + ud.unresolvedrev[name]
def _lsremote(self, ud, d, search):
"""
@@ -694,7 +604,7 @@ class Git(FetchMethod):
try:
repourl = self._get_repo_url(ud)
cmd = "%s ls-remote %s %s" % \
(ud.basecmd, shlex.quote(repourl), search)
(ud.basecmd, repourl, search)
if ud.proto.lower() != 'file':
bb.fetch2.check_network_access(d, cmd, repourl)
output = runfetchcmd(cmd, d, True)
@@ -753,7 +663,7 @@ class Git(FetchMethod):
# search for version in the line
tag = tagregex.search(tag_head)
if tag is None:
if tag == None:
continue
tag = tag.group('pver')

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' git annex implementation
"""
@@ -8,9 +10,11 @@ BitBake 'Fetch' git annex implementation
# SPDX-License-Identifier: GPL-2.0-only
#
import os
import bb
from bb.fetch2.git import Git
from bb.fetch2 import runfetchcmd
from bb.fetch2 import logger
class GitANNEX(Git):
def supports(self, ud, d):

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' git submodules implementation
@@ -20,12 +22,11 @@ NOTE: Switching a SRC_URI from "git://" to "gitsm://" requires a clean of your r
import os
import bb
import copy
import shutil
import tempfile
from bb.fetch2.git import Git
from bb.fetch2 import runfetchcmd
from bb.fetch2 import logger
from bb.fetch2 import Fetch
from bb.fetch2 import BBFetchException
class GitSM(Git):
def supports(self, ud, d):
@@ -132,7 +133,7 @@ class GitSM(Git):
ld.setVar('SRCPV', d.getVar('SRCPV'))
ld.setVar('SRCREV_FORMAT', module)
function(ud, url, module, paths[module], workdir, ld)
function(ud, url, module, paths[module], ld)
return submodules != []
@@ -154,7 +155,7 @@ class GitSM(Git):
return False
def download(self, ud, d):
def download_submodule(ud, url, module, modpath, workdir, d):
def download_submodule(ud, url, module, modpath, d):
url += ";bareclone=1;nobranch=1"
# Is the following still needed?
@@ -165,25 +166,16 @@ class GitSM(Git):
newfetch.download()
# Drop a nugget to add each of the srcrevs we've fetched (used by need_update)
runfetchcmd("%s config --add bitbake.srcrev %s" % \
(ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=workdir)
(ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=ud.clonedir)
except Exception as e:
logger.error('gitsm: submodule download failed: %s %s' % (type(e).__name__, str(e)))
raise
Git.download(self, ud, d)
# If we're using a shallow mirror tarball it needs to be unpacked
# temporarily so that we can examine the .gitmodules file
if ud.shallow and os.path.exists(ud.fullshallow) and self.need_update(ud, d):
tmpdir = tempfile.mkdtemp(dir=d.getVar("DL_DIR"))
runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=tmpdir)
self.process_submodules(ud, tmpdir, download_submodule, d)
shutil.rmtree(tmpdir)
else:
self.process_submodules(ud, ud.clonedir, download_submodule, d)
self.process_submodules(ud, ud.clonedir, download_submodule, d)
def unpack(self, ud, destdir, d):
def unpack_submodules(ud, url, module, modpath, workdir, d):
def unpack_submodules(ud, url, module, modpath, d):
url += ";bareclone=1;nobranch=1"
# Figure out where we clone over the bare submodules...

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' implementation for mercurial DRCS (hg).
@@ -13,6 +15,8 @@ BitBake 'Fetch' implementation for mercurial DRCS (hg).
#
import os
import sys
import logging
import bb
import errno
from bb.fetch2 import FetchMethod
@@ -52,6 +56,13 @@ class Hg(FetchMethod):
else:
ud.proto = "hg"
ud.setup_revisions(d)
if 'rev' in ud.parm:
ud.revision = ud.parm['rev']
elif not ud.revision:
ud.revision = self.latest_revision(ud, d)
# Create paths to mercurial checkouts
hgsrcname = '%s_%s_%s' % (ud.module.replace('/', '.'), \
ud.host, ud.path.replace('/', '.'))
@@ -65,13 +76,6 @@ class Hg(FetchMethod):
ud.localfile = ud.moddir
ud.basecmd = d.getVar("FETCHCMD_hg") or "/usr/bin/env hg"
ud.setup_revisions(d)
if 'rev' in ud.parm:
ud.revision = ud.parm['rev']
elif not ud.revision:
ud.revision = self.latest_revision(ud, d)
ud.write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS")
def need_update(self, ud, d):
@@ -137,7 +141,7 @@ class Hg(FetchMethod):
cmd = "%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" pull" % (ud.basecmd, ud.user, ud.pswd, proto)
else:
cmd = "%s pull" % (ud.basecmd)
elif command == "update" or command == "up":
elif command == "update":
if ud.user and ud.pswd:
cmd = "%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" update -C %s" % (ud.basecmd, ud.user, ud.pswd, proto, " ".join(options))
else:
@@ -245,19 +249,12 @@ class Hg(FetchMethod):
scmdata = ud.parm.get("scmdata", "")
if scmdata != "nokeep":
proto = ud.parm.get('protocol', 'http')
if not os.access(os.path.join(codir, '.hg'), os.R_OK):
logger.debug(2, "Unpack: creating new hg repository in '" + codir + "'")
runfetchcmd("%s init %s" % (ud.basecmd, codir), d)
logger.debug(2, "Unpack: updating source in '" + codir + "'")
if ud.user and ud.pswd:
runfetchcmd("%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" pull %s" % (ud.basecmd, ud.user, ud.pswd, proto, ud.moddir), d, workdir=codir)
else:
runfetchcmd("%s pull %s" % (ud.basecmd, ud.moddir), d, workdir=codir)
if ud.user and ud.pswd:
runfetchcmd("%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" up -C %s" % (ud.basecmd, ud.user, ud.pswd, proto, revflag), d, workdir=codir)
else:
runfetchcmd("%s up -C %s" % (ud.basecmd, revflag), d, workdir=codir)
runfetchcmd("%s pull %s" % (ud.basecmd, ud.moddir), d, workdir=codir)
runfetchcmd("%s up -C %s" % (ud.basecmd, revflag), d, workdir=codir)
else:
logger.debug(2, "Unpack: extracting source to '" + codir + "'")
runfetchcmd("%s archive -t files %s %s" % (ud.basecmd, revflag, codir), d, workdir=ud.moddir)

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' implementations

View File

@@ -1,296 +1,311 @@
# Copyright (C) 2020 Savoir-Faire Linux
#
# SPDX-License-Identifier: GPL-2.0-only
#
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' npm implementation
BitBake 'Fetch' NPM implementation
npm fetcher support the SRC_URI with format of:
SRC_URI = "npm://some.registry.url;OptionA=xxx;OptionB=xxx;..."
The NPM fetcher is used to retrieve files from the npmjs repository
Supported SRC_URI options are:
Usage in the recipe:
- package
The npm package name. This is a mandatory parameter.
SRC_URI = "npm://registry.npmjs.org/;name=${PN};version=${PV}"
Suported SRC_URI options are:
- version
The npm package version. This is a mandatory parameter.
- name
- version
- downloadfilename
Specifies the filename used when storing the downloaded file.
npm://registry.npmjs.org/${PN}/-/${PN}-${PV}.tgz would become npm://registry.npmjs.org;name=${PN};version=${PV}
The fetcher all triggers off the existence of ud.localpath. If that exists and has the ".done" stamp, its assumed the fetch is good/done
- destsuffix
Specifies the directory to use to unpack the package (default: npm).
"""
import base64
import json
import os
import re
import shlex
import tempfile
import sys
import urllib.request, urllib.parse, urllib.error
import json
import subprocess
import signal
import bb
from bb.fetch2 import Fetch
from bb.fetch2 import FetchError
from bb.fetch2 import FetchMethod
from bb.fetch2 import MissingParameterError
from bb.fetch2 import ParameterError
from bb.fetch2 import URI
from bb.fetch2 import check_network_access
from bb.fetch2 import runfetchcmd
from bb.utils import is_semver
from bb.fetch2 import FetchMethod
from bb.fetch2 import FetchError
from bb.fetch2 import ChecksumError
from bb.fetch2 import runfetchcmd
from bb.fetch2 import logger
from bb.fetch2 import UnpackError
from bb.fetch2 import ParameterError
def npm_package(package):
"""Convert the npm package name to remove unsupported character"""
# Scoped package names (with the @) use the same naming convention
# as the 'npm pack' command.
if package.startswith("@"):
return re.sub("/", "-", package[1:])
return package
def npm_filename(package, version):
"""Get the filename of a npm package"""
return npm_package(package) + "-" + version + ".tgz"
def npm_localfile(package, version):
"""Get the local filename of a npm package"""
return os.path.join("npm2", npm_filename(package, version))
def npm_integrity(integrity):
"""
Get the checksum name and expected value from the subresource integrity
https://www.w3.org/TR/SRI/
"""
algo, value = integrity.split("-", maxsplit=1)
return "%ssum" % algo, base64.b64decode(value).hex()
def npm_unpack(tarball, destdir, d):
"""Unpack a npm tarball"""
bb.utils.mkdirhier(destdir)
cmd = "tar --extract --gzip --file=%s" % shlex.quote(tarball)
cmd += " --no-same-owner"
cmd += " --strip-components=1"
runfetchcmd(cmd, d, workdir=destdir)
class NpmEnvironment(object):
"""
Using a npm config file seems more reliable than using cli arguments.
This class allows to create a controlled environment for npm commands.
"""
def __init__(self, d, configs=None):
self.d = d
self.configs = configs
def run(self, cmd, args=None, configs=None, workdir=None):
"""Run npm command in a controlled environment"""
with tempfile.TemporaryDirectory() as tmpdir:
d = bb.data.createCopy(self.d)
d.setVar("HOME", tmpdir)
cfgfile = os.path.join(tmpdir, "npmrc")
if not workdir:
workdir = tmpdir
def _run(cmd):
cmd = "NPM_CONFIG_USERCONFIG=%s " % cfgfile + cmd
cmd = "NPM_CONFIG_GLOBALCONFIG=%s " % cfgfile + cmd
return runfetchcmd(cmd, d, workdir=workdir)
if self.configs:
for key, value in self.configs:
_run("npm config set %s %s" % (key, shlex.quote(value)))
if configs:
for key, value in configs:
_run("npm config set %s %s" % (key, shlex.quote(value)))
if args:
for key, value in args:
cmd += " --%s=%s" % (key, shlex.quote(value))
return _run(cmd)
def subprocess_setup():
# Python installs a SIGPIPE handler by default. This is usually not what
# non-Python subprocesses expect.
# SIGPIPE errors are known issues with gzip/bash
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
class Npm(FetchMethod):
"""Class to fetch a package from a npm registry"""
"""Class to fetch urls via 'npm'"""
def init(self, d):
pass
def supports(self, ud, d):
"""Check if a given url can be fetched with npm"""
return ud.type in ["npm"]
"""
Check to see if a given url can be fetched with npm
"""
return ud.type in ['npm']
def debug(self, msg):
logger.debug(1, "NpmFetch: %s", msg)
def clean(self, ud, d):
logger.debug(2, "Calling cleanup %s" % ud.pkgname)
bb.utils.remove(ud.localpath, False)
bb.utils.remove(ud.pkgdatadir, True)
bb.utils.remove(ud.fullmirror, False)
def urldata_init(self, ud, d):
"""Init npm specific variables within url data"""
ud.package = None
ud.version = None
ud.registry = None
# Get the 'package' parameter
if "package" in ud.parm:
ud.package = ud.parm.get("package")
if not ud.package:
raise MissingParameterError("Parameter 'package' required", ud.url)
# Get the 'version' parameter
if "version" in ud.parm:
ud.version = ud.parm.get("version")
if not ud.version:
raise MissingParameterError("Parameter 'version' required", ud.url)
if not is_semver(ud.version) and not ud.version == "latest":
raise ParameterError("Invalid 'version' parameter", ud.url)
# Extract the 'registry' part of the url
ud.registry = re.sub(r"^npm://", "http://", ud.url.split(";")[0])
# Using the 'downloadfilename' parameter as local filename
# or the npm package name.
if "downloadfilename" in ud.parm:
ud.localfile = d.expand(ud.parm["downloadfilename"])
"""
init NPM specific variable within url data
"""
if 'downloadfilename' in ud.parm:
ud.basename = ud.parm['downloadfilename']
else:
ud.localfile = npm_localfile(ud.package, ud.version)
ud.basename = os.path.basename(ud.path)
# Get the base 'npm' command
ud.basecmd = d.getVar("FETCHCMD_npm") or "npm"
# can't call it ud.name otherwise fetcher base class will start doing sha1stuff
# TODO: find a way to get an sha1/sha256 manifest of pkg & all deps
ud.pkgname = ud.parm.get("name", None)
if not ud.pkgname:
raise ParameterError("NPM fetcher requires a name parameter", ud.url)
ud.version = ud.parm.get("version", None)
if not ud.version:
raise ParameterError("NPM fetcher requires a version parameter", ud.url)
ud.bbnpmmanifest = "%s-%s.deps.json" % (ud.pkgname, ud.version)
ud.bbnpmmanifest = ud.bbnpmmanifest.replace('/', '-')
ud.registry = "http://%s" % (ud.url.replace('npm://', '', 1).split(';'))[0]
prefixdir = "npm/%s" % ud.pkgname
ud.pkgdatadir = d.expand("${DL_DIR}/%s" % prefixdir)
if not os.path.exists(ud.pkgdatadir):
bb.utils.mkdirhier(ud.pkgdatadir)
ud.localpath = d.expand("${DL_DIR}/npm/%s" % ud.bbnpmmanifest)
# This fetcher resolves a URI from a npm package name and version and
# then forwards it to a proxy fetcher. A resolve file containing the
# resolved URI is created to avoid unwanted network access (if the file
# already exists). The management of the donestamp file, the lockfile
# and the checksums are forwarded to the proxy fetcher.
ud.proxy = None
ud.needdonestamp = False
ud.resolvefile = self.localpath(ud, d) + ".resolved"
self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -O -t 2 -T 30 -nv --passive-ftp --no-check-certificate "
ud.prefixdir = prefixdir
def _resolve_proxy_url(self, ud, d):
def _npm_view():
configs = []
configs.append(("json", "true"))
configs.append(("registry", ud.registry))
pkgver = shlex.quote(ud.package + "@" + ud.version)
cmd = ud.basecmd + " view %s" % pkgver
env = NpmEnvironment(d)
check_network_access(d, cmd, ud.registry)
view_string = env.run(cmd, configs=configs)
if not view_string:
raise FetchError("Unavailable package %s" % pkgver, ud.url)
try:
view = json.loads(view_string)
error = view.get("error")
if error is not None:
raise FetchError(error.get("summary"), ud.url)
if ud.version == "latest":
bb.warn("The npm package %s is using the latest " \
"version available. This could lead to " \
"non-reproducible builds." % pkgver)
elif ud.version != view.get("version"):
raise ParameterError("Invalid 'version' parameter", ud.url)
return view
except Exception as e:
raise FetchError("Invalid view from npm: %s" % str(e), ud.url)
def _get_url(view):
tarball_url = view.get("dist", {}).get("tarball")
if tarball_url is None:
raise FetchError("Invalid 'dist.tarball' in view", ud.url)
uri = URI(tarball_url)
uri.params["downloadfilename"] = ud.localfile
integrity = view.get("dist", {}).get("integrity")
shasum = view.get("dist", {}).get("shasum")
if integrity is not None:
checksum_name, checksum_expected = npm_integrity(integrity)
uri.params[checksum_name] = checksum_expected
elif shasum is not None:
uri.params["sha1sum"] = shasum
else:
raise FetchError("Invalid 'dist.integrity' in view", ud.url)
return str(uri)
url = _get_url(_npm_view())
bb.utils.mkdirhier(os.path.dirname(ud.resolvefile))
with open(ud.resolvefile, "w") as f:
f.write(url)
def _setup_proxy(self, ud, d):
if ud.proxy is None:
if not os.path.exists(ud.resolvefile):
self._resolve_proxy_url(ud, d)
with open(ud.resolvefile, "r") as f:
url = f.read()
# Avoid conflicts between the environment data and:
# - the proxy url checksum
data = bb.data.createCopy(d)
data.delVarFlags("SRC_URI")
ud.proxy = Fetch([url], data)
def _get_proxy_method(self, ud, d):
self._setup_proxy(ud, d)
proxy_url = ud.proxy.urls[0]
proxy_ud = ud.proxy.ud[proxy_url]
proxy_d = ud.proxy.d
proxy_ud.setup_localpath(proxy_d)
return proxy_ud.method, proxy_ud, proxy_d
def verify_donestamp(self, ud, d):
"""Verify the donestamp file"""
proxy_m, proxy_ud, proxy_d = self._get_proxy_method(ud, d)
return proxy_m.verify_donestamp(proxy_ud, proxy_d)
def update_donestamp(self, ud, d):
"""Update the donestamp file"""
proxy_m, proxy_ud, proxy_d = self._get_proxy_method(ud, d)
proxy_m.update_donestamp(proxy_ud, proxy_d)
ud.write_tarballs = ((d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0") != "0")
mirrortarball = 'npm_%s-%s.tar.xz' % (ud.pkgname, ud.version)
mirrortarball = mirrortarball.replace('/', '-')
ud.fullmirror = os.path.join(d.getVar("DL_DIR"), mirrortarball)
ud.mirrortarballs = [mirrortarball]
def need_update(self, ud, d):
"""Force a fetch, even if localpath exists ?"""
if not os.path.exists(ud.resolvefile):
return True
if ud.version == "latest":
return True
proxy_m, proxy_ud, proxy_d = self._get_proxy_method(ud, d)
return proxy_m.need_update(proxy_ud, proxy_d)
if os.path.exists(ud.localpath):
return False
return True
def try_mirrors(self, fetch, ud, d, mirrors):
"""Try to use a mirror"""
proxy_m, proxy_ud, proxy_d = self._get_proxy_method(ud, d)
return proxy_m.try_mirrors(fetch, proxy_ud, proxy_d, mirrors)
def _runwget(self, ud, d, command, quiet):
logger.debug(2, "Fetching %s using command '%s'" % (ud.url, command))
bb.fetch2.check_network_access(d, command, ud.url)
dldir = d.getVar("DL_DIR")
runfetchcmd(command, d, quiet, workdir=dldir)
def _unpackdep(self, ud, pkg, data, destdir, dldir, d):
file = data[pkg]['tgz']
logger.debug(2, "file to extract is %s" % file)
if file.endswith('.tgz') or file.endswith('.tar.gz') or file.endswith('.tar.Z'):
cmd = 'tar xz --strip 1 --no-same-owner --warning=no-unknown-keyword -f %s/%s' % (dldir, file)
else:
bb.fatal("NPM package %s downloaded not a tarball!" % file)
# Change to subdir before executing command
if not os.path.exists(destdir):
os.makedirs(destdir)
path = d.getVar('PATH')
if path:
cmd = "PATH=\"%s\" %s" % (path, cmd)
bb.note("Unpacking %s to %s/" % (file, destdir))
ret = subprocess.call(cmd, preexec_fn=subprocess_setup, shell=True, cwd=destdir)
if ret != 0:
raise UnpackError("Unpack command %s failed with return value %s" % (cmd, ret), ud.url)
if 'deps' not in data[pkg]:
return
for dep in data[pkg]['deps']:
self._unpackdep(ud, dep, data[pkg]['deps'], "%s/node_modules/%s" % (destdir, dep), dldir, d)
def unpack(self, ud, destdir, d):
dldir = d.getVar("DL_DIR")
with open("%s/npm/%s" % (dldir, ud.bbnpmmanifest)) as datafile:
workobj = json.load(datafile)
dldir = "%s/%s" % (os.path.dirname(ud.localpath), ud.pkgname)
if 'subdir' in ud.parm:
unpackdir = '%s/%s' % (destdir, ud.parm.get('subdir'))
else:
unpackdir = '%s/npmpkg' % destdir
self._unpackdep(ud, ud.pkgname, workobj, unpackdir, dldir, d)
def _parse_view(self, output):
'''
Parse the output of npm view --json; the last JSON result
is assumed to be the one that we're interested in.
'''
pdata = None
outdeps = {}
datalines = []
bracelevel = 0
for line in output.splitlines():
if bracelevel:
datalines.append(line)
elif '{' in line:
datalines = []
datalines.append(line)
bracelevel = bracelevel + line.count('{') - line.count('}')
if datalines:
pdata = json.loads('\n'.join(datalines))
return pdata
def _getdependencies(self, pkg, data, version, d, ud, optional=False, fetchedlist=None):
if fetchedlist is None:
fetchedlist = []
pkgfullname = pkg
if version != '*' and not '/' in version:
pkgfullname += "@'%s'" % version
logger.debug(2, "Calling getdeps on %s" % pkg)
fetchcmd = "npm view %s --json --registry %s" % (pkgfullname, ud.registry)
output = runfetchcmd(fetchcmd, d, True)
pdata = self._parse_view(output)
if not pdata:
raise FetchError("The command '%s' returned no output" % fetchcmd)
if optional:
pkg_os = pdata.get('os', None)
if pkg_os:
if not isinstance(pkg_os, list):
pkg_os = [pkg_os]
blacklist = False
for item in pkg_os:
if item.startswith('!'):
blacklist = True
break
if (not blacklist and 'linux' not in pkg_os) or '!linux' in pkg_os:
logger.debug(2, "Skipping %s since it's incompatible with Linux" % pkg)
return
#logger.debug(2, "Output URL is %s - %s - %s" % (ud.basepath, ud.basename, ud.localfile))
outputurl = pdata['dist']['tarball']
data[pkg] = {}
data[pkg]['tgz'] = os.path.basename(outputurl)
if outputurl in fetchedlist:
return
self._runwget(ud, d, "%s --directory-prefix=%s %s" % (self.basecmd, ud.prefixdir, outputurl), False)
fetchedlist.append(outputurl)
dependencies = pdata.get('dependencies', {})
optionalDependencies = pdata.get('optionalDependencies', {})
dependencies.update(optionalDependencies)
depsfound = {}
optdepsfound = {}
data[pkg]['deps'] = {}
for dep in dependencies:
if dep in optionalDependencies:
optdepsfound[dep] = dependencies[dep]
else:
depsfound[dep] = dependencies[dep]
for dep, version in optdepsfound.items():
self._getdependencies(dep, data[pkg]['deps'], version, d, ud, optional=True, fetchedlist=fetchedlist)
for dep, version in depsfound.items():
self._getdependencies(dep, data[pkg]['deps'], version, d, ud, fetchedlist=fetchedlist)
def _getshrinkeddependencies(self, pkg, data, version, d, ud, lockdown, manifest, toplevel=True):
logger.debug(2, "NPM shrinkwrap file is %s" % data)
if toplevel:
name = data.get('name', None)
if name and name != pkg:
for obj in data.get('dependencies', []):
if obj == pkg:
self._getshrinkeddependencies(obj, data['dependencies'][obj], data['dependencies'][obj]['version'], d, ud, lockdown, manifest, False)
return
outputurl = "invalid"
if ('resolved' not in data) or (not data['resolved'].startswith('http://') and not data['resolved'].startswith('https://')):
# will be the case for ${PN}
fetchcmd = "npm view %s@%s dist.tarball --registry %s" % (pkg, version, ud.registry)
logger.debug(2, "Found this matching URL: %s" % str(fetchcmd))
outputurl = runfetchcmd(fetchcmd, d, True)
else:
outputurl = data['resolved']
self._runwget(ud, d, "%s --directory-prefix=%s %s" % (self.basecmd, ud.prefixdir, outputurl), False)
manifest[pkg] = {}
manifest[pkg]['tgz'] = os.path.basename(outputurl).rstrip()
manifest[pkg]['deps'] = {}
if pkg in lockdown:
sha1_expected = lockdown[pkg][version]
sha1_data = bb.utils.sha1_file("npm/%s/%s" % (ud.pkgname, manifest[pkg]['tgz']))
if sha1_expected != sha1_data:
msg = "\nFile: '%s' has %s checksum %s when %s was expected" % (manifest[pkg]['tgz'], 'sha1', sha1_data, sha1_expected)
raise ChecksumError('Checksum mismatch!%s' % msg)
else:
logger.debug(2, "No lockdown data for %s@%s" % (pkg, version))
if 'dependencies' in data:
for obj in data['dependencies']:
logger.debug(2, "Found dep is %s" % str(obj))
self._getshrinkeddependencies(obj, data['dependencies'][obj], data['dependencies'][obj]['version'], d, ud, lockdown, manifest[pkg]['deps'], False)
def download(self, ud, d):
"""Fetch url"""
self._setup_proxy(ud, d)
ud.proxy.download()
jsondepobj = {}
shrinkobj = {}
lockdown = {}
def unpack(self, ud, rootdir, d):
"""Unpack the downloaded archive"""
destsuffix = ud.parm.get("destsuffix", "npm")
destdir = os.path.join(rootdir, destsuffix)
npm_unpack(ud.localpath, destdir, d)
if not os.listdir(ud.pkgdatadir) and os.path.exists(ud.fullmirror):
dest = d.getVar("DL_DIR")
bb.utils.mkdirhier(dest)
runfetchcmd("tar -xJf %s" % (ud.fullmirror), d, workdir=dest)
return
def clean(self, ud, d):
"""Clean any existing full or partial download"""
if os.path.exists(ud.resolvefile):
self._setup_proxy(ud, d)
ud.proxy.clean()
bb.utils.remove(ud.resolvefile)
if ud.parm.get("noverify", None) != '1':
shwrf = d.getVar('NPM_SHRINKWRAP')
logger.debug(2, "NPM shrinkwrap file is %s" % shwrf)
if shwrf:
try:
with open(shwrf) as datafile:
shrinkobj = json.load(datafile)
except Exception as e:
raise FetchError('Error loading NPM_SHRINKWRAP file "%s" for %s: %s' % (shwrf, ud.pkgname, str(e)))
elif not ud.ignore_checksums:
logger.warning('Missing shrinkwrap file in NPM_SHRINKWRAP for %s, this will lead to unreliable builds!' % ud.pkgname)
lckdf = d.getVar('NPM_LOCKDOWN')
logger.debug(2, "NPM lockdown file is %s" % lckdf)
if lckdf:
try:
with open(lckdf) as datafile:
lockdown = json.load(datafile)
except Exception as e:
raise FetchError('Error loading NPM_LOCKDOWN file "%s" for %s: %s' % (lckdf, ud.pkgname, str(e)))
elif not ud.ignore_checksums:
logger.warning('Missing lockdown file in NPM_LOCKDOWN for %s, this will lead to unreproducible builds!' % ud.pkgname)
def done(self, ud, d):
"""Is the download done ?"""
if not os.path.exists(ud.resolvefile):
return False
proxy_m, proxy_ud, proxy_d = self._get_proxy_method(ud, d)
return proxy_m.done(proxy_ud, proxy_d)
if ('name' not in shrinkobj):
self._getdependencies(ud.pkgname, jsondepobj, ud.version, d, ud)
else:
self._getshrinkeddependencies(ud.pkgname, shrinkobj, ud.version, d, ud, lockdown, jsondepobj)
with open(ud.localpath, 'w') as outfile:
json.dump(jsondepobj, outfile)
def build_mirror_data(self, ud, d):
# Generate a mirror tarball if needed
if ud.write_tarballs and not os.path.exists(ud.fullmirror):
# it's possible that this symlink points to read-only filesystem with PREMIRROR
if os.path.islink(ud.fullmirror):
os.unlink(ud.fullmirror)
dldir = d.getVar("DL_DIR")
logger.info("Creating tarball of npm data")
runfetchcmd("tar -cJf %s npm/%s npm/%s" % (ud.fullmirror, ud.bbnpmmanifest, ud.pkgname), d,
workdir=dldir)
runfetchcmd("touch %s.done" % (ud.fullmirror), d, workdir=dldir)

View File

@@ -1,255 +0,0 @@
# Copyright (C) 2020 Savoir-Faire Linux
#
# SPDX-License-Identifier: GPL-2.0-only
#
"""
BitBake 'Fetch' npm shrinkwrap implementation
npm fetcher support the SRC_URI with format of:
SRC_URI = "npmsw://some.registry.url;OptionA=xxx;OptionB=xxx;..."
Supported SRC_URI options are:
- dev
Set to 1 to also install devDependencies.
- destsuffix
Specifies the directory to use to unpack the dependencies (default: ${S}).
"""
import json
import os
import re
import bb
from bb.fetch2 import Fetch
from bb.fetch2 import FetchMethod
from bb.fetch2 import ParameterError
from bb.fetch2 import URI
from bb.fetch2.npm import npm_integrity
from bb.fetch2.npm import npm_localfile
from bb.fetch2.npm import npm_unpack
from bb.utils import is_semver
def foreach_dependencies(shrinkwrap, callback=None, dev=False):
"""
Run a callback for each dependencies of a shrinkwrap file.
The callback is using the format:
callback(name, params, deptree)
with:
name = the package name (string)
params = the package parameters (dictionary)
deptree = the package dependency tree (array of strings)
"""
def _walk_deps(deps, deptree):
for name in deps:
subtree = [*deptree, name]
_walk_deps(deps[name].get("dependencies", {}), subtree)
if callback is not None:
if deps[name].get("dev", False) and not dev:
continue
elif deps[name].get("bundled", False):
continue
callback(name, deps[name], subtree)
_walk_deps(shrinkwrap.get("dependencies", {}), [])
class NpmShrinkWrap(FetchMethod):
"""Class to fetch all package from a shrinkwrap file"""
def supports(self, ud, d):
"""Check if a given url can be fetched with npmsw"""
return ud.type in ["npmsw"]
def urldata_init(self, ud, d):
"""Init npmsw specific variables within url data"""
# Get the 'shrinkwrap' parameter
ud.shrinkwrap_file = re.sub(r"^npmsw://", "", ud.url.split(";")[0])
# Get the 'dev' parameter
ud.dev = bb.utils.to_boolean(ud.parm.get("dev"), False)
# Resolve the dependencies
ud.deps = []
def _resolve_dependency(name, params, deptree):
url = None
localpath = None
extrapaths = []
destsubdirs = [os.path.join("node_modules", dep) for dep in deptree]
destsuffix = os.path.join(*destsubdirs)
integrity = params.get("integrity", None)
resolved = params.get("resolved", None)
version = params.get("version", None)
# Handle registry sources
if is_semver(version) and resolved and integrity:
localfile = npm_localfile(name, version)
uri = URI(resolved)
uri.params["downloadfilename"] = localfile
checksum_name, checksum_expected = npm_integrity(integrity)
uri.params[checksum_name] = checksum_expected
url = str(uri)
localpath = os.path.join(d.getVar("DL_DIR"), localfile)
# Create a resolve file to mimic the npm fetcher and allow
# re-usability of the downloaded file.
resolvefile = localpath + ".resolved"
bb.utils.mkdirhier(os.path.dirname(resolvefile))
with open(resolvefile, "w") as f:
f.write(url)
extrapaths.append(resolvefile)
# Handle http tarball sources
elif version.startswith("http") and integrity:
localfile = os.path.join("npm2", os.path.basename(version))
uri = URI(version)
uri.params["downloadfilename"] = localfile
checksum_name, checksum_expected = npm_integrity(integrity)
uri.params[checksum_name] = checksum_expected
url = str(uri)
localpath = os.path.join(d.getVar("DL_DIR"), localfile)
# Handle git sources
elif version.startswith("git"):
regex = re.compile(r"""
^
git\+
(?P<protocol>[a-z]+)
://
(?P<url>[^#]+)
\#
(?P<rev>[0-9a-f]+)
$
""", re.VERBOSE)
match = regex.match(version)
if not match:
raise ParameterError("Invalid git url: %s" % version, ud.url)
groups = match.groupdict()
uri = URI("git://" + str(groups["url"]))
uri.params["protocol"] = str(groups["protocol"])
uri.params["rev"] = str(groups["rev"])
uri.params["destsuffix"] = destsuffix
url = str(uri)
# local tarball sources and local link sources are unsupported
else:
raise ParameterError("Unsupported dependency: %s" % name, ud.url)
ud.deps.append({
"url": url,
"localpath": localpath,
"extrapaths": extrapaths,
"destsuffix": destsuffix,
})
try:
with open(ud.shrinkwrap_file, "r") as f:
shrinkwrap = json.load(f)
except Exception as e:
raise ParameterError("Invalid shrinkwrap file: %s" % str(e), ud.url)
foreach_dependencies(shrinkwrap, _resolve_dependency, ud.dev)
# Avoid conflicts between the environment data and:
# - the proxy url revision
# - the proxy url checksum
data = bb.data.createCopy(d)
data.delVar("SRCREV")
data.delVarFlags("SRC_URI")
# This fetcher resolves multiple URIs from a shrinkwrap file and then
# forwards it to a proxy fetcher. The management of the donestamp file,
# the lockfile and the checksums are forwarded to the proxy fetcher.
ud.proxy = Fetch([dep["url"] for dep in ud.deps], data)
ud.needdonestamp = False
@staticmethod
def _foreach_proxy_method(ud, handle):
returns = []
for proxy_url in ud.proxy.urls:
proxy_ud = ud.proxy.ud[proxy_url]
proxy_d = ud.proxy.d
proxy_ud.setup_localpath(proxy_d)
returns.append(handle(proxy_ud.method, proxy_ud, proxy_d))
return returns
def verify_donestamp(self, ud, d):
"""Verify the donestamp file"""
def _handle(m, ud, d):
return m.verify_donestamp(ud, d)
return all(self._foreach_proxy_method(ud, _handle))
def update_donestamp(self, ud, d):
"""Update the donestamp file"""
def _handle(m, ud, d):
m.update_donestamp(ud, d)
self._foreach_proxy_method(ud, _handle)
def need_update(self, ud, d):
"""Force a fetch, even if localpath exists ?"""
def _handle(m, ud, d):
return m.need_update(ud, d)
return all(self._foreach_proxy_method(ud, _handle))
def try_mirrors(self, fetch, ud, d, mirrors):
"""Try to use a mirror"""
def _handle(m, ud, d):
return m.try_mirrors(fetch, ud, d, mirrors)
return all(self._foreach_proxy_method(ud, _handle))
def download(self, ud, d):
"""Fetch url"""
ud.proxy.download()
def unpack(self, ud, rootdir, d):
"""Unpack the downloaded dependencies"""
destdir = d.getVar("S")
destsuffix = ud.parm.get("destsuffix")
if destsuffix:
destdir = os.path.join(rootdir, destsuffix)
bb.utils.mkdirhier(destdir)
bb.utils.copyfile(ud.shrinkwrap_file,
os.path.join(destdir, "npm-shrinkwrap.json"))
auto = [dep["url"] for dep in ud.deps if not dep["localpath"]]
manual = [dep for dep in ud.deps if dep["localpath"]]
if auto:
ud.proxy.unpack(destdir, auto)
for dep in manual:
depdestdir = os.path.join(destdir, dep["destsuffix"])
npm_unpack(dep["localpath"], depdestdir, d)
def clean(self, ud, d):
"""Clean any existing full or partial download"""
ud.proxy.clean()
# Clean extra files
for dep in ud.deps:
for path in dep["extrapaths"]:
bb.utils.remove(path)
def done(self, ud, d):
"""Is the download done ?"""
def _handle(m, ud, d):
return m.done(ud, d)
return all(self._foreach_proxy_method(ud, _handle))

View File

@@ -1,12 +1,16 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
Bitbake "Fetch" implementation for osc (Opensuse build service client).
Based on the svn "Fetch" implementation.
"""
import os
import sys
import logging
import bb
from bb.fetch2 import FetchMethod
@@ -41,7 +45,7 @@ class Osc(FetchMethod):
else:
pv = d.getVar("PV", False)
rev = bb.fetch2.srcrev_internal_helper(ud, d)
if rev:
if rev and rev != True:
ud.revision = rev
else:
ud.revision = ""

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' implementation for perforce
@@ -11,6 +13,7 @@ BitBake 'Fetch' implementation for perforce
# Based on functions from the base bb module, Copyright 2003 Holger Schurig
import os
import logging
import bb
from bb.fetch2 import FetchMethod
from bb.fetch2 import FetchError
@@ -104,7 +107,7 @@ class Perforce(FetchMethod):
if command == 'changes':
p4cmd = '%s%s changes -m 1 //%s' % (ud.basecmd, p4opt, pathnrev)
elif command == 'print':
if depot_filename is not None:
if depot_filename != None:
p4cmd = '%s%s print -o "p4/%s" "%s"' % (ud.basecmd, p4opt, filename, depot_filename)
else:
raise FetchError('No depot file name provided to p4 %s' % command, ud.url)

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake "Fetch" repo (git) implementation

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' implementation for Amazon AWS S3.

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake SFTP Fetch implementation

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
'''
BitBake 'Fetch' implementations
@@ -32,6 +34,8 @@ IETF secsh internet draft:
import re, os
from bb.fetch2 import FetchMethod
from bb.fetch2 import FetchError
from bb.fetch2 import logger
from bb.fetch2 import runfetchcmd
@@ -58,7 +62,7 @@ class SSH(FetchMethod):
'''Class to fetch a module or modules via Secure Shell'''
def supports(self, urldata, d):
return __pattern__.match(urldata.url) is not None
return __pattern__.match(urldata.url) != None
def supports_checksum(self, urldata):
return False

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' implementation for svn.
@@ -11,6 +13,8 @@ BitBake 'Fetch' implementation for svn.
# Based on functions from the base bb module, Copyright 2003 Holger Schurig
import os
import sys
import logging
import bb
import re
from bb.fetch2 import FetchMethod
@@ -47,7 +51,7 @@ class Svn(FetchMethod):
svndir = d.getVar("SVNDIR") or (d.getVar("DL_DIR") + "/svn")
relpath = self._strip_leading_slashes(ud.path)
ud.pkgdir = os.path.join(svndir, ud.host, relpath)
ud.moddir = os.path.join(ud.pkgdir, ud.path_spec)
ud.moddir = os.path.join(ud.pkgdir, ud.module)
# Protects the repository from concurrent updates, e.g. from two
# recipes fetching different revisions at the same time
ud.svnlock = os.path.join(ud.pkgdir, "svn.lock")
@@ -89,13 +93,6 @@ class Svn(FetchMethod):
svncmd = "%s log --limit 1 %s %s://%s/%s/" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module)
else:
suffix = ""
# externals may be either 'allowed' or 'nowarn', but not both. Allowed
# will not issue a warning, but will log to the debug buffer what has likely
# been downloaded by SVN.
if not ("externals" in ud.parm and ud.parm["externals"] == "allowed"):
options.append("--ignore-externals")
if ud.revision:
options.append("-r %s" % ud.revision)
suffix = "@%s" % (ud.revision)
@@ -122,36 +119,24 @@ class Svn(FetchMethod):
try:
if os.access(os.path.join(ud.moddir, '.svn'), os.R_OK):
svncmd = self._buildsvncommand(ud, d, "update")
svnupdatecmd = self._buildsvncommand(ud, d, "update")
logger.info("Update " + ud.url)
# We need to attempt to run svn upgrade first in case its an older working format
try:
runfetchcmd(ud.basecmd + " upgrade", d, workdir=ud.moddir)
except FetchError:
pass
logger.debug(1, "Running %s", svncmd)
bb.fetch2.check_network_access(d, svncmd, ud.url)
runfetchcmd(svncmd, d, workdir=ud.moddir)
logger.debug(1, "Running %s", svnupdatecmd)
bb.fetch2.check_network_access(d, svnupdatecmd, ud.url)
runfetchcmd(svnupdatecmd, d, workdir=ud.moddir)
else:
svncmd = self._buildsvncommand(ud, d, "fetch")
svnfetchcmd = self._buildsvncommand(ud, d, "fetch")
logger.info("Fetch " + ud.url)
# check out sources there
bb.utils.mkdirhier(ud.pkgdir)
logger.debug(1, "Running %s", svncmd)
bb.fetch2.check_network_access(d, svncmd, ud.url)
runfetchcmd(svncmd, d, workdir=ud.pkgdir)
if not ("externals" in ud.parm and ud.parm["externals"] == "nowarn"):
# Warn the user if this had externals (won't catch them all)
output = runfetchcmd("svn propget svn:externals || true", d, workdir=ud.moddir)
if output:
if "--ignore-externals" in svncmd.split():
bb.warn("%s contains svn:externals." % ud.url)
bb.warn("These should be added to the recipe SRC_URI as necessary.")
bb.warn("svn fetch has ignored externals:\n%s" % output)
bb.warn("To disable this warning add ';externals=nowarn' to the url.")
else:
bb.debug(1, "svn repository has externals:\n%s" % output)
logger.debug(1, "Running %s", svnfetchcmd)
bb.fetch2.check_network_access(d, svnfetchcmd, ud.url)
runfetchcmd(svnfetchcmd, d, workdir=ud.pkgdir)
scmdata = ud.parm.get("scmdata", "")
if scmdata == "keep":

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'Fetch' implementations
@@ -12,10 +14,11 @@ BitBake build tools.
#
# Based on functions from the base bb module, Copyright 2003 Holger Schurig
import shlex
import re
import tempfile
import subprocess
import os
import logging
import errno
import bb
import bb.progress
@@ -26,6 +29,7 @@ from bb.fetch2 import FetchMethod
from bb.fetch2 import FetchError
from bb.fetch2 import logger
from bb.fetch2 import runfetchcmd
from bb.fetch2 import FetchConnectionCache
from bb.utils import export_proxies
from bs4 import BeautifulSoup
from bs4 import SoupStrainer
@@ -52,12 +56,6 @@ class WgetProgressHandler(bb.progress.LineFilterProgressHandler):
class Wget(FetchMethod):
# CDNs like CloudFlare may do a 'browser integrity test' which can fail
# with the standard wget/urllib User-Agent, so pretend to be a modern
# browser.
user_agent = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0"
"""Class to fetch urls via 'wget'"""
def supports(self, ud, d):
"""
@@ -97,9 +95,10 @@ class Wget(FetchMethod):
fetchcmd = self.basecmd
localpath = os.path.join(d.getVar("DL_DIR"), ud.localfile) + ".tmp"
bb.utils.mkdirhier(os.path.dirname(localpath))
fetchcmd += " -O %s" % shlex.quote(localpath)
if 'downloadfilename' in ud.parm:
dldir = d.getVar("DL_DIR")
bb.utils.mkdirhier(os.path.dirname(dldir + os.sep + ud.localfile))
fetchcmd += " -O " + dldir + os.sep + ud.localfile
if ud.user and ud.pswd:
fetchcmd += " --user=%s --password=%s --auth-no-challenge" % (ud.user, ud.pswd)
@@ -113,10 +112,6 @@ class Wget(FetchMethod):
self._runwget(ud, d, fetchcmd, False)
# Remove the ".tmp" and move the file into position atomically
# Our lock prevents multiple writers but mirroring code may grab incomplete files
os.rename(localpath, localpath[:-4])
# Sanity check since wget can pretend it succeed when it didn't
# Also, this used to happen if sourceforge sent us to the mirror page
if not os.path.exists(ud.localpath):
@@ -264,15 +259,13 @@ class Wget(FetchMethod):
fp.read()
fp.close()
if req.get_method() != 'GET':
newheaders = dict((k, v) for k, v in list(req.headers.items())
if k.lower() not in ("content-length", "content-type"))
return self.parent.open(urllib.request.Request(req.get_full_url(),
headers=newheaders,
origin_req_host=req.origin_req_host,
unverifiable=True))
newheaders = dict((k, v) for k, v in list(req.headers.items())
if k.lower() not in ("content-length", "content-type"))
return self.parent.open(urllib.request.Request(req.get_full_url(),
headers=newheaders,
origin_req_host=req.origin_req_host,
unverifiable=True))
raise urllib.request.HTTPError(req, code, msg, headers, None)
# Some servers (e.g. GitHub archives, hosted on Amazon S3) return 403
# Forbidden when they actually mean 405 Method Not Allowed.
@@ -309,7 +302,6 @@ class Wget(FetchMethod):
# Some servers (FusionForge, as used on Alioth) require that the
# optional Accept header is set.
r.add_header("Accept", "*/*")
r.add_header("User-Agent", self.user_agent)
def add_basic_auth(login_str, request):
'''Adds Basic auth to http request, pass in login:password as string'''
import base64
@@ -328,7 +320,7 @@ class Wget(FetchMethod):
except (TypeError, ImportError, IOError, netrc.NetrcParseError):
pass
with opener.open(r, timeout=30) as response:
with opener.open(r) as response:
pass
except urllib.error.URLError as e:
if try_again:
@@ -413,8 +405,9 @@ class Wget(FetchMethod):
"""
f = tempfile.NamedTemporaryFile()
with tempfile.TemporaryDirectory(prefix="wget-index-") as workdir, tempfile.NamedTemporaryFile(dir=workdir, prefix="wget-listing-") as f:
agent = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/9.10 (karmic) Firefox/3.6.12"
fetchcmd = self.basecmd
fetchcmd += " -O " + f.name + " --user-agent='" + self.user_agent + "' '" + uri + "'"
fetchcmd += " -O " + f.name + " --user-agent='" + agent + "' '" + uri + "'"
try:
self._runwget(ud, d, fetchcmd, True, workdir=workdir)
fetchresult = f.read()

View File

@@ -1,3 +1,6 @@
#!/usr/bin/env python
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2003, 2004 Chris Larson
# Copyright (C) 2003, 2004 Phil Blundell
@@ -254,11 +257,6 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
help="Do not run any setscene tasks. sstate will be ignored and "
"everything needed, built.")
parser.add_option("", "--skip-setscene", action="store_true",
dest="skipsetscene", default=False,
help="Skip setscene tasks if they would be executed. Tasks previously "
"restored from sstate will be kept, unlike --no-setscene")
parser.add_option("", "--setscene-only", action="store_true",
dest="setsceneonly", default=False,
help="Only run setscene tasks, don't run any real tasks.")
@@ -452,7 +450,12 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
bb.utils.unlockfile(lock)
raise bb.server.process.ProcessTimeout("Bitbake still shutting down as socket exists but no lock?")
if not configParams.server_only:
server_connection = bb.server.process.connectProcessServer(sockname, featureset)
try:
server_connection = bb.server.process.connectProcessServer(sockname, featureset)
except EOFError:
# The server may have been shutting down but not closed the socket yet. If that happened,
# ignore it.
pass
if server_connection or configParams.server_only:
break
@@ -463,13 +466,12 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
raise
retries -= 1
tryno = 8 - retries
if isinstance(e, (bb.server.process.ProcessTimeout, BrokenPipeError, EOFError)):
if isinstance(e, (bb.server.process.ProcessTimeout, BrokenPipeError)):
logger.info("Retrying server connection (#%d)..." % tryno)
else:
logger.info("Retrying server connection (#%d)... (%s)" % (tryno, traceback.format_exc()))
if not retries:
bb.fatal("Unable to connect to bitbake server, or start one (server startup failures would be in bitbake-cookerdaemon.log).")
bb.event.print_ui_queue()
bb.fatal("Unable to connect to bitbake server, or start one")
if retries < 5:
time.sleep(5)
@@ -491,7 +493,7 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
def lockBitbake():
topdir = bb.cookerdata.findTopdir()
if not topdir:
bb.error("Unable to find conf/bblayers.conf or conf/bitbake.conf. BBPATH is unset and/or not in a build directory?")
bb.error("Unable to find conf/bblayers.conf or conf/bitbake.conf. BBAPTH is unset and/or not in a build directory?")
raise BBMainFatal
lockfile = topdir + "/bitbake.lock"
return topdir, bb.utils.lockfile(lockfile, False, False)

View File

@@ -1,3 +1,6 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
#
# Copyright (C) 2006 Holger Hans Peter Freyther
#

View File

@@ -1,10 +1,13 @@
#!/usr/bin/env python
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2012 Robert Yang
#
# SPDX-License-Identifier: GPL-2.0-only
#
import os, logging, re
import os, logging, re, sys
import bb
logger = logging.getLogger("BitBake.Monitor")
@@ -229,10 +232,9 @@ class diskMonitor:
freeInode = st.f_favail
if minInode and freeInode < minInode:
# Some filesystems use dynamic inodes so can't run out.
# This is reported by the inode count being 0 (btrfs) or the free
# inode count being -1 (cephfs).
if st.f_files == 0 or st.f_favail == -1:
# Some filesystems use dynamic inodes so can't run out
# (e.g. btrfs). This is reported by the inode count being 0.
if st.f_files == 0:
self.devDict[k][2] = None
continue
# Always show warning, the self.checked would always be False if the action is WARN

View File

@@ -1,3 +1,5 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
BitBake 'msg' implementation
@@ -13,8 +15,9 @@ Message handling infrastructure for bitbake
import sys
import copy
import logging
import logging.config
import collections
from itertools import groupby
import warnings
import bb
import bb.event
@@ -99,9 +102,6 @@ class BBLogFormatter(logging.Formatter):
def enable_color(self):
self.color_enabled = True
def __repr__(self):
return "%s fmt='%s' color=%s" % (self.__class__.__name__, self._fmt, "True" if self.color_enabled else "False")
class BBLogFilter(object):
def __init__(self, handler, level, debug_domains):
self.stdlevel = level
@@ -120,53 +120,60 @@ class BBLogFilter(object):
return True
return False
class LogFilterGEQLevel(logging.Filter):
def __init__(self, level):
self.strlevel = str(level)
self.level = stringToLevel(level)
def __repr__(self):
return "%s level >= %s (%d)" % (self.__class__.__name__, self.strlevel, self.level)
class BBLogFilterStdErr(BBLogFilter):
def filter(self, record):
return (record.levelno >= self.level)
class LogFilterLTLevel(logging.Filter):
def __init__(self, level):
self.strlevel = str(level)
self.level = stringToLevel(level)
def __repr__(self):
return "%s level < %s (%d)" % (self.__class__.__name__, self.strlevel, self.level)
if not BBLogFilter.filter(self, record):
return False
if record.levelno >= logging.ERROR:
return True
return False
class BBLogFilterStdOut(BBLogFilter):
def filter(self, record):
return (record.levelno < self.level)
if not BBLogFilter.filter(self, record):
return False
if record.levelno < logging.ERROR:
return True
return False
# Message control functions
#
loggerDefaultLogLevel = BBLogFormatter.NOTE
loggerDefaultDomains = {}
loggerDefaultDebugLevel = 0
loggerDefaultVerbose = False
loggerVerboseLogs = False
loggerDefaultDomains = []
def init_msgconfig(verbose, debug, debug_domains=None):
"""
Set default verbosity and debug levels config the logger
"""
if debug:
bb.msg.loggerDefaultLogLevel = BBLogFormatter.DEBUG - debug + 1
elif verbose:
bb.msg.loggerDefaultLogLevel = BBLogFormatter.VERBOSE
else:
bb.msg.loggerDefaultLogLevel = BBLogFormatter.NOTE
bb.msg.loggerDefaultDomains = {}
bb.msg.loggerDefaultDebugLevel = debug
bb.msg.loggerDefaultVerbose = verbose
if verbose:
bb.msg.loggerVerboseLogs = True
if debug_domains:
for (domainarg, iterator) in groupby(debug_domains):
dlevel = len(tuple(iterator))
bb.msg.loggerDefaultDomains["BitBake.%s" % domainarg] = logging.DEBUG - dlevel + 1
bb.msg.loggerDefaultDomains = debug_domains
else:
bb.msg.loggerDefaultDomains = []
def constructLogOptions():
return loggerDefaultLogLevel, loggerDefaultDomains
debug = loggerDefaultDebugLevel
verbose = loggerDefaultVerbose
domains = loggerDefaultDomains
if debug:
level = BBLogFormatter.DEBUG - debug + 1
elif verbose:
level = BBLogFormatter.VERBOSE
else:
level = BBLogFormatter.NOTE
debug_domains = {}
for (domainarg, iterator) in groupby(domains):
dlevel = len(tuple(iterator))
debug_domains["BitBake.%s" % domainarg] = logging.DEBUG - dlevel + 1
return level, debug_domains
def addDefaultlogFilter(handler, cls = BBLogFilter, forcelevel=None):
level, debug_domains = constructLogOptions()
@@ -176,19 +183,6 @@ def addDefaultlogFilter(handler, cls = BBLogFilter, forcelevel=None):
cls(handler, level, debug_domains)
def stringToLevel(level):
try:
return int(level)
except ValueError:
pass
try:
return getattr(logging, level)
except AttributeError:
pass
return getattr(BBLogFormatter, level)
#
# Message handling functions
#
@@ -222,105 +216,3 @@ def has_console_handler(logger):
if handler.stream in [sys.stderr, sys.stdout]:
return True
return False
def mergeLoggingConfig(logconfig, userconfig):
logconfig = copy.deepcopy(logconfig)
userconfig = copy.deepcopy(userconfig)
# Merge config with the default config
if userconfig.get('version') != logconfig['version']:
raise BaseException("Bad user configuration version. Expected %r, got %r" % (logconfig['version'], userconfig.get('version')))
# Set some defaults to make merging easier
userconfig.setdefault("loggers", {})
# If a handler, formatter, or filter is defined in the user
# config, it will replace an existing one in the default config
for k in ("handlers", "formatters", "filters"):
logconfig.setdefault(k, {}).update(userconfig.get(k, {}))
seen_loggers = set()
for name, l in logconfig["loggers"].items():
# If the merge option is set, merge the handlers and
# filters. Otherwise, if it is False, this logger won't get
# add to the set of seen loggers and will replace the
# existing one
if l.get('bitbake_merge', True):
ulogger = userconfig["loggers"].setdefault(name, {})
ulogger.setdefault("handlers", [])
ulogger.setdefault("filters", [])
# Merge lists
l.setdefault("handlers", []).extend(ulogger["handlers"])
l.setdefault("filters", []).extend(ulogger["filters"])
# Replace other properties if present
if "level" in ulogger:
l["level"] = ulogger["level"]
if "propagate" in ulogger:
l["propagate"] = ulogger["propagate"]
seen_loggers.add(name)
# Add all loggers present in the user config, but not any that
# have already been processed
for name in set(userconfig["loggers"].keys()) - seen_loggers:
logconfig["loggers"][name] = userconfig["loggers"][name]
return logconfig
def setLoggingConfig(defaultconfig, userconfigfile=None):
logconfig = copy.deepcopy(defaultconfig)
if userconfigfile:
with open(os.path.normpath(userconfigfile), 'r') as f:
if userconfigfile.endswith('.yml') or userconfigfile.endswith('.yaml'):
import yaml
userconfig = yaml.load(f)
elif userconfigfile.endswith('.json') or userconfigfile.endswith('.cfg'):
import json
userconfig = json.load(f)
else:
raise BaseException("Unrecognized file format: %s" % userconfigfile)
if userconfig.get('bitbake_merge', True):
logconfig = mergeLoggingConfig(logconfig, userconfig)
else:
# Replace the entire default config
logconfig = userconfig
# Convert all level parameters to integers in case users want to use the
# bitbake defined level names
for h in logconfig["handlers"].values():
if "level" in h:
h["level"] = bb.msg.stringToLevel(h["level"])
for l in logconfig["loggers"].values():
if "level" in l:
l["level"] = bb.msg.stringToLevel(l["level"])
conf = logging.config.dictConfigClass(logconfig)
conf.configure()
# The user may have specified logging domains they want at a higher debug
# level than the standard.
for name, l in logconfig["loggers"].items():
if not name.startswith("BitBake."):
continue
if not "level" in l:
continue
curlevel = bb.msg.loggerDefaultDomains.get(name)
# Note: level parameter should already be a int because of conversion
# above
newlevel = int(l["level"])
if curlevel is None or newlevel < curlevel:
bb.msg.loggerDefaultDomains[name] = newlevel
# TODO: I don't think that setting the global log level should be necessary
#if newlevel < bb.msg.loggerDefaultLogLevel:
# bb.msg.loggerDefaultLogLevel = newlevel
return conf

View File

@@ -1,4 +1,5 @@
# http://code.activestate.com/recipes/577629-namedtupleabc-abstract-base-class-mix-in-for-named/
#!/usr/bin/env python
# Copyright (c) 2011 Jan Kaliszewski (zuo). Available under the MIT License.
#
# SPDX-License-Identifier: MIT

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