]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
3 years agopython3: upgrade 3.9.7 -> 3.9.9
Anuj Mittal [Thu, 9 Dec 2021 07:36:29 +0000 (15:36 +0800)]
python3: upgrade 3.9.7 -> 3.9.9

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobind: fix CVE-2021-25219
Mingli Yu [Wed, 17 Nov 2021 09:18:25 +0000 (17:18 +0800)]
bind: fix CVE-2021-25219

Backport patches to fix CVE-2021-25219.

(From OE-Core rev: 918660a2d4bc89a763a5934765ff6a1647709fcc)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 729693f0c250aec7dfdb91a9bb4dd5420c7efbee)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoopenssh: fix CVE-2021-41617
Changqing Li [Wed, 17 Nov 2021 08:57:27 +0000 (16:57 +0800)]
openssh: fix CVE-2021-41617

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoncurses: fix CVE-2021-39537
Mingli Yu [Tue, 19 Oct 2021 08:25:39 +0000 (16:25 +0800)]
ncurses: fix CVE-2021-39537

Backport patch [1] to fix CVE-2021-39537 [2].

[1] https://github.com/mirror/ncurses/commit/790a85dbd4a81d5f5d8dd02a44d84f01512ef443
[2] http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/ncurses/patches/patch-ncurses_tinfo_captoinfo.c?rev=1.1&content-type=text/x-cvsweb-markup

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 8fceb122a1c0240106342738de7d2484b48d9a6a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibdrm: upgrade 2.4.108 -> 2.4.109
wangmy [Mon, 29 Nov 2021 14:59:48 +0000 (22:59 +0800)]
libdrm: upgrade 2.4.108 -> 2.4.109

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ba3bd5e6ae5c3893fa3dc61b768105d9203b96f3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibdrm: upgrade 2.4.107 -> 2.4.108
wangmy [Mon, 15 Nov 2021 15:02:34 +0000 (23:02 +0800)]
libdrm: upgrade 2.4.107 -> 2.4.108

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 11ad9b4fd2a8d53a472344c3b47487fccbc96f7e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopatch.py: Initialize git repo before patching
Pavel Zhukov [Thu, 2 Dec 2021 07:56:04 +0000 (08:56 +0100)]
patch.py: Initialize git repo before patching

If PATCHTOOL="git" has been specified but workdir is not git repo
bitbake fails to apply the patches with error message:
Command Error: 'git rev-parse --show-toplevel' exited with 0  Output:
fatal: not a git repository (or any of the parent directories): .git

Fix this by initializing the repo before patching.
This allows binary git patches to be applied.

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6184b56a7a0fc6f5d19fdfb81e7453667f7da940)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoboost: Fix build on arches with no atomics
Khem Raj [Thu, 2 Dec 2021 05:12:01 +0000 (21:12 -0800)]
boost: Fix build on arches with no atomics

1.77 is broken on architectures which dont have lockfree atomics e.g.
armv5 [1], backport relevant fixes from upstream to unbreak the build

[1] https://github.com/boostorg/math/issues/673

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 57dc797712abcf83b63694b21d2b3a3f09b1c9bc)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoboost: allow searching for python310
Martin Jansa [Tue, 19 Oct 2021 12:43:32 +0000 (14:43 +0200)]
boost: allow searching for python310

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a8add0bdec7c51c9a7f851b2c63017c79faaa273)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorecipetool: extend curl detection when creating recipes
Ross Burton [Wed, 1 Dec 2021 15:42:32 +0000 (15:42 +0000)]
recipetool: extend curl detection when creating recipes

If a configure.ac uses LIBCURL_CHECK_CONFIG it wants curl.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 16e830ca1352cee61e4ae4b98b1203f849bf71f3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorecipetool: handle GitLab URLs like we do GitHub
Ross Burton [Wed, 1 Dec 2021 15:42:31 +0000 (15:42 +0000)]
recipetool: handle GitLab URLs like we do GitHub

GitHub URLs are automatically transformed to git: fetches, so handle
GitLab URLs too.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 651fb951819840fe122458ddbd852ee6c7ec0455)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoREADME.OE-Core.md: update URLs
Quentin Schulz [Wed, 1 Dec 2021 16:17:34 +0000 (17:17 +0100)]
README.OE-Core.md: update URLs

Update URLs to what they actually redirect to.

Cc: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ec2131070cae6c3933e5b08986e8245fcd9deb99)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agovim: fix CVE-2021-3968 and CVE-2021-3973
Ross Burton [Tue, 30 Nov 2021 16:53:12 +0000 (16:53 +0000)]
vim: fix CVE-2021-3968 and CVE-2021-3973

Backport a fix for -3972, and whitelist -3968: it isn't valid as it
fixes a bug which was introduced after 8.2.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bec5caadfb53638748d8c41ce7230c2bf7808d27)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agovim: fix CVE-2021-3927 and CVE-2021-3928
Ross Burton [Mon, 15 Nov 2021 12:53:28 +0000 (12:53 +0000)]
vim: fix CVE-2021-3927 and CVE-2021-3928

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2001631e7a6edb7adc40ee4357466cc54472db71)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibtool: change the default AR_FLAGS from "cru" to "cr"
Li Wang [Tue, 30 Nov 2021 06:51:11 +0000 (14:51 +0800)]
libtool: change the default AR_FLAGS from "cru" to "cr"

Backport patch to fix warning:
`u' modifier ignored since `D' is the default (see `U')

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3d5092e7ee63fb8119a22b3d9de1f23e94791b56)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibtool: Update patchset to match those submitted upstream
Richard Purdie [Mon, 25 Oct 2021 18:40:53 +0000 (19:40 +0100)]
libtool: Update patchset to match those submitted upstream

I went through and cleaned up the headers/descriptions on several of the
libtool patchset and submitted (or resubmitted in some cases) them
upstream. This patch updates/renames them to match what I did.

I did fix some whitespace issues in some of the patches and also merged
one case where we had a patch of already patched code.

This makes it clear what was submitted and makes resubmission easier if
ever needed too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9bb9a4e8bd408c7a42913aa3e1ec541919b59584)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoscripts/checklayer/common.py: Fixed a minor grammatical error
Dhruva Gole [Sun, 28 Nov 2021 17:38:08 +0000 (23:08 +0530)]
scripts/checklayer/common.py: Fixed a minor grammatical error

Signed-off-by: Dhruva Gole <goledhruva@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8ea17456ae5318ed7a3b4c8f75c8441456d8b979)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogo: upgrade 1.16.8 -> 1.16.10
Pavel Zhukov [Tue, 23 Nov 2021 15:38:42 +0000 (16:38 +0100)]
go: upgrade 1.16.8 -> 1.16.10

The release includes fixes for CVE-2021-41771 and CVE-2021-41772

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 69c68f470e8e12456a4d9abf2d1c33b857e4ea37)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/parselogs: Fix quoting
Richard Purdie [Fri, 26 Nov 2021 15:45:29 +0000 (15:45 +0000)]
oeqa/parselogs: Fix quoting

Fix deprecation warnings about invalid escape sequences.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 43542614395150e8fa34133ba0fc7ee90f215bcb)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/utils/dump: Fix typo
Richard Purdie [Fri, 26 Nov 2021 15:46:13 +0000 (15:46 +0000)]
oeqa/utils/dump: Fix typo

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3770d539d83b589b3f8bde21fcf896bb046611d4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosystemd: update 249.6 -> 249.7
Alexander Kanavin [Wed, 24 Nov 2021 08:08:24 +0000 (09:08 +0100)]
systemd: update 249.6 -> 249.7

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5671ef44cf85df00406b391f7786ffaefd05a701)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosystemd: upgrade 249.5 -> 249.6
Alexander Kanavin [Wed, 17 Nov 2021 15:35:06 +0000 (16:35 +0100)]
systemd: upgrade 249.5 -> 249.6

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4744336d854b56cdd81a19f60f6d1c659bae7147)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosystemd: update 249.4 -> 249.5
Alexander Kanavin [Tue, 19 Oct 2021 15:33:22 +0000 (17:33 +0200)]
systemd: update 249.4 -> 249.5

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d5d3704acf4d2e70ee41eb5e6fe852a4c1bc3595)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosystemd: update 249.3 -> 249.4
Alexander Kanavin [Wed, 8 Sep 2021 18:01:19 +0000 (20:01 +0200)]
systemd: update 249.3 -> 249.4

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 14c6e5a4b72d0e4665279158a0740dd1dc21f72f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.79
Bruce Ashfield [Tue, 23 Nov 2021 21:57:30 +0000 (16:57 -0500)]
linux-yocto/5.10: update to v5.10.79

Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:

    bd816c278316 Linux 5.10.79
    62424fe4c2cf rsi: fix control-message timeout
    8971158af1e0 media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init
    1cf43e928954 staging: rtl8192u: fix control-message timeouts
    9963ba5b9d49 staging: r8712u: fix control-message timeout
    844b02496eac comedi: vmk80xx: fix bulk and interrupt message timeouts
    b7fd7f3387f0 comedi: vmk80xx: fix bulk-buffer overflow
    33d7a470730d comedi: vmk80xx: fix transfer-buffer overflows
    ef143dc0c3de comedi: ni_usb6501: fix NULL-deref in command paths
    786f5b034504 comedi: dt9812: fix DMA buffers on stack
    86d4aedcbc69 isofs: Fix out of bound access for corrupted isofs image
    c430094541a8 staging: rtl8712: fix use-after-free in rtl8712_dl_fw
    ab4af56ae250 printk/console: Allow to disable console output by using console="" or console=null
    07d1db141e47 binder: don't detect sender/target during buffer cleanup
    42681b90c4db usb-storage: Add compatibility quirk flags for iODD 2531/2541
    1309753b7841 usb: musb: Balance list entry in musb_gadget_queue
    27409143122f usb: gadget: Mark USB_FSL_QE broken on 64-bit
    94e5305a3816 usb: ehci: handshake CMD_RUN instead of STS_HALT
    a8db6fd04d58 Revert "x86/kvm: fix vcpu-id indexed array sizes"
    ecf58653f1e4 KVM: x86: avoid warning with -Wbitwise-instead-of-logical

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3356c5e7acc86be2e1584819a70e984d984b0d9c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.14: update to v5.14.18
Bruce Ashfield [Tue, 23 Nov 2021 21:57:29 +0000 (16:57 -0500)]
linux-yocto/5.14: update to v5.14.18

