]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agoruntime/dnf: Add new dnf test cases
Jose Perez Carranza [Thu, 30 Nov 2017 16:23:02 +0000 (10:23 -0600)]
runtime/dnf: Add new dnf test cases

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.

[YOCTO #10744]

(From OE-Core rev: 1121806603c6f621d084b692216f3f616a0768dc)

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agokernel: don't assign the build user/host
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.

(From OE-Core rev: a3e8cdf9c3ba966fa4b5a21235540eb0b00fb487)

Signed-off-by: Federico Sauter <federico.sauter@ableton.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agooeqa: Fix for QEMU_USE_KVM
Robert Yang [Fri, 4 Jan 2019 07:15:43 +0000 (15:15 +0800)]
oeqa: Fix for QEMU_USE_KVM

Fixed:
MACHINE = "qemux86"
QEMU_USE_KVM = "qemux86"
IMAGE_CLASSES += "testimage"

$ oe-selftest -r runqemu.RunqemuTests.test_boot_rootfs

[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.

(From OE-Core rev: 7c1a8a624cad8d967635c6cb5f99cf655bde3d44)

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>
6 years agopatch: reproducibility: Fix host umask leakage
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.

(From OE-Core rev: 2a2bbd755b330cd63f7f6e2f2b374a3ae065b37a)

Signed-off-by: Douglas Royds <douglas.royds@taitradio.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 agoscripts/oe-git-archive: fix non-existent key referencing error
Yeoh Ee Peng [Fri, 4 Jan 2019 06:46:01 +0000 (14:46 +0800)]
scripts/oe-git-archive: fix non-existent key referencing error

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).

[YOCTO# 13082]

(From OE-Core rev: 9a3cc9b8523b78dda6c3f3f2e12798b2b907d7e5)

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agopackage.bbclass: fix python unclosed file ResourceWarning
Chen Qi [Tue, 18 Dec 2018 06:53:43 +0000 (14:53 +0800)]
package.bbclass: fix python unclosed file ResourceWarning

Fix the following warning.

  ResourceWarning: unclosed file <_io.TextIOWrapper name='/.../systemd/1_239-r0/debugsources.list' mode='a' encoding='UTF-8'>

(From OE-Core rev: 91810a57f0edd8b37c5f3f989a5aca69d9a40b37)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for sumo context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agopackage: Rework PACKAGELOCK based upon sstate for do_packagedata
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.

(From OE-Core rev: f7106cdf2190d9ec59132a1cb2bb431d653cd9c5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agotestimage.bbclass: fix qemu_use_kvm handling
Emmanuel Roullit [Wed, 5 Sep 2018 19:49:58 +0000 (21:49 +0200)]
testimage.bbclass: fix qemu_use_kvm handling

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.

(From OE-Core rev: a22789253aa653dc50fb159b40910248c2f98dd4)

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage/testsdk/selftest: Avoid platform.distro_identifier deprecation warnings
Richard Purdie [Thu, 15 Nov 2018 14:38:19 +0000 (14:38 +0000)]
testimage/testsdk/selftest: Avoid platform.distro_identifier deprecation warnings

Use our own lsb function instead as used elsewhere by the codebase.

(From OE-Core rev: acac45a6fd604d28ef7c23d67482af3d7e8bcfe3)

(From OE-Core rev: 570256a64af5a3fa994a20a5cc4c74d59ffc361f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: set timeout to 60s for run_serial
Robert Yang [Thu, 3 Jan 2019 08:16:32 +0000 (16:16 +0800)]
oeqa/utils/qemurunner: set timeout to 60s for run_serial

The 5s timeout for non-kvm is too short, especially when the load is high,
which leads to unexpected errors, so set timeout to 60s by default.

(From OE-Core rev: 8197d0f638a760fc03062c7a9009117d083d7ead)

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>
6 years agotzdata/tzcode-native: update to 2018i
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.)

(From OE-Core rev: 100d0d0f24cabedd1a89b69ac8ffb05d85663761)

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-native: update to 2018g
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.

(From OE-Core rev: a24d0c174411a32a2793c89980ca87c4f9d98bc4)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotzdata: update to 2018g
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.

(From OE-Core rev: 32e5dd919a61b1c245fb6a867d0ea4a71d394aca)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: Print output when failed to login
Robert Yang [Thu, 27 Dec 2018 08:59:43 +0000 (00:59 -0800)]
oeqa/utils/qemurunner: Print output when failed to login

This is useful for debugging.

(From OE-Core rev: da527d73f5eeae0f29b5f99aab757491d3f87ec7)

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>
6 years agobusybox: Put klogd/syslogd alternative links in syslog package
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.

(From OE-Core rev: ef11c54ba99af261a70ec31091216cdd1556da24)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
6 years agotestsdk: Improvements to the json logging
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>
6 years agotestimage: Improvements to the json logging
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>
6 years agooeqa/selftest/esdk: Fix typo causing test failure
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>
6 years agodefault-versions.inc: Make PREFERRED_VERSION_openssl* overwritable
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>
6 years agooeqa/selftest/esdk: Ensure parent directory exists
Richard Purdie [Thu, 6 Dec 2018 14:06:34 +0000 (14:06 +0000)]
oeqa/selftest/esdk: Ensure parent directory exists

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>
6 years agoimage-buildinfo,oeqa/selftest/containerimage: Ensure image-buildinfo doesn't break...
Richard Purdie [Fri, 9 Nov 2018 11:24:47 +0000 (11:24 +0000)]
image-buildinfo,oeqa/selftest/containerimage: Ensure image-buildinfo doesn't break tests

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.

(From OE-Core rev: af67bf422a4df5b7e07894512ff73a5f493682ab)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/metadata: Allow to function without the git module
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.

(From OE-Core rev: 6350586ba9f4a4107a2d457590824cd4d662d5b9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest: Standardize json logging output directory
Yeoh Ee Peng [Wed, 7 Nov 2018 07:08:31 +0000 (15:08 +0800)]
oeqa/selftest: Standardize json logging output directory

Currently sdk & sdkext will output json file to LOG_DIR, while
selftest will output json file to TOPDIR/log.

Standardize selftest json output file to LOG_DIR.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest: Improvements to the json logging
Richard Purdie [Mon, 29 Oct 2018 13:49:02 +0000 (13:49 +0000)]
oeqa/selftest: Improvements to the json logging

Tweak the preceeding commit to:

* Add STARTTIME to the identifier to make it unique
* Use LOG_DIR
* Store the layer config in a more natural json format
* Drop '_' function prefixes

(From OE-Core rev: 173f59acf9722e2ef27fdd49c20f7d3d664917eb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestsdk.bbclass: write testresult to json files
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>
6 years agotestimage.bbclass: write testresult to json files
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>
6 years agooeqa/selftest/context: write testresult to json files
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>
6 years agooeqa/runner: Sort the test result output by result class
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>
6 years agooeqa/runner: Always show a summary of success/fail/error/skip counts
Richard Purdie [Tue, 13 Nov 2018 21:10:43 +0000 (21:10 +0000)]
oeqa/runner: Always show a summary of success/fail/error/skip counts

Its useful to have the counts of success/failure/error/skipped at the end of the
results to allow for easier human reading of what happened.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/ptest: Inject results+logs into stored json results file
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.

(From OE-Core rev: a13e088942e2a3c3521e98954a394e61a15234e8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/core/runner: write testresult to json files
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.

(From OE-Core rev: 00e03b5004f1eb6d59295544b3a8620504278f51)

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/core/runner: refactor for OEQA to write json testresult
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.

(From OE-Core rev: 79ee7d1c371a86edeb61c99679985118da657e5d)

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa: Remove xmlrunner
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.

(From OE-Core rev: 8001d933a8dc86004db014777f094d718086687d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runner: Simplify code
Richard Purdie [Wed, 11 Jul 2018 11:54:20 +0000 (11:54 +0000)]
oeqa/runner: Simplify code

There doesn't appear to be any reason we need this _results indirection
any more so remove it.

(From OE-Core rev: b618261811c48ff3b98eab1b340a8cd09ef183c6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/core/threaded: Remove in favour of using concurrenttests
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.

oeqa/decorator/depends: Remove threading code

Revert "oeqa/sdk: Enable usage of OEQA thread mode"
This reverts commit adc434c0636b7dea2ef70c8d2c8e61cdb5c703b1.

Revert "oeqa/core/tests: Add tests of OEQA Threaded mode"
This reverts commit a4eef558c9933eb32413b61ff80a11b999951b40.

Revert "oeqa/core/decorator/oetimeout: Add support for OEQA threaded mode"
This reverts commit d3d4ba902dee8b19fa1054330cffdf73f9b81fe7.

(From OE-Core rev: a98ab5e560e73b6988512fbae5cefe9e42ceed53)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runner: Ensure we don't print misleading results output
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.

(From OE-Core rev: 4374c296d8963e4f6a1aa7bef7983ad0a1c2fcff)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>