]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agooeqa/core/runner: Improve test case comparision
Richard Purdie [Wed, 11 Jul 2018 11:03:31 +0000 (11:03 +0000)]
oeqa/core/runner: Improve test case comparision

We can directly compare the test case IDs rather than representations,
then if we're using subunit to split the tests, the comparisions still
work as intended.

(From OE-Core rev: 72e5f46f75454ba4c445c65c1cbc616a9e72fc6e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/context: Improve log file handling
Richard Purdie [Thu, 29 Nov 2018 12:07:53 +0000 (12:07 +0000)]
oeqa/selftest/context: Improve log file handling

The existing logfile is simply placed in the current directory. Since the test
changes cwd to BUILDDIR, the symlink to the log can be placed in an invalid
directory. We also see trackbacks if the symlink is invalid.

Improve things by:

* Placing logs in LOG_DIR (or BUILDDIR if unset).
* Using a full path to the log meaning the log and link are placed in the same directory.
* Using lexists instead of exists so invalid symlinks are handled correctly.

(From OE-Core rev: 750ece11bed0e62a11e0003d1d16a81f7c219761)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner.py: Fix python regex warnings
Richard Purdie [Wed, 14 Nov 2018 11:34:02 +0000 (11:34 +0000)]
oeqa/utils/qemurunner.py: Fix python regex warnings

Fix the warnings:

meta/lib/oeqa/utils/qemurunner.py:250: DeprecationWarning: invalid escape sequence \.
  ips = re.findall("((?:[0-9]{1,3}\.){3}[0-9]{1,3})", cmdline.split("ip=")[1])
meta/lib/oeqa/utils/qemurunner.py:343: DeprecationWarning: invalid escape sequence \-
  if re.search("root@[a-zA-Z0-9\-]+:~#", output):
poky/meta/lib/oeqa/utils/qemurunner.py:350: DeprecationWarning: invalid escape sequence \-
  if re.search("root@[a-zA-Z0-9\-]+:~#", output):
meta/lib/oeqa/utils/qemurunner.py:448: DeprecationWarning: invalid escape sequence \-
  if re.search("[a-zA-Z0-9]+@[a-zA-Z0-9\-]+:~#", data):

by correctly marking the regexs.

(From OE-Core rev: 8e6987735002560fca714f77ea8ece9d4b28f7fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/context: Replace deprecated imp module usage
Richard Purdie [Wed, 14 Nov 2018 11:32:49 +0000 (11:32 +0000)]
oeqa/selftest/context: Replace deprecated imp module usage

Avoid the warning:

meta/lib/oeqa/selftest/context.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

In this case importlib is a direct replacement.

(From OE-Core rev: db7a60c36a2d3eefc61ae6e1ede01680dc932035)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/commands: Avoid unclosed file warnings
Richard Purdie [Tue, 13 Nov 2018 22:43:25 +0000 (22:43 +0000)]
oeqa/utils/commands: Avoid unclosed file warnings

Avoid warnings such as:

meta/lib/oeqa/utils/commands.py:213: ResourceWarning: unclosed file <_io.BufferedReader name=4>
  return runCmd(cmd, ignore_status, timeout, output_log=output_log, **options)

(From OE-Core rev: 6a68c42de08cffbadb59ebda63fa5e19f6e5acef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/loader: Fix deprecation warning
Richard Purdie [Tue, 13 Nov 2018 21:16:54 +0000 (21:16 +0000)]
oeqa/loader: Fix deprecation warning

Clean up the warning:
meta/lib/oeqa/core/loader.py:27: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  _failed_test_args = inspect.getargspec(unittest.loader._make_failed_test).args

(From OE-Core rev: d2deb66830be2d44532fea3d5db763b57778252a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/esdk: run selftest inside workdir not /tmp
Ross Burton [Mon, 3 Dec 2018 20:35:15 +0000 (20:35 +0000)]
oeqa/selftest/esdk: run selftest inside workdir not /tmp

We've seen issues with rootfs size calculations and we've seen systems
like opensuse which have btrfs mounted on /tmp causing selftest failures.

(From OE-Core rev: 61be3cd748d1b7321a1fc4cfe84efa9b26a6aee0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa: don't litter /tmp with temporary directories
Ross Burton [Mon, 3 Dec 2018 20:35:14 +0000 (20:35 +0000)]
oeqa: don't litter /tmp with temporary directories

If we need to create a temporary directory in targetbuild or buildproject use
tempfile.TemporaryDirectory so that when the test case is finished, the
directory is deleted.

Also synchronise the logic and don't possibly store the temporary directory in
self.tmpdir as nothing uses that.

(From OE-Core rev: db0e658097130d146752785d0d45f46a3e0bad71)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: Avoid tracebacks on closed files
Richard Purdie [Sun, 2 Dec 2018 11:23:17 +0000 (11:23 +0000)]
oeqa/utils/qemurunner: Avoid tracebacks on closed files

Reorder the shutdown/teardown to avoid:

  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/utils/qemurunner.py", line 224, in launch
    op = self.getOutput(output)
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/utils/qemurunner.py", line 90, in getOutput
    fl = fcntl.fcntl(o, fcntl.F_GETFL)
ValueError: I/O operation on closed file

(From OE-Core rev: 8e7d756862d2a8d62f3c87497d6d65ddb3c1b962)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/runqemu: Improve testcase failure handling
Richard Purdie [Mon, 3 Dec 2018 20:46:06 +0000 (20:46 +0000)]
oeqa/selftest/runqemu: Improve testcase failure handling

assertTrue doesn't give good debug information when things fail. Update
several to use assertIn which gives information upon failure, for the
others print the log information upon failure.

(From OE-Core rev: c29cb75d5ce6b0873a934f4709b0c8824f7164d3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/oelib/path: don't leak temporary directories
Ross Burton [Mon, 3 Dec 2018 11:47:58 +0000 (11:47 +0000)]
oeqa/oelib/path: don't leak temporary directories

setUp() is used to populate a directory of temporary files, and deleted in
__del__.  However setUp() is called once *per test* so __del__ would only be
able to remove the last directory created.

Fix the code by using the natural counterpart to setUp, tearDown(), to clean up.

(From OE-Core rev: 68b4723e6fb11d171869185bccf28f32f6284c18)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/buildoptions: Ensure diskmon tests run consistently
Richard Purdie [Thu, 29 Nov 2018 10:40:58 +0000 (10:40 +0000)]
oeqa/selftest/buildoptions: Ensure diskmon tests run consistently

Heartbeat events default to once a second and we need to ensure we have
enough time in the task to see them.

Add a nostamp delay task 5s long so we can have a consistently timed
task which doesn't need cleanup or have unneeded dependencies. This
ensures we should deterministically see the disk moinitor events
regardless of the state of the build. This is done in a way which
doesn't corrupt build state or need cleanup and is efficient.

(From OE-Core rev: ecc49ee8986929e2429d948000a0ca588fe63959)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/buildoptions: Improve ccache test
Richard Purdie [Thu, 29 Nov 2018 10:22:15 +0000 (10:22 +0000)]
oeqa/selftest/buildoptions: Improve ccache test

This test occisionally fails as m4 doesn't recompile, meaning the logfile test
then doesn't find mention of ccache.

To ensure m4 does recompile, clean m4 before force compiling it.

(Reading the test is confusing due to the test cleanup also involving a clean)

(From OE-Core rev: 6e0b9214a0d57ed45a5df0ba5c9887a9045b89b1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/qemurunner: Remove resource python warnings
Richard Purdie [Wed, 28 Nov 2018 16:12:51 +0000 (16:12 +0000)]
oeqa/qemurunner: Remove resource python warnings

If runqemu fails it would leak an unclosed socket and file. Ensure we
close these in all cases to remove the resource warning.

(From OE-Core rev: ed80e46ccbc8fe8e9148d80723152066fa00ba28)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/commands: Avoid log message duplication
Richard Purdie [Wed, 28 Nov 2018 13:00:11 +0000 (13:00 +0000)]
oeqa/utils/commands: Avoid log message duplication

Each time a runqemu() fails, the log handler would be left behind meaning
messages from any subsequent run would be duplicated (or worse/more).

This ensures we remove the handler regardless and means we no longer
have the duplication.

(From OE-Core rev: 532984708436bdfa3a8cac2c684a425eb249bad0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: Fix python ResourceWarning for unclosed file
Richard Purdie [Wed, 28 Nov 2018 11:18:30 +0000 (11:18 +0000)]
oeqa/utils/qemurunner: Fix python ResourceWarning for unclosed file

Fixes:

Stderr:
/media/build1/poky/meta/lib/oeqa/utils/qemurunner.py:381: ResourceWarning: unclosed file <_io.BufferedWriter name=16>
  self.runqemu = None

(From OE-Core rev: b9e0bf919e6fc1a58e02145a363ebe7066e5bf4f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/commands: Add extra qemu failure logging
Richard Purdie [Tue, 27 Nov 2018 23:38:44 +0000 (23:38 +0000)]
oeqa/utils/commands: Add extra qemu failure logging

Rather than just referring the user to the logs containing the failure, print
them on the console. This aids debugging with oe-selftest with parallelisation
as the logs may otherwise be lost.

(From OE-Core rev: 36a018e245a232f520ff946f152cc875927a6fb4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/buildoptions: Improve ccache test failure output
Richard Purdie [Tue, 27 Nov 2018 12:19:39 +0000 (12:19 +0000)]
oeqa/selftest/buildoptions: Improve ccache test failure output

The current failure mode doesn't show us what the logs actually looked like
and later cleans can lose them. Show the whole log in case of failure
to aid debugging intermittent problems on the autobuilder.

(From OE-Core rev: 7c3a0dc5978cea898b1ca51decf4d6e7cf9d519f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/case: Use bb.utils.remove() instead of shutil.remove()
Richard Purdie [Tue, 27 Nov 2018 12:03:50 +0000 (12:03 +0000)]
oeqa/selftest/case: Use bb.utils.remove() instead of shutil.remove()

This avoids problems where shutil.remove will error with:

  File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.extra'

when there are races over file deletion (gpg agent may be slow to exit).

We already worked around speed and race issues in bb.utils.

(From OE-Core rev: 00a8fd5b93a5c19ce0b7498e2bc653ce8ad58aaf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/signing: Use do_populate_lic target instead of do_package
Richard Purdie [Mon, 26 Nov 2018 17:03:13 +0000 (17:03 +0000)]
oeqa/selftest/signing: Use do_populate_lic target instead of do_package

This should speed the test up signficiantly without any loss of functionality
for the purposes of the test.

(From OE-Core rev: 3dde0b749643575878bfbca2f8d2d9ec30bad166)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/signing: Allow tests not to need gpg on the host
Richard Purdie [Mon, 26 Nov 2018 17:00:10 +0000 (17:00 +0000)]
oeqa/selftest/signing: Allow tests not to need gpg on the host

We ideally don't want to use gpg from the host. This is straightforward for package
management but not for sstate.

For sstate, create a second build directory to run the test in using gnupg-native
from the original build directory.

(From OE-Core rev: 10afa94c3f0d7eb7524a26deda86949073d55fde)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/signing: Skip tests if gpg isn't found
Richard Purdie [Sat, 24 Nov 2018 17:56:06 +0000 (17:56 +0000)]
oeqa/selftest/signing: Skip tests if gpg isn't found

Raising an assertionError in the class setup isn't a particuarly good way to
indicate gpg isn't installed. Instead skip the tests if the required binary
isn't present. For the signing tests we do require it to be present and can't
use a prebuilt one.

(From OE-Core rev: 2d486af97e51b9daa9c40482c31d637c9ab4ae79)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/runqemu: Improve lockfile handling for python with close_fd=True
Richard Purdie [Wed, 28 Nov 2018 17:31:39 +0000 (17:31 +0000)]
scripts/runqemu: Improve lockfile handling for python with close_fd=True

On python versions with close_fds=True (python 3.2 onwards), the tap
device lockfile isn't passed to the child process.

Since this guards against use of an active interface, we really want this
here, so pass it in pass_fds. This means if the parent exits early, the child
still holds the lock, avoiding messages like:

runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: could not configure /dev/net/tun (tap0): Device or resource busy

(From OE-Core rev: 17a0a067d597c445c5892ff9914e91a2187f7e09)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/runqemu: Tidy up lock handling code
Richard Purdie [Wed, 28 Nov 2018 17:30:10 +0000 (17:30 +0000)]
scripts/runqemu: Tidy up lock handling code

Various tweaks:
- Balance up the aquire/release functions
- Use debug messge for both acquiring and release message for consistency in logs
- Use None instead of an empty string
- Reset the value of the field if we don't have the lock any more

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/runqemu: Replace subprocess.run() for compatibilty
Michael Halstead [Thu, 8 Nov 2018 20:58:39 +0000 (12:58 -0800)]
scripts/runqemu: Replace subprocess.run() for compatibilty

subprocess.run() was introduced in Python 3.5. We currently support down to
Python 3.4 so I've replaced it with subprocess.check_call() which is available
in that version.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobuild-appliance-image: Update to sumo head revision
Richard Purdie [Wed, 5 Dec 2018 22:35:18 +0000 (22:35 +0000)]
build-appliance-image: Update to sumo head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosanity: Add check for WSL
Richard Purdie [Fri, 16 Nov 2018 10:28:10 +0000 (10:28 +0000)]
sanity: Add check for WSL

Users are starting to expect OE to work under WSL which it doesn't. Add a warning to
tell them about this up front and manage expectations.

(From OE-Core rev: 4f22710f9a310412f1de0b4e6905c058ec416f25)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agobusybox: make busybox.links.{suid, nosuid} reproducible
Martin Hundebøll [Thu, 15 Nov 2018 09:12:49 +0000 (10:12 +0100)]
busybox: make busybox.links.{suid, nosuid} reproducible

The busybox.link.* files are generated from autoconf.h and applets.h,
which are both auto-generated by the build system. The contents of the
two files might be in different order, and so the link files are not
reproducble as is.

Fix this by sorting the lists using `sort`.

(From OE-Core rev: bade7cc344c2f0e9316f973c34e9c9dfcbdbe32d)

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoshadow: improve reproducibility by hard-coding shell path
Martin Hundebøll [Thu, 15 Nov 2018 09:12:48 +0000 (10:12 +0100)]
shadow: improve reproducibility by hard-coding shell path

The shadow configure script tries really hard to detect the running
shell to make sure it doesn't do unsupported calls.

On my system the shell is detected as /bin/sh, while a build in an
ubuntu docker it resolves to /bin/bash. And since the shell path is
baked into the target binaries through config.h, the build becomes
inreproducible.

Fix reproducibility by hard-coding the shell to be /bin/sh

(From OE-Core rev: 5f4fe91cb6c21cd3ecd0b68d1c6b46a9530c7570)

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agosocat: fix LICENSE
Paul Eggleton [Thu, 22 Nov 2018 21:55:50 +0000 (10:55 +1300)]
socat: fix LICENSE

According to both the README and source headers, the LICENSE value for
socat is explicitly GPLv2, not v2 or later, so adjust LICENSE
accordingly (leaving aside whether "GPL-2.0+-with-OpenSSL-exception"
should actually be considered a valid LICENSE string or not).

(From OE-Core rev: 466044a341a8b42159bd9388950c9079e0d7a2c3)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agognupg: patch gnupg-native to allow path relocation
Ross Burton [Wed, 19 Sep 2018 13:44:40 +0000 (14:44 +0100)]
gnupg: patch gnupg-native to allow path relocation

GnuPG hard-codes $bindir etc and uses them to find the helper binaries, such as
gpg-agent.  This breaks if gnupg-native is reused from sstate for a different
build directory and GPG signing of packages is required.

Patch in getenv() checks for gnupg-native when returning the hardcoded paths,
and create a wrapper script which overrides GNUPG_BINDIR. There are more paths
that can be overridden, but this one is sufficient to make GnuPG work.

(From OE-Core rev: dfd69ff889ed78bf137116583d8ae351859ee203)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodhcp: allow for excluding the external bind
Armin Kuster [Tue, 13 Nov 2018 21:19:42 +0000 (13:19 -0800)]
dhcp: allow for excluding the external bind

There is a known issue when using ISC DHCP alongside bind 9.10. DHCP uses libraries
provided by bind and there is a bug which results in dhcpd/dhclient not
running in the background and not responding to sigterm.

The issue was first reported in 02/2015 by the fedora team here:

https://lists.isc.org/pipermail/bind-users/2015-February/094636.html

and as of 02/2018 it is still unresolved:

https://bugzilla.redhat.com/show_bug.cgi?id=1457871

Fedora's workaround seems to consist of providing working libraries from the bind 9.9
package just for DHCP.

added 'ext-bind' in PACKACGECONFIG
added notes on how to enable the workaround
refreshed patches too

[ Yocto # 12744 ]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agocurl: actually apply latest CVE patches
Ross Burton [Fri, 9 Nov 2018 16:53:11 +0000 (16:53 +0000)]
curl: actually apply latest CVE patches

(From OE-Core rev: f0394e80a37f1da47042a1aa0487594f390603f9)

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>
6 years agounzip: actually apply CVE-2018-18384
Ross Burton [Fri, 9 Nov 2018 16:28:36 +0000 (16:28 +0000)]
unzip: actually apply CVE-2018-18384

(From OE-Core rev: d8e1b7afc536f989e7e6efdab0998d54f26ad1f6)

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>
6 years agooeqa/selftest/recipetool: Fix problems from changing upstream source
Mohamad Noor Alim Hussin [Fri, 9 Nov 2018 09:57:58 +0000 (17:57 +0800)]
oeqa/selftest/recipetool: Fix problems from changing upstream source

The upstream source tarball checksums changed. Use the copy from our source
mirror to avoid failures.

[YOCTO #12979]

(From OE-Core rev: e97a31e6bbaec5cb56d4750bf5171dbba510ee33)

Signed-off-by: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agobase.bbclass: avoid 'find -ignore_readdir_race -delete'
Matthias Schiffer [Tue, 6 Nov 2018 08:56:23 +0000 (09:56 +0100)]
base.bbclass: avoid 'find -ignore_readdir_race -delete'

Due to a bug in find [1], -ignore_readdir_race does not work correctly with
-delete. This can lead to spurious build failures when files disappear
while such a command is running; specifically this was seen in the case of
do_configure and do_populate_lic running concurrently for packages
with ${B} == ${WORKDIR}:

   find: '.../sstate-build-populate_lic': No such file or directory

While the issue is fixed in the findutils git master, the find command of
the host system is called here, so we can't ensure that the used version
contains the fix. Many common distros have not updated to a recent enough
findutils version yet (Ubuntu 18.10 contains the fix, while 18.04 is still
affected).

Work around the issue by passing the output of find to 'rm -f' instead of
using -delete.

[1] https://savannah.gnu.org/bugs/?52981

(From OE-Core rev: 8079e2d62e23f7c274f46185e6dad64fa95394c1)

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoarchiver: Drop unwanted directories
Fabien Lahoudere [Mon, 29 Oct 2018 11:02:29 +0000 (12:02 +0100)]
archiver: Drop unwanted directories

In sources directory we can find patches/ and temp/.
The first one is filled with symbolic link unusable on another
machines.
The second contains yocto logs to create this archives and are
typically copied when 'S = "${WORKDIR}"'

(From OE-Core rev: 3904f98851c6a63dd9377e38f1432be6b1c0a94d)

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agometa: Use double colon for chown OWNER:GROUP
Kosta Zertsekel [Sun, 4 Nov 2018 19:24:46 +0000 (21:24 +0200)]
meta: Use double colon for chown OWNER:GROUP

Rationale - excerp from `info chown`
====================================

OWNER‘:’GROUP
     If the OWNER is followed by a colon and a GROUP (a group name or
     numeric group ID), with no spaces between them, the group ownership
     of the files is changed as well (to GROUP).

   Some older scripts may still use ‘.’ in place of the ‘:’ separator.
POSIX 1003.1-2001 (*note Standards conformance::) does not require
support for that, but for backward compatibility GNU ‘chown’ supports
‘.’ so long as no ambiguity results.  New scripts should avoid the use
of ‘.’ because it is not portable, and because it has undesirable
results if the entire OWNER‘.’GROUP happens to identify a user whose
name contains ‘.’.

(From OE-Core rev: 185918234a07cb506d7d7464a49ac33972c7d963)

Signed-off-by: Kosta Zertsekel <zertsekel@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>
6 years agocrosssdk: Remove usage of host flags for cross-compilation
Richard Purdie [Wed, 31 Oct 2018 22:38:43 +0000 (22:38 +0000)]
crosssdk: Remove usage of host flags for cross-compilation

Similarlly to OE-Core rev 4b936cde58ca0a6f34092ce82640a02859110411 for
cross.sdk, BUILD_* flags can't be used as TARGET_* flags

gcc-crosssdk buils leaks config.log's through "gcc-stashed-builddir" and
TARGET_* flags to libgcc cross-build through "gcc/libgcc.mvars" file
on "gcc-stashed-builddir". This means that if BUILD_CFLAGS contains
host-specific flags like "-isystem/usr/include" libgcc build will
fail "do_qa_configure" and "do_package_qa" checks.

Remove host-related flags from TARGET_* flags for gcc-crosssdk builds.

[YOCTO #11874]

(From OE-Core rev: 6e162e619b6f5173c073cd9bedbcadf205017e30)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agopixman: Trim license info extracted from pixman-matrix.c
Peter Kjellerstedt [Sat, 3 Nov 2018 09:30:29 +0000 (10:30 +0100)]
pixman: Trim license info extracted from pixman-matrix.c

Four unrelated lines were extracted from pixman-matrix.c for the
license information.

License-Update: Only extract the relevant part from pixman-matrix.c
(From OE-Core rev: d0a209e8cf29d982567e3978e1dcbb3871505a39)

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>
6 years agoapr-util: Trim license info extracted from apu_version.h
Peter Kjellerstedt [Sat, 3 Nov 2018 09:30:27 +0000 (10:30 +0100)]
apr-util: Trim license info extracted from apu_version.h

Two unrelated lines were extracted from apu_version.h for the license
information.

License-Update: Only extract the relevant part from apu_version.h
(From OE-Core rev: 2edb0f24a13f27b2fae94fb447221ad2ddb924a0)

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>
6 years agoapr: Trim license info extracted from apr_lib.h
Peter Kjellerstedt [Sat, 3 Nov 2018 09:30:26 +0000 (10:30 +0100)]
apr: Trim license info extracted from apr_lib.h

Two unrelated lines were extracted from apr_lib.h for the license
information.

License-Update: Only extract the relevant part from apr_lib.h
(From OE-Core rev: 90ab83ecc509c2fdc1f6083d771031decdcaad63)

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>
6 years agocommon-licenses: Correct the FreeType license text
Peter Kjellerstedt [Sat, 3 Nov 2018 09:30:25 +0000 (10:30 +0100)]
common-licenses: Correct the FreeType license text

It now matches:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT

(From OE-Core rev: 9dcb393551b65c8b674f625e90171b512f5e5a60)

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>
6 years agocurl: fix for CVE-2018-16839/CVE-2018-16840/CVE-2018-16842
Changqing Li [Fri, 2 Nov 2018 06:07:49 +0000 (14:07 +0800)]
curl: fix for CVE-2018-16839/CVE-2018-16840/CVE-2018-16842

(From OE-Core rev: 0f0db9fc8512a0ecd0cdba3304a195cd925a5029)

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>
6 years agounzip: fix for CVE-2018-18384
Changqing Li [Fri, 2 Nov 2018 06:08:57 +0000 (14:08 +0800)]
unzip: fix for CVE-2018-18384

(From OE-Core rev: 2ddb3b25ed063b47d3fe2b3e9e17b7f9d0e2a7e5)

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>
6 years agowic: isoimage-isohybrid: fix UEFI spec breakage
Ioan-Adrian Ratiu [Thu, 28 Jun 2018 13:58:32 +0000 (16:58 +0300)]
wic: isoimage-isohybrid: fix UEFI spec breakage

It's really good that OE supports multiple EFI_PROVIDERs and that
commit 9a1709278de87 ("wic: isoimage-isohybrid: use grub-efi from
deploy dir") makes re-use of the grub-efi built image, but we should
still respect the standard otherwise the ISO will not boot, so install
grub images as boot[x64|ia32].efi not ${PN}-boot[x64|ia32].efi.

(From OE-Core rev: 1608129692d92c239b5fb9244b649a32b9009254)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoselftest/wic: Improve error message for test_fixed_size
Richard Purdie [Mon, 23 Jul 2018 10:54:20 +0000 (10:54 +0000)]
selftest/wic: Improve error message for test_fixed_size

Currently this can fail with a message like 127 != 0 which is unhelpful.

If we remove the ignore_status=False, the debugging from runCmd is much
more helpful printing status.output.

Also remove the now unneeded exit code check.

(From OE-Core rev: 1aa7471b11aedc68de5116c461fe73152e3985fd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agooeqa/selftest/wic: Ensure initramfs exists for test_iso_image
Richard Purdie [Sat, 14 Jul 2018 11:02:07 +0000 (11:02 +0000)]
oeqa/selftest/wic: Ensure initramfs exists for test_iso_image

AssertionError: Command 'wic create mkhybridiso --image-name core-image-minimal -o /var/tmp/wic.oe-selftest/' returned non-zero exit status 1:

ERROR: _exec_cmd: gzip -f -9 -c /var/tmp/wic.oe-selftest/tmp.wic.drhn6edm/initrd.cpio > /var/tmp/wic.oe-selftest/tmp.wic.drhn6edm/initrd.cpio.gz returned '1' instead of 0
output: gzip: /var/tmp/wic.oe-selftest/tmp.wic.drhn6edm/initrd.cpio: No such file or directory

This is because in a clean build directory, the initramfs may not be rebuilt.
Add a call to ensure it is built to avoid the error.

(From OE-Core rev: 2a80fa234d31992691a157425e8990db30158fd1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agooeqa/selftest/wic: Use a subdir of builddir, not /var/
Richard Purdie [Sat, 14 Jul 2018 11:01:24 +0000 (11:01 +0000)]
oeqa/selftest/wic: Use a subdir of builddir, not /var/

Using /var/ leave wic open to races with other processes on the system, use
a subdir of builddir instead to avoid this.

(From OE-Core rev: e07ec908ce7f26143a7bdf0a07a1230c0fd6ac87)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agooeqa/selftest/runtime_test: Ensure we build/use gnupg-native
Richard Purdie [Thu, 13 Sep 2018 13:12:11 +0000 (14:12 +0100)]
oeqa/selftest/runtime_test: Ensure we build/use gnupg-native

Without this, we see errors if gpg is missing from the host system
for "oe-selftest -r runtime_test.TestImage.test_testimage_dnf".

(From OE-Core rev: e91838b63b506e2969582b2b8511fd3724d6aa3f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agocurl: Include the complete license information
Peter Kjellerstedt [Fri, 5 Oct 2018 20:45:53 +0000 (22:45 +0200)]
curl: Include the complete license information

For some reason, the copyright part was left out of the license
information included in LIC_FILES_CHKSUM, preventing it from being
used in, e.g., documentation to satisfy the requirements of the
license.

License-Update: Include the complete license information
(From OE-Core rev: 390becd2dcf4fe791ec3715a74e34a46bd457e7a)

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>
6 years agocurl: CVE-2018-14618
Zhixiong Chi [Tue, 18 Sep 2018 08:46:17 +0000 (01:46 -0700)]
curl: CVE-2018-14618

Backport the CVE patch from the upstream
https://github.com/curl/curl/commit/57d299a499155d4b327e341c6024e293b0418243.patch
https://curl.haxx.se/docs/CVE-2018-14618.html
https://nvd.nist.gov/vuln/detail/CVE-2018-14618

(From OE-Core rev: b76903b4b7bfec71be0a8a14e2cab4e2ec852222)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.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>
6 years agoapt: update SRC_URI
Changqing Li [Thu, 1 Nov 2018 03:15:17 +0000 (11:15 +0800)]
apt: update SRC_URI

update SRC_URI since previous link is not valid now

(From OE-Core rev: 0b5972c8189dade0e77df175651b8d8707647bb1)

Signed-off-by: Changqing Li <changqing.li@windriver.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>
6 years agonasm: fix CVE-2018-1000667
Hongxu Jia [Tue, 23 Oct 2018 08:35:06 +0000 (04:35 -0400)]
nasm: fix CVE-2018-1000667

Since the latest nasm is  2.14rc16 (not formal release),
so backport a patch to 2.13 to fix CVE-2018-1000667.

(From OE-Core rev: 024b395425c95a08c881d922c310be78ffad483a)

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>
6 years agom4: Workaround gnulib's fseeko.c implementation
Khem Raj [Mon, 6 Aug 2018 22:57:00 +0000 (15:57 -0700)]
m4: Workaround gnulib's fseeko.c implementation

exposed by glibc 2.28 for details see
https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html

(From OE-Core rev: acca7f964bf9c21f3777085563a7928b8246f17f)

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>
6 years agopython: backport patch to fix CVE-2018-14647
Chen Qi [Fri, 19 Oct 2018 02:43:15 +0000 (10:43 +0800)]
python: backport patch to fix CVE-2018-14647

Backport patch to fix the following CVE.

CVE: CVE-2018-14647

(From OE-Core rev: 68e51756f67499081c3c53cff6c5c1efdf4b60f0)

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>
6 years agopython: backport patch to fix CVE-2018-1000802
Chen Qi [Fri, 19 Oct 2018 02:43:14 +0000 (10:43 +0800)]
python: backport patch to fix CVE-2018-1000802

Backport a patch to fix the following CVE.

CVE: CVE-2018-1000802

(From OE-Core rev: c0343f1035af98cb451eea0de94c16fe89ffdf48)

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>
6 years agopython: don't use runtime checks to identify float endianism
Ross Burton [Fri, 12 Oct 2018 13:44:03 +0000 (14:44 +0100)]
python: don't use runtime checks to identify float endianism

Python uses AC_RUN_IFELSE to determine the byte order for floats and doubles,
and falls back onto "I don't know" if it can't run code.  This results in
crippled floating point numbers in Python, and the regression tests fail.

Instead of running code, take a macro from autoconf-archive which compiles C
with a special double in which has an ASCII representation, and then greps the
binary to identify the format.

This is essentially a backport of the Python 3 patch in oe-core 1781b87.

(From OE-Core rev: 94cea72a23a374eb616d5642977b45172537beac)

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>
6 years agopython: clean up ptest
Ross Burton [Fri, 12 Oct 2018 11:55:02 +0000 (12:55 +0100)]
python: clean up ptest

As the manifest handling is done differently now, just inherit ptest with the
other inherits.

test_shutil needs unzip so add to RDEPENDS.

Instead of using a patched Makefile, call test.regrtest directly.

(From OE-Core rev: 84f34ad223b1e3f36cab2ac12246eb90efc919bc)

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>
6 years agopython: update to version 2.7.15
Derek Straka [Sat, 30 Jun 2018 11:37:35 +0000 (07:37 -0400)]
python: update to version 2.7.15

Update to the latest stable version

License-Update: Copyright year updated to include 2018

Remove the alignment patch that is included upstream

(From OE-Core rev: 855020053906478cea164ed254c08bedce48479d)

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Bug fix update only, drop patches included in update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto/4.14: update to v4.14.76
Bruce Ashfield [Wed, 17 Oct 2018 13:38:58 +0000 (09:38 -0400)]
linux-yocto/4.14: update to v4.14.76

Integrating the korg -stable updates that comprise the following commits:

   0b46ce3e3423 Linux 4.14.76
   c03f0ab15f3b ath10k: fix scan crash due to incorrect length calculation
   711b942ae3be virtio_balloon: fix increment of vb->num_pfns in fill_balloon()
   7f42eada5e3f virtio_balloon: fix deadlock on OOM
   251bc1f44c33 rds: rds_ib_recv_alloc_cache() should call alloc_percpu_gfp() instead
   4c925efc2230 ubifs: Check for name being NULL while mounting
   5656b7354183 ucma: fix a use-after-free in ucma_resolve_ip()
   3a7a9fb68c97 f2fs: fix invalid memory access
   dfe96e30b5a5 perf utils: Move is_directory() to path.h
   75fc05a20f5f crypto: chelsio - Fix memory corruption in DMA Mapped buffers.
   b5dcd4ab8e6c ARC: clone syscall to setp r25 as thread pointer
   af1a8101794d powerpc/lib: fix book3s/32 boot failure due to code patching
   609fbeddb24c powerpc: Avoid code patching freed init sections
   4e43fbc8ef25 powerpc/lib/code-patching: refactor patch_instruction()
   0f6e2f4e06be nvme_fc: fix ctrl create failures racing with workq items
   1b2ad48a85c4 ath10k: fix kernel panic issue during pci probe
   8146256b7dcd ath10k: fix use-after-free in ath10k_wmi_cmd_send_nowait
   327400b3a708 perf tools: Fix python extension build for gcc 8
   ec727693a9ef perf annotate: Use asprintf when formatting objdump command line
   79f87e09bcb2 of: unittest: Disable interrupt node tests for old world MAC systems
   171f90d4ae84 tty: Drop tty->count on tty_reopen() failure
   c92e73b11ed1 usb: cdc_acm: Do not leak URB buffers
   821c42e7d5ea USB: serial: simple: add Motorola Tetra MTP6550 id
   35123e64a168 usb: xhci-mtk: resume USB3 roothub first
   c096f5c4a8bc xhci: Add missing CAS workaround for Intel Sunrise Point xHCI
   ec6ae632e04b dm cache: fix resize crash if user doesn't reload cache table
   f11a6abfdb41 dm cache metadata: ignore hints array being too small during resize
   1364055c96c5 PM / core: Clear the direct_complete flag on errors
   9047696cb3f8 mac80211: fix setting IEEE80211_KEY_FLAG_RX_MGMT for AP mode keys
   8ebd65583375 PCI: Reprogram bridge prefetch registers on resume
   25bc6e80f9d6 x86/vdso: Fix vDSO syscall fallback asm constraint regression
   1194e838b879 x86/vdso: Only enable vDSO retpolines when enabled and supported
   64ff5747e2af selftests/x86: Add clock_gettime() tests to test_vdso
   30500cc74a36 x86/vdso: Fix asm constraints on vDSO syscall fallbacks
   71a0556255de drm/syncobj: Don't leak fences when WAIT_FOR_SUBMIT is set
   0c0dd182adae drm/amdgpu: Fix vce work queue was not cancelled when suspend
   309a1c5cfc59 xen-netback: fix input validation in xenvif_set_hash_mapping()
   f66d89483bb3 fbdev/omapfb: fix omapfb_memory_read infoleak
   887361696fb9 clocksource/drivers/timer-atmel-pit: Properly handle error cases
   8e2e2192eb35 blk-mq: I/O and timer unplugs are inverted in blktrace
   87a9d1cc2e8f KVM: x86: fix L1TF's MMIO GFN calculation
   5178716b55c4 mm/vmstat.c: skip NR_TLB_REMOTE_FLUSH* properly
   a2e0493f99e6 mm, thp: fix mlocking THP page with migration enabled
   5f4f5b1f4491 mm: migration: fix migration of huge PMD shared pages
   ab18409cf05f perf/core: Add sanity check to deal with pinned event failure
   8e6a9240b191 Linux 4.14.75
   4e7ea65127ac dm thin metadata: fix __udivdi3 undefined on 32-bit
   07f79b39d474 ixgbe: check return value of napi_complete_done()
   de0e2a92ccc5 ocfs2: fix locking for res->tracking and dlm->tracking_list
   f8566a92ab75 proc: restrict kernel stack dumps to root
   4de0fb95a287 tools: hv: fcopy: set 'error' in case an unknown operation was requested
   1d24e2609002 Drivers: hv: vmbus: Use get/put_cpu() in vmbus_connect()
   119bf9470be9 gpiolib: Free the last requested descriptor
   1df517a4cafd crypto: caam/jr - fix ablkcipher_edesc pointer arithmetic
   3b1a8535b8e1 crypto: mxs-dcp - Fix wait logic on chan threads
   90ecb700345c crypto: qat - Fix KASAN stack-out-of-bounds bug in adf_probe()
   a5bb359c078a ALSA: hda/realtek - Cannot adjust speaker's volume on Dell XPS 27 7760
   06f93e40f939 iommu/amd: Clear memory encryption mask from physical address
   dcdb2262d389 smb2: fix missing files in root share directory listing
   b420b7b7923b sysfs: Do not return POSIX ACL xattrs via listxattr
   fa7d75f64b80 ovl: fix format of setxattr debug
   8d75ecc13fdc ovl: fix memory leak on unlink of indexed file
   be406434737b ovl: fix access beyond unterminated strings
   aa41fb9593af xen: fix GCC warning and remove duplicate EVTCHN_ROW/EVTCHN_COL usage
   a502165dae09 xen: avoid crash in disable_hotplug_cpu
   4e1494794ebc xen/manage: don't complain about an empty value in control/sysrq node
   dfb29d69e4d8 cifs: read overflow in is_valid_oplock_break()
   7d60f98cde7a s390/qeth: don't dump past end of unknown HW header
   d5afd6b6eae5 s390/qeth: use vzalloc for QUERY OAT buffer
   ad297898159f r8169: Clear RTL_FLAG_TASK_*_PENDING when clearing RTL_FLAG_TASK_ENABLED
   f7b86faf0bd1 drm/amdgpu: fix error handling in amdgpu_cs_user_fence_chunk
   f2c9d68ed3c2 arm64: jump_label.h: use asm_volatile_goto macro instead of "asm goto"
   7a2df42a5371 hexagon: modify ffs() and fls() to return int
   2eb3072b2785 arch/hexagon: fix kernel/dma.c build warning
   1484d4ff2770 dm thin metadata: try to avoid ever aborting transactions
   1e9054e75d22 perf/x86/intel: Add support/quirk for the MISPREDICT bit on Knights Landing CPUs
   36918e899e3c net: ena: fix missing calls to READ_ONCE
   3e2cc5bd61fe net: ena: fix driver when PAGE_SIZE == 64kB
   a5bdc726e5ff fs/cifs: suppress a string overflow warning
   3941dbe190ba dm raid: fix rebuild of specific devices by updating superblock
   112d65a51f2b drm/nouveau/disp: fix DP disable race
   1a255bf1e749 drm/nouveau/TBDdevinit: don't fail when PMU/PRE_OS is missing from VBIOS
   34d54566ae4a net/mlx5: Consider PCI domain in search for next dev
   f36f3ebdf1e1 nvmet-rdma: fix possible bogus dereference under heavy load
   a90a52c51ad4 USB: yurex: Check for truncation in yurex_read()
   2c423318f07c HID: sensor-hub: Restore fixup for Lenovo ThinkPad Helix 2 sensor hub report
   d4da71220317 RDMA/ucma: check fd type in ucma_migrate_id()
   60ea8815d6e8 Revert "iio: temperature: maxim_thermocouple: add MAX31856 part"
   1173678a4f4a netfilter: nf_tables: release chain in flushing set
   c00f01c40211 perf probe powerpc: Ignore SyS symbols irrespective of endianness
   4095fd29fee7 perf util: Fix bad memory access in trace info.
   9d7bc329c123 perf evsel: Fix potential null pointer dereference in perf_evsel__new_idx()
   8b98b7eeb45d scsi: qedi: Add the CRC size within iSCSI NVM image
   dd44c35cc16c scsi: iscsi: target: Set conn->sess to NULL when iscsi_login_set_conn_values fails
   b6515e0f915b HID: hid-saitek: Add device ID for RAT 7 Contagion
   81c823c22355 usb: gadget: fotg210-udc: Fix memory leak of fotg210->ep[i]
   b6cc0ba2cbf4 HID: add support for Apple Magic Keyboards
   b969656b4662 netfilter: xt_cluster: add dependency on conntrack module
   10fdfea70d46 bpf: 32-bit RSH verification must truncate input before the ALU op
   dcc89aaf5a8d mm: madvise(MADV_DODUMP): allow hugetlbfs pages
   ee0516c4a1fe tools/vm/page-types.c: fix "defined but not used" warning
   5cbf015b971c tools/vm/slabinfo.c: fix sign-compare warning
   27c4ad84fd01 mac80211: shorten the IBSS debug messages
   e132eb09fdd2 mac80211: don't Tx a deauth frame if the AP forbade Tx
   8788737af389 mac80211: Fix station bandwidth setting after channel switch
   37cdc7e35ae4 mac80211: fix a race between restart and CSA flows
   4fa55f6d29fd cfg80211: fix a type issue in ieee80211_chandef_to_operating_class()
   43a01409ef4c mac80211: fix an off-by-one issue in A-MSDU max_subframe computation
   25cb8544342a fs/cifs: don't translate SFM_SLASH (U+F026) to backslash
   8590e6fecb5e net: cadence: Fix a sleep-in-atomic-context bug in macb_halt_tx()
   b08d15cc921f i2c: uniphier-f: issue STOP only for last message or I2C_M_STOP
   82fc9c6b7b9a i2c: uniphier: issue STOP only for last message or I2C_M_STOP
   da26e5729c04 RAID10 BUG_ON in raise_barrier when force is true and conf->barrier is 0
   36fadeb87be8 md/raid5-cache: disable reshape completely
   dc492842b700 ARC: atomics: unbork atomic_fetch_##op()
   7e259a0537be gpio: Fix crash due to registration race
   3b83a52796cd tools/kvm_stat: fix handling of invalid paths in debugfs provider
   52614f7bf1b5 tools/kvm_stat: fix python3 issues
   0d66ce687869 mac80211: always account for A-MSDU header changes
   2592adfe326b mac80211: do not convert to A-MSDU if frag/subframe limited
   b22a5d20aab1 cfg80211: nl80211_update_ft_ies() to validate NL80211_ATTR_IE
   e7577a1f1a65 net: hns: add netif_carrier_off before change speed and duplex
   7fd11a1ad542 net: hns: add the code for cleaning pkt in chip
   bdd29365a74c gpiolib-acpi: Register GpioInt ACPI event handlers from a late_initcall
   73bfec0a6bde gpiolib: acpi: Switch to cansleep version of GPIO library call
   9a5d353908db mac80211: avoid kernel panic when building AMSDU from non-linear SKB
   79448960e3d7 mac80211: mesh: fix HWMP sequence numbering to follow standard
   34bec4daf88c gpio: adp5588: Fix sleep-in-atomic-context bug
   0081e67083ed mac80211_hwsim: correct use of IEEE80211_VHT_CAP_RXSTBC_X
   7c209ebc7f15 mac80211: correct use of IEEE80211_VHT_CAP_RXSTBC_X
   6054817c5e07 scsi: csiostor: add a check for NULL pointer after kmalloc()
   4e380c50cf12 btrfs: btrfs_shrink_device should call commit transaction at the end
   9e685bec07ae KVM: PPC: Book3S HV: Don't truncate HPTE index in xlate function
   381538ae75cf mac80211_hwsim: require at least one channel
   4ae9a73be7ac mac80211: Run TXQ teardown code before de-registering interfaces
   3a738e7f734c tools/power turbostat: fix possible sprintf buffer overflow
   cdb2d37d345d serial: mvebu-uart: Fix reporting of effective CSIZE to userspace
   a17e2a72e714 drm/amdgpu: add another ATPX quirk for TOPAZ
   d9e61345652b drm/amd/pp: initialize result to before or'ing in data
   e6abbe80c883 Linux 4.14.74
   d61ba3417e4f media: v4l: event: Prevent freeing event subscriptions while accessed
   fcaca557760f arm64: KVM: Sanitize PSTATE.M when being set from userspace
   4fff53acff15 x86/pti: Fix section mismatch warning/error
   23210d92f617 i2c: i801: Allow ACPI AML access I/O ports not reserved for SMBus
   647b6d4ff699 arm/arm64: smccc-1.1: Handle function result as parameters
   826d8678cde2 arm/arm64: smccc-1.1: Make return values unsigned long
   75b3054d6807 ARM: dts: omap4-droid4: Fix emmc errors seen on some devices
   d11237bdcf95 nvme-fcloop: Fix dropped LS's to removed target port
   516b72e36ded ata: ftide010: Add a quirk for SQ201
   46cb720a8a3e drm/amdgpu: Update power state at the end of smu hw_init.
   50850b432cc5 drm/amdgpu: Enable/disable gfx PG feature in rlc safe mode
   9190a7ea313f Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"
   d3ddd8e16cab hwmon: (adt7475) Make adt7475_read_word() return errors
   0647ce03bd48 hwmon: (ina2xx) fix sysfs shunt resistor read access
   59f5838cc950 crypto: cavium/nitrox - fix for command corruption in queue full case with backlog submissions.
   243af256387c e1000: ensure to free old tx/rx rings in set_ringparam()
   716865940461 e1000: check on netif_running() before calling e1000_up()
   e8baff89bc3f net: hns: fix skb->truesize underestimation
   333f26129fd9 net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES
   92935e1c2a7e bpf: sockmap: write_space events need to be passed to TCP handler
   f0a8c1257fc3 tls: possible hang when do_tcp_sendpages hits sndbuf is full case
   97ee8505c637 isofs: reject hardware sector size > 2048 bytes
   083be6fbfdcb thermal: of-thermal: disable passive polling when thermal zone is disabled
   308206bd2770 qed: Avoid sending mailbox commands when MFW is not responsive
   583f866501c1 qed: Prevent a possible deadlock during driver load and unload
   73046b822c4c qed: Wait for MCP halt and resume commands to take place
   33906ae926e0 qed: Wait for ready indication before rereading the shmem
   38d070f9090a arm64: KVM: Tighten guest core register access from userspace
   d428e43eb684 serial: imx: restore handshaking irq for imx1
   016d4aae9d84 drm/i915: Remove vma from object on destroy, not close
   d134e9170417 ovl: hash non-dir by lower inode for fsnotify
   105470069de3 RDMA/uverbs: Atomically flush and mark closed the comp event queue
   693536a7ce39 IB/hfi1: Fix context recovery when PBC has an UnsupportedVL
   412a4b4db1a6 IB/hfi1: Invalid user input can result in crash
   d9e49e9ed8d6 IB/hfi1: Fix SL array bounds check
   fcbe49c82b82 IB/srp: Avoid that sg_reset -d ${srp_device} triggers an infinite loop
   3011b91478ff Input: elantech - enable middle button of touchpad on ThinkPad P72
   9691f745e17a USB: remove LPM management from usb_driver_claim_interface()
   be2360ed2d22 Revert "usb: cdc-wdm: Fix a sleep-in-atomic-context bug in service_outstanding_interrupt()"
   ec6dc4b61c33 USB: usbdevfs: restore warning for nonsensical flags
   25a8d4825165 USB: usbdevfs: sanitize flags more
   67d8e231759f media: uvcvideo: Support realtek's UVC 1.5 device
   1ddc0781c0ce slub: make ->cpu_partial unsigned int
   e75c01761a11 usb: musb: dsps: do not disable CPPI41 irq in driver teardown
   5b6717c6a3c0 USB: handle NULL config in usb_find_alt_setting()
   4253abe6a3aa USB: fix error handling in usb_driver_claim_interface()
   5eaaa5e9bd56 regulator: fix crash caused by null driver data
   b6adc1f24bb3 spi: rspi: Fix interrupted DMA transfers
   082e34f367a5 spi: rspi: Fix invalid SPI use during system suspend
   6074b71d617d spi: sh-msiof: Fix handling of write value for SISTR register
   d120858fca5f spi: sh-msiof: Fix invalid SPI use during system suspend
   429773341c34 spi: tegra20-slink: explicitly enable/disable clock
   dc89d37f9098 intel_th: Fix device removal logic
   247cc73cd8f5 serial: cpm_uart: return immediately from console poll
   2b7ba104769b tty: serial: lpuart: avoid leaking struct tty_struct
   4fe780c1baec x86/mm: Expand static page table for fixmap space
   04bc4dd86d0f floppy: Do not copy a kernel pointer to user memory in FDGETPRM ioctl
   f88e50ea0300 ARM: dts: dra7: fix DCAN node addresses
   99795ed0c62d iio: 104-quad-8: Fix off-by-one error in register selection
   a82a772da750 Input: xen-kbdfront - fix multi-touch XenStore node's locations
   91e30cae8903 fs/lock: skip lock owner pid translation in case we are in init_pid_ns
   0c4439c44416 EDAC: Fix memleak in module init error path
   a4f7bea87887 nfsd: fix corrupted reply to badly ordered compound
   de6ccdbd7734 gpio: Fix wrong rounding in gpio-menz127
   5bcbbadf6ac5 module: exclude SHN_UNDEF symbols from kallsyms api
   05f78b1a0e0c ASoC: dapm: Fix potential DAI widget pointer deref when linking DAIs
   3fd534a5480e EDAC, i7core: Fix memleaks and use-after-free on probe and remove
   c96c2f2b11b6 scsi: megaraid_sas: Update controller info during resume
   a56b97a2fc2d iomap: complete partial direct I/O writes synchronously
   13ab355240a9 scsi: bnx2i: add error handling for ioremap_nocache
   d5963fae7f36 perf/x86/intel/lbr: Fix incomplete LBR call stack
   85222eb56f2a MIPS: boot: fix build rule of vmlinux.its.S
   b8e30b822d08 HID: hid-ntrig: add error handling for sysfs_create_group
   69cb15d6596d arm: dts: mediatek: Add missing cooling device properties for CPUs
   5ef7a3782de8 ARM: mvebu: declare asm symbols as character arrays in pmsu.c
   e87efc44dd36 wlcore: Add missing PM call for wlcore_cmd_wait_for_event_or_timeout()
   dad01c56989a brcmsmac: fix wrap around in conversion from constant to s16
   62bd8064fa88 rndis_wlan: potential buffer overflow in rndis_wlan_auth_indication()
   3c7f6b2cf6d6 ath10k: transmit queued frames after processing rx packets
   c1283a6270a2 drm/sun4i: Fix releasing node when enumerating enpoints
   3f7056e1822d net: phy: xgmiitorgmii: Check phy_driver ready before accessing
   accb431813bf ath10k: protect ath10k_htt_rx_ring_free with rx_ring.lock
   0f4ca55e441c net: phy: xgmiitorgmii: Check read_status results
   8d9fd12b1eef ALSA: hda: Add AZX_DCAPS_PM_RUNTIME for AMD Raven Ridge
   0ebe95dee2f2 media: tm6000: add error handling for dvb_register_adapter
   0091a4ede783 drivers/tty: add error handling for pcmcia_loop_config
   3af342f5ddbd staging: android: ashmem: Fix mmap size validation
   1b16d06a9e27 media: omap3isp: zero-initialize the isp cam_xclk{a,b} initial data
   daefaacc6e02 media: soc_camera: ov772x: correct setting of banding filter
   381f8d235dd8 media: s3c-camif: ignore -ENOIOCTLCMD from v4l2_subdev_call for s_power
   85d3dbd8e7f2 ALSA: snd-aoa: add of_node_put() in error path
   3e3f075f72bd posix-timers: Sanitize overrun handling
   a05bd4ba655f posix-timers: Make forward callback return s64
   cf373da10039 iio: accel: adxl345: convert address field usage in iio_chan_spec
   8cbb2f74c093 mtd: rawnand: atmel: add module param to avoid using dma
   a838008bb11f s390/extmem: fix gcc 8 stringop-overflow warning
   33cd135ebc97 s390/scm_blk: correct numa_node in scm_blk_dev_setup
   98a34e26d93d s390/dasd: correct numa_node in dasd_alloc_queue
   a4dbaf7c2de0 alarmtimer: Prevent overflow for relative nanosleep
   9374ffc6f3d3 s390/sysinfo: add missing #ifdef CONFIG_PROC_FS
   8deb5801f154 powerpc/powernv/ioda2: Reduce upper limit for DMA window size
   45d3d58f9739 ath10k: sdio: set skb len for all rx packets
   b31f41e02c80 ath10k: sdio: use same endpoint id for all packets in a bundle
   149f530334f0 usb: wusbcore: security: cast sizeof to int for comparison
   ebee32dd8f04 scsi: target: Avoid that EXTENDED COPY commands trigger lock inversion
   336b73754169 scsi: ibmvscsi: Improve strings handling
   1390c37d1670 scsi: klist: Make it safe to use klists in atomic context
   bdfc40bc1b09 scsi: target/iscsi: Make iscsit_ta_authentication() respect the output buffer size
   2cbead46fd4e ARM: dts: ls1021a: Add missing cooling device properties for CPUs
   8430918a04e3 x86/entry/64: Add two more instruction suffixes
   8e90c7ef50e2 ARM: hwmod: RTC: Don't assume lock/unlock will be called with irq enabled
   0a29ab00339e x86/tsc: Add missing header to tsc_msr.c
   23e4ab4069d1 media: staging/imx: fill vb2_v4l2_buffer field entry
   6fd38ba41e34 media: fsl-viu: fix error handling in viu_of_probe()
   769ae06e4442 powerpc/kdump: Handle crashkernel memory reservation failure
   333cb98f393b IB/mlx4: Test port number before querying type.
   1f94cf4c81cb media: exynos4-is: Prevent NULL pointer dereference in __isp_video_try_fmt()
   0ca45668ecdb IB/core: type promotion bug in rdma_rw_init_one_mr()
   eca859882359 RDMA/i40w: Hold read semaphore while looking after VMA
   e862ab6b69c4 RDMA/bnxt_re: Fix a couple off by one bugs
   e0ccd2360a47 md-cluster: clear another node's suspend_area after the copy is finished
   e70f938a605a power: remove possible deadlock when unregistering power_supply
   1117e411a46c s390/mm: correct allocate_pgste proc_handler callback
   bc4ce060b305 iommu/msm: Don't call iommu_device_{,un}link from atomic context
   96e878907c90 6lowpan: iphc: reset mac_header after decompress to fix panic
   410534a34315 USB: serial: kobil_sct: fix modem-status error handling
   90de5688afc3 Bluetooth: Add a new Realtek 8723DE ID 0bda:b009
   834a9ef5f831 iommu/amd: make sure TLB to be flushed before IOVA freed
   c7e653a24c18 power: vexpress: fix corruption in notifier registration
   c1a630680c8b uwb: hwa-rc: fix memory leak at probe
   72bad20e9316 serial: sh-sci: Stop RX FIFO timer during port shutdown
   0470189cd9b9 misc: sram: enable clock before registering regions
   914b4daa9b6d power: supply: axp288_charger: Fix initial constant_charge_current value
   2efa4bd5aa9a staging: rts5208: fix missing error check on call to rtsx_write_register
   6ecd10b1aa22 x86/numa_emulation: Fix emulated-to-physical node mapping
   127cd4e23323 vmci: type promotion bug in qp_host_get_user_memory()
   4804f372b53f tsl2550: fix lux1_input error in low light
   db12e7d3e9bc iio: adc: ina2xx: avoid kthread_stop() with stale task_struct
   29db2772349d crypto: skcipher - Fix -Wstringop-truncation warnings
   3b65f403d7d0 Linux 4.14.73
   97513162cd6d spi: Fix double IDR allocation with DT aliases
   ed5e9462f661 tick/nohz: Prevent bogus softirq pending warning
   3a411a04be4e iw_cxgb4: only allow 1 flush on user qps
   956fa50745b3 vmw_balloon: include asm/io.h
   23ac2a32b2f8 PCI: aardvark: Size bridges before resources allocation
   fe87d18b1471 sched/fair: Fix vruntime_normalized() for remote non-migration wakeup
   0d09307bc242 ext4: show test_dummy_encryption mount option in /proc/mounts
   3dc006d212e3 ext4: don't mark mmp buffer head dirty
   ba48e66e3f53 ext4: fix online resizing for bigalloc file systems with a 1k block size
   6a4d7b584d38 ext4: fix online resize's handling of a too-small final block group
   22654a3b4a30 ext4: recalucate superblock checksum after updating free blocks/inodes
   779af00b3fa3 ext4: avoid arithemetic overflow that can trigger a BUG
   3f9eafe8772f ext4: avoid divide by zero fault when deleting corrupted inline directories
   31343d27f18f ext4: check to make sure the rename(2)'s destination is not freed
   4334a6ae867a tty: vt_ioctl: fix potential Spectre v1
   57c806be0160 drm/amdgpu: add new polaris pci id
   5575041b09cd drm: udl: Destroy framebuffer only if it was initialized
   c70d8a488a41 drm/vc4: Fix the "no scaling" case on multi-planar YUV formats
   35e48a086071 drm/nouveau/drm/nouveau: Prevent handling ACPI HPD events too early
   0f966da783a3 drm/nouveau/drm/nouveau: Use pm_runtime_get_noresume() in connector_detect()
   409af02c200e drm/nouveau/drm/nouveau: Fix bogus drm_kms_helper_poll_enable() placement
   9ac837e079a0 drm/nouveau/drm/nouveau: Don't forget to cancel hpd_work on suspend/unload
   42387d8e4aef drm/nouveau: Fix deadlocks in nouveau_connector_detect()
   7c1ca8fb8633 ocfs2: fix ocfs2 read block panic
   1d7e23f9068f Revert "ubifs: xattr: Don't operate on deleted inodes"
   44383139a39c scsi: target: iscsi: Use bin2hex instead of a re-implementation
   755e45f3155c scsi: target: iscsi: Use hex2bin instead of a re-implementation
   50ec69edf3f0 Revert "uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name"
   13d216167d3d Revert "rpmsg: core: add support to power domains for devices"
   6447b34fc270 mm: shmem.c: Correctly annotate new inodes for lockdep
   7eba38a3f65d ring-buffer: Allow for rescheduling when removing pages
   0e5cdbac0303 Revert "PCI: Add ACS quirk for Intel 300 series"
   f3765abb60c7 spi: fix IDR collision on systems with both fixed and dynamic SPI bus numbers
   5ca87a38202e xen/x86/vpmu: Zero struct pt_regs before calling into sample handling code
   7eced4478f4e xen/netfront: don't bug in case of too many frags
   e2d5285b98ef platform/x86: alienware-wmi: Correct a memory leak
   ff6805037d83 ALSA: oxfw: fix memory leak of private data
   08f4f8b93809 ALSA: oxfw: fix memory leak of discovered stream formats at error path
   996899a9cbd8 ALSA: oxfw: fix memory leak for model-dependent data at error path
   d9929097176d ALSA: fireworks: fix memory leak of response buffer at error path
   40e2596f06b0 ALSA: firewire-tascam: fix memory leak of private data
   933f20a61e26 ALSA: firewire-digi00x: fix memory leak of private data
   70165a445b00 ALSA: fireface: fix memory leak in ff400_switch_fetching_mode()
   352701c288c1 ALSA: emu10k1: fix possible info leak to userspace on SNDRV_EMU10K1_IOCTL_INFO
   7c4881d64ed7 ALSA: bebob: use address returned by kmalloc() instead of kernel stack for streaming DMA mapping
   16b8c03864b7 ALSA: bebob: fix memory leak for M-Audio FW1814 and ProjectMix I/O at error path
   c7cf0304d41f ASoC: rsnd: fixup not to call clk_get/set under non-atomic
   a388e6d7a822 ASoC: cs4265: fix MMTLR Data switch control
   6ead7a8a4ec1 NFC: Fix the number of pipes
   4a16b3cd084d NFC: Fix possible memory corruption when handling SHDLC I-Frame commands
   18fef87e05d3 tls: clear key material from kernel memory when do_tls_setsockopt_conf fails
   0c0334299a7e tls: zero the crypto information from tls_context before freeing
   10cacaf13189 tls: don't copy the key out of tls12_crypto_info_aes_gcm_128
   ee547ed7dee4 net/sched: act_sample: fix NULL dereference in the data path
   b13f721a3409 udp6: add missing checks on edumux packet processing
   ff64a1a2ca3d neighbour: confirm neigh entries when ARP packet is received
   0f6f77f3b8f4 udp4: fix IP_CMSG_CHECKSUM for connected sockets
   6f5ec16ee02b qmi_wwan: set DTR for modems in forced USB2 mode
   f3aa1f3a1113 pppoe: fix reception of frames with no mac header
   c0f2c063abc8 net: hp100: fix always-true check for link up state
   9951e17efd05 net/appletalk: fix minor pointer leak to userspace in SIOCFINDIPDDPRT
   bba90d3686fd ipv6: fix possible use-after-free in ip6_xmit()
   13a47054f0b2 gso_segment: Reset skb->mac_len after modifying network header

(From OE-Core rev: 62c7a970de40e8c4d57cb6d3feebbfbcae089b27)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto-rt: fixup 4.14 merge issues
Bruce Ashfield [Wed, 17 Oct 2018 13:38:54 +0000 (09:38 -0400)]
linux-yocto-rt: fixup 4.14 merge issues

The latest -stable updates broke 4.14 -rt with some rtmutex
issues. We sync with the rt-stable tree to pickup the fix.

(From OE-Core rev: 8a172a8ac87cc63d6f89ff0f584a75fe7fcd10dd)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto/4.14: fix beaglebone configuration warnings
Bruce Ashfield [Tue, 25 Sep 2018 13:59:28 +0000 (09:59 -0400)]
linux-yocto/4.14: fix beaglebone configuration warnings

Backporting the following fixes from 4.18 to 4.14 to remove beaglebone
configuration warnings:

  1fb0b0379fb5 beaglebone: Clean up the cfg file
  4176e7ded8e1 beaglebone: Drop the needless unsetting of the kernel options
  65c209da574d beaglebone: Drop the obsolete kernel options

(From OE-Core rev: 2adec315b44dad0f99ad55e04b4e3b6608613147)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto: enable pci and CRYPTO_DEV_VIRTIO
Bruce Ashfield [Sat, 22 Sep 2018 17:18:54 +0000 (13:18 -0400)]
linux-yocto: enable pci and CRYPTO_DEV_VIRTIO

With recent kernels and the latest openssl we observe hangs when there
is not sufficient entropy in the system before crypto is used
(i.e. OpenVSwitch or openssh server).

This was mainly observed on qemuarm64, but can happen elsewhere. So
we enable CRYPTO_DEV_VIRTIO in the main virtio fragment and enable
PCI for qemuarm64 to ensure that entropy is available.

(From OE-Core rev: 8cc08e44cf3e969c124456d459c6c06a76cad018)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Dropped 4.18 changes]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto/4.14: update to v4.14.71
Bruce Ashfield [Sat, 22 Sep 2018 17:18:53 +0000 (13:18 -0400)]
linux-yocto/4.14: update to v4.14.71

Integrating the korg stable releases up to v4.14.71 which comprise
the following commits:

   1244bbb3e921 Linux 4.14.71
   06274364edb4 mm: get rid of vmacache_flush_all() entirely
   8b34a7b14ee7 autofs: fix autofs_sbi() does not check super block type
   daf0ca743b28 tuntap: fix use after free during release
   ab75811f7181 tun: fix use after free for ptr_ring
   8626c40a3093 mtd: ubi: wl: Fix error return code in ubi_wl_init()
   08fb833b40e3 ip: frags: fix crash in ip_do_fragment()
   b3a0c61b7369 ip: process in-order fragments efficiently
   c91f27fb5716 ip: add helpers to process in-order fragments faster.
   04b28f406e86 ipv4: frags: precedence bug in ip_expire()
   6b921536f170 net: sk_buff rbnode reorg
   37c7cc80b1d7 net: add rb_to_skb() and other rb tree helpers
   6bf32cda46eb net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends
   5123ffdad659 ipv6: defrag: drop non-last frags smaller than min mtu
   3bde783eca23 net: modify skb_rbtree_purge to return the truesize of all purged skbs.
   7750c414b89b net: speed up skb_rbtree_purge()
   1c44969111cc ip: discard IPv4 datagrams with overlapping segments.
   5fff99e88a1f inet: frags: fix ip6frag_low_thresh boundary
   48c2afc16888 inet: frags: get rid of ipfrag_skb_cb/FRAG_CB
   8291cd943a9b inet: frags: reorganize struct netns_frags
   bd946fb5226e rhashtable: reorganize struct rhashtable layout
   3226bdcb0448 ipv6: frags: rewrite ip6_expire_frag_queue()
   085a0147447a inet: frags: do not clone skb in ip_expire()
   990204ddc5f6 inet: frags: break the 2GB limit for frags storage
   caa4249eca08 inet: frags: remove inet_frag_maybe_warn_overflow()
   5b1b3ad46dd1 inet: frags: get rif of inet_frag_evicting()
   bd3df633f17d inet: frags: remove some helpers
   9aee41eff751 inet: frags: use rhashtables for reassembly units
   33dc9f7c5d12 rhashtable: add schedule points
   11be675bf0aa ipv6: export ip6 fragments sysctl to unprivileged users
   266da0fb83f3 inet: frags: refactor lowpan_net_frag_init()
   eb1686ae5e20 inet: frags: refactor ipv6_frag_init()
   0512f7e93504 inet: frags: Convert timers to use timer_setup()
   0cbf74b9519d inet: frags: refactor ipfrag_init()
   673220d6417d inet: frags: add a pointer to struct netns_frags
   6093d5abcf5a inet: frags: change inet_frags_init_net() return value
   6f7bf899b92d drm/i915: set DP Main Stream Attribute for color range on DDI platforms
   bdbf6e0b9326 RDMA/cma: Do not ignore net namespace for unbound cm_id
   0d1d365d1d44 MIPS: WARN_ON invalid DMA cache maintenance, not BUG_ON
   1181e8687a8d NFSv4.1: Fix a potential layoutget/layoutrecall deadlock
   0983ef553d8f f2fs: fix to do sanity check with {sit,nat}_ver_bitmap_bytesize
   7beff543897c mfd: ti_am335x_tscadc: Fix struct clk memory leak
   b28c14ae3576 iommu/ipmmu-vmsa: Fix allocation in atomic context
   1252c1daa9c3 f2fs: Fix uninitialized return in f2fs_ioc_shutdown()
   9d54a48ef296 f2fs: fix to wait on page writeback before updating page
   9e850bc7691a media: helene: fix xtal frequency setting at power on
   5deea7d63ba1 partitions/aix: fix usage of uninitialized lv_info and lvname structures
   f3677a5c7d08 partitions/aix: append null character to print data from disk
   758289892a13 media: s5p-mfc: Fix buffer look up in s5p_mfc_handle_frame_{new, copy_time} functions
   b0a6faaa6060 Input: atmel_mxt_ts - only use first T9 instance
   e85940a5bb5f dm cache: only allow a single io_mode cache feature to be requested
   94f885db2a18 net: dcb: For wild-card lookups, use priority -1, not 0
   946cf3fe1be6 MIPS: generic: fix missing of_node_put()
   e607db7ce984 MIPS: Octeon: add missing of_node_put()
   7fb2b50ee596 f2fs: fix to do sanity check with reserved blkaddr of inline inode
   ee5067c60606 tpm/tpm_i2c_infineon: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT)
   cf503dbe5c22 tpm_tis_spi: Pass the SPI IRQ down to the driver
   894b7c6584ed f2fs: fix to skip GC if type in SSA and SIT is inconsistent
   7141f97cdd83 pktcdvd: Fix possible Spectre-v1 for pkt_devs
   5f91efc475c8 f2fs: try grabbing node page lock aggressively in sync scenario
   fd4e3615936c net: mvneta: fix mtu change on port without link
   0cfe17c2a909 pinctrl/amd: only handle irq if it is pending and unmasked
   acd73639c38c gpio: ml-ioh: Fix buffer underwrite on probe error path
   1fc16c07d63b pinctrl: imx: off by one in imx_pinconf_group_dbg_show()
   591ee8d9cd2f x86/mm: Remove in_nmi() warning from vmalloc_fault()
   60deae3d9fc9 Bluetooth: hidp: Fix handling of strncpy for hid->name information
   1dac27c707c8 ath10k: disable bundle mgmt tx completion event support
   6158c2b70a8a tools/testing/nvdimm: kaddr and pfn can be NULL to ->direct_access()
   383195f9feca scsi: 3ware: fix return 0 on the error path of probe
   62128a8d8489 ata: libahci: Correct setting of DEVSLP register
   7cadaaa96c07 ata: libahci: Allow reconfigure of DEVSLP register
   3f3d6c0608b7 MIPS: Fix ISA virt/bus conversion for non-zero PHYS_OFFSET
   1ed3a9307230 rpmsg: core: add support to power domains for devices
   0e890d1cf491 wlcore: Set rx_status boottime_ns field on rx
   bd21eb8aa705 ath10k: prevent active scans on potential unusable channels
   2dacb8cc67ef ath9k_hw: fix channel maximum power level test
   473983f319cc ath9k: report tx status on EOSP
   40992419f135 macintosh/via-pmu: Add missing mmio accessors
   968f03158db5 perf evlist: Fix error out while applying initial delay and LBR
   cc33476b67b8 perf c2c report: Fix crash for empty browser
   521aedea92cd NFSv4.0 fix client reference leak in callback
   c39273ce0d85 perf tools: Allow overriding MAX_NR_CPUS at compile time
   e296ac45b568 f2fs: fix defined but not used build warnings
   e04910746abe f2fs: do not set free of current section
   d85e49570227 f2fs: fix to active page in lru list for read path
   ca21de151016 tty: rocket: Fix possible buffer overwrite on register_PCI
   4bb1d3ec658c Drivers: hv: vmbus: Cleanup synic memory free path
   eec63d96d0e4 firmware: vpd: Fix section enabled flag on vpd_section_destroy
   16c6e01a4a98 uio: potential double frees if __uio_register_device() fails
   2458e91302aa misc: ti-st: Fix memory leak in the error path of probe()
   8e6ee30ad80f gpu: ipu-v3: default to id 0 on missing OF alias
   3b9909896570 media: camss: csid: Configure data type and decode format properly
   cb71229f6483 timers: Clear timer_base::must_forward_clk with timer_base::lock held
   d1060bfcdc72 md/raid5: fix data corruption of replacements after originals dropped
   1f6324f4ea5b scsi: target: fix __transport_register_session locking
   3ddbcd49bbb3 blk-mq: fix updating tags depth
   47a6917f4b72 net: phy: Fix the register offsets in Broadcom iProc mdio mux driver
   6b7c7186c210 media: dw2102: Fix memleak on sequence of probes
   cbd5e67820a9 media: davinci: vpif_display: Mix memory leak on probe error path
   77e120a9c64a selftests/bpf: fix a typo in map in map test
   274977d99c19 powerpc/powernv: Fix concurrency issue with npu->mmio_atsd_usage
   16aa222d2293 gpio: tegra: Move driver registration to subsys_init level
   fb281ed2e4dc Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV
   0455f5d63b3e i2c: aspeed: Add an explicit type casting for *get_clk_reg_val
   5ffdd121d0c4 ethtool: Remove trailing semicolon for static inline
   96e5b8cc3cfd misc: mic: SCIF Fix scif_get_new_port() error handling
   0b2d28449e68 ARC: [plat-axs*]: Enable SWAP
   e5d857d5f1fc tpm: separate cmd_ready/go_idle from runtime_pm
   64def6f35348 crypto: aes-generic - fix aes-generic regression on powerpc
   0fad94cf1016 switchtec: Fix Spectre v1 vulnerability
   ff225750dc4e x86/microcode: Update the new microcode revision unconditionally
   05104410c9d1 x86/microcode: Make sure boot_cpu_data.microcode is up-to-date
   1d92a611db50 cpu/hotplug: Prevent state corruption on error rollback
   cb2625854091 cpu/hotplug: Adjust misplaced smb() in cpuhp_thread_fun()
   cc4271088619 ALSA: hda - Fix cancel_work_sync() stall from jackpoll work
   a709c46fdcd0 KVM: VMX: Do not allow reexecute_instruction() when skipping MMIO instr
   d5fca5314c4d KVM: s390: vsie: copy wrapping keys to right place
   ae3968b41645 Btrfs: fix data corruption when deduplicating between different files
   55bcfe019ac4 smb3: check for and properly advertise directory lease support
   b0b69369eecc SMB3: Backup intent flag missing for directory opens with backupuid mounts
   9efcaa7c4afb MIPS: VDSO: Match data page cache colouring when D$ aliases
   492519107c9d android: binder: fix the race mmap and alloc_new_buf_locked
   381992bcccac block: bfq: swap puts in bfqg_and_blkg_put
   23ecbbad7bf9 nbd: don't allow invalid blocksize settings
   425739151e03 scsi: lpfc: Correct MDS diag and nvmet configuration
   d98b67089c0e i2c: i801: fix DNV's SMBCTRL register offset
   831223b294f8 i2c: xiic: Make the start and the byte count write atomic
   5dfe87ac34e2 Linux 4.14.70
   ab088bc2911d arm64: Handle mismatched cache type
   469c89aa5d7e arm64: Fix mismatched cache line size detection
   0d2e80411a1a ASoC: wm8994: Fix missing break in switch
   03717f80cf2c arm64: cpu_errata: include required headers
   82a0e0f5cf40 x86: kvm: avoid unused variable warning
   e02c9275beea kvm: x86: Set highest physical address bits in non-present/reserved SPTEs
   39cff99ba469 Revert "ARM: imx_v6_v7_defconfig: Select ULPI support"
   e37957305de3 irda: Only insert new objects into the global database via setsockopt
   77be9452d0e5 irda: Fix memory leak caused by repeated binds of irda socket
   63fd9d43c018 s390/lib: use expoline for all bcr instructions
   9370868fd3ca kbuild: make missing $DEPMOD a Warning instead of an Error
   1e0750745bdf drm/i915: Increase LSPCON timeout
   13b23ccfa288 x86/xen: don't write ptes directly in 32-bit PV guests
   d85c2999a7b5 x86/pae: use 64 bit atomic xchg function in native_ptep_get_and_clear
   685a452ce3bf usb: dwc3: core: Fix ULPI PHYs and prevent phy_get/ulpi_init during suspend/resume
   44e5d0b6ce63 HID: add quirk for another PIXART OEM mouse used by HP
   801fc191bb15 mm: Fix devm_memremap_pages() collision handling
   1508043c32a9 lightnvm: pblk: free padded entries in write buffer
   fd8cb2e71cdd sched/deadline: Fix switching to -deadline
   8d015a362a84 debugobjects: Make stack check warning more informative
   448b5498f6c6 uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name
   589a8eafc74e drm/amdgpu:add VCN booting with firmware loaded by PSP
   4a4afcf76c96 drm/amdgpu:add VCN support in PSP driver
   d47d14de2438 drm/amdgpu:add new firmware id for VCN
   997157c4eb38 drm/amdgpu:add tmr mc address into amdgpu_firmware_info
   65d20e40552f drm/amdgpu: update tmr mc address
   f40ecf3fe04a drm/edid: Add 6 bpc quirk for SDC panel in Lenovo B50-80
   d991f8ae4071 drm/amd/pp/Polaris12: Fix a chunk of registers missed to program
   c46a1b2622fa drm/amdgpu: Fix RLC safe mode test in gfx_v9_0_enter_rlc_safe_mode
   7e1a6951ca99 drm/i915/lpe: Mark LPE audio runtime pm as "no callbacks"
   a35d3352434d ARM: rockchip: Force CONFIG_PM on Rockchip systems
   1f62d35cd2e1 arm64: rockchip: Force CONFIG_PM on Rockchip systems
   33f4c5c68044 btrfs: Don't remove block group that still has pinned down bytes
   0cdbc3faf960 btrfs: relocation: Only remove reloc rb_trees if reloc control has been initialized
   2f92584bf1f6 btrfs: replace: Reset on-disk dev stats value after replace
   145b1f56b992 btrfs: Exit gracefully when chunk map cannot be inserted to the tree
   80f97c79f3e1 kvm: nVMX: Fix fault vector for VMX operation at CPL > 0
   1187e0186d81 KVM: vmx: track host_state.loaded using a loaded_vmcs pointer
   0aa49a4ddc8e clk: rockchip: Add pclk_rkpwm_pmu to PMU critical clocks in rk3399
   92ef9425c6e1 powerpc/pseries: Avoid using the size greater than RTAS_ERROR_LOG_MAX.
   f3c124c3077d powerpc/64s: Make rfi_flush_fallback a little more robust
   17b1473e6433 powerpc/platforms/85xx: fix t1042rdb_diu.c build errors & warning
   e5f0192fe220 SMB3: Number of requests sent should be displayed for SMB3 not just CIFS
   f6a01ab96067 smb3: fix reset of bytes read and written stats
   9dd38052a3eb cfq: Suppress compiler warnings about comparisons
   9b3fa26f0092 RDS: IB: fix 'passing zero to ERR_PTR()' warning
   e33c8a2896ec selftests/powerpc: Kill child processes on SIGINT
   c861151b1fe9 iommu/omap: Fix cache flushes on L2 table entries
   0a65ab39f8b6 ASoC: rt5677: Fix initialization of rt5677_of_match.data
   3e86f5157661 staging: comedi: ni_mio_common: fix subdevice flags for PFI subdevice
   120130a75724 dm kcopyd: avoid softlockup in run_complete_job
   50956ef66cdb PCI: mvebu: Fix I/O space end address calculation
   301ae5910648 xen/balloon: fix balloon initialization for PVH Dom0
   a333f3f2a255 Input: do not use WARN() in input_alloc_absinfo()
   a9fac97e2e50 NFSv4: Fix error handling in nfs4_sp4_select_mode()
   8ac6b147534c scsi: aic94xx: fix an error code in aic94xx_init()
   24165131bcab ACPI / scan: Initialize status to ACPI_STA_DEFAULT
   c953a5038d2d s390/dasd: fix panic for failed online processing
   ab16afe8c624 s390/dasd: fix hanging offline processing due to canceled worker
   d67c7c9dd14f block: bvec_nr_vecs() returns value for wrong slab
   6952b4ed9e42 perf probe powerpc: Fix trace event post-processing
   af675a6eefe9 powerpc: Fix size calculation using resource_size()
   c20a5e06b750 powerpc/uaccess: Enable get_user(u64, *p) on 32-bit
   47425c36d3fb f2fs: fix to clear PG_checked flag in set_page_dirty()
   c2842800d6bd net/9p: fix error path of p9_virtio_probe
   4cd195263e42 net/9p/trans_fd.c: fix race by holding the lock
   5859129cf62e irqchip/bcm7038-l1: Hide cpu offline callback when building for !SMP
   5e51aa84f4e8 perf tools: Check for null when copying nsinfo.
   800dbcee10cd net: hns3: Fix for phy link issue when using marvell phy driver
   a77439e5fb28 net: hns3: Fix for command format parsing error in hclge_is_all_function_id_zero
   c16a0727c71a RDMA/hns: Fix usage of bitmap allocation functions return values
   0c02e0c3fd13 tcp, ulp: add alias for all ulp modules
   58de2cef2b68 netfilter: fix memory leaks on netlink_dump_start error
   e4f419133dfa platform/x86: asus-nb-wmi: Add keymap entry for lid flip action on UX360
   044e9463ec20 mfd: sm501: Set coherent_dma_mask when creating subdevices
   ccf1ae823e4a ipvs: fix race between ip_vs_conn_new() and ip_vs_del_dest()
   a2805f40c77e s390/kdump: Fix memleak in nt_vmcoreinfo
   2b81b00edba1 netfilter: ip6t_rpfilter: set F_IFACE for linklocal addresses
   f95c5cde34e8 platform/x86: intel_punit_ipc: fix build errors
   e20c4abf9186 fs/dcache.c: fix kmemcheck splat at take_dentry_name_snapshot()
   4570403f6e11 mm/fadvise.c: fix signed overflow UBSAN complaint
   2dc61587a103 pwm: meson: Fix mux clock names
   52ec8484a7c5 IB/hfi1: Invalid NUMA node information can cause a divide by zero
   e5ef973b137f x86/mce: Add notifier_block forward declaration
   b7540b6235f0 virtio: pci-legacy: Validate queue pfn
   ab4bddc2d032 scripts: modpost: check memory allocation results
   7bbf1e8a2471 fat: validate ->i_start before using
   305277dae99e fs/proc/kcore.c: use __pa_symbol() for KCORE_TEXT list entries
   68e787c3c800 hfsplus: fix NULL dereference in hfsplus_lookup()
   003d4c3bf5a5 reiserfs: change j_timestamp type to time64_t
   f552f8c28d34 fork: don't copy inconsistent signal handler state to child
   8b89affb42ae sunrpc: Don't use stack buffer with scatterlist
   ece4ba1c0c90 hfs: prevent crash on exit from failed search
   7d6eba211a1a hfsplus: don't return 0 when fill_super() failed
   d4e42116f77e cifs: check if SMB2 PDU size has been padded and suppress the warning
   c9ba1b82ce96 net: sched: action_ife: take reference to meta module
   e54c50709019 act_ife: fix a potential deadlock
   cd7330c06195 act_ife: move tcfa_lock down to where necessary
   8aa07625eb81 hv_netvsc: Fix a deadlock by getting rtnl lock earlier in netvsc_probe()
   dadb0110a49d hv_netvsc: ignore devices that are not PCI
   bf82c2cb1450 vhost: correctly check the iova range when waking virtqueue
   fe0d111fea19 mlxsw: spectrum_switchdev: Do not leak RIFs when removing bridge
   3c035a48e774 sctp: hold transport before accessing its asoc in sctp_transport_get_next
   456e46f05b37 nfp: wait for posted reconfigs when disabling the device
   8fed734df375 tipc: fix a missing rhashtable_walk_exit()
   417b068a6a7a net/sched: act_pedit: fix dump of extended layered op
   56af4184d356 vti6: remove !skb->ignore_df check from vti6_xmit()
   e4b6c5fd31bd tcp: do not restart timewait timer on rst reception
   3eada53de462 r8169: add support for NCube 8168 network card
   d19688e347a1 qlge: Fix netdev features configuration.
   7f1e6ec4ff12 net: sched: Fix memory exposure from short TCA_U32_SEL
   cb765f5c3c5b net: macb: do not disable MDIO bus at open/close time
   1ef819e411f8 net: bcmgenet: use MAC link status for fixed phy
   a16405ad27f6 ipv4: tcp: send zero IPID for RST and ACK sent in SYN-RECV and TIME-WAIT state
   a08d7ea10bc7 act_ife: fix a potential use-after-free
   7fe7a0f4c5cf Linux 4.14.69
   29245d36680e arm64: mm: always enable CONFIG_HOLES_IN_ZONE
   3098933c1213 fs/quota: Fix spectre gadget in do_quotactl
   0682e027f39d crypto: caam/qi - fix error path in xts setkey
   ccb38942fbe1 crypto: caam/jr - fix descriptor DMA unmapping
   be6f98b203d3 crypto: caam - fix DMA mapping direction for RSA forms 2 & 3
   9f830cf2d510 crypto: vmx - Fix sleep-in-atomic bugs
   300ec47ab8ea perf auxtrace: Fix queue resize
   5a842ecca279 cap_inode_getsecurity: use d_find_any_alias() instead of d_find_alias()
   d1a265da7b29 bcache: release dc->writeback_lock properly in bch_writeback_thread()
   c8d875b471b6 libnvdimm: fix ars_status output length calculation
   ff0791f467d0 getxattr: use correct xattr length
   19b99719970b udlfb: set optimal write delay
   d0f2eb3a419b fb: fix lost console when the user unplugs a USB adapter
   9b0dd656d593 pwm: tiehrpwm: Fix disabling of output of PWMs
   0ef9c771924d pwm: tiehrpwm: Don't use emulation mode bits to control PWM output
   63bbaa1469e6 ubifs: Fix synced_i_size calculation for xattr inodes
   8a23348d76a1 ubifs: xattr: Don't operate on deleted inodes
   f6d7acc1d9ca ubifs: Check data node size before truncate
   3259dd7176e4 Revert "UBIFS: Fix potential integer overflow in allocation"
   a230db38a9fd ubifs: Fix memory leak in lprobs self-check
   656d6e6f6d23 userns: move user access out of the mutex
   b692c405a1ae sys: don't hold uts_sem while accessing userspace memory
   c2ea292b1350 iommu/vt-d: Fix dev iotlb pfsid use
   eb58c40465f3 iommu/vt-d: Add definitions for PFSID
   7cf82f3b7a77 mm/tlb: Remove tlb_remove_table() non-concurrent condition
   ddcb92700552 ARM: tegra: Fix Tegra30 Cardhu PCA954x reset
   d453f04e813a NFSv4: Fix a sleep in atomic context in nfs4_callback_sequence()
   c5759d5a7e6a NFSv4: Fix locking in pnfs_generic_recover_commit_reqs
   bf23ba3737e0 NFSv4 client live hangs after live data migration recovery
   ec13c53dc59f pnfs/blocklayout: off by one in bl_map_stripe()
   ed480f2b9e86 block, bfq: return nbytes and not zero from struct cftype .write() method
   fe806eb54bca xtensa: increase ranges in ___invalidate_{i,d}cache_all
   0d78efe0412b xtensa: limit offsets in __loop_cache_{all,page}
   025cc91f8c52 KVM: PPC: Book3S: Fix guest DMA when guest partially backed by THP pages
   58936d4d7b14 KVM: VMX: fixes for vmentry_l1d_flush module parameter
   015156f50179 PM / sleep: wakeup: Fix build error caused by missing SRCU support
   924383edf44c cpufreq: governor: Avoid accessing invalid governor_data
   256f63f52ec3 drivers/block/zram/zram_drv.c: fix bug storing backing_dev
   8840ca570f2b ovl: fix wrong use of impure dir cache in ovl_iterate()
   aa9ceea20788 mfd: hi655x: Fix regmap area declared size for hi655x
   4f6789cad647 uprobes: Use synchronize_rcu() not synchronize_sched()
   a36e2aa90576 livepatch: Validate module/old func name length
   68a735eb9a16 printk/tracing: Do not trace printk_nmi_enter()
   cbde057aa0e7 tracing/blktrace: Fix to allow setting same value
   4c9016757e3b tracing: Do not call start/stop() functions when tracing_on does not change
   2b4c940dccbe rtc: omap: fix potential crash on power off
   bbac5374b537 vmw_balloon: fix VMCI use when balloon built into kernel
   89667b269e87 vmw_balloon: VMCI_DOORBELL_SET does not check status
   d3b403844db5 vmw_balloon: do not use 2MB without batching
   9fd44e90903c vmw_balloon: fix inflation of 64-bit GFNs
   c0a8e047734c extcon: Release locking when sending the notification of connector state
   3f9481902f0b iio: ad9523: Fix return value for ad952x_store()
   e4d3a25111dc iio: ad9523: Fix displayed phase
   b86374912fee iio: sca3000: Fix missing return in switch
   91b48a9ced06 Drivers: hv: vmbus: Reset the channel callback in vmbus_onoffer_rescind()
   d286cfd45277 uart: fix race between uart_put_char() and uart_shutdown()
   5044eb05026e dm crypt: don't decrease device limits
   f961be894413 dm cache metadata: set dirty on all cache blocks after a crash
   b7227e6044be dm cache metadata: save in-core policy_hint_size to on-disk superblock
   3bef88257145 dm thin: stop no_space_timeout worker when switching to write-mode
   4f4b1c5c4c8a dm integrity: change 'suspending' variable from bool to int
   5f04d296f24b net/9p/trans_fd.c: fix race-condition by flushing workqueue before the kfree()
   312479e06828 net/9p/client.c: version pointer uninitialized
   f92953b0765b 9p/virtio: fix off-by-one error in sg list bounds check
   4827a583871a fs/9p/xattr.c: catch the error of p9_client_clunk when setting xattr failed
   390671089d62 9p: fix multiple NULL-pointer-dereferences
   def89b81ef45 RDMA/rxe: Set wqe->status correctly if an unexpected response is received
   bac5c3c122f4 ib_srpt: Fix a use-after-free in srpt_close_ch()
   241e62005c74 cxl: Fix wrong comparison in cxl_adapter_context_get()
   1eb08e7b192d powerpc/powernv/pci: Work around races in PCI bridge enabling
   15677df25afc PCI: Add wrappers for dev_printk()
   4bfd910e8fb3 powerpc/pseries: Fix endianness while restoring of r3 in MCE handler.
   ed53c0ecc959 powerpc/fadump: handle crash memory ranges array index overflow
   259c5122f3a8 Fix kexec forbidding kernels signed with keys in the secondary keyring to boot
   f70805bef73e Replace magic for trusting the secondary keyring with #define
   9cbb32610233 mailbox: xgene-slimpro: Fix potential NULL pointer dereference
   c160382ab064 media: Revert "[media] tvp5150: fix pad format frame height"
   fba6b7f4bbe2 libertas: fix suspend and resume for SDIO connected cards
   7188f7416438 drm/i915/userptr: reject zero user_size
   1e2698976822 block: really disable runtime-pm for blk-mq
   0affbaece6d0 block: blk_init_allocated_queue() set q->fq as NULL in the fail case
   cf12d0f9c0dc readahead: stricter check for bdi io_pages
   8513c01ae15f mmc: renesas_sdhi_internal_dmac: fix #define RST_RESERVED_BITS
   e7b6b3699b97 spi: cadence: Change usleep_range() to udelay(), for atomic context
   dc9a7dd57f63 spi: spi-fsl-dspi: Fix imprecise abort on VF500 during probe
   23554cab1ebd spi: pxa2xx: Add support for Intel Ice Lake
   aa1d05c50483 spi: davinci: fix a NULL pointer dereference
   4d3016e56c3d 9p/net: Fix zero-copy path in the 9p virtio transport
   4a2262972b5d net: mac802154: tx: expand tailroom if necessary
   54c0fa829d45 net: 6lowpan: fix reserved space for single frames
   ee13f7edca58 Linux 4.14.68
   77d1658e5dd1 gcc-plugins: Use dynamic initializers
   616d41d1b408 gcc-plugins: Add include required by GCC release 8
   73b2e7073b51 cdrom: Fix info leak/OOB read in cdrom_ioctl_drive_status
   63a0f9de021a watchdog: Mark watchdog touch functions as notrace
   f9f67667e0ae power: generic-adc-battery: check for duplicate properties copied from iio channels
   54cecb7440bc power: generic-adc-battery: fix out-of-bounds write when copying channel properties
   d2a97eba0c4e PM / clk: signedness bug in of_pm_clk_add_clks()
   2adc2541a5c4 clk: rockchip: fix clk_i2sout parent selection bits on rk3399
   ae302d685162 iscsi target: fix session creation failure handling
   5b55b24cec4c scsi: core: Avoid that SCSI device removal through sysfs triggers a deadlock
   c984f4d1d40a scsi: sysfs: Introduce sysfs_{un,}break_active_protection()
   d071004e0249 scsi: mpt3sas: Fix _transport_smp_handler() error path
   61ec14f42c84 tpm: Return the actual size when receiving an unsupported command
   ba0797a8016c MIPS: lib: Provide MIPS64r6 __multi3() for GCC < 7
   1c40cd97ffe3 MIPS: Change definition of cpu_relax() for Loongson-3
   156b5e33ab12 MIPS: Always use -march=<arch>, not -<arch> shortcuts
   62c59b1ddbdc MIPS: Correct the 64-bit DSP accumulator register size
   4bdf9c175980 kprobes: Make list and blacklist root user read only
   6ba27d3e2b4a kprobes/arm: Fix %p uses in error messages
   0536c9e41f3f s390/pci: fix out of bounds access during irq setup
   2ac8fbd174d7 s390/numa: move initial setup of node_to_cpumask_map
   97e3dcc08e4e s390/qdio: reset old sbal_state flags
   bcd169a2726a s390: fix br_r1_trampoline for machines without exrl
   9fae74e9a441 s390/mm: fix addressing exception after suspend/resume
   bbcbaf56ff4b x86/entry/64: Wipe KASAN stack shadow before rewind_stack_do_exit()
   cf9fcdd6c2a2 hwmon: (nct6775) Fix potential Spectre v1
   ec4034835eaf x86/speculation/l1tf: Increase l1tf memory limit for Nehalem+
   f64979512c5e x86/spectre: Add missing family 6 check to microcode check
   f822ceb82608 x86/irqflags: Mark native_restore_fl extern inline
   53f01e2004ae x86/nmi: Fix NMI uaccess race against CR3 switching
   fbd5b82d30d2 x86/vdso: Fix lsl operand order
   42228037aa5f pinctrl: freescale: off by one in imx1_pinconf_group_dbg_show()
   7806d2ef4904 ASoC: sirf: Fix potential NULL pointer dereference
   2ef691428ee3 ASoC: zte: Fix incorrect PCM format bit usages
   d1913b9e07e7 ASoC: dpcm: don't merge format from invalid codec dai
   e16bbdeccdd7 b43/leds: Ensure NUL-termination of LED name string
   f0f3784ee3e9 b43legacy/leds: Ensure NUL-termination of LED name string
   f337a54878e2 udl-kms: avoid division
   c0357c1895ae udl-kms: fix crash due to uninitialized memory
   86c18c5a4bc5 udl-kms: handle allocation failure
   29e641a3693a udl-kms: change down_interruptible to down
   e8a3f3a03655 fuse: Add missed unlock_page() to fuse_readpages_fill()
   ff4a71855d0a fuse: Fix oops at process_init_reply()
   973206923812 fuse: umount should wait for all requests
   fc17d7519e8e fuse: fix unlocked access to processing queue
   cfb6eca6e4bb fuse: fix double request_end()
   7d392674443c fuse: fix initial parallel dirops
   eaebcf902ae0 fuse: Don't access pipe->buffers without pipe_lock()
   c49505f6efb1 x86/kvm/vmx: Remove duplicate l1d flush definitions
   933e1ab12051 KVM: x86: SVM: Call x86_spec_ctrl_set_guest/host() with interrupts disabled
   cedb8037f069 x86/process: Re-export start_thread()
   4587db4c2a95 x86/vdso: Fix vDSO build if a retpoline is emitted
   310f2a6e3ad3 x86/speculation/l1tf: Suggest what to do on systems with too much RAM
   59463ec29cac x86/speculation/l1tf: Fix off-by-one error when warning that system has too much RAM
   7418d7086217 x86/speculation/l1tf: Fix overflow in l1tf_pfn_limit() on 32bit
   e9afa7c1ef17 mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE
   3e0994616d4a mm: move tlb_table_flush to tlb_flush_mmu_free
   7d91aa5717db platform/x86: ideapad-laptop: Apply no_hw_rfkill to Y20-15IKBM, too
   0c9bed369889 nvme-pci: add a memory barrier to nvme_dbbuf_update_and_check_event
   509c0cdfb438 ext4: reset error code in ext4_find_entry in fallback
   5043e05dd571 ext4: sysfs: print ext4_super_block fields as little-endian
   7773a6d94896 ext4: check for NUL characters in extended attribute's name
   bd0f93a630ff stop_machine: Atomically queue and wake stopper threads
   e72107b2d995 stop_machine: Reflow cpu_stop_queue_two_works()
   97f76f3bc406 s390/kvm: fix deadlock when killed by oom
   4a06fdf2c490 KVM: arm/arm64: Skip updating PTE entry if no change
   792a039415dc KVM: arm/arm64: Skip updating PMD entry if no change
   75677d72be74 arm64: dts: rockchip: corrected uart1 clock-names for rk3328
   5a56b307992e arm64: mm: check for upper PAGE_SHIFT bits in pfn_valid()
   a8affa695373 kprobes/arm64: Fix %p uses in error messages
   cd71265a8cd6 printk/nmi: Prevent deadlock when accessing the main log buffer in NMI
   943276ef14c7 printk: Create helper function to queue deferred console handling
   646e7c04803f printk: Split the code for storing a message into the log buffer
   b48522b7887a iommu/arm-smmu: Error out only if not enough context interrupts
   f91ca31f5379 Btrfs: fix btrfs_write_inode vs delayed iput deadlock
   e7457f97d2af btrfs: don't leak ret from do_chunk_alloc
   770025cc4b69 btrfs: use correct compare function of dirty_metadata_bytes
   758f55f91833 smb3: fill in statfs fsid and correct namelen
   66913d23eeda smb3: don't request leases in symlink creation and query
   be1210c7758c smb3: Do not send SMB3 SET_INFO if nothing changed
   82a856f52733 smb3: enumerating snapshots was leaving part of the data off end
   d5f2790a7a1e cifs: check kmalloc before use
   cba34b940773 cifs: add missing debug entries for kconfig options
   cfcfbe08d298 mei: don't update offset in write
   cf7ab2abc524 mm/memory.c: check return value of ioremap_prot
   7bb880a11650 scsi: vmw_pvscsi: Return DID_RESET for status SAM_STAT_COMMAND_TERMINATED
   4ce46fff750d scsi: fcoe: clear FC_RP_STARTED flags when receiving a LOGO
   a67aef68ef24 scsi: fcoe: drop frames in ELS LOGO error path
   95239b2db50f scsi: fcoe: fix use-after-free in fcoe_ctlr_els_send
   fbb37b72489d gpiolib-acpi: make sure we trigger edge events at least once on boot
   1d7bf02d716d memcg: remove memcg_cgroup::id from IDR on mem_cgroup_css_alloc() failure
   47041cf42a47 drivers: net: lmc: fix case value for target abort error
   28013eecf6a0 Squashfs: Compute expected length from inode size rather than block length
   249778d9459a mm: delete historical BUG from zap_pmd_range()
   8babbc02f893 squashfs metadata 2: electric boogaloo
   dfa5c4bf8c94 enic: do not call enic_change_mtu in enic_probe
   574a4f3e6173 sparc: use asm-generic version of msi.h
   7c841ea7f8f1 sparc/time: Add missing __init to init_tick_ops()
   24fab572ae7d arc: fix type warnings in arc/mm/cache.c
   391e3007e447 arc: fix build errors in arc/include/asm/delay.h
   aca05b1741d3 arc: [plat-eznps] fix printk warning in arc/plat-eznps/mtm.c
   79f9c523ca43 arc: [plat-eznps] fix data type errors in platform headers
   d267258ee192 ARC: [plat-eznps] Add missing struct nps_host_reg_aux_dpc
   2312e6a802b3 enic: handle mtu change for vf properly
   d4f96c0515fc nfp: flower: fix port metadata conversion bug
   bc928fdf5d1e bpf: use GFP_ATOMIC instead of GFP_KERNEL in bpf_parse_prog()
   331c36cd01d8 ARC: dma [non-IOC] setup SMP_CACHE_BYTES and cache_line_size
   49c1fba34589 Revert "MIPS: BCM47XX: Enable 74K Core ExternalSync for PCIe erratum"
   9339ea7c92fc tools/power turbostat: Read extended processor family from CPUID
   a73b6c4c2601 zswap: re-check zswap_is_full() after do zswap_shrink()
   92c159863d8a ipc/sem.c: prevent queue.status tearing in semop
   2dd2f7722570 hinic: Link the logical network device to the pci device in sysfs
   d00c34f8e205 selftests/ftrace: Add snapshot and tracing_on test case
   2c69b0300458 cachefiles: Wait rather than BUG'ing on "Unexpected object collision"
   4029dd9fc48b cachefiles: Fix refcounting bug in backing-file read monitoring
   819b476c2138 fscache: Allow cancelled operations to be enqueued
   165335d4f18e x86/boot: Fix if_changed build flip/flop bug
   d35aab9df15a sched/rt: Restore rt_runtime after disabling RT_RUNTIME_SHARE
   0ba83f87c3f1 i2c/mux, locking/core: Annotate the nested rt_mutex usage
   b3da5df23900 locking/rtmutex: Allow specifying a subclass for nested locking
   354e35beb0c5 net: axienet: Fix double deregister of mdio
   f63868841a31 qmi_wwan: fix interface number for DW5821e production firmware
   637de2c01678 bnx2x: Fix invalid memory access in rss hash config path.
   1875957f2ec4 media: staging: omap4iss: Include asm/cacheflush.h after generic includes
   00f795e12b8b perf/x86/amd/ibs: Don't access non-started event
   385b40b4fc1b i2c: davinci: Avoid zero value of CLKH
   562d7bc6c966 can: m_can: Move accessing of message ram to after clocks are enabled
   0b14a856f918 can: mpc5xxx_can: check of_iomap return before use
   06ab42734529 net: prevent ISA drivers from building on PPC32
   5803ce5effc9 atl1c: reserve min skb headroom
   ffb34418ca94 qed: Correct Multicast API to reflect existence of 256 approximate buckets.
   f4e284f1db9e qed: Fix possible race for the link state value.
   77c65d5f40c6 qed: Fix link flap issue due to mismatching EEE capabilities.
   b970d8a1c213 net: caif: Add a missing rcu_read_unlock() in caif_flow_cb
   a10170d94ed4 tools/power turbostat: fix -S on UP systems
   10ca6b3f92d3 KVM: vmx: use local variable for current_vmptr when emulating VMPTRST
   123534dbd490 netfilter: nf_tables: don't allow to rename to already-pending name
   4a0144a43c52 netfilter: nf_tables: fix memory leaks on chain rename
   e3476a6da5d8 bpf, ppc64: fix unexpected r0=0 exit path inside bpf_xadd
   a685c4c4d6e8 netfilter: nft_set_hash: add rcu_barrier() in the nft_rhash_destroy()
   70e88fef36ec usb: gadget: f_uac2: fix endianness of 'struct cntrl_*_lay3'
   7cd80fc138f2 tools: usb: ffs-test: Fix build on big endian systems
   645fef5e8dde usb/phy: fix PPC64 build errors in phy-fsl-usb.c
   a362655deb0e usb: gadget: u_audio: protect stream runtime fields with stream spinlock
   c7d18686e87a usb: gadget: u_audio: remove cached period bytes value
   42b09bece176 usb: gadget: u_audio: remove caching of stream buffer parameters
   224c0d0894ff usb: gadget: u_audio: update hw_ptr in iso_complete after data copied
   dc126a1e5fb8 usb: gadget: u_audio: fix pcm/card naming in g_audio_setup()
   fa18ff7edb88 usb: gadget: f_uac2: fix error handling in afunc_bind (again)
   43b058dc21cd usb: gadget: r8a66597: Fix a possible sleep-in-atomic-context bugs in r8a66597_queue()
   3f41c2d0e618 usb: gadget: r8a66597: Fix two possible sleep-in-atomic-context bugs in init_controller()
   05ee6166d702 nbd: handle unexpected replies better
   ced413c5ef85 nbd: don't requeue the same request twice.
   962ff36dac01 drm/imx: imx-ldb: check if channel is enabled before printing warning
   a43eac2d855b drm/imx: imx-ldb: disable LDB on driver bind
   9ac1a4644bb8 scsi: libiscsi: fix possible NULL pointer dereference in case of TMF
   ca5fc53ad401 scsi: target: iscsi: cxgbit: fix max iso npdu calculation
   384f0d9fe4ad drm/bridge: adv7511: Reset registers on hotplug
   7cb625dd9ed6 nl80211: Add a missing break in parse_station_flags
   147b89c421d0 ext4: clear mmp sequence number when remounting read-only
   de044d4ecc65 mac80211: add stations tied to AP_VLANs during hw reconfig
   b6f147a2d907 esp6: fix memleak on error path in esp6_input
   0118f86d21f1 xfrm: free skb if nlsk pointer is NULL
   d35cc7ed2cfe xfrm: fix missing dst_release() after policy blocking lbcast and multicast
   d2adc199957f vti6: fix PMTU caching and reporting on xmit
   7ff4bf211f3e crypto: vmx - Use skcipher for ctr fallback

(From OE-Core rev: 636ffaec45db57a3eb5ae1ca9a81b763dc1a6a53)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto/4.14: fix kernel configuration audit warnings
Bruce Ashfield [Sat, 22 Sep 2018 17:18:51 +0000 (13:18 -0400)]
linux-yocto/4.14: fix kernel configuration audit warnings

Some of the reference BSPs for 4.14 need fixes that have been done
on 4.18 and master to silence warnings, so we cherry-pick the
following changes:

  f991b21d7858 config: flash: drop obselete config values
  da7524cf2980 edgerouter: Drop the obsolete kernel options
  675c5b0cde65 cfg: drop MACH_VERSATILE_PB and MACH_VERSTAILE_AB
  0936b18ed8d5 cfg/timer/rtc: toggle RTC_CLASS instead of GEN_RTC
  634d8f2230d1 mpc8315e-rdb: Drop the obsolete kernel options
  9beb3a28736e rt: drop obselete configuration options

(From OE-Core rev: bfe6a9b2d1a118791cebcd1019f3e80bced294c6)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto: tweak RTC configuration
Bruce Ashfield [Sat, 22 Sep 2018 17:18:50 +0000 (13:18 -0400)]
linux-yocto: tweak RTC configuration

[
  Author: Jens Rehsack <sno@netbsd.org>
  Date:   Thu Sep 13 19:29:54 2018 +0200

    cfg/timer/rtc: toggle RTC_CLASS instead of GEN_RTC

    In 2016, the final removal of GEN_RTC happened with commit
    6705fdb3 char/genrtc: remove the rest of the driver

    What is remaining, is a legacy driver (char/rtc) and the new
    RTC_CLASS framework - which supports everything except S390
    and Atari. Many platforms automatically support the right
    driver for RTC_CLASS framework.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]

(From OE-Core rev: 7ddcba89a3bbed4b582768661585684ffdc85f31)

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Drop 4.18 changes]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto: configuration warning fixes
Bruce Ashfield [Sat, 22 Sep 2018 17:18:48 +0000 (13:18 -0400)]
linux-yocto: configuration warning fixes

Integrating the following commits to address kernel configuration
audit warnings:

  856794172e8f features/intel-pinctrl: Fix conflict with configs
  397b67321037 bsp/intel-x86: Rename CONFIG_R8723BE to CONFIG_RTL8723BE
  fca2a16483f2 features/thermal: Add dependency for kernel option
  b6110e2e8e55 features/tpm: fix conflict with configs and add dependency
  ee22bc1f8fcd features/mmc: modify dependency
  e50eb6bd929b features: drop the obsolete kernel option
  f5327047994f features/hostapd: drop obsolete configs
  48b54e625876 bsp/intel-x86: Drop configs that has been removed by kernel

(From OE-Core rev: a49c66844c8c3a87f8383085661ff59bfb045452)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Dropped 4.18 changes]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto-rt: Add paravirt_kvm support for qemux86-64
Hongzhi.Song [Sat, 22 Sep 2018 17:18:47 +0000 (13:18 -0400)]
linux-yocto-rt: Add paravirt_kvm support for qemux86-64

This feature includes paravirtualized KVM guest support, including
KVMCLOCK for enhancing clock accuracy of guest OS.

(From OE-Core rev: 2b2238e5e81748475de8a339c33529484971b0ff)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Drop 4.18 changes]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolinux-yocto/4.14/4.18: address kernel configuration warnings
Bruce Ashfield [Fri, 7 Sep 2018 13:38:41 +0000 (09:38 -0400)]
linux-yocto/4.14/4.18: address kernel configuration warnings

Making the following commits available to address kernel configuration
warnings:

  734172039130 preempt-rt: remove entry for aufs
  7a6753341309 common_pc: remove config audit warnings
  dea9c6aa7ddd common-pc/tiny: mask configuration warnings

(From OE-Core rev: cc3fa85467c0423b06e78b3e775d5358c422ee4e)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Drop 4.18 changes]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agokernel-yocto/cfg: configuration warning fixes
Bruce Ashfield [Thu, 30 Aug 2018 13:45:48 +0000 (09:45 -0400)]
kernel-yocto/cfg: configuration warning fixes

Now that the kernel configuration audit output is visible, we cleanup
and drop obselete configs:

   bae5cc4e973f bsp/romley: drop obsolete config
   2e39f82df02a x86: update microcode configs
   6894481e965e wifi: CONFIG_VENDOR_ATH must be build in
   3a9f687cdf42 pm: drop obselete CONFIG_USB_SUSPEND
   bb869e576f6b pm: change CONFIG_PM_RUNTIME to CONFIG_PM
   49547fd6b4a3 i915: remove obselete CONFIG_DRM_I915_KMS
   4b49aa8e8d09 i915: rename preliminary_hw_support to alpha_support
   d6186c621856 sound: fix CONFIG_SND_SST_MFLD_PLATFORM
   d57f4ebf6b54 netfilter: drop CONFIG_NF_CONNTRACK_PROC_COMPAT
   c8e3cf86df8b netfilter: remove obselete ULOG configs
   13da6cb561c0 fs: drop old ext3 options
   8e25da60cfd3 cgroups: remove obselete options
   aa6a61d826e0 wifi: ATH_CARDS -> WLAN_VENDOR_ATH
   4e32f99a1591 intel: remove CONFIG_CPU_FREQ_TABLE
   131df62ce93a common-pc: remove obselete subsystem
   0040deb2fad7 bsp: don't include crypto.scc
   3f94205d082c features/crypto: drop feature
   e2951464ef97 features/thermal: use the correct config name
   5a09f42be52e features: drop obsolete configs

(From OE-Core rev: fbd0ae4e302fa8e18a15d9081537c58edec2a460)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Drop 4.18 changes]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agobase-files: change permissions on /sys and /proc
Dan McGregor [Wed, 17 Oct 2018 21:22:35 +0000 (15:22 -0600)]
base-files: change permissions on /sys and /proc

The kernel mounts /proc and /sys with the mode 555. Fedora explicitly
sets this value in its filesystem setup package. Debian doesn't seem
to set it explictly.  Having them be 755 causes permission issues on
upgrades inside a container where the guest does not have the
permission to change the modes of the mount points.

So, just bite the bullet and force them to be 555.

(From OE-Core rev: 7e311b0c7222fa9127a96945c9ded7bee5e40eb3)

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoos-release: move to nonarch_libdir
Dan McGregor [Thu, 18 Oct 2018 15:24:23 +0000 (09:24 -0600)]
os-release: move to nonarch_libdir

Even on multilib systems, /usr/lib is where systemd expects the
os-release file to live.

(From OE-Core rev: b7b476efee8c959a0227905e40bd9b5ef493632d)

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agotzdata: update to 2018f
Armin Kuster [Mon, 22 Oct 2018 14:05:12 +0000 (15:05 +0100)]
tzdata: update to 2018f

 Briefly:
  Volgograd moves from +03 to +04 on 2018-10-28.
  Fiji ends DST 2019-01-13, not 2019-01-20.
  Most of Chile changes DST dates, effective 2019-04-06.

  Changes to future timestamps

    Volgograd moves from +03 to +04 on 2018-10-28 at 02:00.
    (Thanks to Alexander Fetisov and Stepan Golosunov.)

    Fiji ends DST 2019-01-13 instead of the 2019-01-20 previously
    predicted.  (Thanks to Raymond Kumar.)  Adjust future predictions
    accordingly.

    Most of Chile will end DST on the first Saturday in April at 24:00 mainland
    time, and resume DST on the first Saturday in September at 24:00 mainland
    time.  The changes are effective from 2019-04-06, and do not affect the
    Magallanes region modeled by America/Punta_Arenas.  (Thanks to Juan Correa
    and Tim Parenti.)  Adjust future predictions accordingly.

  Changes to past timestamps

    The 2018-05-05 North Korea 30-minute time zone change took place
    at 23:30 the previous day, not at 00:00 that day.

    China's 1988 spring-forward transition was on April 17, not
    April 10.  Its DST transitions in 1986/91 were at 02:00, not 00:00.
    (Thanks to P Chan.)

    Fix several issues for Macau before 1992.  Macau's pre-1904 LMT
    was off by 10 s.  Macau switched to +08 in 1904 not 1912, and
    temporarily switched to +09/+10 during World War II.  Macau
    observed DST in 1942/79, not 1961/80, and there were several
    errors for transition times and dates.  (Thanks to P Chan.)

    The 1948-1951 fallback transitions in Japan were at 25:00 on
    September's second Saturday, not at 24:00.  (Thanks to Phake Nick.)
    zic turns this into 01:00 on the day after September's second
    Saturday, which is the best that POSIX or C platforms can do.

    Incorporate 1940-1949 Asia/Shanghai DST transitions from a 2014
    paper by Li Yu, replacing more-questionable data from Shanks.

  Changes to time zone abbreviations

    Use "PST" and "PDT" for Philippine time.  (Thanks to Paul Goyette.)

 Changes to documentation

    New restrictions: A Rule name must start with a character that
    is neither an ASCII digit nor "-" nor "+", and an unquoted name
    should not use characters in the set "!$%&'()*,/:;<=>?@[\]^`{|}~".
    The latter restriction makes room for future extensions (a
    possibility noted by Tom Lane).

    tzfile.5 now documents what time types apply before the first and
    after the last transition, if any.

    Documentation now uses the spelling "timezone" for a TZ setting
    that determines timestamp history, and "time zone" for a
    geographic region currently sharing the same standard time.

    The name "TZif" is now used for the tz binary data format.

    tz-link.htm now mentions the A0 TimeZone Migration utilities.
    (Thanks to Aldrin Martoq for the link.)

  Changes to build procedure

    New 'make' target 'rearguard_tarballs' to build the rearguard
    tarball only.  This is a convenience on platforms that lack lzip
    if you want to build the rearguard tarball.  (Problem reported by
    Deborah Goldsmith.)

    tzdata.zi is now more stable from release to release.  (Problem
    noted by Tom Lane.)  It is also a bit shorter.

    tzdata.zi now can contain comment lines documenting configuration
    information, such as which data format was selected, which input
    files were used, and how leap seconds are treated.  (Problems
    noted by Lester Caine and Brian Inglis.)  If the Makefile defaults
    are used these comment lines are absent, for backward
    compatibility.  A redistributor intending to alter its copy of the
    files should also append "-LABEL" to the 'version' file's first
    line, where "LABEL" identifies the redistributor's change.
(From OE-Core rev: 9d786808fb9471eff46d95dd354f6254e468aa17)

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>
6 years agotzcode: update to 2018f
Armin Kuster [Mon, 22 Oct 2018 14:05:11 +0000 (15:05 +0100)]
tzcode: update to 2018f

 Changes to code

    zic now always generates TZif files where time type 0 is used for
    timestamps before the first transition.  This simplifies the
    reading of TZif files and should not affect behavior of existing
    TZif readers because the same set of time types is used; only
    their internal indexes may have changed.  This affects only the
    legacy zones EST5EDT, CST6CDT, MST7MDT, PST8PDT, CET, MET, and
    EET, which previously used nonzero types for these timestamps.

    Because of the type 0 change, zic no longer outputs a dummy
    transition at time -2**59 (before the Big Bang), as clients should
    no longer need this to handle historical timestamps correctly.
    This reverts a change introduced in 2013d and shrinks most TZif
    files by a few bytes.

    zic now supports negative time-of-day in Rule and Leap lines, e.g.,
    "Rule X min max - Apr lastSun -6:00 1:00 -" means the transition
    occurs at 18:00 on the Saturday before the last Sunday in April.
    This behavior was documented in 2018a but the code did not
    entirely match the documentation.

    localtime.c no longer requires at least one time type in TZif
    files that lack transitions or have a POSIX-style TZ string.  This
    future-proofs the code against possible future extensions to the
    format that would allow TZif files with POSIX-style TZ strings and
    without transitions or time types.

    A read-access subscript error in localtime.c has been fixed.
    It could occur only in TZif files with timecnt == 0, something that
    does not happen in practice now but could happen in future versions.

    localtime.c no longer ignores TZif POSIX-style TZ strings that
    specify only standard time.  Instead, these TZ strings now
    override the default time type for timestamps after the last
    transition (or for all time stamps if there are no transitions),
    just as DST strings specifying DST have always done.

    leapseconds.awk now outputs "#updated" and "#expires" comments,
    and supports leap seconds at the ends of months other than June
    and December.  (Inspired by suggestions from Chris Woodbury.)
(From OE-Core rev: 4670dcdb6e2504469c30ebed828d4702d8c0003c)

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>
6 years agotzdata: update to 2018e
Armin Kuster [Fri, 4 May 2018 17:05:16 +0000 (10:05 -0700)]
tzdata: update to 2018e

 Briefly:

    North Korea switches back to +09 on 2018-05-05.
    The main format uses negative DST again, for Ireland etc.
    'make tarballs' now also builds a rearguard tarball.
    New 's' and 'd' suffixes in SAVE columns of Rule and Zone lines.

  Changes to past and future time stamps

    North Korea switches back from +0830 to +09 on 2018-05-05.
    (Thanks to Kang Seonghoon, Arthur David Olson, Seo Sanghyeon,
    and Tim Parenti.)

    Bring back the negative-DST changes of 2018a, except be more
    compatible with data parsers that do not support negative DST.
    Also, this now affects historical time stamps in Namibia and the
    former Czechoslovakia, not just Ireland.  The main format now uses
    negative DST to model time stamps in Europe/Dublin (from 1971 on),
    Europe/Prague (1946/7), and Africa/Windhoek (1994/2017).  This
    does not affect UT offsets, only time zone abbreviations and the
    tm_isdst flag.  Also, this does not affect rearguard or vanguard
    formats; effectively the main format now uses vanguard instead of
    rearguard format.  Data parsers that do not support negative DST
    can still use data from the rearguard tarball described below

(From OE-Core rev: f717eeff2d4823163cb72fb79101220cc48b3286)

Signed-off-by: Armin Kuster <akuster808@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>
6 years agotzcode-native: updatet to 2018e
Armin Kuster [Fri, 4 May 2018 17:05:15 +0000 (10:05 -0700)]
tzcode-native: updatet to 2018e

  Changes to build procedure

    The command 'make tarballs' now also builds the tarball
    tzdataVERSION-rearguard.tar.gz, which is like tzdataVERSION.tar.gz
    except that it uses rearguard format intended for trailing-edge
    data parsers.

  Changes to data format and to code

    The SAVE column of Rule and Zone lines can now have an 's' or 'd'
    suffix, which specifies whether the adjusted time is standard time
    or daylight saving time.  If no suffix is given, daylight saving
    time is used if and only if the SAVE column is nonzero; this is
    the longstanding behavior.  Although this new feature is not used
    in tzdata, it could be used to specify the legal time in Namibia
    1994-2017, as opposed to the popular time (see below).

  Changes to past time stamps

    From 1994 through 2017 Namibia observed DST in winter, not summer.
    That is, it used negative DST, as Ireland still does.  This change
    does not affect UTC offsets; it affects only the tm_isdst flag and
    the abbreviation used during summer, which is now CAT, not WAST.
    Although (as noted by Michael Deckers) summer and winter time were
    both simply called "standard time" in Namibian law, in common
    practice winter time was considered to be DST (as noted by Stephen
    Colebourne).  The full effect of this change is only in vanguard
    format; in rearguard and main format, the tm_isdst flag is still
    zero in winter and nonzero in summer.

    In 1946/7 Czechoslovakia also observed negative DST in winter.
    The full effect of this change is only in vanguard format; in
    rearguard and main formats, it is modeled as plain GMT without
    daylight saving.  Also, the dates of some 1944/5 DST transitions
    in Czechoslovakia have been changed.
(From OE-Core rev: aeb3d295581908ca9a9d8f1705f70b49b2de32e3)

Signed-off-by: Armin Kuster <akuster808@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>
6 years agocurl: extend CVE_PRODUCT
Grygorii Tertychnyi [Mon, 29 Oct 2018 15:13:10 +0000 (17:13 +0200)]
curl: extend CVE_PRODUCT

There are both "curl" and "libcurl" CPEs in NVD.
All "curl" CVEs are now missed in the reports.

Hence, switch "CVE_PRODUCT" to a space separated list
of the items.

(From OE-Core rev: 69ff709c2450c42139fd9705e3a74464221ad754)

Signed-off-by: Grygorii Tertychnyi <gtertych@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agocve-check: Allow multiple entries in CVE_PRODUCT
Grygorii Tertychnyi [Mon, 29 Oct 2018 15:13:10 +0000 (17:13 +0200)]
cve-check: Allow multiple entries in CVE_PRODUCT

There are both "curl" and "libcurl" CPEs in NVD.
All "curl" CVEs are currently missing in the reports.

Hence, switch "CVE_PRODUCT" to a space separated list.
It is useful for recipes generating several packages,
that have different product names in NVD.

(From OE-Core rev: 404f75e026393ddc55da87f6f04fb1201cff4e11)

Signed-off-by: Grygorii Tertychnyi <gtertych@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoyocto-uninative: Upgrade to verson 2.3 which includes glibc 2.28
Richard Purdie [Thu, 25 Oct 2018 09:17:09 +0000 (10:17 +0100)]
yocto-uninative: Upgrade to verson 2.3 which includes glibc 2.28

This allows us to handle distros which contain glibc 2.28 such as
Ubuntu 18.10.

(From OE-Core rev: 5c7d9abcd611d23d4340f9a0aee2564f72158a0b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixed up for sumo context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agokernel: specify dependencies for compilation for config tasks
Bruce Ashfield [Mon, 22 Oct 2018 06:20:10 +0000 (06:20 +0000)]
kernel: specify dependencies for compilation for config tasks

With recent kernels (i.e. 4.17+) the configuration phase of the kernel
will check for capabilities/options of the compiler for CVE and other
mitigation support.

For a general kernel, we want to ensure that CC is fully defined when
the config targets are invoked (so the proper compiler will be checked).

For linux-yocto, we also need to specify the compiler/tools dependencies
for the configme task since it executes before configure and hence the
main kernel build DEPENDS will not always be in the sysroot before it
executes. Without those dependencies the kernel will be incorrectly
configured (i.e. bison is missing) or the configuration will fail the
mitigation tests.

[YOCTO #12757]

(From OE-Core rev: ff1bdd75d50f0ebac3d599e461685ace29559a82)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agovalgrind: fix compile ptest failure on mips32
Hongxu Jia [Fri, 27 Jul 2018 14:10:47 +0000 (22:10 +0800)]
valgrind: fix compile ptest failure on mips32

- Pass mips32's CFLAGS to tests

- Fix broken inline asm in tests on mips32-linux

- Build mips n32 successfully, support it.

(From OE-Core rev: 23d9eba99d1180a0b859aadc23a10b391b8f6440)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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>
6 years agovalgrind: fix ptest compilation for PowerPC64
Jagadeesh Krishnanjanappa [Wed, 31 Oct 2018 03:51:51 +0000 (09:21 +0530)]
valgrind: fix ptest compilation for PowerPC64

The fix is similar to what was done for PowerPC32.
It solves below error, while compiling for PowerPC64,

-- snip --
| ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c: In function 'usage':
| ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
|    fprintf(stderr,
|    ^~~~~~~
| ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3: warning: incompatible implicit declaration of built-in function 'fprintf'
| ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3: note: include '<stdio.h>' or provide a declaration of 'fprintf'
| ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:11: error: 'stderr' undeclared (first use in this function)
|    fprintf(stderr,
|            ^~~~~~
-- snip --

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoperl: skip tests that are not useful
Anuj Mittal [Tue, 16 Oct 2018 02:47:12 +0000 (10:47 +0800)]
perl: skip tests that are not useful

Some tests, like the one that compares the hashes for a list of files
against those stored in a .dat file, don't make sense for downstream
distros packaging perl.

Backport a patch from upstream that allows skipping of these tests at
runtime. Also remove the local patch trying to keep hashes up-to-date
for one of those tests.

Fixes [YOCTO #12787]

(From OE-Core rev: 557f4618b75b8739a647e46054ab587ae2bbdc25)

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>
6 years agoexternalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes
Ola x Nilsson [Thu, 4 Oct 2018 10:43:28 +0000 (12:43 +0200)]
externalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes

BB_DONT_CACHE was not set for non-virtual recipes where PN != BPN, such
as quilt-native.  Recipes that do not set BBCLASSEXTEND should always
have BB_DONT_CACHE set by externalsrc.

(From OE-Core rev: 4eff427a0ee629a1541a420a9591411648569a97)

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agorootfs: always update the opkg index
Ioan-Adrian Ratiu [Tue, 25 Sep 2018 12:38:19 +0000 (15:38 +0300)]
rootfs: always update the opkg index

The previous logic assumed that if $BUILD_IMAGES_FROM_FEEDS=1 then a
complete set of ipk feeds from which to build the image is already
present under $IPK_FEED_URIS at do_rootfs runtime.

$IPK_FEED_URIS usually contains "file://${DEPLOY_DIR_IPK}" which
renders the above assumption bad because some recipes in the current
build can contain code like do_install[nostamp] = "1" which will cause
rebuilds bumping $PR and invalidating the index.

Even when the index is manually re-created before an image build
("bitbake package-index"), the nostamp will cause failures because the
dependency gets rebuilt before do_rootfs in the "bitbake <image>" call.

So make the opkg rootfs index logic the same as for rpm/deb, to always
update the index in $DEPLOY_DIR_IPK to fix the above nostamp failure.

Feeds outside $DEPLOY_DIR_IPK added to $IPK_FEED_URIS continue to work
as usual, for eg. by using a http:// URI.

(From OE-Core rev: bce90f48d1cc136fdfdf98b3830f5d99e381271b)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agorunqemu: fix handling of SIGTERM and the problem of line wrapping
Chen Qi [Tue, 25 Sep 2018 07:08:25 +0000 (15:08 +0800)]
runqemu: fix handling of SIGTERM and the problem of line wrapping

The current handling of SIGTERM is incorrect as the process pid returned
by Popen call with shell setting to True is actualy the shell instead of
the qemu process. So use shlex to split cmd so that we can avoid using
shell=True. This ensures the child process is the actual qemu process.

Also, as we install a SIGTERM handler, we need handle the situation of
qemu terminated by SIGTERM, otherwise we will get ERROR message in such
case.

Besides, we have a problem that after running qemu, the terminal's behavior
is incorrect regarding long lines or long commands. Long commands or long
outputs should appear in multiple lines, but they appear in the same line,
overriding previous output. Use `tput smam' to fix this problem.

(From OE-Core rev: e8acef383767cfd1ef0c3d3c45d9d6eb1c83b3e7)

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>
6 years agorunqemu: exit gracefully with an error message if qemu system is not evaluated
Jagadeesh Krishnanjanappa [Tue, 14 Aug 2018 14:35:29 +0000 (20:05 +0530)]
runqemu: exit gracefully with an error message if qemu system is not evaluated

It solves below error:
-- snip --
return 'qemu-system-%s' % qbsys
UnboundLocalError: local variable 'qbsys' referenced before assignment
-- snip --

[YOCTO #12846]

(From OE-Core rev: 519273f54c0b8a6fff36afeb7646d8e37717be22)

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agorunqemu: add SIGTERM handler to make sure things are cleaned up
Chen Qi [Thu, 7 Jun 2018 07:52:46 +0000 (15:52 +0800)]
runqemu: add SIGTERM handler to make sure things are cleaned up

Add SIGTERM handler so that runqemu could clean things up correctly
when receving such signal.

This problem was originally observed when running testimage. On
some hosts, after running testimage task, the user has to manually
operate on the tap interface (e.g. `sudo ip link del tap0') in order
for the next runqemu command to launch successfully.

The problem is about runqemu, SIGTERM and network manager on the host.

In testimage task, the runqemu process will receive SIGTERM. In such
situation, its cleanup() function is not run, resulting in tap interface
not cleaned up. On some hosts, the network manager will bring down the
tap interface automatically, thus this problem. I saw this problem on
Fedora21.

I think we'd better just clean up the tap interface ourselves.

So this patch adds to runqemu a SIGTERM handler, in which the actual
qemu process is terminated and other things cleaned up.

(From OE-Core rev: 02709d4709c56f9b9095e3555da35b659b03a8a3)

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>
6 years agolibtiff: fix CVE-2017-17095
Joe Slater [Wed, 26 Sep 2018 22:51:25 +0000 (15:51 -0700)]
libtiff: fix CVE-2017-17095

Backport fix from gitlab.com/libtiff/libtiff.
nvd.nist.gov does not yet reference this patch.

(From OE-Core rev: f72c8af3f2c1ec9e4d9ffcf0cc6e7fdf572b21b9)

Signed-off-by: Joe Slater <joe.slater@windriver.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>
6 years agox264: Disable asm on musl/x86
Khem Raj [Sun, 7 Oct 2018 01:29:17 +0000 (18:29 -0700)]
x264: Disable asm on musl/x86

Fixes

WARNING: x264-r2854+gitAUTOINC+e9a5903edf-r0 do_package_qa: QA Issue: ELF binary '/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/x264/r2854+gitAUTOINC+e9a5903edf-r0/packages-split/x264/usr/lib/libx264.so.152'
has relocations in .text [textrel]
WARNING: x264-r2854+gitAUTOINC+e9a5903edf-r0 do_package_qa: QA Issue: ELF binary '/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/x264/r2854+gitAUTOINC+e9a5903edf-r0/packages-split/x264-bin/usr/bin/x264'
has relocations in .text [textrel]

(From OE-Core rev: ea1204c6d9a02f0e38cf616e89d46530908972bb)

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>
6 years agolibsndfile1: CVE-2018-13139
Changqing Li [Wed, 10 Oct 2018 01:15:53 +0000 (09:15 +0800)]
libsndfile1: CVE-2018-13139

A stack-based buffer overflow in psf_memset in common.c in libsndfile 1.0.28.

Fixed in https://github.com/erikd/libsndfile/issues/397

(From OE-Core rev: 6b5a9078a7c5035590ee4dc2e23582da94d4a104)

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>
6 years agonasm: fix CVE-2018-10016
Hongxu Jia [Sun, 14 Oct 2018 09:45:59 +0000 (02:45 -0700)]
nasm: fix CVE-2018-10016

Previously fix of CVE-2018-10016 caused ovmf build failure,
I reported the failure to upstream and it replied with
this V2 fix.

Details at:
https://bugzilla.nasm.us/show_bug.cgi?id=3392473

(From OE-Core rev: e2fa6bc137faebba3c440cac93c88092421e8e82)

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>
6 years agorecipes: Update git.gnome.org addresses after upstream changes
Richard Purdie [Thu, 30 Aug 2018 09:03:52 +0000 (10:03 +0100)]
recipes: Update git.gnome.org addresses after upstream changes

git.gnome.org is no more. It has ceased to be. It's an ex-git.

Please see here:
https://about.gitlab.com/2018/05/31/welcome-gnome-to-gitlab/

Note that gitlab does not support git://, only https:// (and ssh).

[Commit message from Alexander Kanavin]

(From OE-Core rev: 8382cdc0888ca645a44aacaac1155afb8dcde979)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for sumo context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agogit: CVE-2018-11233
Sinan Kaya [Fri, 5 Oct 2018 03:55:15 +0000 (03:55 +0000)]
git: CVE-2018-11233

* CVE-2018-11233
Code to sanity-check pathnames on NTFS can result in reading
out-of-bounds memory.

Affects < 2.17.1

CVE: CVE-2018-11233
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1583888
Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agopython3: CVE-2018-1061
Sinan Kaya [Fri, 5 Oct 2018 00:39:08 +0000 (00:39 +0000)]
python3: CVE-2018-1061

* CVE-2018-1060
Prevent low-grade poplib REDOS:
The regex to test a mail server's timestamp is susceptible to
catastrophic backtracking on long evil responses from the server.

Happily, the maximum length of malicious inputs is 2K thanks
to a limit introduced in the fix for CVE-2013-1752.

* CVE-2018-1061
Prevent difflib REDOS
The default regex for IS_LINE_JUNK is susceptible to
catastrophic backtracking.
This is a potential DOS vector.
Replace it with an equivalent non-vulnerable regex.

Affects < 3.5.6rc1

CVE: CVE-2018-1060
CVE: CVE-2018-1061
Ref: https://access.redhat.com/security/cve/cve-2018-1060
Ref: https://access.redhat.com/security/cve/cve-2018-1061

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agolibxml2: CVE-2018-14404
Sinan Kaya [Fri, 5 Oct 2018 00:39:07 +0000 (00:39 +0000)]
libxml2: CVE-2018-14404

* CVE-2018-14404
A null pointer dereference vulnerability exists in the xpath.c:xmlXPathCompOpEval()
function of libxml2 when parsing invalid XPath expression. Applications processing
untrusted XSL format inputs with the use of libxml2 library may be vulnerable to
denial of service attack due to crash of the application.

Affects libxml <= 2.9.8

CVE: CVE-2018-14404
Ref: https://access.redhat.com/security/cve/cve-2018-14404

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agochecklayer: avoid recursive loop in add_layer_dependencies
Nicolas Dechesne [Tue, 2 Oct 2018 21:54:45 +0000 (23:54 +0200)]
checklayer: avoid recursive loop in add_layer_dependencies

When Layer A and Layer B depend on each other, then we will end up in a
recursive loop in function recurse_dependencies(). To avoid such situation
before making the recursive function call we check whether or not we have
already processed this layer.

e.g. without this patch, running this script on layers with dependency loops, we are seeing:

$ yocto-check-layer -d  /srv/work/oe/meta-openembedded/
INFO: Detected layers:
INFO: meta-python: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-python
INFO: meta-filesystems: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-filesystems
INFO: meta-gnome: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-gnome
INFO: meta-xfce: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-xfce
INFO: meta-networking: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-networking
INFO: meta-initramfs: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-initramfs
INFO: meta-oe: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-oe
INFO: meta-multimedia: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-multimedia
INFO: meta-perl: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-perl
INFO: meta-webserver: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-webserver
INFO:
INFO: Setting up for meta-python(LayerType.SOFTWARE), /srv/work/oe/meta-openembedded/meta-python
DEBUG: Processing dependencies core openembedded-layer for layer meta-python.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
...
...
...
[keep repeating]

This patch fixes this situation.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 171900b4bcb06416685ce90b63114a10fefe0b94)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agoinitramfs-framework/udev: call settle before kill
Anuj Mittal [Wed, 19 Sep 2018 08:08:46 +0000 (16:08 +0800)]
initramfs-framework/udev: call settle before kill

When mount command is executed in rootfs module of initrd, eudev creates
a loop0 device node, applies rules and adds a inotify watch to it. Right
after this step, we execute finish which first tries to kill any running
udevd daemon before doing a switch_root.

In some cases, it is possible that switch_root is executed before
inotify_add_watch was actually processed which would lead to errors like:

| inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory

Make sure that we process all the events in queue before actually trying
to kill udevd to prevent this race.

Fixes [YOCTO #12861]

(From OE-Core rev: a85c34d263fcf1542bbedcaf1634302466bb20cf)

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>
6 years agolibcroco: CVE-2017-7961
Armin Kuster [Thu, 27 Sep 2018 01:23:20 +0000 (18:23 -0700)]
libcroco: CVE-2017-7961

* CVE-2017-7961
The cr_tknzr_parse_rgb function in cr-tknzr.c in libcroco has an
"outside the range of representable values of type long" undefined
behavior issue, which might allow remote attackers to cause a denial
of service (application crash) or possibly have unspecified other
impact via a crafted CSS file.

CVE: CVE-2017-7961
Ref: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-7961
Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>