Updating linux-yocto/5.14 to the latest korg -stable release that comprises
the following commits:

    a0265dd8262d Linux 5.14.18
    1379769b0b46 rsi: fix control-message timeout
    eda57a310234 media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init
    5013f2aaf959 staging: rtl8192u: fix control-message timeouts
    f3422d1fceba staging: r8712u: fix control-message timeout
    373ac8c59414 comedi: vmk80xx: fix bulk and interrupt message timeouts
    7b0e35618932 comedi: vmk80xx: fix bulk-buffer overflow
    278484ae9329 comedi: vmk80xx: fix transfer-buffer overflows
    4a9d43cb5d5f comedi: ni_usb6501: fix NULL-deref in command paths
    3ac273d154d6 comedi: dt9812: fix DMA buffers on stack
    b2fa1f52d22c isofs: Fix out of bound access for corrupted isofs image
    befd23bd3b17 staging: rtl8712: fix use-after-free in rtl8712_dl_fw
    bec32c40e438 binder: don't detect sender/target during buffer cleanup
    68abe9aefc40 binder: use cred instead of task for getsecid
    46088365bab7 binder: use cred instead of task for selinux checks
    fbb106e79524 binder: use euid from cred instead of using task
    f9b4ef2504bb Revert "proc/wchan: use printk format instead of lookup_symbol_name()"
    4674de4e2734 usb-storage: Add compatibility quirk flags for iODD 2531/2541
    6be11f54f5d4 usb: musb: Balance list entry in musb_gadget_queue
    d7f4ffba71d0 usb: gadget: Mark USB_FSL_QE broken on 64-bit
    d3c7daab289d usb: ehci: handshake CMD_RUN instead of STS_HALT
    a4cdb4c9c453 Revert "x86/kvm: fix vcpu-id indexed array sizes"
    2f63111ab86f KVM: x86: avoid warning with -Wbitwise-instead-of-logical
    f468cbedb2a7 ALSA: pci: cs46xx: Fix set up buffer type properly
    186155ac272e ALSA: pcm: Check mmap capability of runtime dma buffer at first

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7f09947f9fc12f7b548f18573ffbc452837527bd)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoglibc: Fix i586/c3 support
Richard Purdie [Tue, 23 Nov 2021 16:52:33 +0000 (16:52 +0000)]
glibc: Fix i586/c3 support

CET can't be enabled on i586 or c3 for x86, adjust the configuration accordingly
to fix those builds.

[YOCTO #14632]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 26e4fed594daefb6923c50171360f925c4822683)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowic: support rootdev identified by partition label
Schmidt, Adriaan [Tue, 23 Nov 2021 08:33:29 +0000 (08:33 +0000)]
wic: support rootdev identified by partition label

We already support specifying the rootfs by PARTUUID. This adds general
support for letting the kernel find the rootfs by PARTLABEL.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2fb247c5ecf057bb96649a3c0234794b4991c050)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogmp: fix CVE-2021-43618
Ross Burton [Mon, 22 Nov 2021 11:40:56 +0000 (11:40 +0000)]
gmp: fix CVE-2021-43618

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fb3b9a7f668a6ffd56a99e1e8b83cdbad2a4bc66)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobuildhistory: Fix srcrevs output
Richard Purdie [Mon, 22 Nov 2021 15:32:36 +0000 (15:32 +0000)]
buildhistory: Fix srcrevs output

The code was assuming that the a recipe with only one srcrev wouldn't "name"
it. This isn't the case as the glibc or bzip2 recipes show, you can have
a single srcrev which is named.

We can pull the data from the fetcher and in fact we already have it, we just
need to handle the "default" case and make that code the default for all srcrev
regardless of length.

[YOCTO #14017]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 45ae567932ba52b758eb41754453e9828d9533a1)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoclasses/crate-fetch: Ensure crate fetcher is available
Joshua Watt [Fri, 19 Nov 2021 02:12:49 +0000 (20:12 -0600)]
classes/crate-fetch: Ensure crate fetcher is available

Reworks the crate fetcher class to have it install the fetcher at recipe
finalization so that it is always available before SRC_URI is expanded.
In addition, override the value of SRCPV to also install the fetcher
when SRCPV is expanded so that AUTOREV works.

[YOCTO #10867]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bc66c5dd65fb654af5cd91b47f9b4f7a5f53436e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorootfs-postcommands: update systemd_create_users
Vyacheslav Yurkov [Fri, 19 Nov 2021 21:05:39 +0000 (22:05 +0100)]
rootfs-postcommands: update systemd_create_users

Process all systemd-sysusers configuration files in order to create
users/groups at build time. systemd-sysusers would try to create them at
run-time, but for read-only rootfs that's not possible and results in
warnings from different services:

systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:39 Unknown group 'render', ignoring
systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:40 Unknown group 'render', ignoring
systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:42 Unknown group 'sgx', ignoring

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f86ffdb1b77c6ba32ec250545a40c1c54f983f21)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoclasses/meson: Add optional rust definitions
Joshua Watt [Fri, 19 Nov 2021 20:51:40 +0000 (14:51 -0600)]
classes/meson: Add optional rust definitions

Adds the rust tools to the cross and native files if present so that
projects that use both rust and meson can build

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0ec40fa3aff233bd0dde0461299150786da956ef)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorust-cross: Replace TARGET_ARCH with TUNE_PKGARCH
Pgowda [Mon, 15 Nov 2021 14:03:40 +0000 (06:03 -0800)]
rust-cross: Replace TARGET_ARCH with TUNE_PKGARCH

rust-cross-* imported from meta-rust has incorrect signatures,
depending on MACHINEOVERRIDES making it effectively MACHINE_ARCH
as shown by sstate-diff-machines.sh:

openembedded-core/scripts/sstate-diff-machines.sh --tmpdir=tmp-glibc \
--machines="qemuarm64 qemuarm64copy" --targets=rust-cross-aarch64-glibc \
--analyze

 === Comparing signatures for task do_configure.sigdata between
 qemuarm64 and qemuarm64copy ===
ERROR: gcc-runtime different signature for task do_configure.sigdata
between qemuarm64 and qemuarm64copy
NOTE: Starting bitbake server...
Hash for dependent task gcc/gcc-runtime_11.2.bb:do_prepare_recipe_sysroot
changed from
da4ebf1b272cb73153145a0a95e6438d2955ae2d36f84db10f6880b2781ec331 to
47a0ebb7a88c9f896fb9dbce269f575ab8a6faabb2b9e62d164be6e71c5e4e40
Unable to find matching sigdata for
openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_11.2.bb:
do_prepare_recipe_sysroot with hashes
da4ebf1b272cb73153145a0a95e6438d2955ae2d36f84db10f6880b2781ec331 or
47a0ebb7a88c9f896fb9dbce269f575ab8a6faabb2b9e62d164be6e71c5e4e40

The following patch takes TUNE_PKGARCH into consideration instead
of TARGET_ARCH and results in signatures as expected.

[YOCTO #14613]

RP: Added maintainer.inc corresponding change
Signed-off-by: Pgowda <pgowda.cve@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bcf48766d1123cea41f80b0cb687584692c96158)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomaintainers.inc: fix up rust-cross entry
Alexandre Belloni [Wed, 20 Oct 2021 10:02:59 +0000 (12:02 +0200)]
maintainers.inc: fix up rust-cross entry

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5fedca5c3bcfc7643176e30e045434321ffbc21d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorust-cross: Fix directory not deleted for race glibc vs. musl
Pgowda [Tue, 19 Oct 2021 04:37:25 +0000 (21:37 -0700)]
rust-cross: Fix directory not deleted for race glibc vs. musl

Use different recipe names for the two different targets so that
when switching libcs overlapping files in the sysroot don't cause
issues.

Signed-off-by: Pgowda <pgowda.cve@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 33be44a02beb7c52f075f660ad8e0641e360011c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowic: use shutil.which
Mingli Yu [Wed, 17 Nov 2021 02:16:23 +0000 (10:16 +0800)]
wic: use shutil.which

Use shutil.which to find the executable instead to silence the below warning:
 $ cat tmp/work/intel_x86_64-poky-linux/core-image-base/1.0-r5/temp/log.do_image_wic
 [snip]
 DEBUG: Executing shell function do_image_wic
 /path/layers/oe-core/scripts/wic:27: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils import spawn
 INFO: Creating image(s)...
 [snip]

[RP: Added conversion for missed function reference]
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3966cbf5c8a2dbc3a4f0f3eefdbeeb83f522bf87)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobuild-appliance-image: Update to honister head revision 2021-10.1 2021-10.1-honister yocto-3.4.1
Richard Purdie [Thu, 25 Nov 2021 22:00:48 +0000 (22:00 +0000)]
build-appliance-image: Update to honister head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: Fix key errors in do_create_runtime_spdx
Andres Beltran [Thu, 18 Nov 2021 00:04:02 +0000 (00:04 +0000)]
create-spdx: Fix key errors in do_create_runtime_spdx

Currently, the do_create_runtime_spdx task fails with a Key Error if a
dependency is not contained in the package providers dictionary. Add a
check before using "dep" as a key in "providers".

Signed-off-by: Andres Beltran <abeltran@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 140ce5ef5e8f10251091660e3ef76f315f409076)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocreate-spdx: Protect against None from LICENSE_PATH
Saul Wold [Wed, 17 Nov 2021 18:08:14 +0000 (10:08 -0800)]
create-spdx: Protect against None from LICENSE_PATH

If LICENSE_PATH is not set, then the split() will fail on a NoneType.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d6260decae6d2654f6e058f12ca02d582a8ef5a4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocreate_spdx: ensure is_work_shared() is unique
Saul Wold [Wed, 17 Nov 2021 18:08:13 +0000 (10:08 -0800)]
create_spdx: ensure is_work_shared() is unique

There is a function with the same name is_work_shared() in the archiver class
this causes a conflict when both classes are included. Use work-shared as the
check in WORKDIR to allow for other packages beyond the kernel and gcc that
use a common shared-work source directory.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 18eab77ee65c73b17225e69c7ba446ab1c69fa92)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoglibc: Backport fix for CVE-2021-43396
Richard Purdie [Mon, 15 Nov 2021 11:49:06 +0000 (11:49 +0000)]
glibc: Backport fix for CVE-2021-43396

Backport the fix for CVE-2021-43396. It is disputed that this is a security issue
however the fix applies easily so we may as well.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e8de9b01c6b305b2498c5f942397a49ae2af0cde)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocups: Fix missing installation of cups sysv init scripts
Claus Stovgaard [Sat, 13 Nov 2021 21:37:13 +0000 (22:37 +0100)]
cups: Fix missing installation of cups sysv init scripts

The packageconfig needs to be --disable-systemd as documented in
configure file for cups. With the current value "--without-systemd" the
SYSTEM_DIR variable ends up being set to "no"

It is caused by the --without-* section in configure file resulting in
eval with_$ac_useropt=no ;;

$ac_useropt is "systemd" causing the variable $with_systemd to be set
to "no", because of below test

if test ${with_systemd+y}
then :
  withval=$with_systemd; SYSTEMD_DIR="$withval"
else $as_nop
  SYSTEMD_DIR=""
fi

cups configure test for i if SYSTEMD_DIR is empty to decide if the init
scripts need to be installed. A value of "no" results in that no init
scripts is installed.

With --disable-systemd it works as expected - installing the init files.
Though cups should properly improve their configure script.

Signed-off-by: Claus Stovgaard <clst@ambu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 967fdd2ba12f22d8e46600ff085833993a32cfeb)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoinsane.bbclass: Add a check for directories that are expected to be empty
Peter Kjellerstedt [Sat, 13 Nov 2021 12:25:16 +0000 (13:25 +0100)]
insane.bbclass: Add a check for directories that are expected to be empty

The empty-dirs QA check verifies that all directories specified in
QA_EMPTY_DIRS are empty. It is possible to specify why a directory is
expected to be empty by defining QA_EMPTY_DIRS_RECOMMENDATION:<path>,
which will then be included in the error message if the directory is
not empty. If it is not specified for a directory, then "but it is
expected to be empty" will be used.

Compared to the corresponding patch for master, there are two
differences:

* "/var/volatile" is not added to QA_EMPTY_DIRS by default, and
* "empty-dirs" is not enabled in ERROR_QA (nor in WARN_QA).

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomirrors: Add kernel.org sources mirror for downloads.yoctoproject.org
Richard Purdie [Fri, 12 Nov 2021 17:48:25 +0000 (17:48 +0000)]
mirrors: Add kernel.org sources mirror for downloads.yoctoproject.org

