Add test cases to test “exclude” and “installroot“ options, also modify
the logic of filtering packages on the feed to have all the packages
needed by the tests.
Federico Sauter [Wed, 5 Dec 2018 14:22:32 +0000 (14:22 +0000)]
kernel: don't assign the build user/host
The KBUILD_BUILD_USER and KBUILD_BUILD_HOST variables were
assigned at the kernel class level, which made it impossible
to override them in the local configuration.
By setting only the default values of those variables in the
kernel class, it is now possible to override them as expected.
[snip]
File "/buildarea1/lyang1/poky/meta/lib/oe/types.py", line 122, in boolean
raise ValueError("Invalid boolean value '%s'" % value)
ValueError: Invalid boolean value 'qemux86'
Now QEMU_USE_KVM can only be boolean, can not contain MACHINE any more, kvm
will be enabled if target_arch == build_arch or both of them are x86 archs.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Douglas Royds [Thu, 20 Dec 2018 23:10:22 +0000 (12:10 +1300)]
patch: reproducibility: Fix host umask leakage
Some patch files create entirely new files, so their permissions are subject to
the host umask. If such a file is later installed into a package with no change
in permissions, it breaks the reproducibility of the package.
This was observed on libpam, for instance: The patch file
pam-security-abstract-securetty-handling.patch creates a new file
(tty_secure.c). This file is later copied into the -dbg package with no change
in permissions.
Without installing gitpython package, oe-git-archive will face error
below, where it was referencing key that was non-existent inside
metadata object.
Traceback (most recent call last):
File "<poky_dir>/scripts/oe-git-archive", line 271, in <module>
sys.exit(main())
File "<poky_dir>/scripts/oe-git-archive", line 229, in main
'commit_count': metadata['layers']['meta']['commit_count'],
KeyError: 'commit_count'
Fix this error by adding exception catch when referencing
non-existent key (based on inputs provided by Richard Purdie).
Richard Purdie [Wed, 18 Jul 2018 12:54:05 +0000 (13:54 +0100)]
package: Rework PACKAGELOCK based upon sstate for do_packagedata
I think this lock dates from before we had sstate for do_packagedata.
Since WORKDIR is recipe specific and we write into WORKDIR, we no longer need
any write locks in the do_packagedata code itself, its handled by the sstate
task lock for the final copy in at the end. The final write lock can be simply
removed.
The only time we need read locking is when actually reading data from the
shared directory. We can therefore reduce the window the lock is held
significantly as well, hence improving the speed of packagedata tasks running
in parallel.
QEMU_USE_KVM can either be a boolean or a whitespace separated list
of kvm supported machines.
For the 'intel-corei7-64' machine, defined in meta-intel, kvm could not be
used as the 'x86' substring is not part of its machine name.
By changing the order of this 'or' statement and setting
the 'QEMU_USE_KVM' variable to 'intel-corei7-64', it is possible to run the
'testimage' task with kvm support successfully.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Armin Kuster [Wed, 2 Jan 2019 16:36:10 +0000 (08:36 -0800)]
tzdata/tzcode-native: update to 2018i
2018i:
Briefly:
São Tomé and Príncipe switches from +01 to +00 on 2019-01-01.
Changes to future timestamps
Due to a change in government, São Tomé and Príncipe switches back
from +01 to +00 on 2019-01-01 at 02:00. (Thanks to Vadim
Nasardinov and Michael Deckers.)
2018h:
Briefly:
Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21.
New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move.
Metlakatla, Alaska observes PST this winter only.
Guess Morocco will continue to adjust clocks around Ramadan.
Add predictions for Iran from 2038 through 2090.
Changes to future timestamps
Guess that Morocco will continue to fall back just before and
spring forward just after Ramadan, the practice since 2012.
(Thanks to Maamar Abdelkader.) This means Morocco will observe
negative DST during Ramadan in main and vanguard formats, and in
rearguard format it stays in the +00 timezone and observes
ordinary DST in all months other than Ramadan. As before, extend
this guesswork to the year 2037. As a consequence, Morocco is
scheduled to observe three DST transitions in some Gregorian years
(e.g., 2033) due to the mismatch between the Gregorian and Islamic
calendars.
The table of exact transitions for Iranian DST has been extended.
It formerly cut off before the year 2038 in a nod to 32-bit time_t.
It now cuts off before 2091 as there is doubt about how the Persian
calendar will treat 2091. This change predicts DST transitions in
2038-9, 2042-3, and 2046-7 to occur one day later than previously
predicted. As before, post-cutoff transitions are approximated.
Changes to past and future timestamps
Qyzylorda (aka Kyzylorda) oblast in Kazakhstan moved from +06 to
+05 on 2018-12-21. This is a zone split as Qostanay (aka
Kostanay) did not switch, so create a zone Asia/Qostanay.
Metlakatla moved from Alaska to Pacific standard time on 2018-11-04.
It did not change clocks that day and remains on -08 this winter.
(Thanks to Ryan Stanley.) It will revert to the usual Alaska
rules next spring, so this change affects only timestamps
from 2018-11-04 through 2019-03-10.
Change to past timestamps
Kwajalein's 1993-08-20 transition from -12 to +12 was at 24:00,
not 00:00. I transcribed the time incorrectly from Shanks.
(Thanks to Phake Nick.)
Nauru's 1979 transition was on 02-10 at 02:00, not 05-01 at 00:00.
(Thanks to Phake Nick.)
Guam observed DST irregularly from 1959 through 1977.
(Thanks to Phake Nick.)
Hong Kong observed DST in 1941 starting 06-15 (not 04-01), then on
10-01 changed standard time to +08:30 (not +08). Its transition
back to +08 after WWII was on 1945-09-15, not the previous day.
Its 1904-10-30 change took effect at 01:00 +08 (not 00:00 LMT).
(Thanks to Phake Nick, Steve Allen, and Joseph Myers.) Also,
its 1952 fallback was on 11-02 (not 10-25).
This release contains many changes to timestamps before 1946 due
to Japanese possession or occupation of Pacific/Chuuk,
Pacific/Guam, Pacific/Kosrae, Pacific/Kwajalein, Pacific/Majuro,
Pacific/Nauru, Pacific/Palau, and Pacific/Pohnpei.
(Thanks to Phake Nick.)
Assume that the Spanish East Indies was like the Philippines and
observed American time until the end of 1844. This affects
Pacific/Chuuk, Pacific/Kosrae, Pacific/Palau, and Pacific/Pohnpei.
Changes to past tm_isdst flags
For the recent Morocco change, the tm_isdst flag should be 1 from
2018-10-27 00:00 to 2018-10-28 03:00. (Thanks to Michael Deckers.)
Give a URL to the official decree. (Thanks to Matt Johnson.)
Armin Kuster [Sun, 28 Oct 2018 23:38:32 +0000 (23:38 +0000)]
tzcode-native: update to 2018g
Changes to code
When generating TZif files with leap seconds, zic no longer uses a
format that trips up older 32-bit clients, fixing a bug introduced
in 2018f. (Reported by Daniel Fischer.) Also, the zic workaround
for QTBUG-53071 now also works for TZif files with leap seconds.
The translator to rearguard format now rewrites the line
"Rule Japan 1948 1951 - Sep Sat>=8 25:00 0 S" to
"Rule Japan 1948 1951 - Sep Sun>=9 1:00 0 S".
This caters to zic before 2007 and to Oracle TZUpdater 2.2.0
and earlier. (Reported by Christos Zoulas.)
Changes to past time zone abbreviations
Change HDT to HWT/HPT for WWII-era abbreviations in Hawaii.
This reverts to 2011h, as the abbreviation change in 2011i was
likely inadvertent.
Changes to documentation
tzfile.5 has new sections on interoperability issues.
Armin Kuster [Mon, 29 Oct 2018 01:29:32 +0000 (01:29 +0000)]
tzdata: update to 2018g
Changes to code
When generating TZif files with leap seconds, zic no longer uses a
format that trips up older 32-bit clients, fixing a bug introduced
in 2018f. (Reported by Daniel Fischer.) Also, the zic workaround
for QTBUG-53071 now also works for TZif files with leap seconds.
The translator to rearguard format now rewrites the line
"Rule Japan 1948 1951 - Sep Sat>=8 25:00 0 S" to
"Rule Japan 1948 1951 - Sep Sun>=9 1:00 0 S".
This caters to zic before 2007 and to Oracle TZUpdater 2.2.0
and earlier. (Reported by Christos Zoulas.)
Changes to past time zone abbreviations
Change HDT to HWT/HPT for WWII-era abbreviations in Hawaii.
This reverts to 2011h, as the abbreviation change in 2011i was
likely inadvertent.
Changes to documentation
tzfile.5 has new sections on interoperability issues.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Richard Purdie [Wed, 5 Sep 2018 16:39:31 +0000 (17:39 +0100)]
busybox: Put klogd/syslogd alternative links in syslog package
Currently these are in ${PN} and ${PN}-syslog may get replaced by
other packages but update-alternatives would error in the postinst
if other files were installed first. Avoid the problems by putting
the links in the correct package.
Richard Purdie [Mon, 29 Oct 2018 13:49:24 +0000 (13:49 +0000)]
testsdk: Improvements to the json logging
Tweak the preceeding commit to:
* Add STARTTIME to the identifier to make it unique
* Add MACHINE to the identifier
* Use LOG_DIR
* Store the layer config in a more natural json format
* Drop '_' function prefixes
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Mon, 29 Oct 2018 13:49:14 +0000 (13:49 +0000)]
testimage: Improvements to the json logging
Tweak the preceeding commit to:
* Add STARTTIME to the identifier to make it unique
* Log DISTRO
* Use LOG_DIR
* Store the layer config in a more natural json format
* Drop '_' function prefixes
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 6 Dec 2018 23:25:49 +0000 (23:25 +0000)]
oeqa/selftest/esdk: Fix typo causing test failure
2018-12-06 23:19:24,564 - oe-selftest - INFO - Traceback (most recent call last):
File "/media/build1/poky-sumo/meta/lib/oeqa/core/case.py", line 32, in _oeSetUpClass
clss.setUpClassMethod()
File "/media/build1/poky-sumo/meta/lib/oeqa/selftest/cases/eSDK.py", line 78, in setUpClass
cls.tmpdir_eSDKQA = cls.tempdirobj.name
AttributeError: type object 'oeSDKExtSelfTest' has no attribute 'tempdirobj'
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Stefan Lendl [Tue, 27 Nov 2018 13:19:45 +0000 (14:19 +0100)]
default-versions.inc: Make PREFERRED_VERSION_openssl* overwritable
defaultsetup.conf and therefore default-versions.inc is sourced pretty late in bitbake.conf.
default-versions.inc overwrites previous assignments of PREFERRED_VERSION_openssl.
Assigning it with ?= allows other .conf files to assign correctly.
in particular assignment in conf/local.conf and machine config is used instead of default.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
INFO - ======================================================================
INFO - ERROR: setUpClass (eSDK.oeSDKExtSelfTest)
INFO - ----------------------------------------------------------------------
INFO - Traceback (most recent call last):
File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/core/case.py", line 32, in _oeSetUpClass
clss.setUpClassMethod()
File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/eSDK.py", line 76, in setUpClass
cls.tmpdirobj = tempfile.TemporaryDirectory(prefix="selftest-esdk-", dir=bb_vars["WORKDIR"])
File "/usr/lib/python3.5/tempfile.py", line 929, in __init__
self.name = mkdtemp(suffix, prefix, dir)
File "/usr/lib/python3.5/tempfile.py", line 507, in mkdtemp
_os.mkdir(file, 0o700)
FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-worker/oe-selftest-debian/build/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/selftest-esdk-q7ln84gc'
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Having image-buildinfo enabled causes containerimage.ContainerImageTests.test_expected_files
to fail due to the presence of an unexpected file:
['./',
'./etc/',
- './etc/build',
'./etc/default/',
'./etc/default/postinst',
Tweak the class to allow it to be disabled and disable it from the test just in
case it was enabled.
Richard Purdie [Mon, 29 Oct 2018 13:46:52 +0000 (13:46 +0000)]
oeqa/utils/metadata: Allow to function without the git module
The python git module may or may not be enabled, allow this code to
function without it, falling back to the same method as metadata_scm.bbclass
uses. This will be cleaned up in the next round of feature development.
Yeoh Ee Peng [Tue, 23 Oct 2018 05:57:22 +0000 (13:57 +0800)]
testsdk.bbclass: write testresult to json files
As part of the solution to replace Testopia to store testresult,
OEQA sdk and sdkext need to output testresult into json files, where
these json testresult files will be stored into git repository
by the future test-case-management tools.
By default, json testresult file will be written to "oeqa"
directory under the "WORKDIR" directory.
To configure multiple instances of bitbake to write json testresult
to a single testresult file at custom directory, user will define
the variable "OEQA_JSON_RESULT_DIR" with the custom directory for
json testresult.
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yeoh Ee Peng [Tue, 23 Oct 2018 05:57:21 +0000 (13:57 +0800)]
testimage.bbclass: write testresult to json files
As part of the solution to replace Testopia to store testresult,
OEQA testimage need to output testresult into json files, where
these json testresult files will be stored into git repository
by the future test-case-management tools.
By default, json testresult file will be written to "oeqa"
directory under the "WORKDIR" directory.
To configure multiple instances of bitbake to write json testresult
to a single testresult file at custom directory, user will define
the variable "OEQA_JSON_RESULT_DIR" with the custom directory for
json testresult.
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yeoh Ee Peng [Tue, 23 Oct 2018 05:57:20 +0000 (13:57 +0800)]
oeqa/selftest/context: write testresult to json files
As part of the solution to replace Testopia to store testresult,
OEQA selftest need to output testresult into json files, where
these json testresult files will be stored into git repository
by the future test-case-management tools.
By default, json testresult file will be written to "oeqa"
directory under the oe-selftest log directory.
To configure multiple instances of bitbake to write json testresult
to a single testresult file at custom directory, user will define
the variable "OEQA_JSON_RESULT_DIR" with the custom directory for
json testresult.
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 13 Nov 2018 21:11:50 +0000 (21:11 +0000)]
oeqa/runner: Sort the test result output by result class
We want to see failures/errors listed last since this is the most easily
visible part of the log on consoles or autobuilder output and makes
human processing easier rather than having to scroll up and scan for
a single failure.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Fri, 2 Nov 2018 13:13:43 +0000 (13:13 +0000)]
oeqa/runtime/ptest: Inject results+logs into stored json results file
This allows the ptest results from ptest-runner, run in an image to be
transferred over to the resulting json results output.
Each test is given a pass/skip/fail so individual results can be monitored
and the raw log output from the ptest-runner is also dumped into the
results json file as this means after the fact debugging becomes much easier.
Currently the log output is not split up per test but that would make a good
future enhancement.
I attempted to implement this as python subTests however it failed as the
output was too confusing, subTests don't support any kind of log
output handling, subTest successes aren't logged and it was making things
far more complex than they needed to be.
We mark ptest-runner as "EXPECTEDFAILURE" since its unlikely every ptest
will pass currently and we don't want that to fail the whole image test run.
Its assumed there would be later analysis of the json output to determine
regressions. We do have to change the test runner code so that
'unexpectedsuccess' is not a failure.
Also, the test names are manipuated to remove spaces and brackets with
"_" used as a replacement and any duplicate occurrences truncated.
Yeoh Ee Peng [Tue, 23 Oct 2018 05:57:19 +0000 (13:57 +0800)]
oeqa/core/runner: write testresult to json files
As part of the solution to replace Testopia to store testresult,
OEQA need to output testresult into single json file, where json
testresult file will be stored in git repository by the future
test-case-management tools.
The json testresult file will store more than one set of results,
where each set of results was uniquely identified by the result_id.
The result_id would be like "runtime-qemux86-core-image-sato", where
it was a runtime test with target machine equal to qemux86 and running
on core-image-sato image. The json testresult file will only store
the latest test content for a given result_id. The json testresult
file contains the configuration (eg. COMMIT, BRANCH, MACHINE, IMAGE),
result (eg. PASSED, FAILED, ERROR), test log, and result_id.
Based on the destination json testresult file directory provided,
it could have multiple instances of bitbake trying to write json
testresult to a single testresult file, using locking a lockfile
alongside the results file directory to prevent races.
Also the library class inside this patch will be reused by the future
test-case-management tools to write json testresult for manual test
case executed.
Yeoh Ee Peng [Thu, 18 Oct 2018 09:11:05 +0000 (17:11 +0800)]
oeqa/core/runner: refactor for OEQA to write json testresult
Refactor the original _getDetailsNotPassed method to return
testresult details (test status and log), which will be reused
by future OEQA code to write json testresult.
Take the opportunity to consolidate and simplify the logic used
to gather test status and log within the TestResult instance.
Richard Purdie [Fri, 13 Jul 2018 12:13:10 +0000 (13:13 +0100)]
oeqa: Remove xmlrunner
This isn't present on modern distros by default and doesn't work with
testtools, needing multiple code paths in the code. Remove it in favour
of finding a better replacement for results collection/analysis.
Richard Purdie [Thu, 12 Jul 2018 11:10:38 +0000 (11:10 +0000)]
oeqa/core/threaded: Remove in favour of using concurrenttests
We have several options for parallel processing in oeqa, parallel
execution of modules, threading and mulitple processes for the runners.
After much experimentation is appears the most scalable and least
invasive approach is multiple processes using concurrenttestsuite
from testtools. This means we can drop the current threading code
which is only used by the sdk test execution.
Richard Purdie [Wed, 11 Jul 2018 11:46:01 +0000 (11:46 +0000)]
oeqa/runner: Ensure we don't print misleading results output
The current code assumes if something isn't a failure of some
kind, it was a pass. When test case IDs weren't matching, this lead
to very confusing output where things would fail, then be listed as
passing.
This adds code to track successes, ensuring we don't end up in this
position again with unmatched entries being listed as UNKNOWN.
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.
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.
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
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
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.
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
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.
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.
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.
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.
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.
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.
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.
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
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>
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>
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.
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
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).
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.
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:
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>
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.
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}"'
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 ‘.’.
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.
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.
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.
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.
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
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.
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>
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
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
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.