kernel.org now has a mirror of the downloads.yoctoproject.org sources
archive so include this in our mirrors list.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f602b6c2046bbc52a95dcc68a754f1cbb2db6761)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agouninative: Add version to uninative tarball name
Richard Purdie [Fri, 12 Nov 2021 13:51:09 +0000 (13:51 +0000)]
uninative: Add version to uninative tarball name

uninative works via hashes and doesn't need the version in the tarball name but
it does make things easier to inspect in DL_DIR. There were reasons such as
ease of publication of the build tarballs but we can handle those differently
now and the signature issues from the early code aren't an issue now. From 3.4
onwards we can use a version'd name.

[YOCTO #12970]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dadba70d6a24d8ebb5576598efffa973151c7218)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoscripts/lib/wic/help.py: Update Fedora Kickstart URLs
Jon Mason [Thu, 11 Nov 2021 14:21:27 +0000 (09:21 -0500)]
scripts/lib/wic/help.py: Update Fedora Kickstart URLs

The URLs describing Kickstart are no longer valid and do not redirect to
the correct location.  Update them with the correct location.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e5ac75f93c8128b0761af5fee99e8603ddd1657d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowpa-supplicant: Match package override to PACKAGES for pkg_postinst
Richard Purdie [Thu, 11 Nov 2021 17:12:58 +0000 (17:12 +0000)]
wpa-supplicant: Match package override to PACKAGES for pkg_postinst

In PACKAGES, ${PN} is used so it makes sense for the pkg_postinst variable
override to match that else it causes user confusion.

[YOCTO #14616]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ae9094d45bbfff377bd542939e12a8451a4959b6)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoscripts/oe-package-browser: Handle no packages being built
Richard Purdie [Thu, 11 Nov 2021 15:06:06 +0000 (15:06 +0000)]
scripts/oe-package-browser: Handle no packages being built

Give the user a proper error message if there aren't packages built,
rather than a less friendly traceback.

[YOCTO #14619]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b14c176b7dd74b7d63ca0f72e6e00fbf209f5a0b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoscripts/oe-package-browser: Fix after overrides change
Richard Purdie [Thu, 11 Nov 2021 15:04:19 +0000 (15:04 +0000)]
scripts/oe-package-browser: Fix after overrides change

After the overrides change, the format of pkgdata changed and this
usage of configparser no longer works. This change is a bandaid to make
things work but the pkgdata format isn't very similar to ini files
so this may need to be reimplmented in a better way in the long run.

[YOCTO #14619]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 25a8ec6e2891b71bc280aacaf5f62ecc4b0bd1d1)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoconvert-srcuri.py: use regex to check space in SRC_URI
Kai Kang [Thu, 11 Nov 2021 09:57:24 +0000 (17:57 +0800)]
convert-srcuri.py: use regex to check space in SRC_URI

There may be none, one or more spaces including tab before backslash in
SRC_URI. Use regex to check and update. It helps to avoid malformed uri
such as recipe open-iscsi-user in meta-openstack:

SRC_URI = "git://github.com/open-iscsi/open-iscsi.git;protocol=https  ;branch=master \

And help to check more recipes such as concurrent-ruby in the same
layer:

SRC_URI = "git://github.com/ruby-concurrency/concurrent-ruby.git;protocol=https;tag=v1.1.6\

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a69a53573b1987ee5834a6fc27763f9bbf5fe5a4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.78
Bruce Ashfield [Wed, 10 Nov 2021 13:07:15 +0000 (08:07 -0500)]
linux-yocto/5.10: update to v5.10.78

Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:

    5040520482a5 Linux 5.10.78
    4c7c0243275b ALSA: usb-audio: Add Audient iD14 to mixer map quirk table
    f3eb44f496ef ALSA: usb-audio: Add Schiit Hel device to mixer map quirk table
    68765fc97762 Revert "wcn36xx: Disable bmps when encryption is disabled"
    f84b791d4c3b ARM: 9120/1: Revert "amba: make use of -1 IRQs warn"
    bbc920fb320f Revert "drm/ttm: fix memleak in ttm_transfered_destroy"
    6d67b2a73b8e mm: khugepaged: skip huge page collapse for special files
    5a7957491e31 Revert "usb: core: hcd: Add support for deferring roothub registration"
    50f46bd30949 Revert "xhci: Set HCD flag to defer primary roothub registration"
    d7fc85f61042 media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt()
    b93a70bf2b57 net: ethernet: microchip: lan743x: Fix skb allocation failure
    b9c85a71e1b4 vrf: Revert "Reset skb conntrack connection..."
    0382fdf9ae78 sfc: Fix reading non-legacy supported link modes
    748786564a35 Revert "io_uring: reinforce cancel on flush during exit"
    7b57c38d12ae scsi: core: Put LLD module refcnt after SCSI device is released

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7a7d1eed8e3d550ac9bfa301b26095100eeba111)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.14: update to v5.14.17
Bruce Ashfield [Wed, 10 Nov 2021 13:07:13 +0000 (08:07 -0500)]
linux-yocto/5.14: update to v5.14.17

Updating linux-yocto/5.14 to the latest korg -stable release that comprises
the following commits:

    3dfa869cb79d Linux 5.14.17
    b1dbd891bfe5 ALSA: usb-audio: Add Audient iD14 to mixer map quirk table
    570b5004f827 ALSA: usb-audio: Add Schiit Hel device to mixer map quirk table
    db6d7c4acca3 Revert "drm/i915/gt: Propagate change in error status to children on unhold"
    aac2f6861683 drm/amd/display: Revert "Directly retrain link from debugfs"
    77d029e1e218 drm/amdgpu: revert "Add autodump debugfs node for gpu reset v8"
    9f9e09a59c58 Revert "wcn36xx: Disable bmps when encryption is disabled"
    b9722a7369f8 ARM: 9120/1: Revert "amba: make use of -1 IRQs warn"
    e556fca311ce Revert "soc: imx: gpcv2: move reset assert after requesting domain power up"
    d6a60e6ada49 drm/i915: Remove memory frequency calculation
    7883e13c2494 drm/amdkfd: fix boot failure when iommu is disabled in Picasso.
    a82fa1213d12 Revert "usb: core: hcd: Add support for deferring roothub registration"
    0979b923ff3f Revert "xhci: Set HCD flag to defer primary roothub registration"
    02a476ca886d media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt()
    ec0c91e2ebb8 vrf: Revert "Reset skb conntrack connection..."
    6467b75cf9d1 sfc: Fix reading non-legacy supported link modes
    f30822c0b4c3 scsi: core: Put LLD module refcnt after SCSI device is released

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a9ac5a388d682bcf0aad59d1b8ae8334846dfcd9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.77
Bruce Ashfield [Wed, 10 Nov 2021 13:07:12 +0000 (08:07 -0500)]
linux-yocto/5.10: update to v5.10.77

Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:

    09df347cfd18 Linux 5.10.77
    fbb91dadb512 perf script: Check session->header.env.arch before using it
    6f416815c505 riscv: Fix asan-stack clang build
    7a4cf25d8329 riscv: fix misalgned trap vector base address
    acb8832f6a1c scsi: ufs: ufs-exynos: Correct timeout value setting registers
    8ecddaca7942 KVM: s390: preserve deliverable_mask in __airqs_kick_single_vcpu
    e11a7355fb98 KVM: s390: clear kicked_mask before sleeping again
    727e5deca802 lan743x: fix endianness when accessing descriptors
    a7112b8eeb14 sctp: add vtag check in sctp_sf_ootb
    c2442f721972 sctp: add vtag check in sctp_sf_do_8_5_1_E_sa
    14c1e02b11c2 sctp: add vtag check in sctp_sf_violation
    dad2486414b5 sctp: fix the processing for COOKIE_ECHO chunk
    8c50693d25e4 sctp: fix the processing for INIT_ACK chunk
    ad111d4435d8 sctp: use init_tag from inithdr for ABORT chunk
    4509000a2515 phy: phy_ethtool_ksettings_set: Lock the PHY while changing settings
    5b88bb9377ee phy: phy_start_aneg: Add an unlocked version
    81780b624d1c phy: phy_ethtool_ksettings_set: Move after phy_start_aneg
    258c5fea44cf phy: phy_ethtool_ksettings_get: Lock the phy for consistency
    58722323d4bc net/tls: Fix flipped sign in async_wait.err assignment
    44e8c93e1e49 net: nxp: lpc_eth.c: avoid hang when bringing interface down
    c2af2092c9bb net: ethernet: microchip: lan743x: Fix dma allocation failure by using dma_set_mask_and_coherent
    bfa6fbdb4e39 net: ethernet: microchip: lan743x: Fix driver crash when lan743x_pm_resume fails
    e81bed557fe7 mlxsw: pci: Recycle received packet upon allocation failure
    be98be1a17e9 nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST
    aead02927af3 gpio: xgs-iproc: fix parsing of ngpios property
    863a423ee07b RDMA/sa_query: Use strscpy_pad instead of memcpy to copy a string
    2b7c5eed19d3 net: Prevent infinite while loop in skb_tx_hash()
    04121b10cdf0 cfg80211: correct bridge/4addr mode check
    aed897e96b19 net-sysfs: initialize uid and gid before calling net_ns_get_ownership
    b0a2cd38553c net: batman-adv: fix error handling
    36e911a16b37 regmap: Fix possible double-free in regcache_rbtree_exit()
    e51371bd687e reset: brcmstb-rescal: fix incorrect polarity of status bit
    2cf7d935d6ba arm64: dts: allwinner: h5: NanoPI Neo 2: Fix ethernet node
    10e40fb2f508 RDMA/mlx5: Set user priority for DCT
    24fd8e2f027d octeontx2-af: Display all enabled PF VF rsrc_alloc entries.
    c63d7f2ca99a nvme-tcp: fix possible req->offset corruption
    32f3db20f126 nvme-tcp: fix data digest pointer calculation
    4286c72c5321 nvmet-tcp: fix data digest pointer calculation
    d98883f6c33e IB/hfi1: Fix abba locking issue with sc_disable()
    c3e17e58f571 IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields
    ee4908f909b3 bpf: Fix error usage of map_fd and fdget() in generic_map_update_batch()
    dd2260ec643d bpf: Fix potential race in tail call compatibility check
    15dec6d8f864 tcp_bpf: Fix one concurrency problem in the tcp_bpf_send_verdict function
    cac6b043cea3 riscv, bpf: Fix potential NULL dereference
    01599bf7cc2b cgroup: Fix memory leak caused by missing cgroup_bpf_offline
    eb3b6805e3e9 drm/amdgpu: fix out of bounds write
    c21b4002214c drm/ttm: fix memleak in ttm_transfered_destroy
    69a7fa5cb0de mm, thp: bail out early in collapse_file for writeback page
    8fb858b74ac5 net: lan78xx: fix division by zero in send path
    4c22227e39c7 cfg80211: fix management registrations locking
    fa29cec42c2d cfg80211: scan: fix RCU in cfg80211_add_nontrans_list()
    db1191a529e4 nvme-tcp: fix H2CData PDU send accounting (again)
    5043fbd294f5 ocfs2: fix race between searching chunks and release journal_head from buffer_head
    01169a43353d mmc: sdhci-esdhc-imx: clear the buffer_read_ready to reset standard tuning circuit
    ee3213b117ce mmc: sdhci: Map more voltage level to SDHCI_POWER_330
    a95a76fc01a0 mmc: dw_mmc: exynos: fix the finding clock sample value
    12a46f72f499 mmc: mediatek: Move cqhci init behind ungate clock
    44c2bc2a6bbe mmc: cqhci: clear HALT state after CQE enable
    efe934629fff mmc: vub300: fix control-message timeouts
    f3dec7e7ace3 net/tls: Fix flipped sign in tls_err_abort() calls
    c828115a14ea Revert "net: mdiobus: Fix memory leak in __mdiobus_register"
    11c0406b4c33 nfc: port100: fix using -ERRNO as command type mask
    0b1b3e086b0a tipc: fix size validations for the MSG_CRYPTO type
    5aa5bab57957 ata: sata_mv: Fix the error handling of mv_chip_id()
    9a52798dce73 pinctrl: amd: disable and mask interrupts on probe
    01c2881bb0e0 Revert "pinctrl: bcm: ns: support updated DT binding as syscon subnode"
    017718dfbb6f usbnet: fix error return code in usbnet_probe()
    693ecbe8f799 usbnet: sanity check for maxpacket
    b663890d8544 ext4: fix possible UAF when remounting r/o a mmp-protected file system
    d4d9c065988c arm64: Avoid premature usercopy failure
    e184a21b5ccc powerpc/bpf: Fix BPF_MOD when imm == 1
    3f2c12ec8a3f io_uring: don't take uring_lock during iowq cancel
    5a768b4d3e1a ARM: 9141/1: only warn about XIP address when not compile testing
    15b278f94bbb ARM: 9139/1: kprobes: fix arch_init_kprobes() prototype
    c06d7d9bfcf6 ARM: 9138/1: fix link warning with XIP + frame-pointer
    8a6af97c31be ARM: 9134/1: remove duplicate memcpy() definition
    6ad8bbc9d301 ARM: 9133/1: mm: proc-macros: ensure *_tlb_fns are 4B aligned
    3ceaa85c331d ARM: 9132/1: Fix __get_user_check failure with ARM KASAN images

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d57bc7281015d09e2ff7a8a028dbf31559ff7331)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.14: update to v5.14.16
Bruce Ashfield [Wed, 10 Nov 2021 13:07:11 +0000 (08:07 -0500)]
linux-yocto/5.14: update to v5.14.16

Updating linux-yocto/5.14 to the latest korg -stable release that comprises
the following commits:

    f63179c1e68c Linux 5.14.16
    e874c870dfd8 KVM: x86: Take srcu lock in post_kvm_run_save()
    9ab39a3d0cec KVM: SEV-ES: fix another issue with string I/O VMGEXITs
    eb0461c572e9 KVM: x86: switch pvclock_gtod_sync_lock to a raw spinlock
    10242cc2ad79 KVM: x86/xen: Fix kvm_xen_has_interrupt() sleeping in kvm_vcpu_block()
    669a7e147ee6 perf script: Check session->header.env.arch before using it
    e914237feb46 riscv: Fix asan-stack clang build
    4606bbb6b19c riscv: Do not re-populate shadow memory with kasan_populate_early_shadow
    7567abe63797 riscv: fix misalgned trap vector base address
    20bd764387ac scsi: ibmvfc: Fix up duplicate response detection
    f6782c0ca808 perf script: Fix PERF_SAMPLE_WEIGHT_STRUCT support
    04ced3822a66 scsi: ufs: ufs-exynos: Correct timeout value setting registers
    d748da838b21 KVM: s390: preserve deliverable_mask in __airqs_kick_single_vcpu
    4faa35ce98c7 KVM: s390: clear kicked_mask before sleeping again
    ae566351ca18 octeontx2-af: Check whether ipolicers exists
    45d9cd363786 virtio-ring: fix DMA metadata flags
    52a936b037b5 net: hns3: expand buffer len for some debugfs command
    efccb66bc917 net: hns3: add more string spaces for dumping packets number of queue info in debugfs
    e5c6ad377c07 bpf: Move BPF_MAP_TYPE for INODE_STORAGE and TASK_STORAGE outside of CONFIG_NET
    b341612b659d watchdog: sbsa: only use 32-bit accessors
    de709ec74f8b bpf: Use kvmalloc for map values in syscall
    0717c71deae6 sctp: add vtag check in sctp_sf_ootb
    1c255b5f68f4 sctp: add vtag check in sctp_sf_do_8_5_1_E_sa
    dd82b3a345ab sctp: add vtag check in sctp_sf_violation
    44ef3ecbc24a sctp: fix the processing for COOKIE_ECHO chunk
    7975f42f1038 sctp: fix the processing for INIT_ACK chunk
    6277d424ead2 sctp: fix the processing for INIT chunk
    332933f9ae0a sctp: use init_tag from inithdr for ABORT chunk
    44d44bf72591 RDMA/irdma: Do not hold qos mutex twice on QP resume
    6392f26fbe92 RDMA/irdma: Set VLAN in UD work completion correctly
    7762917173cc RDMA/irdma: Process extended CQ entries correctly
    7860484eeb90 phy: phy_ethtool_ksettings_set: Lock the PHY while changing settings
    37a1b9befb73 phy: phy_start_aneg: Add an unlocked version
    1f9c99e0bb5b phy: phy_ethtool_ksettings_set: Move after phy_start_aneg
    2191b1e8eb3d phy: phy_ethtool_ksettings_get: Lock the phy for consistency
    e2b4dd261720 net/tls: Fix flipped sign in async_wait.err assignment
    373f94d73651 net: ethernet: microchip: lan743x: Fix skb allocation failure
    228862acb549 net: hns3: fix data endian problem of some functions of debugfs
    20d88211706b net: hns3: fix pause config problem after autoneg disabled
    7cc73feb57f6 net: nxp: lpc_eth.c: avoid hang when bringing interface down
    d8774769d198 net: ethernet: microchip: lan743x: Fix dma allocation failure by using dma_set_mask_and_coherent
    69d3c7785ec4 net: ethernet: microchip: lan743x: Fix driver crash when lan743x_pm_resume fails
    18bd5e285a78 mlxsw: pci: Recycle received packet upon allocation failure
    960f4a54b909 nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST
    030f05812d81 gpio: xgs-iproc: fix parsing of ngpios property
    c653c522e521 RDMA/sa_query: Use strscpy_pad instead of memcpy to copy a string
    5f6995295f65 RDMA/mlx5: Initialize the ODP xarray when creating an ODP MR
    ed894f5439ab net: Prevent infinite while loop in skb_tx_hash()
    f435287d719b cfg80211: correct bridge/4addr mode check
    da279dac227a net-sysfs: initialize uid and gid before calling net_ns_get_ownership
    a8f7359259dd net: batman-adv: fix error handling
    50cc1462a668 regmap: Fix possible double-free in regcache_rbtree_exit()
    c9e39214fddf reset: brcmstb-rescal: fix incorrect polarity of status bit
    86f9394073d8 arm64: dts: allwinner: h5: NanoPI Neo 2: Fix ethernet node
    63a97a9f95f2 ice: check whether PTP is initialized in ice_ptp_release()
    ebd0edad1cdf RDMA/mlx5: Set user priority for DCT
    e83b3cce4722 ice: Respond to a NETDEV_UNREGISTER event for LAG
    f1e3cd1cc802 octeontx2-af: Fix possible null pointer dereference.
    98db2a8c14be octeontx2-af: Display all enabled PF VF rsrc_alloc entries.
    c7752ec9ad39 nvme-tcp: fix possible req->offset corruption
    7258a6eef5be nvme-tcp: fix data digest pointer calculation
    daa12f0c1d1b nvmet-tcp: fix data digest pointer calculation
    5d33bd6b4d4d IB/hfi1: Fix abba locking issue with sc_disable()
    0d4395477741 IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields
    6525bfbd546f bpf: Fix error usage of map_fd and fdget() in generic_map_update_batch()
    adb17f828177 bpf: Fix potential race in tail call compatibility check
    6f226ffe4458 tcp_bpf: Fix one concurrency problem in the tcp_bpf_send_verdict function
    e1b80a5ebe54 riscv, bpf: Fix potential NULL dereference
    b529f88d9388 cgroup: Fix memory leak caused by missing cgroup_bpf_offline
    b7ca59297fa3 Revert "watchdog: iTCO_wdt: Account for rebooting on second timeout"
    0a8b7eba95a0 drm/amd/display: Fix deadlock when falling back to v2 from v3
    a363d80566cc drm/amd/display: Fallback to clocks which meet requested voltage on DCN31
    aeadb0662478 drm/amd/display: Moved dccg init to after bios golden init
    5a5f1f070c3e drm/amd/display: Increase watermark latencies for DCN3.1
    85cf47160d0e drm/amd/display: increase Z9 latency to workaround underflow in Z9
    01f39421d590 drm/amd/display: Fix prefetch bandwidth calculation for DCN3.1
    b60efcaf5e8b drm/amd/display: Limit display scaling to up to true 4k for DCN 3.1
    c3ae5cf3e3ee drm/amdgpu: support B0&B1 external revision id for yellow carp
    d3ed72495a59 drm/amdgpu: fix out of bounds write
    9eb4bdd554fc drm/amdgpu: Fix even more out of bound writes from debugfs
    d87ac6054e3d drm/i915/dp: Skip the HW readout of DPCD on disabled encoders
    7650327e7174 drm/i915: Catch yet another unconditioal clflush
    0ed2dfb5f598 drm/i915: Convert unconditional clflush to drm_clflush_virt_range()
    132a3d998d67 drm/ttm: fix memleak in ttm_transfered_destroy
    15a4f2bdbdfd mac80211: mesh: fix HE operation element length check
    ce277959d77c arm64: dts: imx8mm-kontron: Make sure SOC and DRAM supply voltages are correct
    8c684aaceaf3 arm64: dts: imx8mm-kontron: Set lower limit of VDD_SNVS to 800 mV
    f5eaf91dd8af arm64: dts: imx8mm-kontron: Fix connection type for VSC8531 RGMII PHY
    da32086a0203 arm64: dts: imx8mm-kontron: Fix CAN SPI clock frequency
    d2bdcd23cba9 arm64: dts: imx8mm-kontron: Fix polarity of reg_rst_eth2
    5fcb6fce74ff mm: khugepaged: skip huge page collapse for special files
    5e669d8ab30a mm, thp: bail out early in collapse_file for writeback page
    6ac017254b59 mm: filemap: check if THP has hwpoisoned subpage for PMD page fault
    8821fedc7f83 mm: hwpoison: remove the unnecessary THP check
    67979d186c51 drm/amd/display: Require immediate flip support for DCN3.1 planes
    75b1b172ae5a net: lan78xx: fix division by zero in send path
    3c897f39b71f cfg80211: fix management registrations locking
    2a000d137589 cfg80211: scan: fix RCU in cfg80211_add_nontrans_list()
    e6d02b0da2df ftrace/nds32: Update the proto for ftrace_trace_function to match ftrace_stub
    ea081b13b00e nvme-tcp: fix H2CData PDU send accounting (again)
    2e382600e885 ocfs2: fix race between searching chunks and release journal_head from buffer_head
    7335acd51f6b block: Fix partition check for host-aware zoned block devices
    10bcaafc5753 mmc: sdhci-esdhc-imx: clear the buffer_read_ready to reset standard tuning circuit
    78873d5a2717 mmc: sdhci-pci: Read card detect from ACPI for Intel Merrifield
    b572d6c18511 mmc: sdhci: Map more voltage level to SDHCI_POWER_330
    ac6f66f208a1 mmc: dw_mmc: exynos: fix the finding clock sample value
    b1ad3ecffaac mmc: tmio: reenable card irqs after the reset callback
    e1b94f0e744f mmc: mediatek: Move cqhci init behind ungate clock
    9106d68c8082 mmc: cqhci: clear HALT state after CQE enable
    aa2f3e425e22 mmc: vub300: fix control-message timeouts
    e41473543f75 net/tls: Fix flipped sign in tls_err_abort() calls
    8ba94a7f7b9f Revert "net: mdiobus: Fix memory leak in __mdiobus_register"
    836f40777d58 nfc: port100: fix using -ERRNO as command type mask
    e029c9828c5b tipc: fix size validations for the MSG_CRYPTO type
    43849df432c9 ata: sata_mv: Fix the error handling of mv_chip_id()
    66a1c8748068 pinctrl: amd: disable and mask interrupts on probe
    18f31a907c9f Revert "pinctrl: bcm: ns: support updated DT binding as syscon subnode"
    b5c410a4af7d usbnet: fix error return code in usbnet_probe()
    7e8b6a4f18ed usbnet: sanity check for maxpacket
    a350df591870 ARM: 9148/1: handle CONFIG_CPU_ENDIAN_BE32 in arch/arm/kernel/head.S
    351d0f587b4c ARM: 9141/1: only warn about XIP address when not compile testing
    a51d78193d21 ARM: 9139/1: kprobes: fix arch_init_kprobes() prototype
    4108f38c05bd ARM: 9138/1: fix link warning with XIP + frame-pointer
    6aa2d9cf81f9 ARM: 9134/1: remove duplicate memcpy() definition
    78a7a2694e69 ARM: 9133/1: mm: proc-macros: ensure *_tlb_fns are 4B aligned
    e108afbd38a5 ARM: 9132/1: Fix __get_user_check failure with ARM KASAN images

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ae32a59571abec59cc9f19bf9289ec9472b3923b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agovim: add patch number to CVE-2021-3778 patch
Ross Burton [Wed, 10 Nov 2021 10:26:27 +0000 (10:26 +0000)]
vim: add patch number to CVE-2021-3778 patch

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 222be29051a3543ac63a0eb07019e90d44429b16)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agovim: fix CVE-2021-3796, CVE-2021-3872, and CVE-2021-3875
Ross Burton [Tue, 9 Nov 2021 23:13:07 +0000 (23:13 +0000)]
vim: fix CVE-2021-3796, CVE-2021-3872, and CVE-2021-3875

Backport patches from upstream to fix these CVEs.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b493eb4f9a6bb75a2f01a53b6c70762845bf79f9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosquashfs-tools: follow-up fix for CVE-2021-41072
Kai Kang [Tue, 9 Nov 2021 02:04:05 +0000 (10:04 +0800)]
squashfs-tools: follow-up fix for CVE-2021-41072

Squash a follow-up fix for CVE-2021-41072 from upstream:
https://github.com/plougher/squashfs-tools/commit/19fcc93

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 70709ff0741ed9fb9c111ef4b7aa2ee7432453f4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomirrors: Add uninative mirror on kernel.org
Richard Purdie [Mon, 8 Nov 2021 16:00:23 +0000 (16:00 +0000)]
mirrors: Add uninative mirror on kernel.org

At the last nas outage, we realised that we don't have good mirrors of the
uninative tarball if our main system can't be accessed. kernel.org mirrors
some Yocto Project data so we've ensured uninative is there. Add the appropriate
mirror url to make use of that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1833cb0c5841afafb468b963b74b63366b09a134)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoavahi: update CVE id fixed by local-ping.patch
Chen Qi [Mon, 8 Nov 2021 08:08:07 +0000 (00:08 -0800)]
avahi: update CVE id fixed by local-ping.patch

CVE-2021-36217 is treated as a duplicate of CVE-2021-3502.
Update the local-ping.patch to mark it resolve both.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4d75d6c39f1faeb38191b55f1fa9311b63fcfb29)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoglibc-version.inc: remove branch= from GLIBC_GIT_URI
Anuj Mittal [Thu, 11 Nov 2021 15:39:46 +0000 (23:39 +0800)]
glibc-version.inc: remove branch= from GLIBC_GIT_URI

GLIBC_GIT_URI is used along with branch=${SRCBRANCH} so no need to add
it here.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4c9cfe326913d28f82e6a91d1eeae55a6651f0f7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobitbake.conf: Fix corruption of GNOME mirror url
Richard Purdie [Tue, 2 Nov 2021 11:19:28 +0000 (11:19 +0000)]
bitbake.conf: Fix corruption of GNOME mirror url

The url changes from the script accidentally corrupted this mirror
url, fix it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a16dd60fb058ec2257eb1c6c0baa86e11e78cb42)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogo-helloworld/glide: Fix urls
Richard Purdie [Tue, 2 Nov 2021 17:50:57 +0000 (17:50 +0000)]
go-helloworld/glide: Fix urls

Handle github protocol changes not covered by the script due to variable indirection.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3bb1cb476dbad1037522970af9afd69691a7033c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorecipes: Update github.com urls to use https
Richard Purdie [Tue, 2 Nov 2021 11:38:56 +0000 (11:38 +0000)]
recipes: Update github.com urls to use https

Github has announced there will be no more git:// fetching from their servers:

https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git

and they're about to start having brownout periods to encourage people
to update. This runs the conversion script over OE-Core to update our
urls to use https instead of git.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b37b61e9a1e448a34957db9ae39285d21352552e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoscripts/convert-srcuri: Update SRC_URI conversion script to handle github url changes
Richard Purdie [Tue, 2 Nov 2021 11:34:21 +0000 (11:34 +0000)]
scripts/convert-srcuri: Update SRC_URI conversion script to handle github url changes

Github are dropping support for git:// protocol fetching. Update the script
to learn about corner cases found in the previous conversion and
support remapping the github urls as needed too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e59fe8279b209f67ff79b9d6dbb69389a64db236)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agometa/scripts: Manual git url branch additions
Richard Purdie [Fri, 29 Oct 2021 12:34:24 +0000 (13:34 +0100)]
meta/scripts: Manual git url branch additions

Following the scripted conversion adding branches to git://
SRC_URI entries, add the remaining references, mainly in the selftests
and recipetool.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5340c0d688036c1be6c938f05d8a8c1e3b49ec38)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agometa: Add explict branch to git SRC_URIs
Richard Purdie [Fri, 29 Oct 2021 12:20:57 +0000 (13:20 +0100)]
meta: Add explict branch to git SRC_URIs

There is uncertainty about the default branch name in git going forward.
To try and cover the different possible outcomes, add branch names to all
git:// and gitsm:// SRC_URI entries.

This update was made with the script added to contrib in this patch which
aims to help others convert other layers.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b51c405faf6f8c0365f7533bfaf470d79152a463)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopseudo: Add fcntl64 wrapper
Richard Purdie [Fri, 29 Oct 2021 10:14:42 +0000 (11:14 +0100)]
pseudo: Add fcntl64 wrapper

Add fcntl64 wrapper which hopefully fixes issues seen in findutils and the find
command in the libtool removal code when built with LFS compile flags on Gentoo.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f26867fe4daec7299f59a82ae4a0d70cceb3e082)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinunistring: Add missing gperf-native dependency
Richard Purdie [Fri, 29 Oct 2021 14:13:28 +0000 (15:13 +0100)]
linunistring: Add missing gperf-native dependency

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 73d3efbaeb2f412ab8d3491d2da3f3124fc009f3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobitbake.conf: Use wayland distro feature for native builds
Tom Hochstein [Sun, 7 Nov 2021 18:50:16 +0000 (12:50 -0600)]
bitbake.conf: Use wayland distro feature for native builds

The wayland-scanner is missing from SDKs with weston, but the weston build
requires wayland-scanner. Allow the distro feature in order to include
the wayland-scanner packages via nativesdk-packagegroup-sdk-host.bb.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 858cc6f257e22e39df83f4808ea27c6d12cd1b80)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agonativesdk-packagegroup-sdk-host.bb: Update host tools for wayland
Tom Hochstein [Sun, 7 Nov 2021 18:50:15 +0000 (12:50 -0600)]
nativesdk-packagegroup-sdk-host.bb: Update host tools for wayland

The wayland-scanner host tool required to build weston is moved to the
wayland-tools package, so update the SDK host tools list accordingly.

Also, the weston build requires wayland-scanner.pc to find wayland-scanner,
so add wayland-dev.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 31ed91bdbb0ec05730fb98d7cc523bb46aca50e3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowayland: Fix wayland-tools packaging
Tom Hochstein [Sun, 7 Nov 2021 18:50:14 +0000 (12:50 -0600)]
wayland: Fix wayland-tools packaging

There are some packaging problems due to the wayland-tools packaging
implementation. The wayland-tools package currently looks like this:

wayland-tools
└── usr
    â”œâ”€â”€ bin
    â”‚   â””── wayland-scanner
    â””── share
        â””── wayland
            â”œâ”€â”€ wayland.dtd
            â”œâ”€â”€ wayland-scanner.mk
            â””── wayland.xml

The files wayland.dtd and wayland.xml belong in the main package,
while wayland-scanner.mk belongs in wayland-dev.

Fix the wayland.dtd and wayland.xml packaging by prepending the
wayland-tools package and dropping the main package FILES variable
override. The file wayland-scanner.mk is included in the main
package by default, and so must be explicitly added to wayland-dev.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a31fbec45d24df5b74091940d0e0b2daf34d8492)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibx11-compose-data: Update LICENSE to better reflect reality
Peter Kjellerstedt [Fri, 5 Nov 2021 18:57:37 +0000 (19:57 +0100)]
libx11-compose-data: Update LICENSE to better reflect reality

There are no traces of neither the BSD-2-Clause license nor the
BSD-4-Clause license being used in the code. There is one occurrence
of the BSD-1-Clause license. On the other hand, HPND and
HPND-sell-variant are all over the place.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b0f30792fd0ea41f1d1590dbe0452c956e018c82)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibx11: Update LICENSE to better reflect reality
Peter Kjellerstedt [Fri, 5 Nov 2021 18:57:36 +0000 (19:57 +0100)]
libx11: Update LICENSE to better reflect reality

There are no traces of neither the BSD-2-Clause license nor the
BSD-4-Clause license being used in the code. There is one occurrence
of the BSD-1-Clause license. On the other hand, HPND and
HPND-sell-variant are all over the place.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5cd90092e21ad245df40a60feed3598dd9c6b98b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibpcre/libpcre2: correct SRC_URI
Alexander Kanavin [Fri, 5 Nov 2021 08:48:12 +0000 (09:48 +0100)]
libpcre/libpcre2: correct SRC_URI

http://ftp.pcre.org is down, take sources according to links on
http://www.pcre.org

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 81ba0ba3e8d9c08b8dc69c24fb1d91446739229b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agokernel-devsrc: Add vdso.lds and other build files for riscv64 as well
Khem Raj [Wed, 3 Nov 2021 21:56:39 +0000 (14:56 -0700)]
kernel-devsrc: Add vdso.lds and other build files for riscv64 as well

These additional bits are needed on riscv64 as well
Fixes
make[1]: *** No rule to make target 'arch/riscv/kernel/vdso/vdso.lds', needed by 'arch/riscv/kernel/vdso/vdso.so.dbg'.  Stop.
make: *** [arch/riscv/Makefile:114: vdso_prepare] Error 2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 446972600ed51ca75a2a4e579cdc3e6dd2e05195)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomeson: set objcopy in the cross and native toolchain files
Ross Burton [Thu, 4 Nov 2021 13:45:29 +0000 (13:45 +0000)]
meson: set objcopy in the cross and native toolchain files

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0a589998e717ae3865f0db5abe6005ab4eee86d9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocreate-spdx: Set the Organization field via a variable
Andres Beltran [Thu, 4 Nov 2021 16:48:56 +0000 (16:48 +0000)]
create-spdx: Set the Organization field via a variable

Currently, the "Organization" field for SBOMs is hard-coded in
create-spdx. Create a new variable SPDX_ORG to make this field more
generic.

Signed-off-by: Andres Beltran <abeltran@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f239814f3f5d9bd54de54b0f2a5081067336e32b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosstate: another fix for touching files inside pseudo
Jose Quaresma [Sun, 7 Nov 2021 11:36:52 +0000 (11:36 +0000)]
sstate: another fix for touching files inside pseudo

This patch is a fixup for 676757f "sstate: fix touching files inside pseudo"

running the 'id' command inside the sstate_unpack_package
function shows that this funcion run inside the pseudo:

 uid=0(root) gid=0(root) groups=0(root)

The check for [ -w ${SSTATE_PKG} ] and [ -O ${SSTATE_PKG}.siginfo ]
will always return true and the touch can fail when the real user
don't have permission or in readonly filesystem.

As the documentation refers:
- the file test operator "-w" check if the file has write permission
(for the user running the test).
- the file test operator "-O" check if you are owner of file

We can avoid this test running the touch and mask any return errors
that we have.

(From OE-Core rev: 29fc85997ade490ae46ffca37ef8e1a56957c876)

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5b9210d66c78bb3f79056e5586cea7b0edd714a9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agostrace: fix build against 5.15 kernel/kernel-headers
Bruce Ashfield [Thu, 4 Nov 2021 19:48:26 +0000 (15:48 -0400)]
strace: fix build against 5.15 kernel/kernel-headers

kernel 5.15 removed ipx.h from the uapi, but strace hasn't adjusted
its tests to the removal.

There is a WIP patch on the esyr/5.15 branch that solves the problem,
so we grab it here, adjust for context and fix our build problem.

When strace updates to 5.15, and we can bump our version and drop
this patch.

Upstream-Status: Backport [commit cca828197c0e16c2599129114]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a8c4ba727251e53494a4aec483fcc51982e6fb75)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto-rt/5.10: update to -rt54
Bruce Ashfield [Thu, 4 Nov 2021 19:48:24 +0000 (15:48 -0400)]
linux-yocto-rt/5.10: update to -rt54

Integrating the following commit(s) to linux-yocto-rt/5.10:

    f01089784fd6 Linux 5.10.73-rt54
    f34df8f3c666 Linux 5.10.65-rt53
    271c5e6e4064 Linux 5.10.59-rt52
    1a4bba4bc32c locking/rwsem-rt: Remove might_sleep() in __up_read()
    ff591a2bdcfb Linux 5.10.59-rt51
    8d185ac23c11 Linux 5.10.58-rt50
    2c0fd44153f5 Linux 5.10.56-rt49
    8b083d3c993c printk: Enhance the condition check of msleep in pr_flush()
    448cd29e3bc9 Linux 5.10.56-rt48

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7c7dc8f38cf1e874a7722389c95d895e10855d9a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.76
Bruce Ashfield [Thu, 4 Nov 2021 19:48:22 +0000 (15:48 -0400)]
linux-yocto/5.10: update to v5.10.76

Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:

    378e85d1aeb5 Linux 5.10.76
    cfa79faf7e1f pinctrl: stm32: use valid pin identifier in stm32_pinctrl_resume()
    c56c801391c3 ARM: 9122/1: select HAVE_FUTEX_CMPXCHG
    d088db8637bb selftests: bpf: fix backported ASSERT_FALSE
    3a845fa00fd7 e1000e: Separate TGP board type from SPT
    021b6d11e590 tracing: Have all levels of checks prevent recursion
    3a0dc2e35a5d net: mdiobus: Fix memory leak in __mdiobus_register
    cfe9266213c4 bpf, test, cgroup: Use sk_{alloc,free} for test cases
    188907c25218 s390/pci: fix zpci_zdev_put() on reserve
    f18b90e9366f can: isotp: isotp_sendmsg(): fix TX buffer concurrent access in isotp_sendmsg()
    2304dfb548a4 scsi: core: Fix shost->cmd_per_lun calculation in scsi_add_host_with_dma()
    c58654f344dd net: hns3: fix for miscalculation of rx unused desc
    96fe5061291d sched/scs: Reset the shadow stack when idle_task_exit
    96f0aebf29be scsi: qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()
    90c8e8c0829b scsi: iscsi: Fix set_param() handling
    0eb254479685 Input: snvs_pwrkey - add clk handling
    ea9c1f5d8a3a perf/x86/msr: Add Sapphire Rapids CPU support
    7a5a1f09c8b4 libperf tests: Fix test_stat_cpu
    e56a3e7ae353 ALSA: hda: avoid write to STATESTS if controller is in reset
    85c8d8c1609d platform/x86: intel_scu_ipc: Update timeout value in comment
    9f591cbdbed3 isdn: mISDN: Fix sleeping function called from invalid context
    ab4f542b515b ARM: dts: spear3xx: Fix gmac node
    15d3ad79885b net: stmmac: add support for dwmac 3.40a
    f9d16a428489 btrfs: deal with errors when checking if a dir entry exists during log replay
    369db2a91d5c ALSA: hda: intel: Allow repeatedly probing on codec configuration errors
    81d8e70cdce4 gcc-plugins/structleak: add makefile var for disabling structleak
    69078a94365a net: hns3: fix the max tx size according to user manual
    f40c2281d2c0 drm: mxsfb: Fix NULL pointer dereference crash on unload
    96835b68d7b3 net: bridge: mcast: use multicast_membership_interval for IGMPv3
    0e033cb40761 selftests: netfilter: remove stray bash debug line
    f8a6541345c2 netfilter: Kconfig: use 'default y' instead of 'm' for bool config option
    7f221ccbee4e isdn: cpai: check ctr->cnr to avoid array index out of bound
    77c0ef979e32 nfc: nci: fix the UAF of rf_conn_info object
    8f042315fcc4 KVM: nVMX: promptly process interrupts delivered while in guest mode
    b41fd8f5d2ad mm, slub: fix incorrect memcg slab count for bulk free
    568f906340b4 mm, slub: fix potential memoryleak in kmem_cache_open()
    48843dd23c7b mm, slub: fix mismatch between reconstructed freelist depth and cnt
    c5c2a80368e9 powerpc/idle: Don't corrupt back chain when going idle
    197ec50b2df1 KVM: PPC: Book3S HV: Make idle_kvm_start_guest() return 0 if it went to guest
    fbd724c49bea KVM: PPC: Book3S HV: Fix stack handling in idle_kvm_start_guest()
    9258f58432c5 powerpc64/idle: Fix SP offsets when saving GPRs
    3e16d9d525a7 net: dsa: mt7530: correct ds->num_ports
    16802fa4c33e audit: fix possible null-pointer dereference in audit_filter_rules
    0d867a359979 ASoC: DAPM: Fix missing kctl change notifications
    a2606acf418e ALSA: hda/realtek: Add quirk for Clevo PC50HS
    6411397b6d7a ALSA: usb-audio: Provide quirk for Sennheiser GSP670 Headset
    b721500c979b vfs: check fd has read access in kernel_read_file_from_fd()
    895ceeff31b1 elfcore: correct reference to CONFIG_UML
    3cda4bfffd4f userfaultfd: fix a race between writeprotect and exit_mmap()
    93be0eeea14c ocfs2: mount fails with buffer overflow in strlen
    f1b98569e81c ocfs2: fix data corruption after conversion from inline format
    1727e8688d2e ceph: fix handling of "meta" errors
    603d4bcc0fcd ceph: skip existing superblocks that are blocklisted or shut down when mounting
    d48db508f911 can: j1939: j1939_xtp_rx_rts_session_new(): abort TP less than 9 bytes
    5abc9b9d3ca5 can: j1939: j1939_xtp_rx_dat_one(): cancel session if receive TP.DT with error length
    864e77771a24 can: j1939: j1939_netdev_start(): fix UAF for rx_kref of j1939_priv
    ecfccb1c58c9 can: j1939: j1939_tp_rxtimer(): fix errant alert in j1939_tp_rxtimer
    053bc12df0d6 can: isotp: isotp_sendmsg(): add result check for wait_event_interruptible()
    0917fb04069a can: isotp: isotp_sendmsg(): fix return error on FC timeout on TX path
    28f28e4bc3a5 can: peak_pci: peak_pci_remove(): fix UAF
    9697ad6395f9 can: peak_usb: pcan_usb_fd_decode_status(): fix back to ERROR_ACTIVE state notification
    4758e92e75ca can: rcar_can: fix suspend/resume
    4a0928c3ebca net: enetc: fix ethtool counter name for PM0_TERR
    00ad7a015409 drm/panel: ilitek-ili9881c: Fix sync for Feixin K101-IM2BYL02 panel
    eccd00728b1a ice: Add missing E810 device ids
    6418508a3ac2 e1000e: Fix packet loss on Tiger Lake and later
    29f1bdcaa3dd net: stmmac: Fix E2E delay mechanism
    d36b15e3e7b5 net: hns3: disable sriov before unload hclge layer
    6a72e1d78a2f net: hns3: fix vf reset workqueue cannot exit
    32b860d364d2 net: hns3: schedule the polling again when allocation fails
    96c013f40c9b net: hns3: add limit ets dwrr bandwidth cannot be 0
    21f61d10435c net: hns3: reset DWRR of unused tc to zero
    53770a411559 powerpc/smp: do not decrement idle task preempt count in CPU offline
    81dbd898fb7b NIOS2: irqflags: rename a redefined register name
    6edf99b000d6 net: dsa: lantiq_gswip: fix register definition
    ef97219d5fec ipv6: When forwarding count rx stats on the orig netdev
    38d984e5e845 tcp: md5: Fix overlap between vrf and non-vrf keys
    c28bea6b876f lan78xx: select CRC32
    9c8943812dac netfilter: ipvs: make global sysctl readonly in non-init netns
    911e01990c70 netfilter: ip6t_rt: fix rt0_hdr parsing in rt_mt6
    69ea08c1b539 ice: fix getting UDP tunnel entry
    842fce43190c ASoC: wm8960: Fix clock configuration on slave mode
    39afed394cc6 dma-debug: fix sg checks in debug_dma_map_sg()
    2a670c323055 netfilter: xt_IDLETIMER: fix panic that occurs when timer_type has garbage value
    0f4308a164a9 NFSD: Keep existing listeners on portlist error
    546c04c85791 xtensa: xtfpga: Try software restart before simulating CPU reset
    bfef5d826276 xtensa: xtfpga: use CONFIG_USE_OF instead of CONFIG_OF
    d8284c981c1c drm/amdgpu/display: fix dependencies for DRM_AMD_DC_SI
    101e1bcb1147 xen/x86: prevent PVH type from getting clobbered
    a6285b1b2212 block: decode QUEUE_FLAG_HCTX_ACTIVE in debugfs output
    85c1827eeee7 ARM: dts: at91: sama5d2_som1_ek: disable ISC node by default
    5489c1bed5b8 arm: dts: vexpress-v2p-ca9: Fix the SMB unit-address
    f59da9f7efa7 io_uring: fix splice_fd_in checks backport typo
    b6f32897af19 xhci: add quirk for host controllers that don't update endpoint DCS
    b3b7f831a49b parisc: math-emu: Fix fall-through warnings

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 61f8f7d18417334e3b13e4447f318107372dcfe0)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.14: update to v5.14.15
Bruce Ashfield [Thu, 4 Nov 2021 19:48:21 +0000 (15:48 -0400)]
linux-yocto/5.14: update to v5.14.15

Updating linux-yocto/5.14 to the latest korg -stable release that comprises
the following commits:

    b46092c7497e Linux 5.14.15
    96e4ea34f6d7 pinctrl: stm32: use valid pin identifier in stm32_pinctrl_resume()
    4850e9e3c6a3 ARM: 9122/1: select HAVE_FUTEX_CMPXCHG
    80344938e468 e1000e: Separate TGP board type from SPT
    0c4e87ba11eb net: mdiobus: Fix memory leak in __mdiobus_register
    2f4356963624 bpf, test, cgroup: Use sk_{alloc,free} for test cases
    4e5d794a2743 s390/pci: fix zpci_zdev_put() on reserve
    e27170d5f2fc s390/pci: cleanup resources only if necessary
    2be38f02ec89 scsi: core: Fix shost->cmd_per_lun calculation in scsi_add_host_with_dma()
    ff261f9aa654 autofs: fix wait name hash calculation in autofs_wait()
    1009f098dfbe drm/kmb: Limit supported mode to 1080p
    217d42e8b835 drm/kmb: Enable alpha blended second plane
    c1ad040dbea8 net/mlx5: Lag, change multipath and bonding to be mutually exclusive
    d2ec7d208d8e net/mlx5: Lag, move lag destruction to a workqueue
    42b6431f1c17 net: hns3: fix for miscalculation of rx unused desc
    f1972f14f16e sched/scs: Reset the shadow stack when idle_task_exit
    c4813d308517 mm/thp: decrease nr_thps in file's mapping on THP split
    a7fbb56e6c94 scsi: qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()
    c8c1b2183fb8 scsi: mpi3mr: Fix duplicate device entries when scanning through sysfs
    ce527668277c scsi: storvsc: Fix validation for unsolicited incoming packets
    08d82a9b65e7 scsi: iscsi: Fix set_param() handling
    6408a4c8da2f ASoC: codec: wcd938x: Add irq config support
    9eb2aaede632 Input: snvs_pwrkey - add clk handling
    9dd0389d77b9 perf/x86/msr: Add Sapphire Rapids CPU support
    11d6811cbde0 libperf tests: Fix test_stat_cpu
    65eec1fb58c1 libperf test evsel: Fix build error on !x86 architectures
    b6062308c510 spi-mux: Fix false-positive lockdep splats
    722ef19a161c spi: Fix deadlock when adding SPI controllers on SPI buses
    785d69099ef4 ALSA: hda: avoid write to STATESTS if controller is in reset
    3972b03ed085 platform/x86: intel_scu_ipc: Update timeout value in comment
    6659008140b4 platform/x86: intel_scu_ipc: Increase virtual timeout to 10s
    f5966ba53013 isdn: mISDN: Fix sleeping function called from invalid context
    ef24577a52ba ARM: dts: spear3xx: Fix gmac node
    834cc3fc2b99 net: stmmac: add support for dwmac 3.40a
    0c878175dd2f btrfs: deal with errors when checking if a dir entry exists during log replay
    051995bd0f42 ALSA: hda: intel: Allow repeatedly probing on codec configuration errors
    9906da162dc8 objtool: Update section header before relocations
    e73e72be194e objtool: Check for gelf_update_rel[a] failures
    515e03331255 bitfield: build kunit tests without structleak plugin
    3f66b6e01c82 thunderbolt: build kunit tests without structleak plugin
    d9f94a8ec35a device property: build kunit tests without structleak plugin
    2c793a67d71b iio/test-format: build kunit tests without structleak plugin
    930f561aae28 gcc-plugins/structleak: add makefile var for disabling structleak
    1d1af4da1c44 drm/msm/a6xx: Serialize GMU communication
    bbdd158b40b6 kunit: fix reference count leak in kfree_at_end
    dfcc47a1fe36 KVM: MMU: Reset mmu->pkru_mask to avoid stale data
    e647d75565ab net: hns3: fix the max tx size according to user manual
    b0e6db0656dd drm: mxsfb: Fix NULL pointer dereference crash on unload
    56a3d9637b77 KVM: SEV-ES: Set guest_state_protected after VMSA update
    d469678d6b50 net: bridge: mcast: use multicast_membership_interval for IGMPv3
    8f20259f186e selftests: netfilter: remove stray bash debug line
    057aef8df940 netfilter: Kconfig: use 'default y' instead of 'm' for bool config option
    cc20226e218a isdn: cpai: check ctr->cnr to avoid array index out of bound
    6197eb050cfa nfc: nci: fix the UAF of rf_conn_info object
    fb82d4dbee95 KVM: x86: remove unnecessary arguments from complete_emulator_pio_in
    66e46fe3f276 KVM: x86: split the two parts of emulator_pio_in
    9887c1668ada KVM: x86: check for interrupts before deciding whether to exit the fast path
    169577c8840e KVM: x86: leave vcpu->arch.pio.count alone in emulator_pio_in_out
    62a1a254ed83 KVM: SEV-ES: reduce ghcb_sa_len to 32 bits
    3f54362dc7d7 KVM: SEV-ES: go over the sev_pio_data buffer in multiple passes if needed
    4988e000b3a8 KVM: SEV-ES: fix length of string I/O
    727286b23f93 KVM: SEV-ES: keep INS functions together
    98c55c508df0 KVM: SEV-ES: clean up kvm_sev_es_ins/outs
    abcae3cd6272 KVM: SEV-ES: rename guest_ins_data to sev_pio_data
    6697ceb9f6cd KVM: SEV: Flush cache on non-coherent systems before RECEIVE_UPDATE_DATA
    495bd03b6ba5 KVM: nVMX: promptly process interrupts delivered while in guest mode
    dc94b8b3f28a mm, slub: fix incorrect memcg slab count for bulk free
    159d8cfbd042 mm, slub: fix potential use-after-free in slab_debugfs_fops
    42b81946e3ac mm, slub: fix potential memoryleak in kmem_cache_open()
    ec93d4a439c3 mm, slub: fix mismatch between reconstructed freelist depth and cnt
    65ede7bd9713 powerpc/idle: Don't corrupt back chain when going idle
    5a8c22e7fb66 KVM: PPC: Book3S HV: Make idle_kvm_start_guest() return 0 if it went to guest
    6d077c37c464 KVM: PPC: Book3S HV: Fix stack handling in idle_kvm_start_guest()
    e8735e2e306f ucounts: Fix signal ucount refcounting
    1eb825343d63 ucounts: Proper error handling in set_cred_ucounts
    f7f7e4dbc41c ucounts: Pair inc_rlimit_ucounts with dec_rlimit_ucoutns in commit_creds
    32880dcecb51 ucounts: Move get_ucounts from cred_alloc_blank to key_change_session_keyring
    04b938ff2d2c net: dsa: mt7530: correct ds->num_ports
    4e9e46a70020 audit: fix possible null-pointer dereference in audit_filter_rules
    b1a34f86b41f blk-cgroup: blk_cgroup_bio_start() should use irq-safe operations on blkg->iostat_cpu
    152f35191d12 ASoC: nau8824: Fix headphone vs headset, button-press detection no longer working
    a60ce083dcbf ASoC: DAPM: Fix missing kctl change notifications
    9da68a107d07 ALSA: hda/realtek: Add quirk for Clevo PC50HS
    896fc3ab9fc1 ALSA: usb-audio: Provide quirk for Sennheiser GSP670 Headset
    b77ba1e02345 mm/secretmem: fix NULL page->mapping dereference in page_is_secretmem()
    abe046ddf311 vfs: check fd has read access in kernel_read_file_from_fd()
    3681e4772c78 elfcore: correct reference to CONFIG_UML
    9ee4e9ae98f1 mm/mempolicy: do not allow illegal MPOL_F_NUMA_BALANCING | MPOL_LOCAL in mbind()
    149958ecd062 userfaultfd: fix a race between writeprotect and exit_mmap()
    6de91691768c mm/userfaultfd: selftests: fix memory corruption with thp enabled
    0e677ea5b739 ocfs2: mount fails with buffer overflow in strlen
    fa9b6b6c953e ocfs2: fix data corruption after conversion from inline format
    909c8482d8ac tracing: Have all levels of checks prevent recursion
    54dc25f4e31e ceph: fix handling of "meta" errors
    0ff7b35631ac ceph: skip existing superblocks that are blocklisted or shut down when mounting
    d832133cf228 can: j1939: j1939_xtp_rx_rts_session_new(): abort TP less than 9 bytes
    03ec23e55e3e can: j1939: j1939_xtp_rx_dat_one(): cancel session if receive TP.DT with error length
    6e8811707e2d can: j1939: j1939_netdev_start(): fix UAF for rx_kref of j1939_priv
    fb545be86c53 can: j1939: j1939_tp_rxtimer(): fix errant alert in j1939_tp_rxtimer
    013e7890663d can: isotp: isotp_sendmsg(): fix TX buffer concurrent access in isotp_sendmsg()
    a76abedd2be3 can: isotp: isotp_sendmsg(): add result check for wait_event_interruptible()
    1d12d110a820 can: isotp: isotp_sendmsg(): fix return error on FC timeout on TX path
    0e5afdc2315b can: peak_pci: peak_pci_remove(): fix UAF
    44c353a14375 can: peak_usb: pcan_usb_fd_decode_status(): fix back to ERROR_ACTIVE state notification
    e18b9f4d62c1 can: rcar_can: fix suspend/resume
    113f7a1f3421 net: enetc: make sure all traffic classes can send large frames
    284c68cae7e0 net: enetc: fix ethtool counter name for PM0_TERR
    eff55ddd240f drm/kmb: Enable ADV bridge after modeset
    c0179dbae96d drm/kmb: Corrected typo in handle_lcd_irq
    566ec004ed8b drm/kmb: Disable change of plane parameters
    2317b45fb3d2 drm/kmb: Remove clearing DPHY regs
    97cfc4b28c4d drm/kmb: Work around for higher system clock
    4dbf3d658540 drm/panel: ilitek-ili9881c: Fix sync for Feixin K101-IM2BYL02 panel
    3b194affe445 net/mlx5e: IPsec: Fix work queue entry ethernet segment checksum flags
    ea7a4d6132ce net/mlx5e: IPsec: Fix a misuse of the software parser's fields
    e867502bc4f6 ice: Add missing E810 device ids
    9b76c3fedb24 igc: Update I226_K device ID
    3300633367b6 e1000e: Fix packet loss on Tiger Lake and later
    95c0a0c5ec88 ptp: Fix possible memory leak in ptp_clock_register()
    d487413c020f net: stmmac: Fix E2E delay mechanism
    9b5a29f0acef net: hns3: disable sriov before unload hclge layer
    82a136c15a77 net: hns3: fix vf reset workqueue cannot exit
    9ee9191d3384 net: hns3: schedule the polling again when allocation fails
    6446be7c9090 net: hns3: add limit ets dwrr bandwidth cannot be 0
    dddafeda454a net: hns3: reset DWRR of unused tc to zero
    93fa0277ea4e net: hns3: Add configuration of TM QCN error event
    3ea0b497a7a2 powerpc/smp: do not decrement idle task preempt count in CPU offline
    0666c4cd67b1 net: dsa: Fix an error handling path in 'dsa_switch_parse_ports_of()'
    9ef9a287aab5 NIOS2: irqflags: rename a redefined register name
    8b523da74a22 net/sched: act_ct: Fix byte count on fragmented packets
    872b836a183d net: dsa: lantiq_gswip: fix register definition
    57deb5ffd8f6 hamradio: baycom_epp: fix build for UML
    c74f3c127e6c ipv6: When forwarding count rx stats on the orig netdev
    1dda424ef5c4 tcp: md5: Fix overlap between vrf and non-vrf keys
    9c281a1006f4 lan78xx: select CRC32
    5220cad0e69e sctp: fix transport encap_port update in sctp_vtag_verify
    ddffcd23d325 netfilter: ipvs: make global sysctl readonly in non-init netns
    cd3d0282dd3d netfilter: ip6t_rt: fix rt0_hdr parsing in rt_mt6
    aabf95dddb45 ice: Print the api_patch as part of the fw.mgmt.api
    75ebc3b08bbd ice: fix getting UDP tunnel entry
    777682e59840 ice: Avoid crash from unnecessary IDA free
    31b4517293bf ice: Fix failure to re-add LAN/RDMA Tx queues
    18b4fcfeab6d ASoC: wm8960: Fix clock configuration on slave mode
    2b7d598b9651 dma-debug: fix sg checks in debug_dma_map_sg()
    90c7c58aa2bd netfilter: nf_tables: skip netdev events generated on netns removal
    cae7cab804c9 netfilter: xt_IDLETIMER: fix panic that occurs when timer_type has garbage value
    78325fcb17f3 KVM: arm64: Release mmap_lock when using VM_SHARED with MTE
    b372264c66ef KVM: arm64: Fix host stage-2 PGD refcount
    649c2e76632d ASoC: cs4341: Add SPI device ID table
    efdcc26785de ASoC: pcm179x: Add missing entries SPI to device ID table
    242ce1c51b69 ASoC: fsl_xcvr: Fix channel swap issue with ARC
    41551810285e ASoC: pcm512x: Mend accesses to the I2S_1 and I2S_2 registers
    c8ecd221db9a powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC
    663e89b7f4cc powerpc/security: Add a helper to query stf_barrier type
    23d127cf5e66 powerpc/bpf: Validate branch ranges
    e680ab91a034 powerpc/lib: Add helper to check if offset is within conditional branch range
    6fe5d304ca49 NFSD: Keep existing listeners on portlist error
    9ad89fcde18c xtensa: xtfpga: Try software restart before simulating CPU reset
    8287678c20b2 xtensa: xtfpga: use CONFIG_USE_OF instead of CONFIG_OF
    2602e9cc283a drm/amdgpu: init iommu after amdkfd device init
    68771262aab3 drm/amdgpu/display: fix dependencies for DRM_AMD_DC_SI
    537a7189df57 r8152: avoid to resubmit rx immediately
    7d8cdaffc518 xen/x86: prevent PVH type from getting clobbered
    28d084adc22d block: decode QUEUE_FLAG_HCTX_ACTIVE in debugfs output
    96a37f6acb6a ARM: dts: at91: sama5d2_som1_ek: disable ISC node by default
    470585caf603 arm: dts: vexpress-v2p-ca9: Fix the SMB unit-address
    79e3dc32f14f sh: pgtable-3level: fix cast to pointer from integer of different size
    d3f4c51c2a7f parisc: math-emu: Fix fall-through warnings
    4248f37f6cfc block/mq-deadline: Move dd_queued() to fix defined but not used warning

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5c2c7e54bf17d28fe8b918ee8f053748b2b13e01)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoopkg: Fix poor operator combination choice
Richard Purdie [Thu, 4 Nov 2021 14:01:41 +0000 (14:01 +0000)]
opkg: Fix poor operator combination choice

Combining :append with += rarely makes sense. Improve it to use the standard
format (and tweak the implied spacing).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 768766dc007ebe9b4bc38d425584be03fbdb98c1)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-firmware: upgrade 20210919 -> 20211027
Alexander Kanavin [Tue, 2 Nov 2021 08:42:45 +0000 (09:42 +0100)]
linux-firmware: upgrade 20210919 -> 20211027

License-Update: additional firmwares listed

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1ca3fb1c7f11e04bf8d8bf59901ddd60178cb13c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agodpkg: Install dkpg-perl scripts to versioned perl directory
Manuel Leonhardt [Tue, 2 Nov 2021 19:14:30 +0000 (20:14 +0100)]
dpkg: Install dkpg-perl scripts to versioned perl directory

Install dpkg-perl scripts to versioned perl directory, otherwise the
following traceback happens when running, e.g. dpkg-architecture on the
target:

Can't locate Dpkg.pm in @INC (you may need to install the Dpkg module)
  (@INC contains: /usr/lib/perl5/site_perl/5.30.1/aarch64-linux
  /usr/lib/perl5/site_perl/5.30.1
  /usr/lib/perl5/vendor_perl/5.30.1/aarch64-linux
  /usr/lib/perl5/vendor_perl/5.30.1
  /usr/lib/perl5/5.30.1/aarch64-linux
  /usr/lib/perl5/5.30.1 .) at /usr/bin/dpkg-architecture line 25.

Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Manuel Leonhardt <mleonhardt@arri.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bdd4757ae057c7b3bfe27353fa25c4d7807a86ce)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosstate: Account for reserved characters when shortening sstate filenames
Manuel Leonhardt [Tue, 2 Nov 2021 18:48:44 +0000 (19:48 +0100)]
sstate: Account for reserved characters when shortening sstate filenames

Previously, when shortening sstate filenames, the reserved
characters for .siginfo were not considered, when siginfo=False,
resulting in differently shortend filenames for the sstate and siginfo
files. With this change, the filenames of the truncated sstate and
siginfo files have the same basename, just as is already the case for
untruncated filenames.

Making sure that the .siginfo files always have the filename of the
corresponding sstate file plus its .siginfo suffix, also when being
truncated, makes it easier to manage the sstate cache and an sstate
mirror outside of Bitbake/Yocto.

Signed-off-by: Manuel Leonhardt <mleonhardt@arri.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c2e0e43b7123cf5149833e0072c8edaea3629112)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosquashfs-tools: fix CVE-2021-41072
Kai Kang [Tue, 2 Nov 2021 08:17:01 +0000 (16:17 +0800)]
squashfs-tools: fix CVE-2021-41072

Backport patch to fix CVE-2021-41072. And 3 more ancestor commits are
backported too, otherwise it fails to compile.

CVE: CVE-2021-41072

Ref:
* https://nvd.nist.gov/vuln/detail/CVE-2021-41072

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoqemu.inc: Remove empty egg-info directories before running meson
Peter Kjellerstedt [Mon, 25 Oct 2021 14:07:14 +0000 (16:07 +0200)]
qemu.inc: Remove empty egg-info directories before running meson

This is the same solution that has been applied to meson.bbclass to
allow building with meson after it has been updated to a new
version. It needs to be applied here as well since qemu uses meson
without inheriting meson.bbclass.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9d05227e910d3f374ba7a9763ff2584b9e40db61)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomeson.bblcass: Remove empty egg-info directories before running meson
Peter Kjellerstedt [Mon, 25 Oct 2021 14:07:13 +0000 (16:07 +0200)]
meson.bblcass: Remove empty egg-info directories before running meson

sstate.bbclass no longer removes empty directories to avoid a race (see
commit 4f94d929 "sstate/staging: Handle directory creation race issue").
Unfortunately Python apparently treats an empty egg-info directory as if
the version it previously contained still exists and fails if a newer
version is required, which Meson does. To avoid this, make sure there
are no empty egg-info directories from previous versions left behind.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 47d9d90b4ec7d04d6f3f1a9b97c0ab7f1264a88e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/runtime/parselogs: modified drm error in common errors list
Teoh Jay Shen [Thu, 28 Oct 2021 11:15:44 +0000 (19:15 +0800)]
oeqa/runtime/parselogs: modified drm error in common errors list

Changed the following line from:

  [drm] Cannot find any crtc or sizes - going 1024x768  >  [drm] Cannot find any crtc or sizes

This will expand the coverage of the failure to also cover the case when fallback size is not set.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0569fa735458512d6e15aa3315218ecbdf8510a3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocreate-spdx: cross recipes are native also
Saul Wold [Wed, 27 Oct 2021 01:30:50 +0000 (18:30 -0700)]
create-spdx: cross recipes are native also

Recipes that inherit cross should also be categorized as isNative

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit ee113e3894deb1cfb18622085a3fe0600e1ef01d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocreate-spdx: add create_annotation function
Saul Wold [Wed, 27 Oct 2021 01:30:49 +0000 (18:30 -0700)]
create-spdx: add create_annotation function

This allows code reuse and future usage with relationship annotations

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 1f8fdb7dc9d02d0ee3c42674ca16e03f0ec18cba)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agospdx.py: Add annotation to relationship
Saul Wold [Wed, 27 Oct 2021 01:30:48 +0000 (18:30 -0700)]
spdx.py: Add annotation to relationship

Having annotations on relationship can provide additional information
about the relationship such as how it was derived.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit d98585aa89e1d3819f8139a07fb7376ef89b37f8)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agotzdata: update 2021d -> 2021e
Alexander Kanavin [Wed, 27 Oct 2021 09:07:26 +0000 (11:07 +0200)]
tzdata: update 2021d -> 2021e

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 660f932c21fed410ad092ec610749e7090b6a324)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agotzdata: upgrade 2021a -> 2021d
Alexander Kanavin [Tue, 19 Oct 2021 15:33:37 +0000 (17:33 +0200)]
tzdata: upgrade 2021a -> 2021d

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f171f4f528090fc108624de6049274aa4d4880eb)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agostress-ng: convert to git, website is down
Alexander Kanavin [Wed, 27 Oct 2021 09:07:08 +0000 (11:07 +0200)]
stress-ng: convert to git, website is down

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 0bc00868993d7093a70f29de9047f9ae0be33836)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogo.bbclass: Allow adding parameters to go ldflags
Ahmed Hossam [Tue, 26 Oct 2021 18:56:42 +0000 (20:56 +0200)]
go.bbclass: Allow adding parameters to go ldflags

Currently, there is no clean way to pass extra parameters to the go tool link,
which is passed by the go build ldflags flag, the append needs to happen inside
the quotes of the ldflags parameter

See [YOCTO #14554].

Add a variable to allow adding extra parameters to -ldflags in the GO_LDFLAGS
variable, one of the main usecases is setting the application version.

For example, adding to the recipe something like
GO_EXTRA_LDFLAGS="-X main.Version=v1.0.0"
or
GO_EXTRA_LDFLAGS="-X main.Version=${PV}"

Signed-off-by: Ahmed Hossam <Ahmed.Hossam@opensynergy.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit eaa7a61dab9a1d7bb039f16abdd9aacb44faa595)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomeson: install native file in sdk
Hsia-Jun(Randy) Li [Mon, 25 Oct 2021 03:37:44 +0000 (11:37 +0800)]
meson: install native file in sdk

Without a native environment file, find_program() can't
locate the native program inside SDK.

That stops wayland compositor using wayland scanner.

Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c6aed1084006727e3baf70ab9d1f70d9d2d6c01f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomeson: move lang args to the right section
Randy Li [Mon, 25 Oct 2021 03:37:43 +0000 (11:37 +0800)]
meson: move lang args to the right section

After meson 0.56.0, <lang>_args and <lang>_link_args would be
regarded as meson built-in options.

Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 50c8f654e9006a7c902dd76f75082d4f8d668d0c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>