]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
3 years agolibnewt: Use python3targetconfig to fix reproducibility issue
Richard Purdie [Tue, 12 Oct 2021 10:45:26 +0000 (11:45 +0100)]
libnewt: Use python3targetconfig to fix reproducibility issue

We're seeing pthread being linked sometimes and not others leading to
non-reproducible target binaries. The reason is mixing the native python
config with the target one. We should use the target one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3fe5101b335384ef83e96ccc58687fd631164075)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibxml2: Use python3targetconfig to fix reproducibility issue
Richard Purdie [Tue, 12 Oct 2021 10:41:41 +0000 (11:41 +0100)]
libxml2: Use python3targetconfig to fix reproducibility issue

We're seeing pthread being linked sometimes and not others leading to
non-reproducible target binaries. The reason is mixing the native python
config with the target one. We should use the target one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1bc5378db760963e2ad46542f2907dd6a592eb66)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/manual: Fix no longer valid URLs
Jon Mason [Thu, 7 Oct 2021 15:06:23 +0000 (11:06 -0400)]
oeqa/manual: Fix no longer valid URLs

autobuilder.yoctoproject.org URLS no longer work.  Update them to a
working location.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 56f7bac1f0d1ced41e6908706be27149aa7b87e2)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomultilib: Avoid sysroot race issues when multilib enabled
Richard Purdie [Thu, 7 Oct 2021 14:26:58 +0000 (15:26 +0100)]
multilib: Avoid sysroot race issues when multilib enabled

Multilib changes RECIPE_SYSROOT which can make the value in PSEUDO_IGNORE_PATHS
incorrect. Add the correct value, which fixes races over files in the sysroot.

[YOCTO #14581]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 64003e5e1b51c0cd561681b1ac13293546b8182b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoexternalsrc: Fix a source date epoch race in reproducible builds
Richard Purdie [Tue, 21 Sep 2021 10:55:44 +0000 (11:55 +0100)]
externalsrc: Fix a source date epoch race in reproducible builds

When reproducible builds are enabled and externalsrc is in use, the
source date epoch function is added. The conditions on the conditional
code removing the unpack task need to match the deltask function, else
the source date epoch function can end up running twice and the functions
can race with each other causing build failures or corruption.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e82095c02881410035ca23dc12692f074d8ed39b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoexternalsrc: Work with reproducible_build
Mark Hatle [Fri, 10 Sep 2021 02:22:13 +0000 (21:22 -0500)]
externalsrc: Work with reproducible_build

Externalsrc removes do_fetch, do_unpack, and do_patch.  The system normally
discovers the correct reproducible date as a postfuncs of do_unpack, so this
date is never found, so it falls back to the default epoch.

Instead we can move the discovery function to a prefuncs on the epoch
deploy task.  This task will run before do_configure, and since the source
is already available can run safely at anytime.

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0b7dd711a54e92ce54abe99f59fc67e683d52dfe)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/selftest/bbtests: Add uuid to force build test
Richard Purdie [Fri, 1 Oct 2021 12:25:39 +0000 (13:25 +0100)]
oeqa/selftest/bbtests: Add uuid to force build test

With hash equivalence working properly, this test breaks as it detects
an unchanged tasks and doesn't rerun subsequent tasks.

Add a uuid to the payload to ensure it doesn't ever match
equivalence and the test works as intended.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d19873b6b5d0068f857a8f9f3686729ba4e67f0f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogobject-introspection: Don't write $HOME into scripts
Richard Purdie [Thu, 30 Sep 2021 10:14:41 +0000 (11:14 +0100)]
gobject-introspection: Don't write $HOME into scripts

Writing an expanded version of $HOME into the wrapper script breaks
reproducibility. We don't need this here so don't.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5df092524e93cd7d0eaa633ec8a5689d4c0d018d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomesa: Ensure megadrivers runtime mappings are deterministic
Richard Purdie [Wed, 29 Sep 2021 23:30:19 +0000 (00:30 +0100)]
mesa: Ensure megadrivers runtime mappings are deterministic

Add a sort to ensure the package dependency output is determnistic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 693e8d0dfe0b475bc233ccc1ad7674d39de346ce)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agognupg: Be deterministic about sendmail
Richard Purdie [Wed, 29 Sep 2021 19:01:12 +0000 (20:01 +0100)]
gnupg: Be deterministic about sendmail

Set a path to where sendmail would exist making the output deterministic
as it no longer depends on the build host and the presense of sendmail
there.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 32e03a430f13960fe07f08c04eaa58017d977f6c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopackage: Ensure pclist files are deterministic and don't use full paths
Richard Purdie [Wed, 29 Sep 2021 12:30:59 +0000 (13:30 +0100)]
package: Ensure pclist files are deterministic and don't use full paths

Currently the pkgconfig pclist files contain full paths which are build
host specific and the order of entries is not deterministic.

Fix both these issues so the files are deterministic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e422e29bca4af3ab4073e04490f38b05cd7c38c0)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorpm: Ensure compression parallelism isn't coded into rpms
Richard Purdie [Wed, 29 Sep 2021 12:31:26 +0000 (13:31 +0100)]
rpm: Ensure compression parallelism isn't coded into rpms

We don't want the compression thread numbers to be encoded into the rpm
since this results in the rpm not being deterministic. Add a patch
from Alex Kanavin which addresses this issue (was queued for rpm 4.17
but we need to fix this with 4.16 too).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1ba0bf50c72f2506dfa507559c49a70e16cd5124)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.4: update to v5.4.153
Bruce Ashfield [Tue, 19 Oct 2021 02:46:18 +0000 (22:46 -0400)]
linux-yocto/5.4: update to v5.4.153

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

    940a14a7d844 Linux 5.4.153
    6a89b1e0c250 x86/Kconfig: Correct reference to MWINCHIP3D
    5b3b400741a5 x86/hpet: Use another crystalball to evaluate HPET usability
    367f643191b3 x86/platform/olpc: Correct ifdef symbol to intended CONFIG_OLPC_XO15_SCI
    9e2a9da532e0 RISC-V: Include clone3() on rv32
    a326f9c01cfb bpf, s390: Fix potential memory leak about jit_data
    60bacf259e8c i2c: acpi: fix resource leak in reconfiguration device addition
    b723b34a9831 net: prefer socket bound to interface when not in VRF
    17063cac4088 i40e: Fix freeing of uninitialized misc IRQ vector
    0a1fcc981dec i40e: fix endless loop under rtnl
    d6c066811921 gve: fix gve_get_stats()
    d83787c26d21 rtnetlink: fix if_nlmsg_stats_size() under estimation
    0311d9775390 gve: Correct available tx qpl check
    11cd944bb87d drm/nouveau/debugfs: fix file release memory leak
    cb7e65187983 video: fbdev: gbefb: Only instantiate device when built for IP32
    04f981251e20 bus: ti-sysc: Use CLKDM_NOAUTO for dra7 dcan1 for errata i893
    809aa82ac64f netlink: annotate data races around nlk->bound
    fd73c2e64b43 net: sfp: Fix typo in state machine debug string
    c951c08a5996 net/sched: sch_taprio: properly cancel timer from taprio_destroy()
    c2c45102ae19 net: bridge: use nla_total_size_64bit() in br_get_linkxstats_size()
    8af0c7d3fb55 ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence
    ebe58e1c1a7f arm64: dts: ls1028a: add missing CAN nodes
    1b9f0d242ab6 arm64: dts: freescale: Fix SP805 clock-names
    27e53e23a3ce ptp_pch: Load module automatically if ID matches
    a7b441a2e209 powerpc/fsl/dts: Fix phy-connection-type for fm1mac3
    c951a3be5e88 net_sched: fix NULL deref in fifo_set_limit()
    414bb4ead136 phy: mdio: fix memory leak
    b14f28126c51 bpf: Fix integer overflow in prealloc_elems_and_freelist()
    a3d68a42457a bpf, arm: Fix register clobbering in div/mod implementation
    e0c6e864d28d xtensa: call irqchip_init only when CONFIG_USE_OF is selected
    d10a2a8f8853 xtensa: use CONFIG_USE_OF instead of CONFIG_OF
    73711563f5b5 xtensa: move XCHAL_KIO_* definitions to kmem_layout.h
    c82cffe17124 arm64: dts: qcom: pm8150: use qcom,pm8998-pon binding
    14c9c75d4809 ARM: dts: imx: Fix USB host power regulator polarity on M53Menlo
    720a4dceee22 ARM: dts: imx: Add missing pinctrl-names for panel on M53Menlo
    6b2855ac7ef7 soc: qcom: mdt_loader: Drop PT_LOAD check on hash segment
    1179cd690a76 ARM: dts: qcom: apq8064: Use 27MHz PXO clock as DSI PLL reference
    bdc189d6b69f soc: qcom: socinfo: Fixed argument passed to platform_set_data()
    1a0fe45501a2 bpf, mips: Validate conditional branch offsets
    7ed040244595 MIPS: BPF: Restore MIPS32 cBPF JIT
    4239cd380afd ARM: dts: qcom: apq8064: use compatible which contains chipid
    30d68bf74d52 ARM: dts: omap3430-sdp: Fix NAND device node
    2abb4077fa1b xen/balloon: fix cancelled balloon action
    42fbcbaa8a99 nfsd4: Handle the NFSv4 READDIR 'dircount' hint being zero
    f88420197a04 nfsd: fix error handling of register_pernet_subsys() in init_nfsd()
    fab338f33c25 ovl: fix missing negative dentry check in ovl_rename()
    4920aae61bd9 mmc: meson-gx: do not use memcpy_to/fromio for dram-access-quirk
    47f7bb3dc2a3 xen/privcmd: fix error handling in mmap-resource processing
    9d93cfdaf8d4 usb: typec: tcpm: handle SRC_STARTUP state if cc changes
    b53aa224ada2 USB: cdc-acm: fix break reporting
    3135935b7f9a USB: cdc-acm: fix racy tty buffer accesses
    7c2392f03f3b Partially revert "usb: Kconfig: using select for USB_COMMON dependency"
    faaca480fd5c Linux 5.4.152
    caff281e2073 libata: Add ATA_HORKAGE_NO_NCQ_ON_ATI for Samsung 860 and 870 SSD.
    fecbe957ef4d silence nfscache allocation warnings with kvzalloc
    5546e3987dd1 perf/x86: Reset destroy callback on event init failure
    2787cde6cb5b kvm: x86: Add AMD PMU MSRs to msrs_to_save_all[]
    ba58770c14e0 KVM: do not shrink halt_poll_ns below grow_start
    d67e01e5e095 tools/vm/page-types: remove dependency on opt_file for idle page tracking
    65c7e3c97378 scsi: ses: Retry failed Send/Receive Diagnostic commands
    e4e756054d1a selftests:kvm: fix get_warnings_count() ignoring fscanf() return warn
    1f830ab34585 selftests: be sure to make khdr before other targets
    8b9c1c33e51d usb: dwc2: check return value after calling platform_get_resource()
    5d124ee0d2d6 usb: testusb: Fix for showing the connection speed
    350d048cc506 scsi: sd: Free scsi_disk device via put_device()
    4f194b57696a ext2: fix sleeping in atomic bugs on error
    2d8eb456742e sparc64: fix pci_iounmap() when CONFIG_PCI is not set
    61504f62bb04 xen-netback: correct success/error reporting for the SKB-with-fraglist case
    2ecca3b282c3 net: mdio: introduce a shutdown method to mdio device drivers
    31cdcb6d430f Linux 5.4.151
    965147067fa1 HID: usbhid: free raw_report buffers in usbhid_stop
    6f2f68640b84 netfilter: ipset: Fix oversized kvmalloc() calls
    fe9bb925e709 HID: betop: fix slab-out-of-bounds Write in betop_probe
    24f3d2609114 crypto: ccp - fix resource leaks in ccp_run_aes_gcm_cmd()
    62c5cacb0986 usb: hso: remove the bailout parameter
    fe57d53dd91d usb: hso: fix error handling code of hso_create_net_device
    d29c7a1a322d hso: fix bailout in error case of probe
    1f2b324e82c4 libnvdimm/pmem: Fix crash triggered when I/O in-flight during unbind
    dd336267d848 PCI: Fix pci_host_bridge struct device release/free handling
    e81f3b7e7112 net: stmmac: don't attach interface until resume finishes
    f8ffde0bb96d net: udp: annotate data race around udp_sk(sk)->corkflag
    9dbf7e343b69 HID: u2fzero: ignore incomplete packets without data
    d518ea03145c ext4: fix potential infinite loop in ext4_dx_readdir()
    59c19fdcde79 ext4: fix reserved space counter leakage
    c4b8db2b4755 ext4: fix loff_t overflow in ext4_max_bitmap_size()
    3253c87e1e5b ipack: ipoctal: fix module reference leak
    9c802a05749a ipack: ipoctal: fix missing allocation-failure check
    3fd682d461ab ipack: ipoctal: fix tty-registration error handling
    e6a71c173eda ipack: ipoctal: fix tty registration race
    8657158a3b68 ipack: ipoctal: fix stack information leak
    91d5de0b710b debugfs: debugfs_create_file_size(): use IS_ERR to check for error
    98574c91e373 elf: don't use MAP_FIXED_NOREPLACE for elf interpreter mappings
    9356e4dcebd8 perf/x86/intel: Update event constraints for ICX
    0fcfaa8ed9d1 af_unix: fix races in sk_peer_pid and sk_peer_cred accesses
    694b0cee7f85 net: sched: flower: protect fl_walk() with rcu
    5a31d4e73ada net: hns3: do not allow call hns3_nic_net_open repeatedly
    87de237b0b5c scsi: csiostor: Add module softdep on cxgb4
    1b6ccfcec681 Revert "block, bfq: honor already-setup queue merges"
    753096c38aa9 selftests, bpf: test_lwt_ip_encap: Really disable rp_filter
    897d1401d1d6 e100: fix buffer overrun in e100_get_regs
    93372e02f969 e100: fix length calculation in e100_get_regs_len
    a2624e0934f0 net: ipv4: Fix rtnexthop len when RTA_FLOW is present
    c37d3287e7a2 hwmon: (tmp421) fix rounding for negative values
    8a07d5aba34b hwmon: (tmp421) report /PVLD condition as fault
    ec018021cf44 sctp: break out if skb_header_pointer returns NULL in sctp_rcv_ootb
    9bee85de2c81 mac80211-hwsim: fix late beacon hrtimer handling
    21c3a844939c mac80211: mesh: fix potentially unaligned access
    ab85997465b9 mac80211: limit injected vht mcs/nss in ieee80211_parse_tx_radiotap
    87e06c44280d mac80211: Fix ieee80211_amsdu_aggregate frag_tail bug
    a6c42ae1530f hwmon: (mlxreg-fan) Return non-zero value when fan current state is enforced from sysfs
    2c30592255c6 ipvs: check that ip_vs_conn_tab_bits is between 8 and 20
    9a571d83acb5 drm/amd/display: Pass PCI deviceid into DC
    3443eb443f3a x86/kvmclock: Move this_cpu_pvti into kvmclock.h
    50149e0866a8 mac80211: fix use-after-free in CCMP/GCMP RX
    956bc3ee3197 scsi: ufs: Fix illegal offset in UPIU event trace
    44d3c480e4e2 hwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary structure field
    200ced5ba724 hwmon: (w83792d) Fix NULL pointer dereference by removing unnecessary structure field
    6cb01fe630ea hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field
    504cf969d585 fs-verity: fix signed integer overflow with i_size near S64_MAX
    b2fb6ce06c0f usb: cdns3: fix race condition before setting doorbell
    e2370e193519 cpufreq: schedutil: Destroy mutex before kobject_put() frees the memory
    67c98e023135 cpufreq: schedutil: Use kobject release() method to free sugov_tunables
    883f7897a25e tty: Fix out-of-bound vmalloc access in imageblit

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.4: update to v5.4.150
Bruce Ashfield [Tue, 19 Oct 2021 02:46:17 +0000 (22:46 -0400)]
linux-yocto/5.4: update to v5.4.150

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

    3a7dc5b4cfbd Linux 5.4.150
    27f8c4402c4a qnx4: work around gcc false positive warning bug
    3a0f951e3725 xen/balloon: fix balloon kthread freezing
    f80b6793811d arm64: dts: marvell: armada-37xx: Extend PCIe MEM space
    04783de9c0f3 thermal/drivers/int340x: Do not set a wrong tcc offset on resume
    de1c3506806d EDAC/synopsys: Fix wrong value type assignment for edac_mode
    8ede848bc99e spi: Fix tegra20 build with CONFIG_PM=n
    d193f7dbf4ec net: 6pack: Fix tx timeout and slot time
    fa56f2c987c7 alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile
    af4a142ab798 arm64: Mark __stack_chk_guard as __ro_after_init
    aeb19da46c7d parisc: Use absolute_pointer() to define PAGE0
    8cd34eb616d9 qnx4: avoid stringop-overread errors
    1214ace61402 sparc: avoid stringop-overread errors
    113a8edfb9c9 net: i825xx: Use absolute_pointer for memcpy from fixed memory location
    2397ea2db22b compiler.h: Introduce absolute_pointer macro
    d12ddd843f18 blk-cgroup: fix UAF by grabbing blkcg lock before destroying blkg pd
    9d7798823264 sparc32: page align size in arch_dma_alloc
    ec49f3f7f669 nvme-multipath: fix ANA state updates when a namespace is not present
    29917bbb07c3 xen/balloon: use a kernel thread instead a workqueue
    93937596e065 bpf: Add oversize check before call kvcalloc()
    7273cb182f13 ipv6: delay fib6_sernum increase in fib6_add
    7432ecc55fe9 m68k: Double cast io functions to unsigned long
    29c70b0d335a net: stmmac: allow CSR clock of 300MHz
    1da750d1e214 net: macb: fix use after free on rmmod
    ebb8d26d93c3 blktrace: Fix uaf in blk_trace access after removing by sysfs
    2b5befcd4045 md: fix a lock order reversal in md_alloc
    42d3711c2378 irqchip/gic-v3-its: Fix potential VPE leak on error
    71f323f60592 irqchip/goldfish-pic: Select GENERIC_IRQ_CHIP to fix build
    1b59625da697 scsi: lpfc: Use correct scnprintf() limit
    30d373dc3501 scsi: qla2xxx: Restore initiator in dual mode
    d140ccb140c2 cifs: fix a sign extension bug
    1c1062c5cf21 thermal/core: Potential buffer overflow in thermal_build_list_of_policies()
    b869901caba4 fpga: machxo2-spi: Fix missing error code in machxo2_write_complete()
    0ebc3e688f54 fpga: machxo2-spi: Return an error on failure
    5bcead7cde68 tty: synclink_gt: rename a conflicting function name
    c5f27aedf6bb tty: synclink_gt, drop unneeded forward declarations
    1deb94d37a7e scsi: iscsi: Adjust iface sysfs attr detection
    d0f4a2eeebbe net/mlx4_en: Don't allow aRFS for encapsulated packets
    ae7b957ef003 qed: rdma - don't wait for resources under hw error recovery flow
    23716d7153fc gpio: uniphier: Fix void functions to remove return value
    f7fb7dbdfb25 net/smc: add missing error check in smc_clc_prfx_set()
    363438ed5de0 bnxt_en: Fix TX timeout when TX ring size is set to the smallest
    4c4c3052911b enetc: Fix illegal access when reading affinity_hint
    cf9138c966dd platform/x86/intel: punit_ipc: Drop wrong use of ACPI_PTR()
    a8e8b1481930 afs: Fix incorrect triggering of sillyrename on 3rd-party invalidation
    acce91ba0d9f net: hso: fix muxed tty registration
    494260e20ac2 serial: mvebu-uart: fix driver's tx_empty callback
    2d7c20db7220 xhci: Set HCD flag to defer primary roothub registration
    381c8ce0abc0 btrfs: prevent __btrfs_dump_space_info() to underflow its free space
    d4ec140e7158 erofs: fix up erofs_lookup tracepoint
    7751f609eadf mcb: fix error handling in mcb_alloc_bus()
    406ff5bf727d USB: serial: option: add device id for Foxconn T99W265
    4b2cf0faffce USB: serial: option: remove duplicate USB device ID
    59564b0183cb USB: serial: option: add Telit LN920 compositions
    5cc674a3f18e USB: serial: mos7840: remove duplicated 0xac24 device ID
    20c9fdde30fb usb: core: hcd: Add support for deferring roothub registration
    a6c7d3c2d127 Re-enable UAS for LaCie Rugged USB3-FW with fk quirk
    4dc56951a8d9 staging: greybus: uart: fix tty use after free
    aa2c274c279f binder: make sure fd closes complete
    93fa08e9a32f USB: cdc-acm: fix minor-number release
    0dc1cfa7b907 USB: serial: cp210x: add ID for GW Instek GDM-834x Digital Multimeter
    85d3493085ab usb-storage: Add quirk for ScanLogic SL11R-IDE older than 2.6c
    d4e7647695c9 xen/x86: fix PV trap handling on secondary processors
    8b06b0f17f35 cifs: fix incorrect check for null pointer in header_assemble
    b1f6efa27b24 usb: musb: tusb6010: uninitialized data in tusb_fifo_write_unaligned()
    b8c806065160 usb: dwc2: gadget: Fix ISOC transfer complete handling for DDMA
    ff275c870e1b usb: dwc2: gadget: Fix ISOC flow for BDMA and Slave
    f013a5001b4a usb: gadget: r8a66597: fix a loop in set_feature()
    aa40438c7174 ocfs2: drop acl cache for directories too

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.4: update to v5.4.149
Bruce Ashfield [Tue, 19 Oct 2021 02:46:16 +0000 (22:46 -0400)]
linux-yocto/5.4: update to v5.4.149

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

    e74e2950a0d6 Linux 5.4.149
    382526348612 drm/nouveau/nvkm: Replace -ENOSYS with -ENODEV
    409cb0b3d45a rtc: rx8010: select REGMAP_I2C
    43832bf76363 blk-throttle: fix UAF by deleteing timer in blk_throtl_exit()
    c37a34d7975f pwm: stm32-lp: Don't modify HW state in .remove() callback
    8a29e68ea8e8 pwm: rockchip: Don't modify HW state in .remove() callback
    ed60d2db3171 pwm: img: Don't modify HW state in .remove() callback
    b16f4acf6b65 nilfs2: fix memory leak in nilfs_sysfs_delete_snapshot_group
    594addd4369e nilfs2: fix memory leak in nilfs_sysfs_create_snapshot_group
    237ca37ca5ac nilfs2: fix memory leak in nilfs_sysfs_delete_##name##_group
    288c8b5ba52d nilfs2: fix memory leak in nilfs_sysfs_create_##name##_group
    dc70f0c8c3de nilfs2: fix NULL pointer in nilfs_##name##_attr_release
    9c3ba404881d nilfs2: fix memory leak in nilfs_sysfs_create_device_group
    fb4c7d2923de btrfs: fix lockdep warning while mounting sprout fs
    3f2d5c11bef8 ceph: lockdep annotations for try_nonblocking_invalidate
    3bbb11261a75 ceph: request Fw caps before updating the mtime in ceph_write_iter
    2c89a856fa49 dmaengine: xilinx_dma: Set DMA mask for coherent APIs
    2f3206199dc9 dmaengine: ioat: depends on !UML
    644f1e87fe73 dmaengine: sprd: Add missing MODULE_DEVICE_TABLE
    445a3379f6df parisc: Move pci_dev_is_behind_card_dino to where it is used
    2f7bfc07e386 drivers: base: cacheinfo: Get rid of DEFINE_SMP_CALL_CACHE_FUNCTION()
    a12743d07249 thermal/core: Fix thermal_cooling_device_register() prototype
    c7b9a866ee25 Kconfig.debug: drop selecting non-existing HARDLOCKUP_DETECTOR_ARCH
    3c1d9b650c08 net: stmmac: reset Tx desc base address before restarting Tx
    729f9d5ee374 phy: avoid unnecessary link-up delay in polling mode
    81e6b51709da pwm: lpc32xx: Don't modify HW state in .probe() after the PWM chip was registered
    b94def8a475f profiling: fix shift-out-of-bounds bugs
    7e98111cb28e nilfs2: use refcount_dec_and_lock() to fix potential UAF
    5607b1bae1c8 prctl: allow to setup brk for et_dyn executables
    b40301607ca8 9p/trans_virtio: Remove sysfs file on probe failure
    c3b45ea0a3c8 thermal/drivers/exynos: Fix an error code in exynos_tmu_probe()
    e1060803039d dmaengine: acpi: Avoid comparison GSI with Linux vIRQ
    93f8a98ad89c um: virtio_uml: fix memory leak on init failures
    4cd05e390a3b staging: rtl8192u: Fix bitwise vs logical operator in TranslateRxSignalStuff819xUsb()
    2f4b67bceb09 sctp: add param size validation for SCTP_PARAM_SET_PRIMARY
    cbd10b118902 sctp: validate chunk size in __rcv_asconf_lookup
    6a12918e9065 ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE
    2f7974cd7b12 ARM: 9079/1: ftrace: Add MODULE_PLTS support
    1b27a03d1292 ARM: 9078/1: Add warn suppress parameter to arm_gen_branch_link()
    490be340c86c ARM: 9077/1: PLT: Move struct plt_entries definition to header
    278df0646003 apparmor: remove duplicate macro list_entry_is_head()
    f23763ab464f ARM: Qualify enabling of swiotlb_init()
    6bfdc3056ca8 s390/pci_mmio: fully validate the VMA before calling follow_pte()
    bd292c687390 console: consume APC, DM, DCS
    b0c813fbbf75 KVM: remember position in kvm->vcpus array
    5163578e9d0b PCI/ACPI: Add Ampere Altra SOC MCFG quirk
    ec29e33e5cba PCI: aardvark: Fix reporting CRS value
    3f0e275e43f6 PCI: pci-bridge-emul: Add PCIe Root Capabilities Register
    296895c4f0c8 PCI: aardvark: Indicate error in 'val' when config read fails
    2fcb7b7a1d20 PCI: pci-bridge-emul: Fix big-endian support
    07e5f23d3fa6 Linux 5.4.148
    54ac8339ae99 s390/bpf: Fix 64-bit subtraction of the -0x80000000 constant
    a5fc48000b0e s390/bpf: Fix optimizing out zero-extensions
    f7f1bac8983f net: renesas: sh_eth: Fix freeing wrong tx descriptor
    3d32ce5472bb ip_gre: validate csum_start only on pull
    f9b308f7302e qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom
    93f54354ccc8 fq_codel: reject silly quantum parameters
    d448b240b175 netfilter: socket: icmp6: fix use-after-scope
    b79204169de5 net: dsa: b53: Fix calculating number of switch ports
    d5c0f016ae85 perf unwind: Do not overwrite FEATURE_CHECK_LDFLAGS-libunwind-{x86,aarch64}
    114bf5776f56 ARC: export clear_user_page() for modules
    9b63c27d6b70 mtd: rawnand: cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()'
    14e0fdc43ddf PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n
    810f9b6f0a40 KVM: arm64: Handle PSCI resets before userspace touches vCPU state
    5f289dcf0b02 mfd: tqmx86: Clear GPIO IRQ resource when no IRQ is set
    e1746c27c373 PCI: Fix pci_dev_str_match_path() alloc while atomic bug
    beaf65f0fe0c mfd: axp20x: Update AXP288 volatile ranges
    4a6c7c818bcb NTB: perf: Fix an error code in perf_setup_inbuf()
    5a1614194963 NTB: Fix an error code in ntb_msit_probe()
    098069796940 ethtool: Fix an error code in cxgb2.c
    f336aa92b431 PCI: ibmphp: Fix double unmap of io_mem
    0f9550c4f40d block, bfq: honor already-setup queue merges
    b61a99dda392 net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920
    79b584d85912 Set fc_nlinfo in nh_create_ipv4, nh_create_ipv6
    cf4168c4e0ec PCI: Add ACS quirks for Cavium multi-function devices
    b3435cd96848 tracing/probes: Reject events which have the same name of existing one
    32280649f044 mfd: Don't use irq_create_mapping() to resolve a mapping
    e904621ae0b7 fuse: fix use after free in fuse_read_interrupt()
    a1eaaa6b7d88 PCI: Add ACS quirks for NXP LX2xx0 and LX2xx2 platforms
    47c4490617d1 mfd: db8500-prcmu: Adjust map to reality
    88834a62539f dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation
    86565668215f mm/memory_hotplug: use "unsigned long" for PFN in zone_for_pfn_range()
    d291cca2c4f7 net: hns3: fix the timing issue of VF clearing interrupt sources
    65bcb8f73ae3 net: hns3: disable mac in flr process
    d8fe64c3511e net: hns3: change affinity_mask to numa node range
    dede0381da0b net: hns3: pad the short tunnel frame before sending to hardware
    4bf2c9605dff KVM: PPC: Book3S HV: Tolerate treclaim. in fake-suspend mode changing registers
    235f782d5e3b ibmvnic: check failover_pending in login response
    d3939844ebdc dt-bindings: arm: Fix Toradex compatible typo
    c642afd17ab5 qed: Handle management FW error
    9ebbb8b964f5 tcp: fix tp->undo_retrans accounting in tcp_sacktag_one()
    baf450477143 net: dsa: destroy the phylink instance on any error in dsa_slave_phy_setup
    498e765b8595 net/af_unix: fix a data-race in unix_dgram_poll
    e7332a1ac14e vhost_net: fix OoB on sendmsg() failure.
    172749c879f5 events: Reuse value read using READ_ONCE instead of re-reading it
    cd78d9c9968f net/mlx5: Fix potential sleeping in atomic context
    48e79555c22c net/mlx5: FWTrace, cancel work on alloc pd error flow
    4655f8a5afc2 perf machine: Initialize srcline string member in add_location struct
    6808e70a77e9 tipc: increase timeout in tipc_sk_enqueue()
    678787dcfe92 r6040: Restore MDIO clock frequency after MAC reset
    efe35db94897 net/l2tp: Fix reference count leak in l2tp_udp_recv_core
    5ab04a4ffed0 dccp: don't duplicate ccid when cloning dccp sock
    6c4b7a87ba79 ptp: dp83640: don't define PAGE0
    faf9d465425b net-caif: avoid user-triggerable WARN_ON(1)
    79ab38864d5e tipc: fix an use-after-free issue in tipc_recvmsg
    08f33350ed8a x86/mm: Fix kern_addr_valid() to cope with existing but not present entries
    fde4caf6fe4d s390/sclp: fix Secure-IPL facility detection
    15b674b1e581 drm/etnaviv: add missing MMU context put when reaping MMU mapping
    b2ec1e6f1d6f drm/etnaviv: reference MMU context when setting up hardware state
    5827dbac41c7 drm/etnaviv: fix MMU context leak on GPU reset
    5e67b3843540 drm/etnaviv: exec and MMU state is lost when resetting the GPU
    7068030d5e26 drm/etnaviv: keep MMU context across runtime suspend/resume
    a7970d4f0039 drm/etnaviv: stop abusing mmu_context as FE running marker
    ee52ccecfe2c drm/etnaviv: put submit prev MMU context when it exists
    a9bacefda031 drm/etnaviv: return context from etnaviv_iommu_context_get
    b56b6c51a919 drm/amd/amdgpu: Increase HWIP_MAX_INSTANCE to 10
    c221eb008a98 PCI: Add AMD GPU multi-function power dependencies
    d180a373a014 PM: base: power: don't try to use non-existing RTC for storing data
    484fbe9cc0d9 arm64/sve: Use correct size when reinitialising SVE state
    2f725420339e bnx2x: Fix enabling network interfaces without VFs
    66c88a479357 xen: reset legacy rtc flag for PV domU
    c7fab1f53603 btrfs: fix upper limit for max_inline for page size 64K
    b9cc70e3dcb4 drm/panfrost: Clamp lock region to Bifrost minimum
    9a6c88548935 drm/panfrost: Use u64 for size in lock_region
    6c635129bf49 drm/panfrost: Simplify lock_region calculation
    825ba38dfd6a drm/amdgpu: Fix BUG_ON assert
    d7a936da6389 drm/msi/mdp4: populate priv->kms in mdp4_kms_init
    90358cb02a6c net: dsa: lantiq_gswip: fix maximum frame length
    c1f12f440c0b lib/test_stackinit: Fix static initializer test
    3c232895b835 platform/chrome: cros_ec_proto: Send command again when timeout occurs
    0569920e4310 memcg: enable accounting for pids in nested pid namespaces
    d0ddb80bbf10 mm,vmscan: fix divide by zero in get_scan_count
    22b11dbbf94c mm/hugetlb: initialize hugetlb_usage in mm_init
    1dc6df795c9f s390/pv: fix the forcing of the swiotlb
    f3b57cf09012 cpufreq: powernv: Fix init_chip_info initialization in numa=off
    b5eb54c4a903 scsi: qla2xxx: Sync queue idx with queue_pair_map idx
    f499a9e9edde scsi: qla2xxx: Changes to support kdump kernel
    cfa459132875 scsi: BusLogic: Fix missing pr_cont() use
    a701ae9a0dd6 ovl: fix BUG_ON() in may_delete() when called from ovl_cleanup()
    1a2f728b034a parisc: fix crash with signals and alloca
    76bebc93e1c9 net: w5100: check return value after calling platform_get_resource()
    3179dd79dbcf fix array-index-out-of-bounds in taprio_change
    ef9a7867b25f net: fix NULL pointer reference in cipso_v4_doi_free
    88a4ed85e80f ath9k: fix sleeping in atomic context
    99b950d55e59 ath9k: fix OOB read ar9300_eeprom_restore_internal
    5f70ea4a5c84 parport: remove non-zero check on count
    c30ea33b03ff net/mlx5: DR, Enable QP retransmission
    c9095f788d03 iwlwifi: mvm: fix access to BSS elements
    f950996d64df iwlwifi: mvm: avoid static queue number aliasing
    2db5ae5b28e7 iwlwifi: mvm: fix a memory leak in iwl_mvm_mac_ctxt_beacon_changed
    3da13a1e2a45 drm/amdkfd: Account for SH/SE count when setting up cu masks.
    2af60889c88e ASoC: rockchip: i2s: Fixup config for DAIFMT_DSP_A/B
    98381f840f22 ASoC: rockchip: i2s: Fix regmap_ops hang
    a1c7bc02e192 usbip:vhci_hcd USB port can get stuck in the disabled state
    4f6095b0c9d5 usbip: give back URBs for unsent unlink requests during cleanup
    9a4a6805294f usb: musb: musb_dsps: request_irq() after initializing musb
    d24381e5a73b Revert "USB: xhci: fix U1/U2 handling for hardware with XHCI_INTEL_HOST quirk set"
    aa40cf19bfa9 cifs: fix wrong release in sess_alloc_buffer() failed path
    39111cbb7b7c mmc: core: Return correct emmc response in case of ioctl error
    26f55b60f22f selftests/bpf: Enlarge select() timeout for test_maps
    48f5a5f0276d mmc: rtsx_pci: Fix long reads when clock is prescaled
    4e773c5553b2 mmc: sdhci-of-arasan: Check return value of non-void funtions
    a73bbfabfe6f of: Don't allow __of_attached_node_sysfs() without CONFIG_SYSFS
    2fdf7d38ee86 ASoC: Intel: Skylake: Fix passing loadable flag for module
    f6ff4d5609ca ASoC: Intel: Skylake: Fix module configuration for KPB and MIXER
    736f60bd4883 btrfs: tree-log: check btrfs_lookup_data_extent return value
    53a72858bcae m68knommu: only set CONFIG_ISA_DMA_API for ColdFire sub-arch
    3710cff57d3c drm/exynos: Always initialize mapping in exynos_drm_register_dma()
    727c973ffe51 lockd: lockd server-side shouldn't set fl_ops
    a18cfd715e91 usb: chipidea: host: fix port index underflow and UBSAN complains
    8deedce385d2 gfs2: Don't call dlm after protocol is unmounted
    50cf8f1b6c39 staging: rts5208: Fix get_ms_information() heap buffer size
    8dfd785ae110 rpc: fix gss_svc_init cleanup on failure
    0bc818e0231a tcp: enable data-less, empty-cookie SYN with TFO_SERVER_COOKIE_NOT_REQD
    2918eca4970a serial: sh-sci: fix break handling for sysrq
    d02a1c5fd7d9 opp: Don't print an error if required-opps is missing
    d772d993b072 Bluetooth: Fix handling of LE Enhanced Connection Complete
    fb8593e8ed36 nvme-tcp: don't check blk_mq_tag_to_rq when receiving pdu data
    072660f6c688 arm64: dts: ls1046a: fix eeprom entries
    08825a784e56 arm64: tegra: Fix compatible string for Tegra132 CPUs
    a6b69a76c347 ARM: tegra: tamonten: Fix UART pad setting
    a66049c5ff74 mac80211: Fix monitor MTU limit so that A-MSDUs get through
    1e2842fb7ed3 drm/display: fix possible null-pointer dereference in dcn10_set_clock()
    cf82fe45bef9 gpu: drm: amd: amdgpu: amdgpu_i2c: fix possible uninitialized-variable access in amdgpu_i2c_router_select_ddc_port()
    bbaa21da550d net/mlx5: Fix variable type to match 64bit
    0d563020b8a3 Bluetooth: avoid circular locks in sco_sock_connect
    37d7ae2b0578 Bluetooth: schedule SCO timeouts with delayed_work
    c408efcb8ae6 selftests/bpf: Fix xdp_tx.c prog section name
    350e7501eee8 drm/msm: mdp4: drop vblank get/put from prepare/complete_commit
    e5450804778a net: ethernet: stmmac: Do not use unreachable() in ipq806x_gmac_probe()
    ed3400f22b58 arm64: dts: qcom: sdm660: use reg value for memory node
    52f8a30730ee ARM: dts: imx53-ppd: Fix ACHC entry
    e15afa6747fa media: tegra-cec: Handle errors of clk_prepare_enable()
    53d02b04098b media: TDA1997x: fix tda1997x_query_dv_timings() return value
    71de2779e52a media: v4l2-dv-timings.c: fix wrong condition in two for-loops
    d785cef384f1 media: imx258: Limit the max analogue gain to 480
    33bd83fe3ffd media: imx258: Rectify mismatch of VTS value
    8d179746b3f3 ASoC: Intel: bytcr_rt5640: Move "Platform Clock" routes to the maps for the matching in-/output
    37414bd6ec51 arm64: tegra: Fix Tegra194 PCIe EP compatible string
    5a24034ad87f bonding: 3ad: fix the concurrency between __bond_release_one() and bond_3ad_state_machine_handler()
    b6cee3583930 workqueue: Fix possible memory leaks in wq_numa_init()
    9b4f0170e03d Bluetooth: skip invalid hci_sync_conn_complete_evt
    7b1718666fb0 ata: sata_dwc_460ex: No need to call phy_exit() befre phy_init()
    76cbc142a546 samples: bpf: Fix tracex7 error raised on the missing argument
    917eb0bbb8d3 staging: ks7010: Fix the initialization of the 'sleep_status' structure
    44fd61a8bd0d serial: 8250_pci: make setup_port() parameters explicitly unsigned
    4beadefea857 hvsi: don't panic on tty_register_driver failure
    af0bd97b9d71 xtensa: ISS: don't panic in rs_init
    5418023f81cd serial: 8250: Define RX trigger levels for OxSemi 950 devices
    b050848bba7d s390: make PCI mio support a machine flag
    0dd8da8ad04b s390/jump_label: print real address in a case of a jump label bug
    91b4d44c7c4d flow_dissector: Fix out-of-bounds warnings
    8076709052e1 ipv4: ip_output.c: Fix out-of-bounds warning in ip_copy_addrs()
    faf0749c9062 video: fbdev: riva: Error out if 'pixclock' equals zero
    ae0d210aa717 video: fbdev: kyro: Error out if 'pixclock' equals zero
    98551f0a7b57 video: fbdev: asiliantfb: Error out if 'pixclock' equals zero
    9dff06c50572 bpf/tests: Do not PASS tests without actually testing the result
    58831317c9b1 bpf/tests: Fix copy-and-paste error in double word test
    a23430e79ef7 drm/amd/amdgpu: Update debugfs link_settings output link_rate field in hex
    9baa552b2f76 drm/amd/display: Fix timer_per_pixel unit error
    6c78ee1aecb9 tty: serial: jsm: hold port lock when reporting modem line changes
    7993ee173378 staging: board: Fix uninitialized spinlock when attaching genpd
    995567ded019 usb: gadget: composite: Allow bMaxPower=0 if self-powered
    44bbd4e6366f USB: EHCI: ehci-mv: improve error handling in mv_ehci_enable()
    7b96de5c3042 usb: gadget: u_ether: fix a potential null pointer dereference
    e1480bcb407e usb: host: fotg210: fix the actual_length of an iso packet
    33109bdf2c41 usb: host: fotg210: fix the endpoint's transactional opportunities calculation
    b190fdb93a9f igc: Check if num of q_vectors is smaller than max before array access
    f4bf2fdfe37b drm: avoid blocking in drm_clients_info's rcu section
    a1d12196c375 Smack: Fix wrong semantics in smk_access_entry()
    c454b1a2155c netlink: Deal with ESRCH error in nlmsg_notify()
    5adbbb27bb7c video: fbdev: kyro: fix a DoS bug by restricting user input
    4ee6cc0f52db ARM: dts: qcom: apq8064: correct clock names
    b9707a950492 iavf: fix locking of critical sections
    35429d3aa387 iavf: do not override the adapter state in the watchdog task
    ab03f15c1db4 iio: dac: ad5624r: Fix incorrect handling of an optional regulator.
    0de0c1673927 tipc: keep the skb in rcv queue until the whole data is read
    fe14f10c07c8 PCI: Use pci_update_current_state() in pci_enable_device_flags()
    7d356909744f crypto: mxs-dcp - Use sg_mapping_iter to copy data
    80bec14b4e09 media: dib8000: rewrite the init prbs logic
    4cab14bcff25 ASoC: atmel: ATMEL drivers don't need HAS_DMA
    4a7c6e9159be drm/amdgpu: Fix amdgpu_ras_eeprom_init()
    d766826eeec4 userfaultfd: prevent concurrent API initialization
    7bf2913a5bca kbuild: Fix 'no symbols' warning when CONFIG_TRIM_UNUSD_KSYMS=y
    0ac2ecb915e8 MIPS: Malta: fix alignment of the devicetree buffer
    debdff960034 f2fs: fix to unmap pages from userspace process in punch_hole()
    1c28c23dc82e f2fs: fix unexpected ENOENT comes from f2fs_map_blocks()
    1ca5b00782df f2fs: fix to account missing .skipped_gc_rwsem
    ec5cab379832 KVM: PPC: Fix clearing never mapped TCEs in realmode
    e46ce5a8aba5 clk: at91: clk-generated: Limit the requested rate to our range
    557f6445e37f clk: at91: clk-generated: pass the id of changeable parent at registration
    d93a37889e3a clk: at91: sam9x60: Don't use audio PLL
    57188e2cac47 fscache: Fix cookie key hashing
    e2e3758a2cf9 platform/x86: dell-smbios-wmi: Add missing kfree in error-exit from run_smbios_call
    ba5d4dc003b4 KVM: PPC: Book3S HV Nested: Reflect guest PMU in-use to L0 when guest SPRs are live
    a02309beb2b8 HID: i2c-hid: Fix Elan touchpad regression
    f934961bf4e2 scsi: target: avoid per-loop XCOPY buffer allocations
    389946024f0e powerpc/config: Renable MTD_PHYSMAP_OF
    db16408d52a8 scsi: qedf: Fix error codes in qedf_alloc_global_queues()
    5e56c8d843fa scsi: qedi: Fix error codes in qedi_alloc_global_queues()
    a90ef02f012a scsi: smartpqi: Fix an error code in pqi_get_raid_map()
    3365d41c0485 pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry()
    ef476b8d5a9c scsi: fdomain: Fix error return code in fdomain_probe()
    9ee7b45eddc4 SUNRPC: Fix potential memory corruption
    be09cbd6a35f dma-debug: fix debugfs initialization order
    9315497b1750 openrisc: don't printk() unconditionally
    f56ee9af23cc f2fs: reduce the scope of setting fsck tag when de->name_len is zero
    2a2afb6d26c6 f2fs: show f2fs instance in printk_ratelimited
    25ed0498915a RDMA/efa: Remove double QP type assignment
    b8bb4b28394a powerpc/stacktrace: Include linux/delay.h
    02889ac588bd vfio: Use config not menuconfig for VFIO_NOIOMMU
    b900cc481618 pinctrl: samsung: Fix pinctrl bank pin count
    e69c28362116 docs: Fix infiniband uverbs minor number
    fb42b9801e0a RDMA/iwcm: Release resources if iw_cm module initialization fails
    7930b1f98dd8 IB/hfi1: Adjust pkey entry in index 0
    2b1addd585a4 scsi: bsg: Remove support for SCSI_IOCTL_SEND_COMMAND
    a02982545e61 f2fs: quota: fix potential deadlock
    bd74d6de0b9e HID: input: do not report stylus battery state as "full"
    0656eb5e7ed8 PCI: aardvark: Fix masking and unmasking legacy INTx interrupts
    2b58db229eb6 PCI: aardvark: Increase polling delay to 1.5s while waiting for PIO response
    0f39f8429c82 PCI: aardvark: Fix checking for PIO status
    d810fa6f5f0f PCI: xilinx-nwl: Enable the clock through CCF
    d43ad02ad3a8 PCI: Return ~0 data on pciconfig_read() CAP_SYS_ADMIN failure
    3aa6d023c6d6 PCI: Restrict ASMedia ASM1062 SATA Max Payload Size Supported
    4d2bc69df9fa PCI/portdrv: Enable Bandwidth Notification only if port supports it
    0445da50b727 ARM: 9105/1: atags_to_fdt: don't warn about stack size
    8ec08f1431ce libata: add ATA_HORKAGE_NO_NCQ_TRIM for Samsung 860 and 870 SSDs
    7cfbf391e870 dmaengine: imx-sdma: remove duplicated sdma_load_context
    788122c99d85 Revert "dmaengine: imx-sdma: refine to load context only once"
    86e1abcd143f media: rc-loopback: return number of emitters rather than error
    9d91046f6b4e media: uvc: don't do DMA on stack
    1ccb1fa41f4c VMCI: fix NULL pointer dereference when unmapping queue pair
    80d167590330 dm crypt: Avoid percpu_counter spinlock contention in crypt_page_alloc()
    a6d4ac3f861b power: supply: max17042: handle fails of reading status register
    668370dd4c90 block: bfq: fix bfq_set_next_ioprio_data()
    cfdd25cd426d crypto: public_key: fix overflow during implicit conversion
    3411b481ed24 arm64: head: avoid over-mapping in map_memory
    991b64b89b66 soc: aspeed: p2a-ctrl: Fix boundary check for mmap
    2712f29c44f1 soc: aspeed: lpc-ctrl: Fix boundary check for mmap
    24c245de17ea soc: qcom: aoss: Fix the out of bound usage of cooling_devs
    603dbb1fa272 pinctrl: ingenic: Fix incorrect pull up/down info
    eda59ca42fde pinctrl: stmfx: Fix hazardous u8[] to unsigned long cast
    d4acec5e9454 tools/thermal/tmon: Add cross compiling support
    8a964aa6ed43 9p/xen: Fix end of loop tests for list_for_each_entry
    7d81fcc20316 include/linux/list.h: add a macro to test if entry is pointing to the head
    4bc0d1b535da xen: fix setting of max_pfn in shared_info
    27f3b7f5c6e0 powerpc/perf/hv-gpci: Fix counter value parsing
    7e9e6d0e07ec PCI/MSI: Skip masking MSI-X on Xen PV
    2edc06fa381a blk-zoned: allow BLKREPORTZONE without CAP_SYS_ADMIN
    8da22cc41ada blk-zoned: allow zone management send operations without CAP_SYS_ADMIN
    cd7b39e7c475 btrfs: reset replace target device to allocation state on close
    8554095328ac btrfs: wake up async_delalloc_pages waiters after submit
    d609c63a7165 rtc: tps65910: Correct driver module alias
    48a24510c328 Linux 5.4.147
    1f8ee024498d Revert "time: Handle negative seconds correctly in timespec64_to_ns()"
    dc15f641c6cc Revert "posix-cpu-timers: Force next expiration recalc after itimer reset"
    541e757944aa Revert "block: nbd: add sanity check for first_minor"
    5f3ecbf4d586 Revert "Bluetooth: Move shutdown callback before flushing tx and rx queue"
    245f15a48cdc Linux 5.4.146
    b40facee46db clk: kirkwood: Fix a clocking boot regression
    8810c51077b0 backlight: pwm_bl: Improve bootloader/kernel device handover
    5de2ee621bc4 fbmem: don't allow too huge resolutions
    4a95b04afab5 IMA: remove the dependency on CRYPTO_MD5
    c69935f0b0aa IMA: remove -Wmissing-prototypes warning
    85b0726d5bd7 fuse: flush extending writes
    8a98ced6e1c8 fuse: truncate pagecache on atomic_o_trunc
    06dad664d4ea KVM: nVMX: Unconditionally clear nested.pi_pending on nested VM-Enter
    1735cec1e83c KVM: x86: Update vCPU's hv_clock before back to guest when tsc_offset is adjusted
    20fff3ef33b2 KVM: s390: index kvm->arch.idle_mask by vcpu_idx
    0323ab5b254e x86/resctrl: Fix a maybe-uninitialized build warning treated as error
    51f4575ca182 perf/x86/amd/ibs: Extend PERF_PMU_CAP_NO_EXCLUDE to IBS Op
    03c3e977eeac tty: Fix data race between tiocsti() and flush_to_ldisc()
    7a25a0a94c8b time: Handle negative seconds correctly in timespec64_to_ns()
    ae968e270f2e bpf: Fix pointer arithmetic mask tightening under state pruning
    a0a4778feae1 bpf: verifier: Allocate idmap scratch in verifier env
    f5893af2704e bpf: Fix leakage due to insufficient speculative store bypass mitigation
    e80c3533c354 bpf: Introduce BPF nospec instruction for mitigating Spectre v4
    1c9424a765af ipv4: fix endianness issue in inet_rtm_getroute_build_skb()
    b3fe6d192126 octeontx2-af: Fix loop in free and unmap counter
    8216d7157bcf net: qualcomm: fix QCA7000 checksum handling
    4648917e499c net: sched: Fix qdisc_rate_table refcount leak when get tcf_block failed
    e46e23c289f6 ipv4: make exception cache less predictible
    f73cbdd1b8e7 ipv6: make exception cache less predictible
    aa167dcde4c7 brcmfmac: pcie: fix oops on failure to resume and reprobe
    5debec63a28f bcma: Fix memory leak for internally-handled cores
    574e563649ec ath6kl: wmi: fix an error code in ath6kl_wmi_sync_point()
    d946e685d6b7 ASoC: wcd9335: Disable irq on slave ports in the remove function
    f3ec07f832bb ASoC: wcd9335: Fix a memory leak in the error handling path of the probe function
    a6088f4ed3fc ASoC: wcd9335: Fix a double irq free in the remove function
    7bfa680f3b47 tty: serial: fsl_lpuart: fix the wrong mapbase value
    0f1375fa693b usb: bdc: Fix an error handling path in 'bdc_probe()' when no suitable DMA config is available
    06203abb7275 usb: ehci-orion: Handle errors of clk_prepare_enable() in probe
    a0a9ecca2dc4 i2c: mt65xx: fix IRQ check
    b444064a0e0e CIFS: Fix a potencially linear read overflow
    e37eeaf9506c bpf: Fix possible out of bound write in narrow load handling
    fb8e695e9cfa mmc: moxart: Fix issue with uninitialized dma_slave_config
    48b1f117e8d0 mmc: dw_mmc: Fix issue with uninitialized dma_slave_config
    57314d8414d1 ASoC: Intel: Skylake: Fix module resource and format selection
    92397571c243 ASoC: Intel: Skylake: Leave data as is when invoking TLV IPCs
    b58cf18e384d rsi: fix an error code in rsi_probe()
    d82fe3dd0b0f rsi: fix error code in rsi_load_9116_firmware()
    4be8deab6f0d i2c: s3c2410: fix IRQ check
    da3e5f32049a i2c: iop3xx: fix deferred probing
    2da3272ae0ea Bluetooth: add timeout sanity check to hci_inquiry
    70d71611eb83 mm/swap: consider max pages in iomap_swapfile_add_extent
    8f5e26053c46 usb: gadget: mv_u3d: request_irq() after initializing UDC
    eb3c6a25012f nfsd4: Fix forced-expiry locking
    81e69d3fdd9e lockd: Fix invalid lockowner cast after vfs_test_lock
    e1c02e2e6a7a mac80211: Fix insufficient headroom issue for AMSDU
    606668e24a0d usb: phy: tahvo: add IRQ check
    ecf18ac8ff76 usb: host: ohci-tmio: add IRQ check
    abbcd61d091f Bluetooth: Move shutdown callback before flushing tx and rx queue
    93ec1fd04f0f usb: gadget: udc: renesas_usb3: Fix soc_device_match() abuse
    30d9607bcd73 usb: phy: twl6030: add IRQ checks
    e1473ac28563 usb: phy: fsl-usb: add IRQ check
    9535f55d0cba usb: gadget: udc: at91: add IRQ check
    05e5b16b79dc drm/msm/dsi: Fix some reference counted resource leaks
    5ccb04c6e1fb Bluetooth: fix repeated calls to sco_sock_kill
    c2451d5439d0 counter: 104-quad-8: Return error when invalid mode during ceiling_write
    a1194b805c90 arm64: dts: exynos: correct GIC CPU interfaces address range on Exynos7
    1b6fcd10375a drm/msm/dpu: make dpu_hw_ctl_clear_all_blendstages clear necessary LMs
    156eaacba3d2 PM: EM: Increase energy calculation precision
    5537dc810b2a Bluetooth: increase BTNAMSIZ to 21 chars to fix potential buffer overflow
    c0faa638f016 debugfs: Return error during {full/open}_proxy_open() on rmmod
    f44714b4eb2a soc: qcom: smsm: Fix missed interrupts if state changes while masked
    e7997fe3e9ca PCI: PM: Enable PME if it can be signaled from D3cold
    9e570f3d4777 PCI: PM: Avoid forcing PCI_D0 for wakeup reasons inconsistently
    f865b316ccc6 media: venus: venc: Fix potential null pointer dereference on pointer fmt
    d2ea2f0725cc media: em28xx-input: fix refcount bug in em28xx_usb_disconnect
    ebf570042b5f leds: trigger: audio: Add an activate callback to ensure the initial brightness is set
    0a01dc77662c leds: lt3593: Put fwnode in any case during ->probe()
    e39c73563a38 i2c: highlander: add IRQ check
    fba783ddd945 net: cipso: fix warnings in netlbl_cipsov4_add_std
    9fdac650c413 cgroup/cpuset: Fix a partition bug with hotplug
    ffde05819953 net/mlx5e: Prohibit inner indir TIRs in IPoIB
    87f817c560e6 ARM: dts: meson8b: ec100: Fix the pwm regulator supply properties
    e55d7cbe1fe2 ARM: dts: meson8b: mxq: Fix the pwm regulator supply properties
    4b0bbc412b51 ARM: dts: meson8b: odroidc1: Fix the pwm regulator supply properties
    f7058060c01b ARM: dts: meson8: Use a higher default GPU clock frequency
    37ed461b52e9 tcp: seq_file: Avoid skipping sk during tcp_seek_last_pos
    952136275367 drm/amdgpu/acp: Make PM domain really work
    252fad3d0234 netns: protect netns ID lookups with RCU
    bd1cd32caa67 6lowpan: iphc: Fix an off-by-one check of array index
    c4895cf45fd5 Bluetooth: sco: prevent information leak in sco_conn_defer_accept()
    a96eb96ce4c1 media: coda: fix frame_mem_ctrl for YUV420 and YVU420 formats
    7163014d7d29 media: go7007: remove redundant initialization
    810149287981 media: dvb-usb: Fix error handling in dvb_usb_i2c_init
    fa8aaa769092 media: dvb-usb: fix uninit-value in vp702x_read_mac_addr
    88933f9c93a0 media: dvb-usb: fix uninit-value in dvb_usb_adapter_dvb_init
    f81c89614ee8 soc: qcom: rpmhpd: Use corner in power_off
    5b3987f58325 arm64: dts: renesas: r8a77995: draak: Remove bogus adv7511w properties
    6c106c73208a ARM: dts: aspeed-g6: Fix HVI3C function-group in pinctrl dtsi
    004778bf390a bpf: Fix potential memleak and UAF in the verifier.
    fa4802c54e69 bpf: Fix a typo of reuseport map in bpf.h.
    9a193caf9d79 media: cxd2880-spi: Fix an error handling path
    34106f526015 soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally
    b92893053003 media: TDA1997x: enable EDID support
    43282ca83ace drm/panfrost: Fix missing clk_disable_unprepare() on error in panfrost_clk_init()
    fc9cf2229087 EDAC/i10nm: Fix NVDIMM detection
    32d8a3684bba spi: spi-zynq-qspi: use wait_for_completion_timeout to make zynq_qspi_exec_mem_op not interruptible
    4206dbc9857b spi: sprd: Fix the wrong WDG_LOAD_VAL
    1f70517eac57 regulator: vctrl: Avoid lockdep warning in enable/disable ops
    d255d6a6457f regulator: vctrl: Use locked regulator_get_voltage in probe path
    013177ccc4c5 certs: Trigger creation of RSA module signing key if it's not an RSA key
    cc74533a47c9 crypto: qat - use proper type for vf_mask
    b3fa499d72a0 block: nbd: add sanity check for first_minor
    c60a31db3990 clocksource/drivers/sh_cmt: Fix wrong setting if don't request IRQ for clock source channel
    6b10d3d3a9ff lib/mpi: use kcalloc in mpi_resize
    57c8e2ea47bc genirq/timings: Fix error return code in irq_timings_test_irqs()
    2d00b22c8b81 spi: spi-pic32: Fix issue with uninitialized dma_slave_config
    b29593d0696d spi: spi-fsl-dspi: Fix issue with uninitialized dma_slave_config
    449884aeb358 sched: Fix UCLAMP_FLAG_IDLE setting
    67da2d9c9e99 m68k: emu: Fix invalid free in nfeth_cleanup()
    c68ba4a708fb s390/debug: fix debug area life cycle
    7a67a00ea8a7 s390/kasan: fix large PMD pages address alignment check
    98296eb3deca udf_get_extendedattr() had no boundary checks.
    ae4240d1f4bf fcntl: fix potential deadlock for &fasync_struct.fa_lock
    a6273c8c2aca crypto: qat - do not export adf_iov_putmsg()
    7dfa7bb69e13 crypto: qat - fix naming for init/shutdown VF to PF notifications
    843b4e713a80 crypto: qat - fix reuse of completion variable
    4a988264556c crypto: qat - handle both source of interrupt in VF ISR
    c2b3f81125a6 crypto: qat - do not ignore errors from enable_vf2pf_comms()
    1c189ccef0cf libata: fix ata_host_start()
    e55b627d6e1f s390/cio: add dev_busid sysfs entry for each subchannel
    0423517520d3 power: supply: max17042_battery: fix typo in MAx17042_TOFF
    eb45ae88bf10 nvmet: pass back cntlid on successful completion
    6cb5d6ae687d nvme-rdma: don't update queue count when failing to set io queues
    3073ec7f0642 nvme-tcp: don't update queue count when failing to set io queues
    93cf19b4d9b3 bcache: add proper error unwinding in bcache_device_init
    e55f20798f53 isofs: joliet: Fix iocharset=utf8 mount option
    0f5cd92e5eb5 udf: Fix iocharset=utf8 mount option
    86987cf0fbd2 udf: Check LVID earlier
    cc608af36e00 hrtimer: Ensure timerfd notification for HIGHRES=n
    a8457878307f hrtimer: Avoid double reprogramming in __hrtimer_start_range_ns()
    c322a963d522 posix-cpu-timers: Force next expiration recalc after itimer reset
    28996dbb8a74 rcu/tree: Handle VM stoppage in stall detection
    b7c560ae51c6 sched/deadline: Fix missing clock update in migrate_task_rq_dl()
    40db13e3efce crypto: omap-sham - clear dma flags only after omap_sham_update_dma_stop()
    ebf0f71ae3bd power: supply: axp288_fuel_gauge: Report register-address on readb / writeb errors
    bba2b82d1b48 sched/deadline: Fix reset_on_fork reporting of DL tasks
    53a6ef40c6bc crypto: mxs-dcp - Check for DMA mapping errors
    344a38789ab2 regmap: fix the offset of register error log
    a5e42516a61e locking/mutex: Fix HANDOFF condition
    a0f68fb55ebc Linux 5.4.145
    d83f0b39e72e PCI: Call Max Payload Size-related fixup quirks early
    0c8277e334da x86/reboot: Limit Dell Optiplex 990 quirk to early BIOS versions
    d31a4c35b925 xhci: fix unsafe memory usage in xhci tracing
    e00d39ca92bb usb: mtu3: fix the wrong HS mult value
    c3ffd3501470 usb: mtu3: use @mult for HS isoc or intr
    00b6325590a4 usb: host: xhci-rcar: Don't reload firmware after the completion
    7a74ae301c2c ALSA: usb-audio: Add registration quirk for JBL Quantum 800
    c1ea74f64209 Revert "btrfs: compression: don't try to compress if we don't have enough pages"
    f05c74e10463 x86/events/amd/iommu: Fix invalid Perf result due to IOMMU PMC power-gating
    b1ca1665e674 Revert "r8169: avoid link-up interrupt issue on RTL8106e if user enables ASPM"
    cf1222b877b0 mm/page_alloc: speed up the iteration of max_order
    17d409c83e76 net: ll_temac: Remove left-over debug message
    ccadb9143796 powerpc/boot: Delete unneeded .globl _zimage_start
    295501c77c4c ipv4/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)
    6dec8e17b8db USB: serial: mos7720: improve OOM-handling in read_mos_reg()
    d84708451d90 igmp: Add ip_mc_list lock in ip_check_mc_rcu
    cd8ad6ed9ae5 media: stkwebcam: fix memory leak in stk_camera_probe
    9febc9153fdb ARC: wireup clone3 syscall
    417b11d3255c ALSA: pcm: fix divide error in snd_pcm_lib_ioctl
    cf28619cd9c6 ALSA: hda/realtek: Workaround for conflicting SSID on ASUS ROG Strix G17
    a8146f149028 ARM: 8918/2: only build return_address() if needed
    ebad44b6432e cryptoloop: add a deprecation warning
    d12526ddf5e3 perf/x86/amd/power: Assign pmu.module
    be1f76fceec4 perf/x86/amd/ibs: Work around erratum #1197
    861118d64e50 perf/x86/intel/pt: Fix mask of num_address_ranges
    40d23de514cd qede: Fix memset corruption
    468623f69683 net: macb: Add a NULL check on desc_ptp
    50f73f31ae63 qed: Fix the VF msix vectors flow
    92abb09f7ab7 reset: reset-zynqmp: Fixed the argument data type
    b820c4c651ea gpu: ipu-v3: Fix i.MX IPU-v3 offset calculations for (semi)planar U/V formats
    48051387fa80 xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
    56c77c1b5229 kthread: Fix PF_KTHREAD vs to_kthread() race
    af3cf928b998 ubifs: report correct st_size for encrypted symlinks
    aa4e216156e8 f2fs: report correct st_size for encrypted symlinks
    52d8e5b0abb9 ext4: report correct st_size for encrypted symlinks
    228a4203d8b6 fscrypt: add fscrypt_symlink_getattr() for computing st_size
    9b3849ba667a ext4: fix race writing to an inline_data file while its xattrs are changing

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomesa: gallium/dri Make YUV formats we're going to emulate external-only
Pablo Saavedra Rodi?o [Mon, 18 Oct 2021 16:21:38 +0000 (18:21 +0200)]
mesa: gallium/dri Make YUV formats we're going to emulate external-only

This patch fixes the red label issues on video for Raspberry 4-64 Mesa VC4
driver and for iMX53 Adreno A200 GPU using the Mesa Freedreno driver.

Issue was originally reported in meta-webkit [1] and later contributed
in Mesa [2] where it was already merged in master.

[1] https://github.com/Igalia/meta-webkit/issues/185
[2] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13038

Signed-off-by: Pablo Saavedra <psaavedra@igalia.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>
3 years agoglibc: upgrade glibc-2.33 to latest version
Pgowda [Sun, 17 Oct 2021 02:51:14 +0000 (19:51 -0700)]
glibc: upgrade glibc-2.33 to latest version

glibc-2.33 release version of Feb 2021 is used in Hardknott branch.
There are many bug fixes in the latest glibc-2.33 version. The patch
takes the latest glibc-2.33 version commit.
Regression tested on X86-64 without any new issues.

Signed-off-by: Pgowda <pgowda.cve@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoscriptutils.py: Add check before deleting path
Chandana kalluri [Tue, 28 Sep 2021 02:40:18 +0000 (19:40 -0700)]
scriptutils.py: Add check before deleting path

Add a check before deleting path when using recipetool commands to avoid the following type of errors:

Traceback (most recent call last):
   File "<workdir>/sources/core/scripts/lib/scriptutils.py", line 218, in fetch_url
    shutil.rmtree(path)
  File "/usr/local/lib/python3.7/shutil.py", line 476, in rmtree
    onerror(os.lstat, path, sys.exc_info())
  File "/usr/local/lib/python3.7/shutil.py", line 474, in rmtree
    orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: '<workdir>/build/tmp/work/recipetool-usg7o81n/work/recipe-sysroot'
ERROR: Command 'script -e -q -c "recipetool --color=always create --devtool -o /tmp/devtool5sq_op37 'file:///<SRCTREE>'  -x <workdir>/build/workspace/sources/devtoolsrcxc1b9zjq -N test" /dev/null' failed

Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b6aa8b47e023004ffd6958d1cec18c2d9c95d77b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorecipes-support/ptest-runner: Bump to v2.4.2
Anibal Limon [Mon, 27 Sep 2021 18:58:46 +0000 (13:58 -0500)]
recipes-support/ptest-runner: Bump to v2.4.2

Changes,

bcb8280 utils.c: add system data collection when a test gets stuck.
c29240c utils.c: handle test timeouts directly with poll()
d6f509f tests/utils.c: fix a memory corruption in find_word
c10e747 main: Do not return number of failed tests when calling ptest-runner
4958988 utils.c: fix memory leak in run_ptests()
fcfa6a1 clang: clean-ups to avoid -Weverything warnings.
215e52d Makefile: allow using CC env var to pick compiler
fdd233d mem: Simplify memory management
e5e218a mem: Fix memleak for ptest_opts
0dc42eb git: Extend the gitignore

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 710fa373375beb977af704e17a925ed41c9a858d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorm_work.bbclass: Fix for files starting with -
William A. Kennington III [Mon, 27 Sep 2021 22:00:39 +0000 (15:00 -0700)]
rm_work.bbclass: Fix for files starting with -

This makes it possible to name files starting with a hyphen in the work
directory. Without this change rm will fail due to an unexpected option
being passed.

Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5f1a63e0de4921ef970114a16d0827fcddcdaa0e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopackage_ipk: Use localdata store when signing packages
Kenfe-Mickael Laventure [Mon, 27 Sep 2021 16:45:45 +0000 (09:45 -0700)]
package_ipk: Use localdata store when signing packages

When signing a package, we were resolving the `PKGV` version using the
original data store (`d`). However, since that store does not have the
package name in its `OVERRIDES` list the wrong version can be returned in
recipes that produce multiple packages. One such example would be
`external-arm-toolchain.bb`.

The above issue is fixed by using `localdata` instead of `d` when
resolving the needed variables.

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@verkada.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2b5f01cf5a92a873ac4c3f0ba0584cab2cc05714)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoglew: Stop polluting /tmp during builds
Richard Purdie [Mon, 27 Sep 2021 09:58:08 +0000 (10:58 +0100)]
glew: Stop polluting /tmp during builds

Currently the glew code creates a new directory in /tmp for each make
invocation. This is a bit ugly, don't do that. The patch does break the
dist targets but we don't use them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3a55194f90e11da5671b24391a4aaf2b86a8e1e6)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agovim: Backport fix for CVE-2021-3770
Richard Purdie [Mon, 20 Sep 2021 09:55:09 +0000 (10:55 +0100)]
vim: Backport fix for CVE-2021-3770

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 54d3d023ce55ba4a7160ed25a283f0918e7d8e2e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowic: keep rootfs_size as integer
Alexander Kanavin [Fri, 17 Sep 2021 12:59:20 +0000 (14:59 +0200)]
wic: keep rootfs_size as integer

The corrected line accidentally converted it to float,
which causes problems later on with python 3.10:

|   File "/home/alex/development/poky/scripts/lib/wic/partition.py", line 278, in prepare_rootfs_ext
|     os.ftruncate(sparse.fileno(), rootfs_size * 1024)
| TypeError: 'float' object cannot be interpreted as an integer

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d1d260dd2d196d10379ed9e238bcb34f39f3a3b7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoUpdate mailing list address
Jon Mason [Thu, 16 Sep 2021 22:40:10 +0000 (18:40 -0400)]
Update mailing list address

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 83169c33f7585da25560784f79eaad2c6f029f3c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobind: Exclude CVE-2019-6470 from cve-check
Richard Purdie [Tue, 11 May 2021 11:16:12 +0000 (12:16 +0100)]
bind: Exclude CVE-2019-6470 from cve-check

Issue only affects dhcpd with recent bind versions. We don't ship dhcpd anymore
so the issue doesn't affect us.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 30106ae676124ba3c0e496a4f19c919c8418b59b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoqemu: fix CVE-2021-3682
Sakib Sajal [Tue, 17 Aug 2021 00:09:13 +0000 (20:09 -0400)]
qemu: fix CVE-2021-3682

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e16cd155c5ef7cfe8b4d3a94485cb7b13fd95036)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosystemd: fix CVE-2021-33910
Chen Qi [Wed, 29 Sep 2021 03:29:17 +0000 (20:29 -0700)]
systemd: fix CVE-2021-33910

Backport patch to fix CVE-2021-33910.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobash: Ensure deterministic build
Richard Purdie [Mon, 13 Sep 2021 22:56:49 +0000 (23:56 +0100)]
bash: Ensure deterministic build

Bash keeps a count of the number of times make was invoked on a directory
and changes the output versioning accordingly. We want deterministic output
so disable this behaviour.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 13a039e03195a47c750d5901e96fe81cf523481f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/buildproject: Ensure temp directories are cleaned up
Richard Purdie [Sat, 25 Sep 2021 15:14:47 +0000 (16:14 +0100)]
oeqa/buildproject: Ensure temp directories are cleaned up

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d10aff865120a5feecc42c24726bd119364e0188)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/selftest/gotoolchain: Fix temp file cleanup
Richard Purdie [Sat, 25 Sep 2021 18:02:15 +0000 (19:02 +0100)]
oeqa/selftest/gotoolchain: Fix temp file cleanup

The go tests leave readonly files and directories behind.
Fix this to allow cleanup.

[YOCTO #14575]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5680e95d7bd9fe00a797b2d0deb8cb4790027508)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/qemurunner: Use oe._exit(), not sys.exit()
Richard Purdie [Sat, 25 Sep 2021 09:21:58 +0000 (10:21 +0100)]
oeqa/qemurunner: Use oe._exit(), not sys.exit()

sys.exit will cause finally statements and other code to run at exit. Since
we're using os.fork() here, os._exit() is apprioriate in this codepath.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ec08498ff29de9ccd23be88b9d7af3dab6bbb81e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibsamplerate0: Set correct soname for 0.1.9
Tom Pollard [Fri, 24 Sep 2021 12:47:57 +0000 (13:47 +0100)]
libsamplerate0: Set correct soname for 0.1.9

Manually patch SHARED_VERSION_INFO, which was missed in
the 0.1.9 release and later incorrectly fixed until 0.2.1

Signed-off-by: Tom Pollard <tom.pollard@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cb2e8efd316d44b9b1453882114856e0eb7b3500)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobzip2: Update soname for libbz2 1.0.8
Tom Pollard [Fri, 24 Sep 2021 11:33:52 +0000 (12:33 +0100)]
bzip2: Update soname for libbz2 1.0.8

Set shared library name as libbz2.so.1.0.8, version in configure.ac
already synced via do_configure PV substitution.

Signed-off-by: Tom Pollard <tom.pollard@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 07e3abc9d282a54add69a6905ec4248f3104219f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopybootchart: Avoid divide by zero
Richard Purdie [Mon, 20 Sep 2021 15:40:32 +0000 (16:40 +0100)]
pybootchart: Avoid divide by zero

Avoid a rare divide by zero error if there isn't data point spread.

[YOCTO #14547]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d7e36d01e87ddf89f76f164a0b7d98f597a53fa5)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoexpat: pull from github releases
Konrad Weihmann [Tue, 21 Sep 2021 13:53:44 +0000 (15:53 +0200)]
expat: pull from github releases

sometimes we can find release tarballs from sourceforge are not fully
distributed along all download mirrors leading to fetching failures,
depending on what download mirror will be chosen by sourceforge
servers.
As the project moved to github anyway, it's better to pull the tarballs
directly from github releases - serving the very same static artifacts.

Add an override UPSTREAM_CHECK_URI to enable devtool upgrade checks

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
(backported from commit 2a1743ace5aa41b188f77853d0f00c9e5a359c6d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoconnman: add CVE_PRODUCT
Steve Sakoman [Tue, 21 Sep 2021 15:19:37 +0000 (05:19 -1000)]
connman: add CVE_PRODUCT

Upstream database uses both "connman" and "connection_manager" to report CVEs

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit eadf7bb17289731be9747822e3d4084ab69cf109)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agovim: fix CVEs
Mingli Yu [Fri, 24 Sep 2021 08:53:35 +0000 (16:53 +0800)]
vim: fix CVEs

Backport patches to fix CVE-2021-3778 and CVE-2021-3796.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoffmpeg: fix CVE-2021-38114
Kiran Surendran [Wed, 15 Sep 2021 19:34:17 +0000 (12:34 -0700)]
ffmpeg: fix CVE-2021-38114

backport from upstream

Signed-off-by: Kiran Surendran <kiran.surendran@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotar: ignore node-tar CVEs
Armin Kuster [Sun, 12 Sep 2021 16:27:32 +0000 (09:27 -0700)]
tar: ignore node-tar CVEs

These three CVEs are specific to the Node package node-tar.

exclude: CVE-2021-37701 CVE-2021-37712 CVE-2021-37713

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9f9317a02d73c1e5aea026683a037e52c996c7bb)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosstate: Avoid problems with recipes using SRCPV when fetching sstate
Richard Purdie [Fri, 10 Sep 2021 22:49:14 +0000 (23:49 +0100)]
sstate: Avoid problems with recipes using SRCPV when fetching sstate

When fetching sstate, SRCPV can be expanded withuin PV which breaks the
sstate fetcher as other variables like SRC_URI are changed by the fetcher
code. Expand the variable before doing this to avoid those problems and
hence avoid setscene task failures with remote sstate storage in git
recipes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0d9d7acebe0be42d4cf8a30ecbbbbcb2dfd16a4b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.4: update to v5.4.144
Bruce Ashfield [Wed, 15 Sep 2021 15:32:38 +0000 (11:32 -0400)]
linux-yocto/5.4: update to v5.4.144

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

    c6bf0ed9d1a7 Linux 5.4.144
    0634c0f91995 audit: move put_tree() to avoid trim_trees refcount underflow and UAF
    cab0003311a0 net: don't unconditionally copy_from_user a struct ifreq for socket ioctls
    6752b3b0628e Revert "parisc: Add assembly implementations for memset, strlen, strcpy, strncpy and strcat"
    67871ada3a53 Revert "floppy: reintroduce O_NDELAY fix"
    d7f7eca72ecc btrfs: fix NULL pointer dereference when deleting device by invalid id
    e644da7ace0f arm64: dts: qcom: msm8994-angler: Fix gpio-reserved-ranges 85-88
    4f76285f6df8 KVM: x86/mmu: Treat NX as used (not reserved) for all !TDP shadow MMUs
    620681d7201a net: dsa: mt7530: fix VLAN traffic leaks again
    38adbf21f37e bpf: Fix cast to pointer from integer of different size warning
    812ee47ad76e bpf: Track contents of read-only maps as scalars
    f4418015201b vt_kdsetmode: extend console locking
    8a19e0045086 btrfs: fix race between marking inode needs to be logged and log syncing
    f3a1ac258ebc net/rds: dma_map_sg is entitled to merge entries
    ad6a2bc7588a drm/nouveau/disp: power down unused DP links during init
    689179c462d8 drm: Copy drm_wait_vblank to user before returning
    18ceb99f8483 qed: Fix null-pointer dereference in qed_rdma_create_qp()
    f1a0db49abd5 qed: qed ll2 race condition fixes
    73ba9e4ece4b vringh: Use wiov->used to check for read/write desc order
    ee52acae6fb5 virtio_pci: Support surprise removal of virtio pci device
    be9b79e84154 virtio: Improve vq->broken access to avoid any compiler optimization
    0d4ba693db48 opp: remove WARN when no valid OPPs remain
    baf56a1d8199 perf/x86/intel/uncore: Fix integer overflow on 23 bit left shift of a u32
    0ad96094ab90 usb: gadget: u_audio: fix race condition on endpoint stop
    c5c2b4ca5035 drm/i915: Fix syncmap memory leak
    2f3cefa6abf0 net: hns3: fix get wrong pfc_en when query PFC configuration
    6f0c0b35e277 net: hns3: fix duplicate node in VLAN list
    951805c23dff net: hns3: clear hardware resource when loading driver
    08162f65642c rtnetlink: Return correct error on changing device netns
    f58e42d1928c net: marvell: fix MVNETA_TX_IN_PRGRS bit number
    45454400a647 xgene-v2: Fix a resource leak in the error handling path of 'xge_probe()'
    53b480e68c1c ip_gre: add validation for csum_start
    bb8ca7e2e67e RDMA/efa: Free IRQ vectors on error flow
    e29565b4515e e1000e: Fix the max snoop/no-snoop latency for 10M
    8a21e84334ec IB/hfi1: Fix possible null-pointer dereference in _extend_sdma_tx_descs()
    944a50f56f1b RDMA/bnxt_re: Add missing spin lock initialization
    28b189541027 scsi: core: Fix hang of freezing queue between blocking and running device
    628c582854d3 usb: dwc3: gadget: Stop EP0 transfers during pullup disable
    d9da281c8f9e usb: dwc3: gadget: Fix dwc3_calc_trbs_left()
    21880abf19ba USB: serial: option: add new VID/PID to support Fibocom FG150
    2e098e91eeec Revert "USB: serial: ch341: fix character loss at high transfer rates"
    16b281a70a10 can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters
    765437d1f078 mm, oom: make the calculation of oom badness more accurate
    1cccf5c03077 mmc: sdhci-msm: Update the software timeout value for sdhc
    aec1e470d906 ovl: fix uninitialized pointer read in ovl_lookup_real_one()
    57bd5b59f1ce once: Fix panic when module unload
    5892f910f401 netfilter: conntrack: collect all entries in one cycle
    7c95c89b6929 ARC: Fix CONFIG_STACKDEPOT
    a6b049aeefa8 net: qrtr: fix another OOB Read in qrtr_endpoint_post

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.4: update to v5.4.143
Bruce Ashfield [Wed, 15 Sep 2021 15:32:37 +0000 (11:32 -0400)]
linux-yocto/5.4: update to v5.4.143

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

    fd80923202c6 Linux 5.4.143
    4bf194158102 netfilter: nft_exthdr: fix endianness of tcp option cast
    e4fd994f02c5 fs: warn about impending deprecation of mandatory locks
    41c7f46c89f6 mm: memcontrol: fix occasional OOMs due to proportional memory.low reclaim
    1a3aa81444d3 mm, memcg: avoid stale protection values when cgroup is above protection
    9c1c449dcca0 ASoC: intel: atom: Fix breakage for PCM buffer address setup
    846ba58a7c06 PCI: Increase D3 delay for AMD Renoir/Cezanne XHCI
    548b75f4905e btrfs: prevent rename2 from exchanging a subvol with a directory from different parents
    0fc6a9c2025b ipack: tpci200: fix memory leak in the tpci200_register
    280d66b31797 ipack: tpci200: fix many double free issues in tpci200_pci_probe
    cb7aa5103146 slimbus: ngd: reset dma setup during runtime pm
    abce32d0f7f4 slimbus: messaging: check for valid transaction id
    0786d315f55c slimbus: messaging: start transaction ids from 1 instead of zero
    20c2f141b1e5 tracing / histogram: Fix NULL pointer dereference on strcmp() on NULL event name
    8fbfebe188c0 ALSA: hda - fix the 'Capture Switch' value change notifications
    85e60614d1f6 mmc: dw_mmc: Fix hang on data CRC error
    4f6c9caf7b6c ovl: add splice file read write helper
    85813f1f9e86 iavf: Fix ping is lost after untrusted VF had tried to change MAC
    a498115dcd9c i40e: Fix ATR queue selection
    1b8a8fba7853 ovs: clear skb->tstamp in forwarding path
    84dbbf5482e3 net: mdio-mux: Handle -EPROBE_DEFER correctly
    453486e79ed2 net: mdio-mux: Don't ignore memory allocation errors
    6b70c67849bb net: qlcnic: add missed unlock in qlcnic_83xx_flash_read32
    da92ce364595 virtio-net: use NETIF_F_GRO_HW instead of NETIF_F_LRO
    9aeadce8e33b virtio-net: support XDP when not more queues
    3ed7cf8386c9 vrf: Reset skb conntrack connection on VRF rcv
    447b16028956 bnxt_en: Add missing DMA memory barriers
    c9566df334d0 ptp_pch: Restore dependency on PCI
    a73b9aa14269 net: 6pack: fix slab-out-of-bounds in decode_data
    2bc75713434b bnxt: disable napi before canceling DIM
    a9fb0f155980 bnxt: don't lock the tx queue from napi poll
    1fe038030cc8 bpf: Clear zext_dst of dead insns
    73a45f75a07b vhost: Fix the calculation in vhost_overflow()
    b9a59636c4bf virtio: Protect vqs list access
    b264e37b3517 dccp: add do-while-0 stubs for dccp_pr_debug macros
    9112ebc2990a cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant
    cb9a9d5fe636 iommu: Check if group is NULL before remove device
    911a8141efdd Bluetooth: hidp: use correct wait queue when removing ctrl_wait
    5b14c1f16e2d drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X
    f92dc3a89dd8 net: usb: lan78xx: don't modify phy_device state concurrently
    be7043679967 ARM: dts: nomadik: Fix up interrupt controller node names
    69aa1a1a569f scsi: core: Fix capacity set to zero after offlinining device
    935de7ec7a4d scsi: core: Avoid printing an error if target_alloc() returns -ENXIO
    7a721a1e1885 scsi: scsi_dh_rdac: Avoid crash during rdac_bus_attach()
    9900e06ae6e6 scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry()
    e37cf26bd56d dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
    12d1322d93a6 ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218
    11145efd295b dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe()
    9c97a0539288 dmaengine: xilinx_dma: Fix read-after-free bug when terminating transfers
    fc566b5a21f5 USB: core: Avoid WARNings for 0-length descriptor requests
    1bd505c814cc media: drivers/media/usb: fix memory leak in zr364xx_probe
    705660a6d98d media: zr364xx: fix memory leaks in probe()
    79dff2a3f41a media: zr364xx: propagate errors from zr364xx_start_readpipe()
    7305d6d4078f mtd: cfi_cmdset_0002: fix crash when erasing/writing AMD cards
    23f77ad13f81 ath9k: Postpone key cache entry deletion for TXQ frames reference it
    c6feaf806da6 ath: Modify ath_key_delete() to not need full key entry
    b7d593705eb4 ath: Export ath_hw_keysetmac()
    add283e2517a ath9k: Clear key cache explicitly on disabling hardware
    0c049ce432b3 ath: Use safer key clearing with key cache entries
    172b91bbbb49 x86/fpu: Make init_fpstate correct with optimized XSAVE
    81d152c8daf8 ext4: fix EXT4_MAX_LOGICAL_BLOCK macro

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoffmpeg: fix CVE-2021-38171
Kiran Surendran [Wed, 15 Sep 2021 15:24:24 +0000 (08:24 -0700)]
ffmpeg: fix CVE-2021-38171

backport from upstream

Signed-off-by: Kiran Surendran <Kiran.Surendran@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosystemtap: Fix headers issue with x86 and 5.13 headers
Richard Purdie [Thu, 29 Jul 2021 23:26:03 +0000 (00:26 +0100)]
systemtap: Fix headers issue with x86 and 5.13 headers

On some x86 platforms there were header issues causing pt_regs compile
failures for our stap tests, e.g. on genericx86-64 but not qemux86-64.

Backport a patch from upstream which fixes the issue.

[YOCTO #14491]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a4ad6c88b683b7310ef46d89b1add80b0f41bf2d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.63
Bruce Ashfield [Fri, 10 Sep 2021 14:07:58 +0000 (10:07 -0400)]
linux-yocto/5.10: update to v5.10.63

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

    e07f317d5a28 Linux 5.10.63
    4405ea221dea media: stkwebcam: fix memory leak in stk_camera_probe
    ad5e13f15db7 fuse: fix illegal access to inode with reused nodeid
    40ba433a85db new helper: inode_wrong_type()
    ded9137fcf0d spi: Switch to signed types for *_native_cs SPI controller fields
    55bb5193cec5 serial: 8250: 8250_omap: Fix possible array out of bounds access
    8e41134a92a5 ALSA: pcm: fix divide error in snd_pcm_lib_ioctl
    4ffde17862b0 ALSA: hda/realtek: Workaround for conflicting SSID on ASUS ROG Strix G17
    4ee2686b3745 ALSA: hda/realtek: Quirk for HP Spectre x360 14 amp setup
    2808d59fb29b cryptoloop: add a deprecation warning
    61a038f80c80 perf/x86/amd/power: Assign pmu.module
    ec9a82e034f6 perf/x86/amd/ibs: Work around erratum #1197
    23c29490b84d ceph: fix possible null-pointer dereference in ceph_mdsmap_decode()
    d2064a1444d6 perf/x86/intel/pt: Fix mask of num_address_ranges
    0e74bba60452 qede: Fix memset corruption
    35f223cb21b1 net: macb: Add a NULL check on desc_ptp
    cf50d02e474b qed: Fix the VF msix vectors flow
    2177c4943e40 reset: reset-zynqmp: Fixed the argument data type
    9872349b088d gpu: ipu-v3: Fix i.MX IPU-v3 offset calculations for (semi)planar U/V formats
    b983d60292a6 ARM: OMAP1: ams-delta: remove unused function ams_delta_camera_power
    bc860c3f0945 xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
    b1075d2a7052 static_call: Fix unused variable warn w/o MODULE
    ae16b7c66837 Revert "Add a reference to ucounts for each cred"
    1aa3f27e592d Revert "cred: add missing return error code when set_cred_ucounts() failed"
    0c1443874e1c Revert "ucounts: Increase ucounts reference counter before the security hook"
    0479b2bd2959 ubifs: report correct st_size for encrypted symlinks
    3ac01789f6d9 f2fs: report correct st_size for encrypted symlinks
    894a02236d0d ext4: report correct st_size for encrypted symlinks
    b8c298cf57dc fscrypt: add fscrypt_symlink_getattr() for computing st_size
    09a379549620 ext4: fix race writing to an inline_data file while its xattrs are changing
    f6dd002450bf Linux 5.10.62
    0c9a876f2897 bpf: Fix potentially incorrect results with bpf_get_local_storage()
    38c1915d3e9f audit: move put_tree() to avoid trim_trees refcount underflow and UAF
    1890ee7ff87f net: don't unconditionally copy_from_user a struct ifreq for socket ioctls
    0085646e02b2 Revert "parisc: Add assembly implementations for memset, strlen, strcpy, strncpy and strcat"
    17982c664f8b Revert "floppy: reintroduce O_NDELAY fix"
    709c162ddc83 kthread: Fix PF_KTHREAD vs to_kthread() race
    c43add24dffd btrfs: fix NULL pointer dereference when deleting device by invalid id
    1604c42a1ca9 arm64: dts: qcom: msm8994-angler: Fix gpio-reserved-ranges 85-88
    f760c1101f52 lkdtm: Enable DOUBLE_FAULT on all architectures
    b6c657abb893 net: dsa: mt7530: fix VLAN traffic leaks again
    f8242f554c82 usb: typec: ucsi: Clear pending after acking connector change
    e15e32d519fa usb: typec: ucsi: Work around PPM losing change information
    08953884aad4 usb: typec: ucsi: acpi: Always decode connector change information
    9a4f1dc8a17c tracepoint: Use rcu get state and cond sync for static call updates
    b6ae3854075e srcu: Provide polling interfaces for Tiny SRCU grace periods
    450948b06ce8 srcu: Make Tiny SRCU use multi-bit grace-period counter
    641e1d88404a srcu: Provide internal interface to start a Tiny SRCU grace period
    f789de3be808 srcu: Provide polling interfaces for Tree SRCU grace periods
    fdf66e5a7fc8 srcu: Provide internal interface to start a Tree SRCU grace period
    d3c38d8549c0 powerpc/perf: Invoke per-CPU variable access with disabled interrupts
    77b77d45a4b1 perf annotate: Fix jump parsing for C++ code.
    9f9e40ddfca3 perf tools: Fix arm64 build error with gcc-11
    94687c49b65b perf record: Fix memory leak in vDSO found using ASAN
    e0ca67030fda perf symbol-elf: Fix memory leak by freeing sdt_note.args
    0d8e39bb9416 perf env: Fix memory leak of bpf_prog_info_linear member
    133d7f93eecd riscv: Fixup patch_text panic in ftrace
    7e2087249e87 riscv: Fixup wrong ftrace remove cflag
    b42fde92cdde Bluetooth: btusb: check conditions before enabling USB ALT 3 for WBS
    60d69cb4e60d vt_kdsetmode: extend console locking
    0a178a015161 tipc: call tipc_wait_for_connect only when dlen is not 0
    ded6da217ced mtd: spinand: Fix incorrect parameters for on-die ECC
    3b2018f9c9c0 pipe: do FASYNC notifications for every pipe IO, not just state changes
    e91da23c1be1 pipe: avoid unnecessary EPOLLET wakeups under normal loads
    d845f89d59fc btrfs: fix race between marking inode needs to be logged and log syncing
    6f38d95f33be net/rds: dma_map_sg is entitled to merge entries
    b882dda2bf7a drm/nouveau/kms/nv50: workaround EFI GOP window channel format differences
    7f422cda03a6 drm/nouveau/disp: power down unused DP links during init
    6fd6e20520cc drm: Copy drm_wait_vblank to user before returning
    26ee94ba343c blk-mq: don't grab rq's refcount in blk_mq_check_expired()
    b00ca567579a drm/amd/pm: change the workload type for some cards
    3c37ec435022 Revert "drm/amd/pm: fix workload mismatch on vega10"
    cc126b400b25 qed: Fix null-pointer dereference in qed_rdma_create_qp()
    18a65ba06903 qed: qed ll2 race condition fixes
    4ac9c81e8a54 tools/virtio: fix build
    c7ee4d22614e vringh: Use wiov->used to check for read/write desc order
    6c074eaaf785 virtio_vdpa: reject invalid vq indices
    0698278e8eef virtio_pci: Support surprise removal of virtio pci device
    065a13c299b4 virtio: Improve vq->broken access to avoid any compiler optimization
    f41c7462d8ae cpufreq: blocklist Qualcomm sm8150 in cpufreq-dt-platdev
    3dea93159038 opp: remove WARN when no valid OPPs remain
    be37f7dbcd2c iwlwifi: pnvm: accept multiple HW-type TLVs
    9a6a5602c217 clk: renesas: rcar-usb2-clock-sel: Fix kernel NULL pointer dereference
    bdc5049c3698 perf/x86/intel/uncore: Fix integer overflow on 23 bit left shift of a u32
    c5600b914690 dt-bindings: sifive-l2-cache: Fix 'select' matching
    ad5329a53327 usb: gadget: u_audio: fix race condition on endpoint stop
    257ea8a5edc0 drm/i915: Fix syncmap memory leak
    e49b8d9c5e88 net: stmmac: fix kernel panic due to NULL pointer dereference of plat->est
    b2091d47a14e net: stmmac: add mutex lock to protect est parameters
    ac874290e75c Revert "mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711"
    411680a07cc6 net: hns3: fix get wrong pfc_en when query PFC configuration
    e834ca7c7924 net: hns3: fix duplicate node in VLAN list
    5931ec35e992 net: hns3: add waiting time before cmdq memory is released
    9820af16a879 net: hns3: clear hardware resource when loading driver
    ad0db8385575 rtnetlink: Return correct error on changing device netns
    51bc5c66606d cxgb4: dont touch blocked freelist bitmap after free
    beefd5f0c63a ipv4: use siphash instead of Jenkins in fnhe_hashfun()
    dced8347a727 ipv6: use siphash in rt6_exception_hash()
    f517335a61ff net/sched: ets: fix crash when flipping from 'strict' to 'quantum'
    b493af3a66e0 ucounts: Increase ucounts reference counter before the security hook
    8e0881f6f57e net: marvell: fix MVNETA_TX_IN_PRGRS bit number
    850401a23a85 xgene-v2: Fix a resource leak in the error handling path of 'xge_probe()'
    fb45459d9ddb ip_gre: add validation for csum_start
    e78006b59a30 RDMA/efa: Free IRQ vectors on error flow
    8f1e3ad94569 e1000e: Do not take care about recovery NVM checksum
    87285ac51ecf e1000e: Fix the max snoop/no-snoop latency for 10M
    58b3dbf10c01 igc: Use num_tx_queues when iterating over tx_ring queue
    ae6480ba0665 igc: fix page fault when thunderbolt is unplugged
    384dea502e91 net: usb: pegasus: fixes of set_register(s) return value evaluation;
    3217c9d4602f ice: do not abort devlink info if board identifier can't be found
    3a2c5fbb1cc6 RDMA/bnxt_re: Remove unpaired rtnl unlock in bnxt_re_dev_init()
    56ac7463a140 IB/hfi1: Fix possible null-pointer dereference in _extend_sdma_tx_descs()
    3e949aaa8bef RDMA/bnxt_re: Add missing spin lock initialization
    22c18102ec59 scsi: core: Fix hang of freezing queue between blocking and running device
    01da7c1dc4cf usb: dwc3: gadget: Stop EP0 transfers during pullup disable
    87b2016493eb usb: dwc3: gadget: Fix dwc3_calc_trbs_left()
    56c92b8ddc0c usb: renesas-xhci: Prefer firmware loading on unknown ROM state
    b0bcc8038868 USB: serial: option: add new VID/PID to support Fibocom FG150
    8437e07c370f Revert "USB: serial: ch341: fix character loss at high transfer rates"
    da3067eadcc1 drm/amdgpu: Cancel delayed work when GFXOFF is disabled
    3134292a8e79 Revert "btrfs: compression: don't try to compress if we don't have enough pages"
    921c2533aa3a riscv: Ensure the value of FP registers in the core dump file is up to date
    e55a8b461585 ceph: correctly handle releasing an embedded cap flush
    7008b9981b6a can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters
    45b7b2097153 net: mscc: Fix non-GPL export of regmap APIs
    ef2d68ef9a3b ovl: fix uninitialized pointer read in ovl_lookup_real_one()
    c94d50979f20 blk-iocost: fix lockdep warning on blkcg->lock
    6815e21fe28d once: Fix panic when module unload
    f68ad168e235 netfilter: conntrack: collect all entries in one cycle
    a13a2df0b149 ARC: Fix CONFIG_STACKDEPOT
    0af6a9f82ca3 ASoC: component: Remove misplaced prefix handling in pin control functions
    34cc80ec12d6 ASoC: rt5682: Adjust headset volume button threshold
    d81ddadabdee bpf: Fix NULL pointer dereference in bpf_get_local_storage() helper
    9dd6f6d89693 bpf: Fix ringbuf helper function compatibility
    ad41706c771a net: qrtr: fix another OOB Read in qrtr_endpoint_post

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bb885bf8ffe9ba7260f83d9575978f753edf538e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.61
Bruce Ashfield [Fri, 10 Sep 2021 14:07:57 +0000 (10:07 -0400)]
linux-yocto/5.10: update to v5.10.61

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

    452ea6a15ed2 Linux 5.10.61
    f15e64267393 io_uring: only assign io_uring_enter() SQPOLL error in actual error case
    695ab28a7fa1 io_uring: fix xa_alloc_cycle() error return value check
    0d5fcfc6406e fs: warn about impending deprecation of mandatory locks
    8132fc2bf4b7 mm: memcontrol: fix occasional OOMs due to proportional memory.low reclaim
    53e81668e119 ASoC: intel: atom: Fix breakage for PCM buffer address setup
    88f65f57a0b9 ALSA: hda/realtek: Limit mic boost on HP ProBook 445 G8
    b6672f67ec28 PCI: Increase D3 delay for AMD Renoir/Cezanne XHCI
    a69326e134d4 s390/pci: fix use after free of zpci_dev
    05b56e05543c ALSA: hda/via: Apply runtime PM workaround for ASUS B23E
    67fece6289a9 btrfs: prevent rename2 from exchanging a subvol with a directory from different parents
    16cfa72766b5 mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711
    2566c1d8239d mmc: sdhci-iproc: Cap min clock frequency on BCM2711
    110b7f72f6d0 ALSA: hda/realtek: Enable 4-speaker output for Dell XPS 15 9510 laptop
    258782b93701 ipack: tpci200: fix memory leak in the tpci200_register
    3ee1b08097c1 ipack: tpci200: fix many double free issues in tpci200_pci_probe
    0775bc462ae7 slimbus: ngd: reset dma setup during runtime pm
    45d6fc21cd4d slimbus: messaging: check for valid transaction id
    b700b523ddaf slimbus: messaging: start transaction ids from 1 instead of zero
    bd0c2f83d072 tracing / histogram: Fix NULL pointer dereference on strcmp() on NULL event name
    f7c125493c78 ALSA: hda - fix the 'Capture Switch' value change notifications
    7451c309c7a3 clk: qcom: gdsc: Ensure regulator init state matches GDSC state
    7203b4986d9a clk: imx6q: fix uart earlycon unwork
    3f8920c5706e mmc: sdhci-msm: Update the software timeout value for sdhc
    8f499a90e7ee mmc: mmci: stm32: Check when the voltage switch procedure should be done
    f8dac276a9b4 mmc: dw_mmc: Fix hang on data CRC error
    645fd92c3ed4 Revert "flow_offload: action should not be NULL when it is referenced"
    2f6c42806e10 iavf: Fix ping is lost after untrusted VF had tried to change MAC
    7873c29832a3 i40e: Fix ATR queue selection
    e003a8921949 r8152: fix writing USB_BP2_EN
    21ca0b18ad64 iommu/vt-d: Fix incomplete cache flush in intel_pasid_tear_down_entry()
    81578e587c08 iommu/vt-d: Consolidate duplicate cache invaliation code
    eee84eafc3bb ovs: clear skb->tstamp in forwarding path
    47a1161dacb1 net: mdio-mux: Handle -EPROBE_DEFER correctly
    13af9c81e62f net: mdio-mux: Don't ignore memory allocation errors
    df61235881c8 sch_cake: fix srchost/dsthost hashing mode
    e1ec5858bae1 ixgbe, xsk: clean up the resources in ixgbe_xsk_pool_enable error path
    3b7397b203cc net: qlcnic: add missed unlock in qlcnic_83xx_flash_read32
    9bc2d1a5a890 virtio-net: use NETIF_F_GRO_HW instead of NETIF_F_LRO
    b7adfde94930 virtio-net: support XDP when not more queues
    1ce62fe6e4cb vrf: Reset skb conntrack connection on VRF rcv
    8ae539a36194 bnxt_en: Add missing DMA memory barriers
    9751aa443695 bnxt_en: Disable aRFS if running on 212 firmware
    efd9b79b92a3 ptp_pch: Restore dependency on PCI
    85e0518f181a net: 6pack: fix slab-out-of-bounds in decode_data
    e0ae16836027 bnxt: count Tx drops
    296fe765dd02 bnxt: make sure xmit_more + errors does not miss doorbells
    d913d5cc3ba5 bnxt: disable napi before canceling DIM
    5b24ae8f05ca bnxt: don't lock the tx queue from napi poll
    585ff7344ec1 bpf: Clear zext_dst of dead insns
    8dfdeeb1e98e drm/mediatek: Add AAL output size configuration
    a8b8d61babb4 drm/mediatek: Fix aal size config
    6715cefa72f6 soc / drm: mediatek: Move DDP component defines into mtk-mmsys.h
    1b6fc6f739d4 vdpa/mlx5: Avoid destroying MR on empty iotlb
    ecdd7c488062 vhost: Fix the calculation in vhost_overflow()
    e0b603c89a93 bus: ti-sysc: Fix error handling for sysc_check_active_timer()
    1af7ccbd920a vhost-vdpa: Fix integer overflow in vhost_vdpa_process_iotlb_update()
    293180f59342 virtio: Protect vqs list access
    9108120fbe31 dccp: add do-while-0 stubs for dccp_pr_debug macros
    e352531ed020 cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant
    d2ab5491de91 iommu: Check if group is NULL before remove device
    44f454a146c0 arm64: dts: qcom: msm8992-bullhead: Remove PSCI
    95ed753d91bf arm64: dts: qcom: c630: fix correct powerdown pin for WSA881x
    d7d04c67492e Bluetooth: hidp: use correct wait queue when removing ctrl_wait
    2e6cc93e1b8c drm/amd/display: workaround for hard hang on HPD on native DP
    dcc8c5fb8d85 drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X
    8849a8c7058e net: usb: lan78xx: don't modify phy_device state concurrently
    735e613fa587 net: usb: pegasus: Check the return value of get_geristers() and friends;
    6b368411bc0f ARM: dts: nomadik: Fix up interrupt controller node names
    410d1ea4ff3a qede: fix crash in rmmod qede while automatic debug collection
    7525f2e4de00 drm/amdgpu: fix the doorbell missing when in CGPG issue for renoir.
    711459514e29 scsi: core: Fix capacity set to zero after offlinining device
    8071dbe1bdd0 scsi: core: Avoid printing an error if target_alloc() returns -ENXIO
    4f78db7df6ed scsi: scsi_dh_rdac: Avoid crash during rdac_bus_attach()
    cc312fa7e6ef scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry()
    968ee9176a44 scsi: pm80xx: Fix TMF task completion race condition
    b353028aed92 dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
    35f416223673 ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218
    505884a0c7a1 net: xfrm: Fix end of loop tests for list_for_each_entry
    f1c0533fae59 spi: spi-mux: Add module info needed for autoloading
    b618a32142c7 dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe()
    c160df90b0ca dmaengine: xilinx_dma: Fix read-after-free bug when terminating transfers
    d4930271a409 USB: core: Fix incorrect pipe calculation in do_proc_control()
    ba6c1b004ac5 USB: core: Avoid WARNings for 0-length descriptor requests
    8e100c72b6de KVM: X86: Fix warning caused by stale emulation context
    47d4c7999799 KVM: x86: Factor out x86 instruction emulation with decoding
    ff2fc9e4aaa6 media: drivers/media/usb: fix memory leak in zr364xx_probe
    56320b1ad4d0 media: zr364xx: fix memory leaks in probe()
    b5c7ec6d15af media: zr364xx: propagate errors from zr364xx_start_readpipe()
    779a0f4347a4 mtd: cfi_cmdset_0002: fix crash when erasing/writing AMD cards
    e2036bc3fc7d ath9k: Postpone key cache entry deletion for TXQ frames reference it
    609c0cfd07f0 ath: Modify ath_key_delete() to not need full key entry
    2925a8385ec7 ath: Export ath_hw_keysetmac()
    6566c207e576 ath9k: Clear key cache explicitly on disabling hardware
    8f05076983dd ath: Use safer key clearing with key cache entries

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ce4eb69dc8ce06b3bb49fbddf27017f58ac20b0d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogo: Exclude CVE-2021-29923 from report list
Richard Purdie [Mon, 6 Sep 2021 14:11:51 +0000 (15:11 +0100)]
go: Exclude CVE-2021-29923 from report list

Upstream don't believe it is a signifiant real world issue and will only
fix in 1.17 onwards. Therefore exclude it from our reports.

https://github.com/golang/go/issues/30999#issuecomment-910470358

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5bd5faf0c34b47b2443975d66b71482d2380a01a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoflex: Add CVE-2019-6293 to exclusions for checks
Richard Purdie [Mon, 6 Sep 2021 12:49:26 +0000 (13:49 +0100)]
flex: Add CVE-2019-6293 to exclusions for checks

CVE is effectively disputed - yes there is stack exhaustion but no bug and it
is building the parser, not running it, effectively similar to a compiler ICE.
Upstream no plans to address and there is no security issue.

https://github.com/westes/flex/issues/414

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0cae5d7a24bedf6784781b62cbb3795a44bab4d1)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agotcl: Exclude CVE-2021-35331 from checks
Richard Purdie [Fri, 3 Sep 2021 09:17:58 +0000 (10:17 +0100)]
tcl: Exclude CVE-2021-35331 from checks

Upstream don't believe this is an issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit adf7bafee3f8884e525b5639ba092a1cd8e3beb9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobluez5: fix CVE-2021-0129
Trevor Gamblin [Wed, 8 Sep 2021 20:08:33 +0000 (16:08 -0400)]
bluez5: fix CVE-2021-0129

Backport a fix from version 5.57 rather than doing an uprev, since there
appear to be some minor functional changes between our current version
and that version, despite the changelog only listing fixes.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoffmpeg: fix CVE-2021-38291
Kiran Surendran [Thu, 9 Sep 2021 17:13:12 +0000 (10:13 -0700)]
ffmpeg: fix CVE-2021-38291

backport from upstream

Signed-off-by: Kiran Surendran <kiran.surendran@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosquashfs-tools: fix CVE-2021-40153
Kai Kang [Fri, 10 Sep 2021 05:01:44 +0000 (13:01 +0800)]
squashfs-tools: fix CVE-2021-40153

Backport patch to fix CVE-2021-40153, and remove version update in
unsquashfs.c for compatible.

CVE: CVE-2021-40153

Ref:
* https://security-tracker.debian.org/tracker/CVE-2021-40153

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomc: fix CVE-2021-36370
Kai Kang [Fri, 10 Sep 2021 08:09:42 +0000 (16:09 +0800)]
mc: fix CVE-2021-36370

Backport patch to fix CVE-2021-36370.

CVE: CVE-2021-36370

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoapr: Security fix for CVE-2021-35940
Armin Kuster [Sat, 11 Sep 2021 02:59:17 +0000 (19:59 -0700)]
apr: Security fix for CVE-2021-35940

An out-of-bounds array read in the apr_time_exp*() functions was fixed in the
Apache Portable Runtime 1.6.3 release (CVE-2017-12613). The fix for this issue
was not carried forward to the APR 1.7.x branch, and hence version 1.7.0 regressed
compared to 1.6.3 and is vulnerable to the same issue.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d52b78c75323fb254b5d0216f9183573b353abd3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosqlite3: fix CVE-2021-36690
Changqing Li [Tue, 14 Sep 2021 04:35:50 +0000 (12:35 +0800)]
sqlite3: fix CVE-2021-36690

refer:
https://nvd.nist.gov/vuln/detail/CVE-2021-36690
https://www.sqlite.org/forum/forumpost/718c0a8d17
https://sqlite.org/src/info/b1e0c22ec981cf5f

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoruby: fix CVE-2021-31799
Mingli Yu [Tue, 14 Sep 2021 08:57:18 +0000 (16:57 +0800)]
ruby: fix CVE-2021-31799

Backport a patch to fix CVE-2021-31799.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoruby: Security fixes for CVE-2021-31810/CVE-2021-32066
Yi Zhao [Tue, 14 Sep 2021 08:57:17 +0000 (16:57 +0800)]
ruby: Security fixes for CVE-2021-31810/CVE-2021-32066

CVE-2021-31810:
A malicious FTP server can use the PASV response to trick Net::FTP into
connecting back to a given IP address and port. This potentially makes
Net::FTP extract information about services that are otherwise private
and not disclosed (e.g., the attacker can conduct port scans and service
banner extractions).

CVE-2021-32066:
Net::IMAP does not raise an exception when StartTLS fails with an
unknown response, which might allow man-in-the-middle attackers to
bypass the TLS protections by leveraging a network position between the
client and the registry to block the StartTLS command, aka a “StartTLS
stripping attack.”

References:
https://www.ruby-lang.org/en/news/2021/07/07/trusting-pasv-responses-in-net-ftp/
https://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/

Patches from:
https://github.com/ruby/ruby/commit/bf4d05173c7cf04d8892e4b64508ecf7902717cd
https://github.com/ruby/ruby/commit/e2ac25d0eb66de99f098d6669cf4f06796aa6256

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobuild-appliance-image: Update to hardknott head revision 2021-04.3 2021-04.3-hardknott yocto-3.3.3
Richard Purdie [Thu, 9 Sep 2021 09:19:49 +0000 (10:19 +0100)]
build-appliance-image: Update to hardknott head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoxdg-utils: Add fix for CVE-2020-27748
Richard Purdie [Fri, 3 Sep 2021 13:24:17 +0000 (14:24 +0100)]
xdg-utils: Add fix for CVE-2020-27748

Backport an upstream patch for the CVE.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 87191ed0303f6552865ad1edcacd674c57f2010c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/runtime/parselogs: Make DVD ata error apply to all qemux86 machines
Richard Purdie [Fri, 3 Sep 2021 08:22:46 +0000 (09:22 +0100)]
oeqa/runtime/parselogs: Make DVD ata error apply to all qemux86 machines

This log checking fix is needed for both qemux86 and qemux86-64 so move
to the common section.

[YOCTO #14528]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2475ce68f0bc1f342c75364dfcfaf7f30499badf)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoparselogs.py: ignore intermittent CD/DVDROM identification failure
Bruce Ashfield [Thu, 26 Aug 2021 16:33:38 +0000 (12:33 -0400)]
parselogs.py: ignore intermittent CD/DVDROM identification failure

We don't use the CD/DVD ROM drive in any of our tests, but it
periodically fails discovery and that leads to a QA error:

    [    6.403477] ata3.00: failed to IDENTIFY (I/O error, err_mask=0x4)

The only way to disable the optical ROM drive in qemu is to use
the '-nodefaults' option, which disables the CDROM (among other things).
We can't be sure that none of our tests, or extended users are relying
on default devices, so using that option is more of a risk than adding
the message to our ignore list.

To date, no one has sent a patch to just disable the optical drive
(either in qemu or the BIOS), but that is something we could consider
in the future.

[YOCTO #14528]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 143fc5504539c69752ca87717507c197a8920ce5)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.60
Bruce Ashfield [Thu, 26 Aug 2021 14:23:41 +0000 (10:23 -0400)]
linux-yocto/5.10: update to v5.10.60

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

    2c5bd949b1df Linux 5.10.60
    3a24e121304a net: dsa: microchip: ksz8795: Use software untagging on CPU port
    1e78179d75fb net: dsa: microchip: ksz8795: Fix VLAN untagged flag change on deletion
    5033d5e23155 net: dsa: microchip: ksz8795: Reject unsupported VLAN configuration
    60c007b52779 net: dsa: microchip: ksz8795: Fix PVID tag insertion
    f365d53c8687 net: dsa: microchip: Fix probing KSZ87xx switch with DT node for host port
    3dc5666baf2a KVM: nSVM: always intercept VMLOAD/VMSAVE when nested (CVE-2021-3656)
    c0883f693187 KVM: nSVM: avoid picking up unsupported bits from L2 in int_ctl (CVE-2021-3653)
    b5f05bdfda28 vmlinux.lds.h: Handle clang's module.{c,d}tor sections
    2fe07584a623 ceph: take snap_empty_lock atomically with snaprealm refcount change
    a23aced54c2c ceph: clean up locking annotation for ceph_get_snap_realm and __lookup_snap_realm
    b0efc93271ca ceph: add some lockdep assertions around snaprealm handling
    dcdb587ac470 vboxsf: Add support for the atomic_open directory-inode op
    7cd14c1a7fed vboxsf: Add vboxsf_[create|release]_sf_handle() helpers
    433f0b31ebec KVM: nVMX: Use vmx_need_pf_intercept() when deciding if L0 wants a #PF
    0ab67e3dfc4d KVM: VMX: Use current VMCS to query WAITPKG support for MSR emulation
    4a948c579ed6 efi/libstub: arm64: Double check image alignment at entry
    fc7da433fa16 powerpc/smp: Fix OOPS in topology_init()
    312730cd15e0 PCI/MSI: Protect msi_desc::masked for multi-MSI
    724d0a985086 PCI/MSI: Use msi_mask_irq() in pci_msi_shutdown()
    923368751866 PCI/MSI: Correct misleading comments
    e42fb8e6161e PCI/MSI: Do not set invalid bits in MSI mask
    042e03c9cdab PCI/MSI: Enforce MSI[X] entry updates to be visible
    0b2509d7a90c PCI/MSI: Enforce that MSI-X table entry is masked for update
    aa8092c1d1f1 PCI/MSI: Mask all unused MSI-X entries
    7e90e81a4b59 PCI/MSI: Enable and mask MSI-X early
    2d2c66848027 genirq/timings: Prevent potential array overflow in __irq_timings_store()
    355754194b48 genirq/msi: Ensure deactivation on teardown
    f0736bed18fb x86/resctrl: Fix default monitoring groups reporting
    25216ed97da8 x86/ioapic: Force affinity setup before startup
    19fb5dabedca x86/msi: Force affinity setup before startup
    4e52a4fe6f44 genirq: Provide IRQCHIP_AFFINITY_PRE_STARTUP
    2a28b52306f2 x86/tools: Fix objdump version check again
    4acc0d987141 powerpc/kprobes: Fix kprobe Oops happens in booke
    015e2c900b5d efi/libstub: arm64: Relax 2M alignment again for relocatable kernels
    feb4a01d3ece efi/libstub: arm64: Force Image reallocation if BSS was not reserved
    afcb84e6cf8c arm64: efi: kaslr: Fix occasional random alloc (and boot) failure
    e0ee8d9c31b5 nbd: Aovid double completion of a request
    f5cefe9a52a6 vsock/virtio: avoid potential deadlock when vsock device remove
    dff830e5e723 xen/events: Fix race in set_evtchn_to_irq
    65395b053d03 drm/i915: Only access SFC_DONE when media domain is not fused off
    4344440d91b3 net: igmp: increase size of mr_ifc_count
    696afe28dc51 tcp_bbr: fix u32 wrap bug in round logic if bbr_init() called after 2B packets
    8976606ca347 net: linkwatch: fix failure to restore device state across suspend/resume
    4c2af90119ea net: bridge: fix memleak in br_add_if()
    f333a5ca71c3 net: bridge: fix flags interpretation for extern learn fdb entries
    e3b949b86d09 net: bridge: validate the NUD_PERMANENT bit when adding an extern_learn FDB entry
    1cad01aca1fa net: dsa: sja1105: fix broken backpressure in .port_fdb_dump
    56cc3408ff2a net: dsa: lantiq: fix broken backpressure in .port_fdb_dump
    f7720b35cd32 net: dsa: lan9303: fix broken backpressure in .port_fdb_dump
    24e1b7dbb174 net: igmp: fix data-race in igmp_ifc_timer_expire()
    69b13167a636 net: Fix memory leak in ieee802154_raw_deliver
    dbfaf7a6a23a net: dsa: microchip: ksz8795: Fix VLAN filtering
    ccc1fe82c878 net: dsa: microchip: Fix ksz_read64()
    558092b8ed31 drm/meson: fix colour distortion from HDR set during vendor u-boot
    6e1886465dea net/mlx5: Fix return value from tracer initialization
    303ba011f5e1 net/mlx5: Synchronize correct IRQ when destroying CQ
    00a0c11ddd72 bareudp: Fix invalid read beyond skb's linear data
    30b1fc47f765 psample: Add a fwd declaration for skbuff
    b3f0b170842c iavf: Set RSS LUT and key in reset handle path
    a6192bae12e4 ice: don't remove netdev->dev_addr from uc sync list
    bae5b521feaa ice: Prevent probing virtual functions
    059238c52c61 net: sched: act_mirred: Reset ct info when mirror/redirect skb
    f15f7716b047 net/smc: fix wait on already cleared link
    51f4965d775e ppp: Fix generating ifname when empty IFLA_IFNAME is specified
    046579c9fc28 net: phy: micrel: Fix link detection on ksz87xx switch"
    e95620c3bdff bpf: Fix integer overflow involving bucket_size
    1960c3ac5268 libbpf: Fix probe for BPF_PROG_TYPE_CGROUP_SOCKOPT
    a3e9a3e22844 platform/x86: pcengines-apuv2: Add missing terminating entries to gpio-lookup tables
    53ebbfdd0e37 net: mvvp2: fix short frame size on s390
    784320edb6c5 net: dsa: mt7530: add the missing RxUnicast MIB counter
    20a80319028c ASoC: cs42l42: Fix LRCLK frame start edge
    750503aecf4e pinctrl: tigerlake: Fix GPIO mapping for newer version of software
    be49d5437d1a netfilter: nf_conntrack_bridge: Fix memory leak when error
    aa6b17bfefbc ASoC: cs42l42: Remove duplicate control for WNF filter frequency
    b268f9f6b73f ASoC: cs42l42: Fix inversion of ADC Notch Switch control
    2386a8cde18e ASoC: SOF: Intel: hda-ipc: fix reply size checking
    0e47f99e8680 ASoC: cs42l42: Don't allow SND_SOC_DAIFMT_LEFT_J
    576939671f74 ASoC: cs42l42: Correct definition of ADC Volume control
    a21963c35f16 pinctrl: mediatek: Fix fallback behavior for bias_set_combo
    27188a938291 ieee802154: hwsim: fix GPF in hwsim_new_edge_nl
    528f17c02db9 ieee802154: hwsim: fix GPF in hwsim_set_edge_lqi
    95de3592f87e drm/amdgpu: don't enable baco on boco platforms in runpm
    bd80d11a516c drm/amd/display: use GFP_ATOMIC in amdgpu_dm_irq_schedule_work
    ae311a7418f1 drm/amd/display: Remove invalid assert for ODM + MPC case
    c2351e5faa3e libnvdimm/region: Fix label activation vs errors
    366de90ccfa2 ACPI: NFIT: Fix support for virtual SPA ranges
    f3fcf9d1b759 ceph: reduce contention in ceph_check_delayed_caps()
    ca6dea44bd8c ARC: fp: set FPU_STATUS.FWE to enable FPU_STATUS update on context switch
    4716a2145bbf net: ethernet: ti: cpsw: fix min eth packet size for non-switch use-cases
    561d13128bb8 seccomp: Fix setting loaded filter count during TSYNC
    54916988a0fb scsi: lpfc: Move initialization of phba->poll_list earlier to avoid crash
    3db5cb922800 cifs: create sd context must be a multiple of 8
    d1398e3715b1 i2c: dev: zero out array used for i2c reads from userspace
    b8bceace43dd ASoC: intel: atom: Fix reference to PCM buffer address
    261613ef340b ASoC: tlv320aic31xx: Fix jack detection after suspend
    7e5a7fa68b27 ASoC: uniphier: Fix reference to PCM buffer address
    209eb62b45fe ASoC: xilinx: Fix reference to PCM buffer address
    c419c4c91b30 ASoC: amd: Fix reference to PCM buffer address
    0c9adae11701 iio: adc: Fix incorrect exit of for-loop
    632279e5057c iio: humidity: hdc100x: Add margin to the conversion time
    45de224b1332 iio: adis: set GPIO reset pin direction
    d0532ed064d1 iio: adc: ti-ads7950: Ensure CS is deasserted after reading channels

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 94fef82258d02285009d08b7a1791de124ff8f45)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.59
Bruce Ashfield [Thu, 26 Aug 2021 14:23:39 +0000 (10:23 -0400)]
linux-yocto/5.10: update to v5.10.59

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

    5805e5eec901 Linux 5.10.59
    25cff25ec606 net: xilinx_emaclite: Do not print real IOMEM pointer
    6a002d48a660 ovl: prevent private clone if bind mount is not allowed
    bffead8d3648 ppp: Fix generating ppp unit id when ifname is not specified
    5df85901fe45 ALSA: hda: Add quirk for ASUS Flow x13
    8930f2c60a45 ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 650 G8 Notebook PC
    98c3fa3a9d7a ALSA: pcm: Fix mmap breakage without explicit buffer setup
    cc1a4dff23a4 USB:ehci:fix Kunpeng920 ehci hardware problem
    bd909fd3878d vboxsf: Make vboxsf_dir_create() return the handle for the created file
    971703fc19cf vboxsf: Honor excl flag to the dir-inode create op
    96b2232cb7e5 arm64: dts: renesas: beacon: Fix USB ref clock references
    e0dd4a0ab072 arm64: dts: renesas: beacon: Fix USB extal reference
    0f47027d1b9b arm64: dts: renesas: rzg2: Add usb2_clksel to RZ/G2 M/N/H
    eaa7feecd366 mm: make zone_to_nid() and zone_set_nid() available for DISCONTIGMEM
    0e709390372f Revert "selftests/resctrl: Use resctrl/info for feature detection"
    d8c38598701f bpf: Add lockdown check for probe_write_user helper
    5b5064ea9a94 firmware: tee_bnxt: Release TEE shm, session, and context during kexec
    c5a625c6a4ac tee: Correct inappropriate usage of TEE_SHM_DMA_BUF flag
    9f105d2d4f6c KVM: SVM: Fix off-by-one indexing when nullifying last used SEV VMCB
    132a8267adab Linux 5.10.58
    3d7d1b0f5f41 arm64: fix compat syscall return truncation
    bb65051dcd1f drm/amdgpu/display: only enable aux backlight control for OLED panels
    c8b7cfa674ee smb3: rc uninitialized in one fallocate path
    8cfdd039ca18 net/qla3xxx: fix schedule while atomic in ql_wait_for_drvr_lock and ql_adapter_reset
    fbbb209268e5 alpha: Send stop IPI to send to online CPUs
    13d0a9b3b917 net: qede: Fix end of loop tests for list_for_each_entry
    1478e902bcbc virt_wifi: fix error on connect
    ecd8614809eb reiserfs: check directory items on read from disk
    dbe4f82fedc6 reiserfs: add check for root_inode in reiserfs_fill_super
    0f05e0ffa247 libata: fix ata_pio_sector for CONFIG_HIGHMEM
    11891adab23d drm/i915: avoid uninitialised var in eb_parse()
    a3e6bd0c71bb sched/rt: Fix double enqueue caused by rt_effective_prio
    c797b8872bb9 perf/x86/amd: Don't touch the AMD64_EVENTSEL_HOSTONLY bit inside the guest
    2d94cffc94a5 soc: ixp4xx/qmgr: fix invalid __iomem access
    7397034905ac drm/i915: Correct SFC_DONE register offset
    16aecf1e36d9 interconnect: qcom: icc-rpmh: Ensure floor BW is enforced for all nodes
    22b4917c85af interconnect: Always call pre_aggregate before aggregate
    ccfe4f62ff9f interconnect: Zero initial BW after sync-state
    05565b469358 spi: meson-spicc: fix memory leak in meson_spicc_remove
    1a084e78217d interconnect: Fix undersized devress_alloc allocation
    dcc23e58511b soc: ixp4xx: fix printing resources
    37cbd27ef4b2 arm64: vdso: Avoid ISB after reading from cntvct_el0
    7a2b5bb00f54 KVM: x86/mmu: Fix per-cpu counter corruption on 32-bit builds
    32f55c25ee29 KVM: Do not leak memory for duplicate debugfs directories
    309a31127bef KVM: x86: accept userspace interrupt only if no event is injected
    a786282b55b4 md/raid10: properly indicate failure when ending a failed write request
    3d7d2d2b069b ARM: omap2+: hwmod: fix potential NULL pointer access
    9851ad2f7107 Revert "gpio: mpc8xxx: change the gpio interrupt flags."
    57c44e7ac788 bus: ti-sysc: AM3: RNG is GP only
    f4984f60acc7 selinux: correct the return value when loads initial sids
    100f8396d154 pcmcia: i82092: fix a null pointer dereference bug
    afcd5a0e015f net/xfrm/compat: Copy xfrm_spdattr_type_t atributes
    f08b2d078cbb xfrm: Fix RCU vs hash_resize_mutex lock inversion
    23e36a8610ca timers: Move clearing of base::timer_running under base:: Lock
    9a69d0d24d69 fpga: dfl: fme: Fix cpu hotplug issue in performance reporting
    bfb5f1a12325 serial: 8250_pci: Avoid irq sharing for MSI(-X) interrupts.
    0f30fedced7c serial: 8250_pci: Enumerate Elkhart Lake UARTs via dedicated driver
    17f3c64f707b MIPS: Malta: Do not byte-swap accesses to the CBUS UART
    8a1624f4a8d3 serial: 8250: Mask out floating 16/32-bit bus bits
    c03cef67157a serial: 8250_mtk: fix uart corruption issue when rx power off
    a4f8bfc919ee serial: tegra: Only print FIFO error message when an error occurs
    cc7300776808 ext4: fix potential htree corruption when growing large_dir directories
    6b5a3d2c2b89 pipe: increase minimum default pipe size to 2 pages
    556e7f204d34 media: rtl28xxu: fix zero-length control request
    551e0c5d6b2e drivers core: Fix oops when driver probe fails
    faec2c68ea5f staging: rtl8712: error handling refactoring
    e468a357af68 staging: rtl8712: get rid of flush_scheduled_work
    369101e39911 staging: rtl8723bs: Fix a resource leak in sd_int_dpc
    1628b64efb36 tpm_ftpm_tee: Free and unregister TEE shared memory during kexec
    2a879ff9719f optee: fix tee out of memory failure seen during kexec reboot
    ad80c25987fe optee: Refuse to load the driver under the kdump kernel
    1340dc3fb75e optee: Fix memory leak when failing to register shm pages
    6b2ded93d35c tee: add tee_shm_alloc_kernel_buf()
    5e9d82021425 optee: Clear stale cache entries during initialization
    e5d8fd87091c arm64: stacktrace: avoid tracing arch_stack_walk()
    7799ad4d181f tracepoint: Fix static call function vs data state mismatch
    14673e19291c tracepoint: static call: Compare data on transition from 2->1 callees
    046e12323ab4 tracing: Fix NULL pointer dereference in start_creating
    b2aca8daa50e tracing: Reject string operand in the histogram expression
    b10ccc2c5888 tracing / histogram: Give calculation hist_fields a size
    f97274528037 scripts/tracing: fix the bug that can't parse raw_trace_func
    fd3afb81f448 clk: fix leak on devm_clk_bulk_get_all() unwind
    948ff2f214fb usb: otg-fsm: Fix hrtimer list corruption
    8f8645de092a usb: typec: tcpm: Keep other events when receiving FRS and Sourcing_vbus events
    5b4318885a43 usb: host: ohci-at91: suspend/resume ports after/before OHCI accesses
    1f2015506d9c usb: gadget: f_hid: idle uses the highest byte for duration
    825ac3f0bc35 usb: gadget: f_hid: fixed NULL pointer dereference
    683702dff7c8 usb: gadget: f_hid: added GET_IDLE and SET_IDLE handlers
    051518d9cfe3 usb: cdns3: Fixed incorrect gadget state
    822bec5cbb05 usb: gadget: remove leaked entry from udc driver list
    98c83d72614e usb: dwc3: gadget: Avoid runtime resume if disabling pullup
    79e9389038c4 ALSA: usb-audio: Add registration quirk for JBL Quantum 600
    b7532db2d458 ALSA: usb-audio: Fix superfluous autosuspend recovery
    80b7aa2651bc ALSA: hda/realtek: Fix headset mic for Acer SWIFT SF314-56 (ALC256)
    de30786fb25a ALSA: hda/realtek: add mic quirk for Acer SF314-42
    c0b626f0a29a ALSA: pcm - fix mmap capability check for the snd-dummy driver
    dd3f7c5c8904 drm/amdgpu/display: fix DMUB firmware version info
    ecb739cf15a9 firmware_loader: fix use-after-free in firmware_fallback_sysfs
    5019f5812bbf firmware_loader: use -ETIMEDOUT instead of -EAGAIN in fw_load_sysfs_fallback
    aa3b8bc17e2a USB: serial: ftdi_sio: add device ID for Auto-M3 OP-COM v2
    d245a76719cf USB: serial: ch341: fix character loss at high transfer rates
    0470385e63bb USB: serial: option: add Telit FD980 composition 0x1056
    ba4a395668b5 USB: usbtmc: Fix RCU stall warning
    f2f856b65ac4 Bluetooth: defer cleanup of resources in hci_unregister_dev()
    821e6a613354 blk-iolatency: error out if blk_get_queue() failed in iolatency_set_limit()
    c5a499b8607a net: vxge: fix use-after-free in vxge_device_unregister
    fb49d67262ca net: fec: fix use-after-free in fec_drv_remove
    f12b6b6bc15f net: pegasus: fix uninit-value in get_interrupt_interval
    c66d273b70fe bnx2x: fix an error code in bnx2x_nic_load()
    f76f9caccb46 mips: Fix non-POSIX regexp
    f93b7b000044 MIPS: check return value of pgtable_pmd_page_ctor
    9b2b2f07712b net: sched: fix lockdep_set_class() typo error for sch->seqlock
    d1f2abe57bc1 net: dsa: qca: ar9331: reorder MDIO write sequence
    a45ee8ed0c7d net: ipv6: fix returned variable type in ip6_skb_dst_mtu
    f87be69b7fe9 nfp: update ethtool reporting of pauseframe control
    44f2e360e784 sctp: move the active_key update after sh_keys is added
    e74551ba938a RDMA/mlx5: Delay emptying a cache entry when a new MR is added to it recently
    1242ca9369b1 gpio: tqmx86: really make IRQ optional
    4ef549dc9c1a net: natsemi: Fix missing pci_disable_device() in probe and remove
    1dc3eef381c1 net: phy: micrel: Fix detection of ksz87xx switch
    e09dba75cafd net: dsa: sja1105: match FDB entries regardless of inner/outer VLAN tag
    c0b14a0e61e7 net: dsa: sja1105: be stateless with FDB entries on SJA1105P/Q/R/S/SJA1110 too
    00bf923dce2a net: dsa: sja1105: invalidate dynamic FDB entries learned concurrently with statically added ones
    de425f1c3a60 net: dsa: sja1105: overwrite dynamic FDB entries with static ones in .port_fdb_add
    74bcf85ff1e2 net, gro: Set inner transport header offset in tcp/udp GRO hook
    80fd533ac3f9 dmaengine: imx-dma: configure the generic DMA type to make it work
    163e6d87216d ARM: dts: stm32: Fix touchscreen IRQ line assignment on DHCOM
    442f7e04d592 ARM: dts: stm32: Disable LAN8710 EDPD on DHCOM
    449991df08d5 media: videobuf2-core: dequeue if start_streaming fails
    3e8bba601212 scsi: sr: Return correct event when media event code is 3
    aaaf6e6e4174 spi: imx: mx51-ecspi: Fix low-speed CONFIGREG delay calculation
    cd989e119272 spi: imx: mx51-ecspi: Reinstate low-speed CONFIGREG delay
    281514da66a4 dmaengine: stm32-dmamux: Fix PM usage counter unbalance in stm32 dmamux ops
    bbce3c99f622 dmaengine: stm32-dma: Fix PM usage counter imbalance in stm32 dma ops
    84656b4c27bf clk: tegra: Implement disable_unused() of tegra_clk_sdmmc_mux_ops
    edf1b7911af2 dmaengine: uniphier-xdmac: Use readl_poll_timeout_atomic() in atomic state
    4ebd11d1c782 omap5-board-common: remove not physically existing vdds_1v8_main fixed-regulator
    9bf056b99fa0 ARM: dts: am437x-l4: fix typo in can@0 node
    e79a30f71d95 clk: stm32f4: fix post divisor setup for I2S/SAI PLLs
    71f39badc898 ALSA: usb-audio: fix incorrect clock source setting
    c4fcda128780 arm64: dts: armada-3720-turris-mox: remove mrvl,i2c-fast-mode
    8d13f6a0a656 arm64: dts: armada-3720-turris-mox: fixed indices for the SDHC controllers
    f239369f37d9 ARM: dts: imx: Swap M53Menlo pinctrl_power_button/pinctrl_power_out pins
    ee6f7084324d ARM: imx: fix missing 3rd argument in macro imx_mmdc_perf_init
    e1011b9c597d ARM: dts: colibri-imx6ull: limit SDIO clock to 25MHz
    c0f61abbefdf arm64: dts: ls1028: sl28: fix networking for variant 2
    54555c399668 ARM: dts: imx6qdl-sr-som: Increase the PHY reset duration to 10ms
    3790f940981d ARM: imx: add missing clk_disable_unprepare()
    a28569b510e5 ARM: imx: add missing iounmap()
    9189d77f0e21 arm64: dts: ls1028a: fix node name for the sysclk
    d61dc8c634bb net: xfrm: fix memory leak in xfrm_user_rcv_msg
    8efe3a635f22 bus: ti-sysc: Fix gpt12 system timer issue with reserved status
    e32a291736fc ALSA: seq: Fix racy deletion of subscriber
    b917f123b50d Revert "ACPICA: Fix memory leak caused by _CID repair function"

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 07c7379180a5cda5a2b056aab99826469f41810a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agovim: add option to disable NLS support
Andrej Valek [Thu, 26 Aug 2021 13:15:49 +0000 (15:15 +0200)]
vim: add option to disable NLS support

- Some distributions with UTF-8 locale have problem when National Language
Support is enabled. Add there an option to disable it.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit da630d6d81a396c3e1635fbd7b8103df47ed2732)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocpio: backport fix for CVE-2021-38185
Ross Burton [Tue, 31 Aug 2021 15:03:34 +0000 (16:03 +0100)]
cpio: backport fix for CVE-2021-38185

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4accf77ea5b5810cb2330acc6773690ec1b1c71b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosdk: Decouple default install path from built in path
Richard Purdie [Fri, 30 Jul 2021 15:44:56 +0000 (16:44 +0100)]
sdk: Decouple default install path from built in path

Add SDKPATHINSTALL which is used as the default install location of the SDK
instead of SDKPATH. This means the default install path isn't encoded into
every SDK binary, meaning if a date is used there the entire SDK doesn't
have to rebuild. Most distros can switch to only customise SDKPATHINSTALL
meaning more sstate reuse too.

[YOCTO #14100]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bc4ee5453560dcefc4a4ecc5657df5cc1666e153)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolz4: Security Fix for CVE-2021-3520
Armin Kuster [Fri, 27 Aug 2021 02:09:18 +0000 (19:09 -0700)]
lz4: Security Fix for CVE-2021-3520

Source: https://github.com/lz4/lz4
MR: 111604
Type: Security Fix
Disposition: Backport from https://github.com/lz4/lz4/commit/8301a21773ef61656225e264f4f06ae14462bca7#diff-7055e9cf14c488aea9837aaf9f528b58ee3c22988d7d0d81d172ec62d94a88a7
ChangeID: 58492f950164e75954a97cf084df6f9af3d88244
Description:

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6d6a089a2f637051333e0137d2e748c823e2aa98)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobluez5: fix CVE-2021-3658
Trevor Gamblin [Wed, 1 Sep 2021 18:45:45 +0000 (14:45 -0400)]
bluez5: fix CVE-2021-3658

Backporting upstream fix since the uprev from 5.60 -> 5.61 does include
some minor functionality changes.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agokernel-yocto: Simplify no git repo case in do_kernel_checkout
Paul Barker [Mon, 2 Aug 2021 10:44:30 +0000 (11:44 +0100)]
kernel-yocto: Simplify no git repo case in do_kernel_checkout

If the kernel sources are not fetched via git, a local git repository is
created in do_kernel_checkout. In this case we know that there will be
no remote branches and we will already be on the correct branch (since
only one branch will exist). So we can simplify things by skipping these
steps.

This also removes the assumption that the default git branch name will
be "master". Prior to this change, the final git checkout command in
do_kernel_checkout could fail if a local git repo was created and the
user had changed init.defaultBranch in their gitconfig.

Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit af2a9c92d4498492ca23388c7b4bbed48abdc4d7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobuild-appliance-image: Update to hardknott head revision
Richard Purdie [Wed, 1 Sep 2021 15:28:21 +0000 (16:28 +0100)]
build-appliance-image: Update to hardknott head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.4: update to v5.4.142
Bruce Ashfield [Wed, 25 Aug 2021 16:08:31 +0000 (12:08 -0400)]
linux-yocto/5.4: update to v5.4.142

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

    c15b830f7c1c Linux 5.4.142
    a17f2f2c8949 KVM: nSVM: always intercept VMLOAD/VMSAVE when nested (CVE-2021-3656)
    7c1c96ffb658 KVM: nSVM: avoid picking up unsupported bits from L2 in int_ctl (CVE-2021-3653)
    456fd889227f iommu/vt-d: Fix agaw for a supported 48 bit guest address width
    5b5f855a793c vmlinux.lds.h: Handle clang's module.{c,d}tor sections
    e9b2b2b29ca8 ceph: take snap_empty_lock atomically with snaprealm refcount change
    95ff775df6ec ceph: clean up locking annotation for ceph_get_snap_realm and __lookup_snap_realm
    1d8c232afb03 ceph: add some lockdep assertions around snaprealm handling
    a6ff0f3f9f90 KVM: VMX: Use current VMCS to query WAITPKG support for MSR emulation
    ec25d05e1893 PCI/MSI: Protect msi_desc::masked for multi-MSI
    48d2439c6f2a PCI/MSI: Use msi_mask_irq() in pci_msi_shutdown()
    386ead1d3598 PCI/MSI: Correct misleading comments
    76d81dec16d0 PCI/MSI: Do not set invalid bits in MSI mask
    6b4bcbf13390 PCI/MSI: Enforce MSI[X] entry updates to be visible
    4495a41fbcd7 PCI/MSI: Enforce that MSI-X table entry is masked for update
    1866c8f6d43c PCI/MSI: Mask all unused MSI-X entries
    3b4220c2bf35 PCI/MSI: Enable and mask MSI-X early
    0c8dea3fd55c genirq/timings: Prevent potential array overflow in __irq_timings_store()
    4dfe80927102 genirq/msi: Ensure deactivation on teardown
    e3e54a930073 x86/resctrl: Fix default monitoring groups reporting
    a6b594ad7419 x86/ioapic: Force affinity setup before startup
    db5e2666946a x86/msi: Force affinity setup before startup
    eda32c21882c genirq: Provide IRQCHIP_AFFINITY_PRE_STARTUP
    06b347743608 x86/tools: Fix objdump version check again
    74451dd8bfca powerpc/kprobes: Fix kprobe Oops happens in booke
    b74145d858a8 nbd: Aovid double completion of a request
    ad9550114d4c vsock/virtio: avoid potential deadlock when vsock device remove
    b9cd73cce50a xen/events: Fix race in set_evtchn_to_irq
    4d3c5c319b19 net: igmp: increase size of mr_ifc_count
    721ff564cc6a tcp_bbr: fix u32 wrap bug in round logic if bbr_init() called after 2B packets
    2ce8a68a312c net: linkwatch: fix failure to restore device state across suspend/resume
    33597972a2e9 net: bridge: fix memleak in br_add_if()
    f6eee53beb07 net: dsa: sja1105: fix broken backpressure in .port_fdb_dump
    1e6a570d3786 net: dsa: lantiq: fix broken backpressure in .port_fdb_dump
    564f6bbd0ed6 net: dsa: lan9303: fix broken backpressure in .port_fdb_dump
    a9243455e874 net: igmp: fix data-race in igmp_ifc_timer_expire()
    ed957c77b391 net: Fix memory leak in ieee802154_raw_deliver
    13a381b8bc22 net: dsa: microchip: Fix ksz_read64()
    991117eeeee8 drm/meson: fix colour distortion from HDR set during vendor u-boot
    e114f15de881 net/mlx5: Fix return value from tracer initialization
    f99aa76bb83c psample: Add a fwd declaration for skbuff
    9dc8e396c12e iavf: Set RSS LUT and key in reset handle path
    23436edae3c9 net: sched: act_mirred: Reset ct info when mirror/redirect skb
    9636fbfe7bdd ppp: Fix generating ifname when empty IFLA_IFNAME is specified
    1c31ee907fde net: phy: micrel: Fix link detection on ksz87xx switch"
    dfeb64f6e2ce platform/x86: pcengines-apuv2: Add missing terminating entries to gpio-lookup tables
    699db2bb96ad platform/x86: pcengines-apuv2: revert wiring up simswitch GPIO as LED
    af7f1539cfb1 net: dsa: mt7530: add the missing RxUnicast MIB counter
    d353a61860a2 ASoC: cs42l42: Fix LRCLK frame start edge
    b036452082f3 netfilter: nf_conntrack_bridge: Fix memory leak when error
    cd36a36ea4ea ASoC: cs42l42: Remove duplicate control for WNF filter frequency
    eb789cc9179f ASoC: cs42l42: Fix inversion of ADC Notch Switch control
    6a3381336398 ASoC: cs42l42: Don't allow SND_SOC_DAIFMT_LEFT_J
    55e86f07b85e ASoC: cs42l42: Correct definition of ADC Volume control
    22d2e3c6a1b8 ieee802154: hwsim: fix GPF in hwsim_new_edge_nl
    5bac8c2a3087 ieee802154: hwsim: fix GPF in hwsim_set_edge_lqi
    ddcf807fbb70 libnvdimm/region: Fix label activation vs errors
    bc97fde4c668 ACPI: NFIT: Fix support for virtual SPA ranges
    a753e3f33405 ceph: reduce contention in ceph_check_delayed_caps()
    aa04486c419d i2c: dev: zero out array used for i2c reads from userspace
    c18b28e5ade8 ASoC: intel: atom: Fix reference to PCM buffer address
    aab3fa544647 ASoC: xilinx: Fix reference to PCM buffer address
    60e2854acf3b iio: adc: Fix incorrect exit of for-loop
    bcac5225923b iio: humidity: hdc100x: Add margin to the conversion time
    da7cb80905ec iio: adc: ti-ads7950: Ensure CS is deasserted after reading channels

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.4: update to v5.4.141
Bruce Ashfield [Thu, 19 Aug 2021 19:07:59 +0000 (09:07 -1000)]
linux-yocto/5.4: update to v5.4.141

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

    b704883aa8dc Linux 5.4.141
    983d6a6b7e3c btrfs: don't flush from btrfs_delayed_inode_reserve_metadata
    ea13f678a3fd btrfs: export and rename qgroup_reserve_meta
    41a9b8f36de7 btrfs: qgroup: don't commit transaction when we already hold the handle
    38b8485b72cb net: xilinx_emaclite: Do not print real IOMEM pointer
    654c19a7e8d8 btrfs: fix lockdep splat when enabling and disabling qgroups
    c55442cdfdb8 btrfs: qgroup: remove ASYNC_COMMIT mechanism in favor of reserve retry-after-EDQUOT
    fdaf6a322fcc btrfs: transaction: Cleanup unused TRANS_STATE_BLOCKED
    36af2de520cc btrfs: qgroup: try to flush qgroup space when we get -EDQUOT
    5c79287c2b6d btrfs: qgroup: allow to unreserve range without releasing other ranges
    b7a722fd75a1 btrfs: make btrfs_qgroup_reserve_data take btrfs_inode
    dfadea4061a2 btrfs: make qgroup_free_reserved_data take btrfs_inode
    812f39ed5b0b ovl: prevent private clone if bind mount is not allowed
    eeb4742501e0 ppp: Fix generating ppp unit id when ifname is not specified
    3460f3959d1c ALSA: hda: Add quirk for ASUS Flow x13
    81d1a3f97631 USB:ehci:fix Kunpeng920 ehci hardware problem
    d28adaabbbf4 KVM: X86: MMU: Use the correct inherited permissions to get shadow page
    5f4ab7e25fbb usb: dwc3: gadget: Avoid runtime resume if disabling pullup
    1782c4af6bd0 usb: dwc3: gadget: Disable gadget IRQ during pullup disable
    54b7022f2878 usb: dwc3: gadget: Clear DEP flags after stop transfers in ep disable
    e36245a68eb1 usb: dwc3: gadget: Prevent EP queuing while stopping transfers
    823f69250863 usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup
    25a0625fa96f usb: dwc3: gadget: Allow runtime suspend if UDC unbinded
    5f081a928d55 usb: dwc3: Stop active transfers before halting the controller
    396f29ea0cd2 tracing: Reject string operand in the histogram expression
    28276c280f2e media: v4l2-mem2mem: always consider OUTPUT queue during poll
    236aca70929d tee: Correct inappropriate usage of TEE_SHM_DMA_BUF flag
    5b774238e8af KVM: SVM: Fix off-by-one indexing when nullifying last used SEV VMCB
    a998faa9c4ce Linux 5.4.140
    3c197fdd0732 arm64: fix compat syscall return truncation
    72fcaf69525d net/qla3xxx: fix schedule while atomic in ql_wait_for_drvr_lock and ql_adapter_reset
    742e85fa9e80 alpha: Send stop IPI to send to online CPUs
    26946d21395c virt_wifi: fix error on connect
    17d7c9c940fb reiserfs: check directory items on read from disk
    bcad6ece2a50 reiserfs: add check for root_inode in reiserfs_fill_super
    e30a88f1f578 libata: fix ata_pio_sector for CONFIG_HIGHMEM
    a2671d96a3c7 bpf, selftests: Adjust few selftest result_unpriv outcomes
    4892b4f3244b perf/x86/amd: Don't touch the AMD64_EVENTSEL_HOSTONLY bit inside the guest
    d6cf5342faa6 soc: ixp4xx/qmgr: fix invalid __iomem access
    a5bf7ef13ebf spi: meson-spicc: fix memory leak in meson_spicc_remove
    27991c78d630 soc: ixp4xx: fix printing resources
    07fd256d53a3 arm64: vdso: Avoid ISB after reading from cntvct_el0
    90e498ef3f54 KVM: x86/mmu: Fix per-cpu counter corruption on 32-bit builds
    2e1a80b93464 KVM: Do not leak memory for duplicate debugfs directories
    43486cd7391f KVM: x86: accept userspace interrupt only if no event is injected
    1b7b9713a50f md/raid10: properly indicate failure when ending a failed write request
    790cb68d35a6 pcmcia: i82092: fix a null pointer dereference bug
    42ac2c63486f timers: Move clearing of base::timer_running under base:: Lock
    8211bb20da23 serial: 8250_pci: Avoid irq sharing for MSI(-X) interrupts.
    f73dcb5d63e2 serial: 8250_pci: Enumerate Elkhart Lake UARTs via dedicated driver
    607460d38692 MIPS: Malta: Do not byte-swap accesses to the CBUS UART
    3eb686d01c31 serial: 8250: Mask out floating 16/32-bit bus bits
    3b73a69962d6 serial: 8250_mtk: fix uart corruption issue when rx power off
    afdef443a892 serial: tegra: Only print FIFO error message when an error occurs
    097a183f9c1d ext4: fix potential htree corruption when growing large_dir directories
    ac23a1738127 pipe: increase minimum default pipe size to 2 pages
    f3cae04bd42d media: rtl28xxu: fix zero-length control request
    e2f6d5b03898 staging: rtl8712: get rid of flush_scheduled_work
    8f241df0e68f staging: rtl8723bs: Fix a resource leak in sd_int_dpc
    bbdd4a51629a tpm_ftpm_tee: Free and unregister TEE shared memory during kexec
    3c712f14d8a9 optee: Fix memory leak when failing to register shm pages
    0572199b78b3 tee: add tee_shm_alloc_kernel_buf()
    b247bf412cc2 optee: Clear stale cache entries during initialization
    7da261e6bb65 tracing / histogram: Give calculation hist_fields a size
    ba22053f5d5e scripts/tracing: fix the bug that can't parse raw_trace_func
    8d1191f9243c clk: fix leak on devm_clk_bulk_get_all() unwind
    ed5c9a49e6c0 usb: otg-fsm: Fix hrtimer list corruption
    449a705fba60 usb: gadget: f_hid: idle uses the highest byte for duration
    02f336cee589 usb: gadget: f_hid: fixed NULL pointer dereference
    f780a9580cd2 usb: gadget: f_hid: added GET_IDLE and SET_IDLE handlers
    134e27da543d usb: cdns3: Fixed incorrect gadget state
    df1c6eec4ea1 ALSA: usb-audio: Add registration quirk for JBL Quantum 600
    639b45456ec6 ALSA: hda/realtek: add mic quirk for Acer SF314-42
    d09639528b66 firmware_loader: fix use-after-free in firmware_fallback_sysfs
    1deb6b903018 firmware_loader: use -ETIMEDOUT instead of -EAGAIN in fw_load_sysfs_fallback
    0ee687e67277 USB: serial: ftdi_sio: add device ID for Auto-M3 OP-COM v2
    01b2c35b051b USB: serial: ch341: fix character loss at high transfer rates
    9ed43cfaa7f7 USB: serial: option: add Telit FD980 composition 0x1056
    518e81874c40 USB: usbtmc: Fix RCU stall warning
    ff29fe26ab86 Bluetooth: defer cleanup of resources in hci_unregister_dev()
    580c10a40cc7 blk-iolatency: error out if blk_get_queue() failed in iolatency_set_limit()
    ed169b054b43 net: vxge: fix use-after-free in vxge_device_unregister
    c5549876a9ef net: fec: fix use-after-free in fec_drv_remove
    3fed6dee16e4 net: pegasus: fix uninit-value in get_interrupt_interval
    75cef4fc07d2 bnx2x: fix an error code in bnx2x_nic_load()
    437ee90d7b4f mips: Fix non-POSIX regexp
    b1fa6747b9d0 net: ipv6: fix returned variable type in ip6_skb_dst_mtu
    3e63b566d96a nfp: update ethtool reporting of pauseframe control
    d333503de1f0 sctp: move the active_key update after sh_keys is added
    de30346dd396 gpio: tqmx86: really make IRQ optional
    9d440b5c1d20 net: natsemi: Fix missing pci_disable_device() in probe and remove
    69340406986a net: phy: micrel: Fix detection of ksz87xx switch
    2b8ab7aec0dc net: dsa: sja1105: invalidate dynamic FDB entries learned concurrently with statically added ones
    71b0a935dbb0 net: dsa: sja1105: overwrite dynamic FDB entries with static ones in .port_fdb_add
    88b7781609c6 net, gro: Set inner transport header offset in tcp/udp GRO hook
    ba3abe3f8236 dmaengine: imx-dma: configure the generic DMA type to make it work
    ee2f81330a7b media: videobuf2-core: dequeue if start_streaming fails
    3377f2f8c606 scsi: sr: Return correct event when media event code is 3
    f588d4b7be92 spi: imx: mx51-ecspi: Fix low-speed CONFIGREG delay calculation
    b58e3d59a5d8 spi: imx: mx51-ecspi: Reinstate low-speed CONFIGREG delay
    2c1065d40acb omap5-board-common: remove not physically existing vdds_1v8_main fixed-regulator
    299e3968c01a ARM: dts: am437x-l4: fix typo in can@0 node
    9cbe7e21ddff clk: stm32f4: fix post divisor setup for I2S/SAI PLLs
    3f9eed4462b3 ALSA: usb-audio: fix incorrect clock source setting
    16db40fc4a37 arm64: dts: armada-3720-turris-mox: remove mrvl,i2c-fast-mode
    7c08460773b8 ARM: dts: imx: Swap M53Menlo pinctrl_power_button/pinctrl_power_out pins
    1b1f1aa225ed ARM: imx: fix missing 3rd argument in macro imx_mmdc_perf_init
    aecff98c3efe ARM: dts: colibri-imx6ull: limit SDIO clock to 25MHz
    c39907335b9c ARM: dts: imx6qdl-sr-som: Increase the PHY reset duration to 10ms
    61b71c5f51aa ARM: imx: add missing clk_disable_unprepare()
    d88d6bba3bd9 ARM: imx: add missing iounmap()
    6c629cd0239f arm64: dts: ls1028a: fix node name for the sysclk
    4a830a37d37e ALSA: seq: Fix racy deletion of subscriber
    0658a4533576 Revert "ACPICA: Fix memory leak caused by _CID repair function"
    e350cd02e293 Linux 5.4.139
    03ff8a4f9db6 spi: mediatek: Fix fifo transfer
    a0f66ddf05c2 bpf, selftests: Adjust few selftest outcomes wrt unreachable code
    d3796e8f6b3d bpf, selftests: Add a verifier test for assigning 32bit reg states to 64bit ones
    8dec99abcd74 bpf: Test_verifier, add alu32 bounds tracking tests
    fd568de5806f bpf: Fix leakage under speculation on mispredicted branches
    d2f790327f83 bpf: Do not mark insn as seen under speculative path verification
    283d742988f6 bpf: Inherit expanded/patched seen count from old aux data
    a0a9546aaec3 Revert "watchdog: iTCO_wdt: Account for rebooting on second timeout"
    76f5314d7859 firmware: arm_scmi: Add delayed response status check
    1b38f70bbc7c firmware: arm_scmi: Ensure drivers provide a probe function
    44f522298c94 Revert "Bluetooth: Shutdown controller after workqueues are flushed or cancelled"
    38f54217b423 ACPI: fix NULL pointer dereference
    0ea2f55babb7 nvme: fix nvme_setup_command metadata trace event
    b508b652d4f3 net: Fix zero-copy head len calculation.
    bf692e7ef657 qed: fix possible unpaired spin_{un}lock_bh in _qed_mcp_cmd_and_union()
    6bc48348eca7 r8152: Fix potential PM refcount imbalance
    a57c75ff0700 ASoC: tlv320aic31xx: fix reversed bclk/wclk master bits
    e2cccb839a18 spi: stm32h7: fix full duplex irq handler handling
    b72f2d9e91e1 regulator: rt5033: Fix n_voltages settings for BUCK and LDO
    86f2a3e9aae9 btrfs: fix lost inode on log replay after mix of fsync, rename and inode eviction
    b7f0fa2192c5 btrfs: fix race causing unnecessary inode logging during link and rename
    cb006da62a9e btrfs: do not commit logs and transactions during link and rename operations
    174c27d0f9ef btrfs: delete duplicated words + other fixes in comments
    7b90d57b09fa Linux 5.4.138
    7eef18c0479b can: j1939: j1939_session_deactivate(): clarify lifetime of session object
    18b536de3b97 i40e: Add additional info to PHY type error
    d21eb931109a Revert "perf map: Fix dso->nsinfo refcounting"
    16447b2f5c66 powerpc/pseries: Fix regression while building external modules
    265883d1d839 PCI: mvebu: Setup BAR0 in order to fix MSI
    21734a31c9a0 can: hi311x: fix a signedness bug in hi3110_cmd()
    f4fa45b0f91e sis900: Fix missing pci_disable_device() in probe and remove
    dff00ce44891 tulip: windbond-840: Fix missing pci_disable_device() in probe and remove
    e0310bbeaaa2 sctp: fix return value check in __sctp_rcv_asconf_lookup
    408614108abd net/mlx5e: Fix nullptr in mlx5e_hairpin_get_mdev()
    ac4983230616 net/mlx5: Fix flow table chaining
    527feae56fe6 net: llc: fix skb_over_panic
    ede4c93860e6 mlx4: Fix missing error code in mlx4_load_one()
    acb97d4b2d0e net: Set true network header for ECN decapsulation
    851946a68136 tipc: fix sleeping in tipc accept routine
    194b71d28b26 i40e: Fix log TC creation failure when max num of queues is exceeded
    834af62212c7 i40e: Fix queue-to-TC mapping on Tx
    74aea4b7159a i40e: Fix firmware LLDP agent related warning
    b2ab34e862eb i40e: Fix logic of disabling queues
    519582e44e6a netfilter: nft_nat: allow to specify layer 4 protocol NAT only
    3a7a4cee7bec netfilter: conntrack: adjust stop timestamp to real expiry value
    1c043783403c cfg80211: Fix possible memory leak in function cfg80211_bss_update
    6cf2abea1018 nfc: nfcsim: fix use after free during module unload
    6b313d0ffa71 NIU: fix incorrect error return, missed in previous revert
    c4663c162778 HID: wacom: Re-enable touch by default for Cintiq 24HDT / 27QHDT
    e9e2ce00aeda can: esd_usb2: fix memory leak
    43726620b2f6 can: ems_usb: fix memory leak
    819867389276 can: usb_8dev: fix memory leak
    a051dbd17b5b can: mcba_usb_start(): add missing urb->transfer_dma initialization
    793581441b5c can: raw: raw_setsockopt(): fix raw_rcv panic for sock UAF
    c621638d0e6d can: j1939: j1939_xtp_rx_dat_one(): fix rxtimer value between consecutive TP.DT to 750ms
    a24d87b429a9 ocfs2: issue zeroout to EOF blocks
    eaaa4284e288 ocfs2: fix zero out valid data
    9bd1092148b5 KVM: add missing compat KVM_CLEAR_DIRTY_LOG
    7a94dfe5e2a0 x86/kvm: fix vcpu-id indexed array sizes
    2dc291582cce Revert "ACPI: resources: Add checks for ACPI IRQ override"
    a8eec6979734 btrfs: mark compressed range uptodate only if all bio succeed
    57429c1ec770 btrfs: fix rw device counting in __btrfs_free_extra_devids
    61f2cbc792eb x86/asm: Ensure asm/proto.h can be included stand-alone
    99372c38a948 net_sched: check error pointer in tcf_dump_walker()
    5b1de8e15f0f Linux 5.4.137
    ebb1b38be0c9 ipv6: ip6_finish_output2: set sk into newly allocated nskb
    6c04123962f0 ARM: dts: versatile: Fix up interrupt controller node names
    befa900533a9 iomap: remove the length variable in iomap_seek_hole
    83fb41b2f6e4 iomap: remove the length variable in iomap_seek_data
    302e1acd4c26 cifs: fix the out of range assignment to bit fields in parse_server_interfaces
    02a470e3c64a firmware: arm_scmi: Fix range check for the maximum number of pending messages
    289dd584319f firmware: arm_scmi: Fix possible scmi_linux_errmap buffer overflow
    e3acb292f092 hfs: add lock nesting notation to hfs_find_init
    af1178296d77 hfs: fix high memory mapping in hfs_bnode_read
    89136a47e2e7 hfs: add missing clean-up in hfs_fill_super
    ded37d03440d ipv6: allocate enough headroom in ip6_finish_output2()
    f65b7f377cca sctp: move 198 addresses from unusable to private scope
    c8d32973ee6a net: annotate data race around sk_ll_usec
    c23b9a5610f9 net/802/garp: fix memleak in garp_request_join()
    88c4cae3ed25 net/802/mrp: fix memleak in mrp_request_join()
    eef99860c677 cgroup1: fix leaked context root causing sporadic NULL deref in LTP
    7f0365b4daaa workqueue: fix UAF in pwq_unbound_release_workfn()
    85abe0d47fe6 af_unix: fix garbage collect vs MSG_PEEK
    af45f3527aa0 KVM: x86: determine if an exception has an error code only when injecting it.
    828cab3c8c23 tools: Allow proper CC/CXX/... override with LLVM=1 in Makefile.include
    525c5513b60d selftest: fix build error in tools/testing/selftests/vm/userfaultfd.c
    253dccefb5cb Linux 5.4.136
    587f86b7a2a0 xhci: add xhci_get_virt_ep() helper
    f9d0c35556cd perf inject: Close inject.output on exit
    a9c103fa91e4 PCI: Mark AMD Navi14 GPU ATS as broken
    11561d2f7b9d btrfs: compression: don't try to compress if we don't have enough pages
    4980301e1c1f iio: accel: bma180: Fix BMA25x bandwidth register values
    d04f2582c47e iio: accel: bma180: Use explicit member assignment
    4e0afa88954b net: bcmgenet: ensure EXT_ENERGY_DET_MASK is clear
    2a4865d1547e net: dsa: mv88e6xxx: use correct .stats_set_histogram() on Topaz
    7d8c06b8d2d2 drm: Return -ENOTTY for non-drm ioctls
    b5d7bebd96a3 nds32: fix up stack guard gap
    ba378b796088 rbd: always kick acquire on "acquired" and "released" notifications
    13066d6628f0 rbd: don't hold lock_rwsem while running_list is being drained
    b12ead825f6c hugetlbfs: fix mount mode command line processing
    60dbbd76f110 userfaultfd: do not untag user pointers
    540eee8cbb3d selftest: use mmap instead of posix_memalign to allocate memory
    e706ac3fc82e ixgbe: Fix packet corruption due to missing DMA sync
    e617fa62f6cf media: ngene: Fix out-of-bounds bug in ngene_command_config_free_buf()
    77713fb336ca btrfs: check for missing device in btrfs_trim_fs
    f899f24d34d9 tracing: Fix bug in rb_per_cpu_empty() that might cause deadloop.
    59a9f75fb2b6 tracing/histogram: Rename "cpu" to "common_cpu"
    379d8da3353e firmware/efi: Tell memblock about EFI iomem reservations
    281a94362bbe usb: dwc2: gadget: Fix sending zero length packet in DDMA mode.
    167079fbfaa7 USB: serial: cp210x: add ID for CEL EM3588 USB ZigBee stick
    811c4cdf2917 USB: serial: cp210x: fix comments for GE CS1000
    f54ee7e16d0d USB: serial: option: add support for u-blox LARA-R6 family
    e28d28eb9be6 usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop()
    863d071dbcd5 usb: max-3421: Prevent corruption of freed memory
    e4077a90e600 USB: usb-storage: Add LaCie Rugged USB3-FW to IGNORE_UAS
    da6f6769ee0f usb: hub: Fix link power management max exit latency (MEL) calculations
    fea6b53e631a usb: hub: Disable USB 3 device initiated lpm if exit latency is too high
    962ce043ef92 KVM: PPC: Book3S HV Nested: Sanitise H_ENTER_NESTED TM state
    2b9ffddd70b4 KVM: PPC: Book3S: Fix H_RTAS rets buffer overflow
    c968f563ccde xhci: Fix lost USB 2 remote wake
    a660ecde5c55 ALSA: hdmi: Expose all pins on MSI MS-7C94 board
    f73696354d59 ALSA: sb: Fix potential ABBA deadlock in CSP driver
    7aa2dfbc6bd0 ALSA: usb-audio: Add registration quirk for JBL Quantum headsets
    46d62c3fe2ab ALSA: usb-audio: Add missing proc text entry for BESPOKEN type
    f1754f96ab41 s390/boot: fix use of expolines in the DMA code
    8eb521d19248 s390/ftrace: fix ftrace_update_ftrace_func implementation
    268132b070d9 Revert "MIPS: add PMD table accounting into MIPS'pmd_alloc_one"
    f323809e3108 proc: Avoid mixing integer types in mem_rw()
    b71a75209f6a drm/panel: raspberrypi-touchscreen: Prevent double-free
    2e6ab87f8e63 net: sched: cls_api: Fix the the wrong parameter
    b60461696a0b sctp: update active_key for asoc when old key is being replaced
    9fa89c2caee2 nvme: set the PRACT bit when using Write Zeroes with T10 PI
    c50141b3d769 r8169: Avoid duplicate sysfs entry creation error
    f726817d6b42 afs: Fix tracepoint string placement with built-in AFS
    b22c9e433bb7 Revert "USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem"
    69a49e7b5baf nvme-pci: don't WARN_ON in nvme_reset_work if ctrl.state is not RESETTING
    830251361425 ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions
    a88414fb1117 net/sched: act_skbmod: Skip non-Ethernet packets
    c278b954ccc7 net: hns3: fix rx VLAN offload state inconsistent issue
    006ed6f4d00b net/tcp_fastopen: fix data races around tfo_active_disable_stamp
    3942ba235693 net: hisilicon: rename CACHE_LINE_MASK to avoid redefinition
    f11f12decd55 bnxt_en: Check abort error state in bnxt_half_open_nic()
    16ce6cb78690 bnxt_en: Add missing check for BNXT_STATE_ABORT_ERR in bnxt_fw_rset_task()
    c993e7aadc50 bnxt_en: Refresh RoCE capabilities in bnxt_ulp_probe()
    6ee8e6be3067 bnxt_en: Improve bnxt_ulp_stop()/bnxt_ulp_start() call sequence.
    35637acc9810 spi: cadence: Correct initialisation of runtime PM again
    2f2150bf41c1 scsi: target: Fix protect handling in WRITE SAME(32)
    a6cb717f8534 scsi: iscsi: Fix iface sysfs attr detection
    25df44e90ff5 netrom: Decrease sock refcount when sock timers expire
    8d7924ce85ba net: sched: fix memory leak in tcindex_partial_destroy_work
    f38527f18905 KVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak
    b85dadd4347b KVM: PPC: Book3S: Fix CONFIG_TRANSACTIONAL_MEM=n crash
    b3224bd31861 net: decnet: Fix sleeping inside in af_decnet
    bd2b3b13aa2a efi/tpm: Differentiate missing and invalid final event log table.
    9413c0abb57f net: fix uninit-value in caif_seqpkt_sendmsg
    6d56299ff911 bpftool: Check malloc return value in mount_bpffs_for_pin
    edec10098675 bpf, sockmap, tcp: sk_prot needs inuse_idx set for proc stats
    58259e8b6e85 s390/bpf: Perform r1 range checking before accessing jit->seen_reg[r1]
    cc876a5618bc liquidio: Fix unintentional sign extension issue on left shift of u16
    42fe8f433b31 ASoC: rt5631: Fix regcache sync errors on resume
    d99aaf07365f spi: mediatek: fix fifo rx mode
    08cdda8d8972 regulator: hi6421: Fix getting wrong drvdata
    b25be6bf6419 regulator: hi6421: Use correct variable type for regmap api val argument
    a1ade24cccb5 spi: stm32: fixes pm_runtime calls in probe/remove
    40e203ce74eb spi: stm32: Use dma_request_chan() instead dma_request_slave_channel()
    24b78097a837 spi: imx: add a check for speed_hz before calculating the clock
    52cff6123aa0 perf data: Close all files in close_dir()
    0f63857d1099 perf probe-file: Delete namelist in del_events() on the error path
    8b92ea243bbf perf lzma: Close lzma stream on exit
    51351c6d5a18 perf script: Fix memory 'threads' and 'cpus' leaks on exit
    d2bfc3eda914 perf dso: Fix memory leak in dso__new_map()
    05804a7d223d perf test event_update: Fix memory leak of evlist
    d257f3abdc71 perf test session_topology: Delete session->evlist
    89d1762a4a21 perf env: Fix sibling_dies memory leak
    fd335143befb perf probe: Fix dso->nsinfo refcounting
    6513dee46f80 perf map: Fix dso->nsinfo refcounting
    ff9fc81fa884 nvme-pci: do not call nvme_dev_remove_admin from nvme_remove
    d029df83c61a cxgb4: fix IRQ free race during driver unload
    ae9b64434441 pwm: sprd: Ensure configuring period and duty_cycle isn't wrongly skipped
    a37ca2a076ec selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect
    05364a2794fb selftests: icmp_redirect: remove from checking for IPv6 route get
    7f4848229e91 ipv6: fix 'disable_policy' for fwd packets
    c67fb96f5431 gve: Fix an error handling path in 'gve_probe()'
    e33da4eeaa35 igb: Fix position of assignment to *ring
    7dd897773618 igb: Check if num of q_vectors is smaller than max before array access
    d3d7cceee841 iavf: Fix an error handling path in 'iavf_probe()'
    7a13a8a8a5fb e1000e: Fix an error handling path in 'e1000_probe()'
    9fc381db7583 fm10k: Fix an error handling path in 'fm10k_probe()'
    5d6a04927b08 igb: Fix an error handling path in 'igb_probe()'
    cddd53237de8 igc: Fix an error handling path in 'igc_probe()'
    47f69d8828e7 igc: Prefer to use the pci_release_mem_regions method
    83b2d55a512a ixgbe: Fix an error handling path in 'ixgbe_probe()'
    ba4fbb68fcfe igc: change default return of igc_read_phy_reg()
    88e0720133d4 igb: Fix use-after-free error during reset
    a9508e0edfe3 igc: Fix use-after-free error during reset

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-firmware: upgrade 20210511 -> 20210818
Alexander Kanavin [Sun, 22 Aug 2021 12:50:54 +0000 (14:50 +0200)]
linux-firmware: upgrade 20210511 -> 20210818

License-Update: new firmware files, copyright years, file names
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bfceaba4f38771047dfdfdfdbf16b794006dfd78)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoimage_types: Restore pre-btrfs-tools 4.14.1 mkfs.btrfs shrink behavior
Marek Vasut [Tue, 27 Jul 2021 16:25:04 +0000 (18:25 +0200)]
image_types: Restore pre-btrfs-tools 4.14.1 mkfs.btrfs shrink behavior

Currently the mkfs.btrfs generates large images with a lot of wasted
space. This happens since OE-core updated btrfs-tools from 4.13.3 to
4.15.1 in commit 94b645aa77 ("btrfs-tools: update to 4.15.1") .

Note in mkfs.btrfs(8) manpage section -r says the following:
"
  -r|--rootdir <rootdir>
...
       Note This option may enlarge the image or file to ensure
       it’s big enough to contain the files from rootdir. Since
       version 4.14.1 the filesystem size is not minimized. Please
       see option --shrink if you need that functionality.

  --shrink
     Shrink the filesystem to its minimal size, only works with
     --rootdir option.
...
       Note prior to version 4.14.1, the shrinking was done
       automatically.
"

Add the --shrink option to EXTRA_IMAGECMD_btrfs to reinstate the
original behavior and un-waste the space.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c4a99d36967302c176b62fad840b5e79486ea356)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agotcf-agent: fetching over git:// no longer works
Alexander Kanavin [Sun, 22 Aug 2021 12:50:09 +0000 (14:50 +0200)]
tcf-agent: fetching over git:// no longer works

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 44a6cd03721b51cbb4e05870375fa347527b0db5)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoweston: Re-order gbm destruction at DRM-backend tear down
Khem Raj [Sat, 21 Aug 2021 20:08:09 +0000 (13:08 -0700)]
weston: Re-order gbm destruction at DRM-backend tear down

Fixes an annoying segfault seen on rpi4 when launching weston during
boot especially using systemd service or sysvinit script, if weston is
launched manually on VT, it works fine. This backport specifically
addresses the issue described above.

For more details see [1]

[1] https://gitlab.freedesktop.org/wayland/weston/-/issues/314

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 74e0249af85782af436791d1339ce864536d2022)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agofile: fix close_on_exec for multithreaded decompression
Changqing Li [Tue, 24 Aug 2021 09:20:49 +0000 (17:20 +0800)]
file: fix close_on_exec for multithreaded decompression

It is not safe to call the 'file' command from multiple threads. When a
file is checked with multiple threads in parallel, the file descriptors
might get shared which makes the pipe handling lock up, leading to lock
up in rpmbuild. And may lead to rarely deadlock on random recipes's
do_package task.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoopenssl: upgrade from 1.1.1k to 1.1.1l
Randy MacLeod [Wed, 25 Aug 2021 16:01:21 +0000 (12:01 -0400)]
openssl: upgrade from 1.1.1k to 1.1.1l

Includes fixes for:

CVE: CVE-2021-3711
CVE: CVE-2021-3712

as described by:
   https://www.openssl.org/news/secadv/20210824.txt

Ptest results on qemux86-64 with kvm:
   All tests successful.
   Files=158, Tests=2532, 93 wallclock secs \
     ( 1.31 usr  0.14 sys + 73.43 cusr 12.65 csys = 87.53 CPU)
   Result: PASS
   DURATION: 93

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoicu: increase pkgdata command buffer size
Joe Slater [Wed, 25 Aug 2021 22:13:59 +0000 (15:13 -0700)]
icu: increase pkgdata command buffer size

Mitigate pathname truncation when installing in a project
with a very long pathname.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoglibc: Fix CVE-2021-38604
Vinay Kumar [Mon, 23 Aug 2021 13:52:33 +0000 (06:52 -0700)]
glibc: Fix CVE-2021-38604

Source: https://sourceware.org/git/glibc.git
Tracking -- https://sourceware.org/bugzilla/show_bug.cgi?id=28213

Backported upstream commits b805aebd42364fe696e417808a700fdb9800c9e8 and 4cc79c217744743077bf7a0ec5e0a4318f1e6641
to glibc-2.33 source.

Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=b805aebd42364fe696e417808a700fdb9800c9e8]
Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=4cc79c217744743077bf7a0ec5e0a4318f1e6641]

Signed-off-by: Vinay Kumar <vinay.m.engg@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosdk: Enable do_populate_sdk with multilibs
Khem Raj [Sun, 20 Jun 2021 21:46:32 +0000 (14:46 -0700)]
sdk: Enable do_populate_sdk with multilibs

This patch enables building image based SDKs for multi-libbed images
e.g. lib32-core-image-minimal and so on. Change the path to nativesdk
tools to use recipe-sysroot since thats where the nativesdk components
are installed and it will need access to qemu wrappers during build for
processing intercepts

[YOCTO #14444]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6196a785eababb040ee1dee9f33cb6d6dad77eef)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosdk: fix relocate symlink failed
hongxu [Tue, 10 Aug 2021 13:33:56 +0000 (21:33 +0800)]
sdk: fix relocate symlink failed

Install SDK to non-default dir, sysmlink mkfs.vfat is invalid

$ ./sdk.sh -y -d ./dnf-2 -S -D
$ ls sysroots/x86_64-wrlinuxsdk-linux/usr/bin/mkfs.vfat -al
lrwxrwxrwx 1 hjia users 99 Aug 10 20:38 sysroots/x86_64-wrlinuxsdk-linux/usr/bin/mkfs.vfat -> /opt/windriver/wrlinux-graphics/21.32/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/mkfs.vfat.dosfstools

Since commit [bc4ee54535 sdk: Decouple default install path from
built in path] applied, sdk relocates symlink failed, it should
replace $SDK_BUILD_PATH rather than $DEFAULT_INSTALL_DIR, just
like above commit did

Without this commit:
...
|+ for l in $($SUDO_EXEC find $native_sysroot -type l)
|++ readlink path-to/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/mkfs.vfat
|++ sed -e s:/usr/local/oecore-x86_64:path-to:
|+ ln -sfn /opt/windriver/wrlinux-graphics/21.32/sysroots/x86_64-wrlinuxsdk-linux/
usr/bin/mkfs.vfat.dosfstools path-to//sysroots/x86_64-wrlinuxsdk-linux/usr/bin/mkfs.vfat
...

After appling this commit:
...
|+ for l in $($SUDO_EXEC find $native_sysroot -type l)
|++ readlink path-to/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/mkfs.vfat
|++ sed -e s:/opt/windriver/wrlinux-graphics/21.31:path-to:
|+ ln -sfn path-to/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/mkfs.vfat.dosfstools
path-to/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/mkfs.vfat
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 942c06a7348070b92f722fa5c439c8c4404485b7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowic: don't forcibly pass -T default
Ross Burton [Mon, 9 Aug 2021 15:36:49 +0000 (16:36 +0100)]
wic: don't forcibly pass -T default

This reverts part of oe-core eecbe62555, which was a previous attempt
to solve the Y2038 problem.  This is now solved centrally in e2fsprogs,
so doesn't need to be dealt with in wic.

We don't revert the commit entirely, to retain the warning if a
filesystem has small inodes.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7e8017208bed98b6c90735cb641fc9d7aedf9140)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoe2fsprogs: ensure small images have 256-byte inodes
Ross Burton [Mon, 9 Aug 2021 15:36:48 +0000 (16:36 +0100)]
e2fsprogs: ensure small images have 256-byte inodes

e2fsprogs calls filesystems larger than 3MB but smaller than 512MB
"small", which has some implications:

- blocksize 1024 instead of 4096
- inode_ratio 4096 instead of 16384
- inode_size 128 instead of 256

The outcome of the inode size dropping to 128 bytes is that they cannot
store 64-bit timestamps, so are not Y2038-safe.

A previous attempt to solve this problem[1] changed some of the canned
wic files to pass -T default to mkfs.ext4, but this only covered wic
images and not traditional images.  Also, actually small filesystems,
for example a core-image-minimal, will happily be tens of megabytes and
with the "default" options will result in an image which runs out of
blocks before it runs out of space:

mkfs.ext4: Could not allocate block in ext2 filesystem while populating file system

Considering that many OpenEmbedded images are in fact "small", being
2038-safe is worth the marginal increase is disk usage.  This patch
alters the small configuration in native builds so that it also has
256-byte inodes.  Target is unchanged so that standard behaviour is
maintained outside of the build.

This is actually the same underlying patch that Mathieu Dubois-Briand
sent in April, but the wic change in [1] was accepted instead. I believe
that is the wrong approach and this approach covers more cases.

[ YOCTO #14478 ]

[1] openembedded-core eecbe62
[2] https://lists.openembedded.org/g/openembedded-core/message/150298

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9ab0ae83a24ee99e69f8ac54256b253a122aef8a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoutils: Reduce the number of calls to the "dirname" command
Oleksandr Popovych [Fri, 20 Aug 2021 12:41:43 +0000 (05:41 -0700)]
utils: Reduce the number of calls to the "dirname" command

utils.bbclass contains create_cmdline_wrapper() function that
creates wrapper script with additional arguments for any passed
"$cmd" command, and uses several calls to "dirname".

Because "dirname" is an external command, in cases of lots of
calls to wrapped "$cmd", each call of "dirname" will incur
significant overhead.

There are three same calls to "dirname": one for saving it`s
output to "realdir" variable, and other two in "exec" command.
So last two "dirname" calls can be replaced with cached value
from "realdir" variable.

Signed-off-by: Oleksandr Popovych <opopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4b9cf2c80fd14386e0b88a2e6c40a9fa3f1ae0f7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolzo: add CVE_PRODUCT
Marta Rybczynska [Fri, 20 Aug 2021 10:09:38 +0000 (12:09 +0200)]
lzo: add CVE_PRODUCT

lzo was missing CVE_PRODUCT and related CVEs (at least CVE-2014-4607) were
not reported.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 366cf8201e36df1ac836e49de04ccda1f763ca9e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agokernel-devsrc: fix 5.14+ objtool compilation
Bruce Ashfield [Tue, 17 Aug 2021 15:27:32 +0000 (11:27 -0400)]
kernel-devsrc: fix 5.14+ objtool compilation

In v5.14+, x86 requires not just elfutils, but the elf headers
on the target to build objtool (required for 'scripts parepare'),
so we tweak our RDEPENDS to ensure that the right headers are
on the target.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 03ccc234386f753e1b0129ec557e67bcd04cc69e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agokernel-devsrc: 5.14+ updates
Bruce Ashfield [Tue, 17 Aug 2021 15:27:31 +0000 (11:27 -0400)]
kernel-devsrc: 5.14+ updates

commit 6218d0f6b8dec [x86/syscalls: Switch to generic syscalltbl.sh]
means that x86 no longer has a syscall script to copy, which causes
a build error.

We already copy the generic syscall script (in scripts), so we just
catch errors for the copies to support older and 5.14+ kernels in
the same devsrc recipe.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5debc9bc25110b836b76927c61b2455e5e235a84)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.57
Bruce Ashfield [Sun, 15 Aug 2021 15:08:55 +0000 (11:08 -0400)]
linux-yocto/5.10: update to v5.10.57

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

    1cd6e30b83d7 Linux 5.10.57
    9c645a020bab spi: mediatek: Fix fifo transfer
    7254e2d9eb41 selftest/bpf: Verifier tests for var-off access
    30ea1c535291 bpf, selftests: Adjust few selftest outcomes wrt unreachable code
    98bf2906d3be bpf: Update selftests to reflect new error states
    360e5b7af653 bpf, selftests: Adjust few selftest result_unpriv outcomes
    5abcd138cbd8 selftest/bpf: Adjust expected verifier errors
    83bbf953f66c selftests/bpf: Add a test for ptr_to_map_value on stack for helper access
    e2b7a4ccbf7c Revert "watchdog: iTCO_wdt: Account for rebooting on second timeout"
    1b1a00b13c34 firmware: arm_scmi: Add delayed response status check
    93ef561406a7 firmware: arm_scmi: Ensure drivers provide a probe function
    1812895f17e1 Revert "Bluetooth: Shutdown controller after workqueues are flushed or cancelled"
    cae3fa3d8165 ACPI: fix NULL pointer dereference
    98b070694f45 drm/amd/display: Fix max vstartup calculation for modes with borders
    f9d875c8c92f drm/amd/display: Fix comparison error in dcn21 DML
    91865b458edd nvme: fix nvme_setup_command metadata trace event
    06a9092f6647 efi/mokvar: Reserve the table only if it is in boot services data
    27ff30c8b3f3 ASoC: ti: j721e-evm: Check for not initialized parent_clk_id
    a00bcc5298be ASoC: ti: j721e-evm: Fix unbalanced domain activity tracking during startup
    e8b287e78381 net: Fix zero-copy head len calculation.
    c6bdf7d97d5f ASoC: rt5682: Fix the issue of garbled recording after powerd_dbus_suspend
    74b53ee4b89e qed: fix possible unpaired spin_{un}lock_bh in _qed_mcp_cmd_and_union()
    f6a2ff040b5c r8152: Fix potential PM refcount imbalance
    c98a7916cd37 ASoC: tlv320aic31xx: fix reversed bclk/wclk master bits
    03258515c9eb spi: stm32h7: fix full duplex irq handler handling
    cfb8173a23cf regulator: rt5033: Fix n_voltages settings for BUCK and LDO
    81dc9a4868a9 regulator: rtmv20: Fix wrong mask for strobe-polarity-high
    9e55b9278c47 btrfs: fix lost inode on log replay after mix of fsync, rename and inode eviction
    e2419c570986 btrfs: fix race causing unnecessary inode logging during link and rename
    118b070bf415 Revert "drm/i915: Propagate errors on awaiting already signaled fences"
    6976f3cf34a1 drm/i915: Revert "drm/i915/gem: Asynchronous cmdparser"
    9746c25334cb Linux 5.10.56
    55dd22c5d029 can: j1939: j1939_session_deactivate(): clarify lifetime of session object
    75ebe1d355b5 i40e: Add additional info to PHY type error
    2ca5ec188b20 Revert "perf map: Fix dso->nsinfo refcounting"
    c14cee5bc466 powerpc/pseries: Fix regression while building external modules
    bfc8e67c60b9 SMB3: fix readpage for large swap cache
    be561c0154dc bpf: Fix pointer arithmetic mask tightening under state pruning
    ffb9d5c48b4b bpf: verifier: Allocate idmap scratch in verifier env
    a11ca29c65c1 bpf: Remove superfluous aux sanitation on subprog rejection
    0e9280654aa4 bpf: Fix leakage due to insufficient speculative store bypass mitigation
    bea9e2fd1808 bpf: Introduce BPF nospec instruction for mitigating Spectre v4
    cd61e665a166 can: hi311x: fix a signedness bug in hi3110_cmd()
    65dfa6cb2233 sis900: Fix missing pci_disable_device() in probe and remove
    93e5bf4b2925 tulip: windbond-840: Fix missing pci_disable_device() in probe and remove
    58b8c812c764 sctp: fix return value check in __sctp_rcv_asconf_lookup
    362e9d23cf70 net/mlx5e: Fix nullptr in mlx5e_hairpin_get_mdev()
    bd744f2a2755 net/mlx5: Fix flow table chaining
    1b148bd72e50 skmsg: Make sk_psock_destroy() static
    645a1d3bef5f drm/msm/dp: Initialize the INTF_CONFIG register
    4a6841921cc8 drm/msm/dpu: Fix sm8250_mdp register length
    e6097071a4ff net: llc: fix skb_over_panic
    01f3581d4400 KVM: x86: Check the right feature bit for MSR_KVM_ASYNC_PF_ACK access
    f5f78ae5f1be mlx4: Fix missing error code in mlx4_load_one()
    51b751fc06b8 octeontx2-pf: Fix interface down flag on error
    4951ffa3fac8 tipc: do not write skb_shinfo frags when doing decrytion
    7eefa0b74f3e ionic: count csum_none when offload enabled
    60decbe01d7d ionic: fix up dim accounting for tx and rx
    a7c85a516cd0 ionic: remove intr coalesce update from napi
    6961323eed46 net: qrtr: fix memory leaks
    91350564ea8c net: Set true network header for ECN decapsulation
    a41282e82a1d tipc: fix sleeping in tipc accept routine
    10f585740cf0 tipc: fix implicit-connect for SYN+
    bb6061616211 i40e: Fix log TC creation failure when max num of queues is exceeded
    c1cc6bce1afd i40e: Fix queue-to-TC mapping on Tx
    4382cca17915 i40e: Fix firmware LLDP agent related warning
    e090ffdf0563 i40e: Fix logic of disabling queues
    cbc8012902b3 netfilter: nft_nat: allow to specify layer 4 protocol NAT only
    3dbda8483f42 netfilter: conntrack: adjust stop timestamp to real expiry value
    ac038f4152ef mac80211: fix enabling 4-address mode on a sta vif after assoc
    076bc6ebce48 bpf: Fix OOB read when printing XDP link fdinfo
    e6a06a13ec6f RDMA/bnxt_re: Fix stats counters
    c8667cb406fd cfg80211: Fix possible memory leak in function cfg80211_bss_update
    9ab284bc3530 nfc: nfcsim: fix use after free during module unload
    ea04a3b5727e blk-iocost: fix operation ordering in iocg_wake_fn()
    fc2756cce06f drm/amdgpu: Fix resource leak on probe error path
    ccc7a1bb322e drm/amdgpu: Avoid printing of stack contents on firmware load error
    63570e578094 drm/amd/display: ensure dentist display clock update finished in DCN20
    2eab387507fd NIU: fix incorrect error return, missed in previous revert
    cb71730a6312 HID: wacom: Re-enable touch by default for Cintiq 24HDT / 27QHDT
    7bca5da00539 alpha: register early reserved memory in memblock
    30e19d072ea0 can: esd_usb2: fix memory leak
    88b40258162b can: ems_usb: fix memory leak
    f58ac91ff87d can: usb_8dev: fix memory leak
    a6ebfbdaca3d can: mcba_usb_start(): add missing urb->transfer_dma initialization
    2fc2c2816cb7 can: peak_usb: pcan_usb_handle_bus_evt(): fix reading rxerr/txerr values
    afe2ffd92061 can: raw: raw_setsockopt(): fix raw_rcv panic for sock UAF
    a9c02d0e1513 can: j1939: j1939_xtp_rx_dat_one(): fix rxtimer value between consecutive TP.DT to 750ms
    da4f4916dab2 ocfs2: issue zeroout to EOF blocks
    943014593061 ocfs2: fix zero out valid data
    52acb6c147b3 KVM: add missing compat KVM_CLEAR_DIRTY_LOG
    7d67d4ab28e3 x86/kvm: fix vcpu-id indexed array sizes
    2388c7674fbd ACPI: DPTF: Fix reading of attributes
    0d6afa25975e Revert "ACPI: resources: Add checks for ACPI IRQ override"
    0a421a2fc516 btrfs: mark compressed range uptodate only if all bio succeed
    4e1a57d75264 btrfs: fix rw device counting in __btrfs_free_extra_devids
    27aa7171fe2b pipe: make pipe writes always wake up readers
    02210a5e1894 x86/asm: Ensure asm/proto.h can be included stand-alone
    65b2658634fe io_uring: fix null-ptr-deref in io_sq_offload_start()
    e44d22fdf756 selftest: fix build error in tools/testing/selftests/vm/userfaultfd.c

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6ab4c36223e62ad99efb76863a703c83fb6da324)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.4: update to v5.4.139
Bruce Ashfield [Sun, 15 Aug 2021 15:08:54 +0000 (11:08 -0400)]
linux-yocto/5.4: update to v5.4.139

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

    e350cd02e293 Linux 5.4.139
    03ff8a4f9db6 spi: mediatek: Fix fifo transfer
    a0f66ddf05c2 bpf, selftests: Adjust few selftest outcomes wrt unreachable code
    d3796e8f6b3d bpf, selftests: Add a verifier test for assigning 32bit reg states to 64bit ones
    8dec99abcd74 bpf: Test_verifier, add alu32 bounds tracking tests
    fd568de5806f bpf: Fix leakage under speculation on mispredicted branches
    d2f790327f83 bpf: Do not mark insn as seen under speculative path verification
    283d742988f6 bpf: Inherit expanded/patched seen count from old aux data
    a0a9546aaec3 Revert "watchdog: iTCO_wdt: Account for rebooting on second timeout"
    76f5314d7859 firmware: arm_scmi: Add delayed response status check
    1b38f70bbc7c firmware: arm_scmi: Ensure drivers provide a probe function
    44f522298c94 Revert "Bluetooth: Shutdown controller after workqueues are flushed or cancelled"
    38f54217b423 ACPI: fix NULL pointer dereference
    0ea2f55babb7 nvme: fix nvme_setup_command metadata trace event
    b508b652d4f3 net: Fix zero-copy head len calculation.
    bf692e7ef657 qed: fix possible unpaired spin_{un}lock_bh in _qed_mcp_cmd_and_union()
    6bc48348eca7 r8152: Fix potential PM refcount imbalance
    a57c75ff0700 ASoC: tlv320aic31xx: fix reversed bclk/wclk master bits
    e2cccb839a18 spi: stm32h7: fix full duplex irq handler handling
    b72f2d9e91e1 regulator: rt5033: Fix n_voltages settings for BUCK and LDO
    86f2a3e9aae9 btrfs: fix lost inode on log replay after mix of fsync, rename and inode eviction
    b7f0fa2192c5 btrfs: fix race causing unnecessary inode logging during link and rename
    cb006da62a9e btrfs: do not commit logs and transactions during link and rename operations
    174c27d0f9ef btrfs: delete duplicated words + other fixes in comments
    7b90d57b09fa Linux 5.4.138
    7eef18c0479b can: j1939: j1939_session_deactivate(): clarify lifetime of session object
    18b536de3b97 i40e: Add additional info to PHY type error
    d21eb931109a Revert "perf map: Fix dso->nsinfo refcounting"
    16447b2f5c66 powerpc/pseries: Fix regression while building external modules
    265883d1d839 PCI: mvebu: Setup BAR0 in order to fix MSI
    21734a31c9a0 can: hi311x: fix a signedness bug in hi3110_cmd()
    f4fa45b0f91e sis900: Fix missing pci_disable_device() in probe and remove
    dff00ce44891 tulip: windbond-840: Fix missing pci_disable_device() in probe and remove
    e0310bbeaaa2 sctp: fix return value check in __sctp_rcv_asconf_lookup
    408614108abd net/mlx5e: Fix nullptr in mlx5e_hairpin_get_mdev()
    ac4983230616 net/mlx5: Fix flow table chaining
    527feae56fe6 net: llc: fix skb_over_panic
    ede4c93860e6 mlx4: Fix missing error code in mlx4_load_one()
    acb97d4b2d0e net: Set true network header for ECN decapsulation
    851946a68136 tipc: fix sleeping in tipc accept routine
    194b71d28b26 i40e: Fix log TC creation failure when max num of queues is exceeded
    834af62212c7 i40e: Fix queue-to-TC mapping on Tx
    74aea4b7159a i40e: Fix firmware LLDP agent related warning
    b2ab34e862eb i40e: Fix logic of disabling queues
    519582e44e6a netfilter: nft_nat: allow to specify layer 4 protocol NAT only
    3a7a4cee7bec netfilter: conntrack: adjust stop timestamp to real expiry value
    1c043783403c cfg80211: Fix possible memory leak in function cfg80211_bss_update
    6cf2abea1018 nfc: nfcsim: fix use after free during module unload
    6b313d0ffa71 NIU: fix incorrect error return, missed in previous revert
    c4663c162778 HID: wacom: Re-enable touch by default for Cintiq 24HDT / 27QHDT
    e9e2ce00aeda can: esd_usb2: fix memory leak
    43726620b2f6 can: ems_usb: fix memory leak
    819867389276 can: usb_8dev: fix memory leak
    a051dbd17b5b can: mcba_usb_start(): add missing urb->transfer_dma initialization
    793581441b5c can: raw: raw_setsockopt(): fix raw_rcv panic for sock UAF
    c621638d0e6d can: j1939: j1939_xtp_rx_dat_one(): fix rxtimer value between consecutive TP.DT to 750ms
    a24d87b429a9 ocfs2: issue zeroout to EOF blocks
    eaaa4284e288 ocfs2: fix zero out valid data
    9bd1092148b5 KVM: add missing compat KVM_CLEAR_DIRTY_LOG
    7a94dfe5e2a0 x86/kvm: fix vcpu-id indexed array sizes
    2dc291582cce Revert "ACPI: resources: Add checks for ACPI IRQ override"
    a8eec6979734 btrfs: mark compressed range uptodate only if all bio succeed
    57429c1ec770 btrfs: fix rw device counting in __btrfs_free_extra_devids
    61f2cbc792eb x86/asm: Ensure asm/proto.h can be included stand-alone
    99372c38a948 net_sched: check error pointer in tcf_dump_walker()

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d5455d9e201e324b7cf7bb19381bfebb0e892312)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.4: update to v5.4.137
Bruce Ashfield [Sun, 15 Aug 2021 15:08:53 +0000 (11:08 -0400)]
linux-yocto/5.4: update to v5.4.137

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

    5b1de8e15f0f Linux 5.4.137
    ebb1b38be0c9 ipv6: ip6_finish_output2: set sk into newly allocated nskb
    6c04123962f0 ARM: dts: versatile: Fix up interrupt controller node names
    befa900533a9 iomap: remove the length variable in iomap_seek_hole
    83fb41b2f6e4 iomap: remove the length variable in iomap_seek_data
    302e1acd4c26 cifs: fix the out of range assignment to bit fields in parse_server_interfaces
    02a470e3c64a firmware: arm_scmi: Fix range check for the maximum number of pending messages
    289dd584319f firmware: arm_scmi: Fix possible scmi_linux_errmap buffer overflow
    e3acb292f092 hfs: add lock nesting notation to hfs_find_init
    af1178296d77 hfs: fix high memory mapping in hfs_bnode_read
    89136a47e2e7 hfs: add missing clean-up in hfs_fill_super
    ded37d03440d ipv6: allocate enough headroom in ip6_finish_output2()
    f65b7f377cca sctp: move 198 addresses from unusable to private scope
    c8d32973ee6a net: annotate data race around sk_ll_usec
    c23b9a5610f9 net/802/garp: fix memleak in garp_request_join()
    88c4cae3ed25 net/802/mrp: fix memleak in mrp_request_join()
    eef99860c677 cgroup1: fix leaked context root causing sporadic NULL deref in LTP
    7f0365b4daaa workqueue: fix UAF in pwq_unbound_release_workfn()
    85abe0d47fe6 af_unix: fix garbage collect vs MSG_PEEK
    af45f3527aa0 KVM: x86: determine if an exception has an error code only when injecting it.
    828cab3c8c23 tools: Allow proper CC/CXX/... override with LLVM=1 in Makefile.include
    525c5513b60d selftest: fix build error in tools/testing/selftests/vm/userfaultfd.c
    253dccefb5cb Linux 5.4.136
    587f86b7a2a0 xhci: add xhci_get_virt_ep() helper
    f9d0c35556cd perf inject: Close inject.output on exit
    a9c103fa91e4 PCI: Mark AMD Navi14 GPU ATS as broken
    11561d2f7b9d btrfs: compression: don't try to compress if we don't have enough pages
    4980301e1c1f iio: accel: bma180: Fix BMA25x bandwidth register values
    d04f2582c47e iio: accel: bma180: Use explicit member assignment
    4e0afa88954b net: bcmgenet: ensure EXT_ENERGY_DET_MASK is clear
    2a4865d1547e net: dsa: mv88e6xxx: use correct .stats_set_histogram() on Topaz
    7d8c06b8d2d2 drm: Return -ENOTTY for non-drm ioctls
    b5d7bebd96a3 nds32: fix up stack guard gap
    ba378b796088 rbd: always kick acquire on "acquired" and "released" notifications
    13066d6628f0 rbd: don't hold lock_rwsem while running_list is being drained
    b12ead825f6c hugetlbfs: fix mount mode command line processing
    60dbbd76f110 userfaultfd: do not untag user pointers
    540eee8cbb3d selftest: use mmap instead of posix_memalign to allocate memory
    e706ac3fc82e ixgbe: Fix packet corruption due to missing DMA sync
    e617fa62f6cf media: ngene: Fix out-of-bounds bug in ngene_command_config_free_buf()
    77713fb336ca btrfs: check for missing device in btrfs_trim_fs
    f899f24d34d9 tracing: Fix bug in rb_per_cpu_empty() that might cause deadloop.
    59a9f75fb2b6 tracing/histogram: Rename "cpu" to "common_cpu"
    379d8da3353e firmware/efi: Tell memblock about EFI iomem reservations
    281a94362bbe usb: dwc2: gadget: Fix sending zero length packet in DDMA mode.
    167079fbfaa7 USB: serial: cp210x: add ID for CEL EM3588 USB ZigBee stick
    811c4cdf2917 USB: serial: cp210x: fix comments for GE CS1000
    f54ee7e16d0d USB: serial: option: add support for u-blox LARA-R6 family
    e28d28eb9be6 usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop()
    863d071dbcd5 usb: max-3421: Prevent corruption of freed memory
    e4077a90e600 USB: usb-storage: Add LaCie Rugged USB3-FW to IGNORE_UAS
    da6f6769ee0f usb: hub: Fix link power management max exit latency (MEL) calculations
    fea6b53e631a usb: hub: Disable USB 3 device initiated lpm if exit latency is too high
    962ce043ef92 KVM: PPC: Book3S HV Nested: Sanitise H_ENTER_NESTED TM state
    2b9ffddd70b4 KVM: PPC: Book3S: Fix H_RTAS rets buffer overflow
    c968f563ccde xhci: Fix lost USB 2 remote wake
    a660ecde5c55 ALSA: hdmi: Expose all pins on MSI MS-7C94 board
    f73696354d59 ALSA: sb: Fix potential ABBA deadlock in CSP driver
    7aa2dfbc6bd0 ALSA: usb-audio: Add registration quirk for JBL Quantum headsets
    46d62c3fe2ab ALSA: usb-audio: Add missing proc text entry for BESPOKEN type
    f1754f96ab41 s390/boot: fix use of expolines in the DMA code
    8eb521d19248 s390/ftrace: fix ftrace_update_ftrace_func implementation
    268132b070d9 Revert "MIPS: add PMD table accounting into MIPS'pmd_alloc_one"
    f323809e3108 proc: Avoid mixing integer types in mem_rw()
    b71a75209f6a drm/panel: raspberrypi-touchscreen: Prevent double-free
    2e6ab87f8e63 net: sched: cls_api: Fix the the wrong parameter
    b60461696a0b sctp: update active_key for asoc when old key is being replaced
    9fa89c2caee2 nvme: set the PRACT bit when using Write Zeroes with T10 PI
    c50141b3d769 r8169: Avoid duplicate sysfs entry creation error
    f726817d6b42 afs: Fix tracepoint string placement with built-in AFS
    b22c9e433bb7 Revert "USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem"
    69a49e7b5baf nvme-pci: don't WARN_ON in nvme_reset_work if ctrl.state is not RESETTING
    830251361425 ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions
    a88414fb1117 net/sched: act_skbmod: Skip non-Ethernet packets
    c278b954ccc7 net: hns3: fix rx VLAN offload state inconsistent issue
    006ed6f4d00b net/tcp_fastopen: fix data races around tfo_active_disable_stamp
    3942ba235693 net: hisilicon: rename CACHE_LINE_MASK to avoid redefinition
    f11f12decd55 bnxt_en: Check abort error state in bnxt_half_open_nic()
    16ce6cb78690 bnxt_en: Add missing check for BNXT_STATE_ABORT_ERR in bnxt_fw_rset_task()
    c993e7aadc50 bnxt_en: Refresh RoCE capabilities in bnxt_ulp_probe()
    6ee8e6be3067 bnxt_en: Improve bnxt_ulp_stop()/bnxt_ulp_start() call sequence.
    35637acc9810 spi: cadence: Correct initialisation of runtime PM again
    2f2150bf41c1 scsi: target: Fix protect handling in WRITE SAME(32)
    a6cb717f8534 scsi: iscsi: Fix iface sysfs attr detection
    25df44e90ff5 netrom: Decrease sock refcount when sock timers expire
    8d7924ce85ba net: sched: fix memory leak in tcindex_partial_destroy_work
    f38527f18905 KVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak
    b85dadd4347b KVM: PPC: Book3S: Fix CONFIG_TRANSACTIONAL_MEM=n crash
    b3224bd31861 net: decnet: Fix sleeping inside in af_decnet
    bd2b3b13aa2a efi/tpm: Differentiate missing and invalid final event log table.
    9413c0abb57f net: fix uninit-value in caif_seqpkt_sendmsg
    6d56299ff911 bpftool: Check malloc return value in mount_bpffs_for_pin
    edec10098675 bpf, sockmap, tcp: sk_prot needs inuse_idx set for proc stats
    58259e8b6e85 s390/bpf: Perform r1 range checking before accessing jit->seen_reg[r1]
    cc876a5618bc liquidio: Fix unintentional sign extension issue on left shift of u16
    42fe8f433b31 ASoC: rt5631: Fix regcache sync errors on resume
    d99aaf07365f spi: mediatek: fix fifo rx mode
    08cdda8d8972 regulator: hi6421: Fix getting wrong drvdata
    b25be6bf6419 regulator: hi6421: Use correct variable type for regmap api val argument
    a1ade24cccb5 spi: stm32: fixes pm_runtime calls in probe/remove
    40e203ce74eb spi: stm32: Use dma_request_chan() instead dma_request_slave_channel()
    24b78097a837 spi: imx: add a check for speed_hz before calculating the clock
    52cff6123aa0 perf data: Close all files in close_dir()
    0f63857d1099 perf probe-file: Delete namelist in del_events() on the error path
    8b92ea243bbf perf lzma: Close lzma stream on exit
    51351c6d5a18 perf script: Fix memory 'threads' and 'cpus' leaks on exit
    d2bfc3eda914 perf dso: Fix memory leak in dso__new_map()
    05804a7d223d perf test event_update: Fix memory leak of evlist
    d257f3abdc71 perf test session_topology: Delete session->evlist
    89d1762a4a21 perf env: Fix sibling_dies memory leak
    fd335143befb perf probe: Fix dso->nsinfo refcounting
    6513dee46f80 perf map: Fix dso->nsinfo refcounting
    ff9fc81fa884 nvme-pci: do not call nvme_dev_remove_admin from nvme_remove
    d029df83c61a cxgb4: fix IRQ free race during driver unload
    ae9b64434441 pwm: sprd: Ensure configuring period and duty_cycle isn't wrongly skipped
    a37ca2a076ec selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect
    05364a2794fb selftests: icmp_redirect: remove from checking for IPv6 route get
    7f4848229e91 ipv6: fix 'disable_policy' for fwd packets
    c67fb96f5431 gve: Fix an error handling path in 'gve_probe()'
    e33da4eeaa35 igb: Fix position of assignment to *ring
    7dd897773618 igb: Check if num of q_vectors is smaller than max before array access
    d3d7cceee841 iavf: Fix an error handling path in 'iavf_probe()'
    7a13a8a8a5fb e1000e: Fix an error handling path in 'e1000_probe()'
    9fc381db7583 fm10k: Fix an error handling path in 'fm10k_probe()'
    5d6a04927b08 igb: Fix an error handling path in 'igb_probe()'
    cddd53237de8 igc: Fix an error handling path in 'igc_probe()'
    47f69d8828e7 igc: Prefer to use the pci_release_mem_regions method
    83b2d55a512a ixgbe: Fix an error handling path in 'ixgbe_probe()'
    ba4fbb68fcfe igc: change default return of igc_read_phy_reg()
    88e0720133d4 igb: Fix use-after-free error during reset
    a9508e0edfe3 igc: Fix use-after-free error during reset

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d308f120891e23c34fa8ae38a7e87aa3810518ae)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolinux-yocto/5.10: update to v5.10.55
Bruce Ashfield [Sun, 15 Aug 2021 15:08:52 +0000 (11:08 -0400)]
linux-yocto/5.10: update to v5.10.55

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

    11fe69a17195 Linux 5.10.55
    984e93b8e207 ipv6: ip6_finish_output2: set sk into newly allocated nskb
    a74054ca7553 ARM: dts: versatile: Fix up interrupt controller node names
    3510b9b41c70 iomap: remove the length variable in iomap_seek_hole
    8659186e72d0 iomap: remove the length variable in iomap_seek_data
    65039407489c cifs: fix the out of range assignment to bit fields in parse_server_interfaces
    fe5fe0b1c8b9 firmware: arm_scmi: Fix range check for the maximum number of pending messages
    8f8e5475a369 firmware: arm_scmi: Fix possible scmi_linux_errmap buffer overflow
    d01328fef6af hfs: add lock nesting notation to hfs_find_init
    06b3d9923fa0 hfs: fix high memory mapping in hfs_bnode_read
    680b2917e60e hfs: add missing clean-up in hfs_fill_super
    5c3d753b872a drm/ttm: add a check against null pointer dereference
    2323690eb058 ipv6: allocate enough headroom in ip6_finish_output2()
    86cb49e7314e rcu-tasks: Don't delete holdouts within trc_wait_for_one_reader()
    55ddab2bfd70 rcu-tasks: Don't delete holdouts within trc_inspect_reader()
    4d972881f8d8 sctp: move 198 addresses from unusable to private scope
    915226f31fd4 net: annotate data race around sk_ll_usec
    92289f58f01d net/802/garp: fix memleak in garp_request_join()
    5d93810761b4 net/802/mrp: fix memleak in mrp_request_join()
    df34f888628e cgroup1: fix leaked context root causing sporadic NULL deref in LTP
    dcd00801f3d9 workqueue: fix UAF in pwq_unbound_release_workfn()
    93c5951e0ce1 af_unix: fix garbage collect vs MSG_PEEK
    dee8119eaa9e KVM: x86: determine if an exception has an error code only when injecting it.
    6f5d7a45f58d io_uring: fix link timeout refs
    475312897ea6 tools: Allow proper CC/CXX/... override with LLVM=1 in Makefile.include
    08277b9dde63 Linux 5.10.54
    c9f8e17990e0 skbuff: Fix build with SKB extensions disabled
    ba28765d338a xhci: add xhci_get_virt_ep() helper
    624290f368af sfc: ensure correct number of XDP queues
    1df4fe5a8871 drm/i915/gvt: Clear d3_entered on elsp cmd submission.
    c938e65768e0 usb: ehci: Prevent missed ehci interrupts with edge-triggered MSI
    25af91a806d2 perf inject: Close inject.output on exit
    fb35426d123e Documentation: Fix intiramfs script name
    570341f10ecc skbuff: Release nfct refcount on napi stolen or re-used skbs
    31828ffdab19 bonding: fix build issue
    c9d97b7bb897 PCI: Mark AMD Navi14 GPU ATS as broken
    f7ee361182e0 net: dsa: mv88e6xxx: enable SerDes PCS register dump via ethtool -d on Topaz
    30f1d4d03641 net: dsa: mv88e6xxx: enable SerDes RX stats for Topaz
    fc31b5be1383 drm/amdgpu: update golden setting for sienna_cichlid
    69a603aa170e drm: Return -ENOTTY for non-drm ioctls
    2831eeb7bc3d driver core: Prevent warning when removing a device link from unregistered consumer
    0e759383236a nds32: fix up stack guard gap
    7497f4c91da3 misc: eeprom: at24: Always append device id even if label property is set.
    8571daace5a6 rbd: always kick acquire on "acquired" and "released" notifications
    2f3731de5e69 rbd: don't hold lock_rwsem while running_list is being drained
    92291fa2d144 hugetlbfs: fix mount mode command line processing
    1a25c5738d0c memblock: make for_each_mem_range() traverse MEMBLOCK_HOTPLUG regions
    0b591c020d28 userfaultfd: do not untag user pointers
    fca5343b4892 io_uring: remove double poll entry on arm failure
    9eef9029151c io_uring: explicitly count entries for poll reqs
    1077e2b15283 selftest: use mmap instead of posix_memalign to allocate memory
    6e81e2c38a38 posix-cpu-timers: Fix rearm racing against process tick
    3efec3b4b16f bus: mhi: core: Validate channel ID when processing command completions
    b3f3a58a86c4 ixgbe: Fix packet corruption due to missing DMA sync
    e991457afdcb media: ngene: Fix out-of-bounds bug in ngene_command_config_free_buf()
    755971dc7ee8 btrfs: check for missing device in btrfs_trim_fs
    552b053f1a53 tracing: Synthetic event field_pos is an index not a boolean
    757bdba8026b tracing: Fix bug in rb_per_cpu_empty() that might cause deadloop.
    a5e1aff58943 tracing/histogram: Rename "cpu" to "common_cpu"
    0edad8b9f65d tracepoints: Update static_call before tp_funcs when adding a tracepoint
    4ed4074c6c6c firmware/efi: Tell memblock about EFI iomem reservations
    647e26b03ee9 usb: typec: stusb160x: register role switch before interrupt registration
    a206167bd638 usb: dwc2: gadget: Fix sending zero length packet in DDMA mode.
    f2c04f6b21ef usb: dwc2: gadget: Fix GOUTNAK flow for Slave mode.
    7073acb51a3b usb: gadget: Fix Unbalanced pm_runtime_enable in tegra_xudc_probe
    1bf7371b9004 USB: serial: cp210x: add ID for CEL EM3588 USB ZigBee stick
    45c87a94336f USB: serial: cp210x: fix comments for GE CS1000
    f528521c1574 USB: serial: option: add support for u-blox LARA-R6 family
    311fd7f7f186 usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop()
    7af54a4e221e usb: max-3421: Prevent corruption of freed memory
    69da81a96442 USB: usb-storage: Add LaCie Rugged USB3-FW to IGNORE_UAS
    e6343aab3ee7 usb: hub: Fix link power management max exit latency (MEL) calculations
    8f087b4cf1a3 usb: hub: Disable USB 3 device initiated lpm if exit latency is too high
    709137c85327 KVM: PPC: Book3S HV Nested: Sanitise H_ENTER_NESTED TM state
    c1fbdf0f3c26 KVM: PPC: Book3S: Fix H_RTAS rets buffer overflow
    e3eb672c169d xhci: Fix lost USB 2 remote wake
    02e2e96ba56c usb: xhci: avoid renesas_usb_fw.mem when it's unusable
    9e9cf23b77d4 Revert "usb: renesas-xhci: Fix handling of unknown ROM state"
    ebaa67086fae ALSA: pcm: Fix mmap capability check
    431e31105579 ALSA: pcm: Call substream ack() method upon compat mmap commit
    3c9afa23f3fc ALSA: hdmi: Expose all pins on MSI MS-7C94 board
    253759df8082 ALSA: hda/realtek: Fix pop noise and 2 Front Mic issues on a machine
    2b3cdf581993 ALSA: sb: Fix potential ABBA deadlock in CSP driver
    5858c8a46421 ALSA: usb-audio: Add registration quirk for JBL Quantum headsets
    2de518548de1 ALSA: usb-audio: Add missing proc text entry for BESPOKEN type
    37a88b41dc29 s390/boot: fix use of expolines in the DMA code
    d1ab96288061 s390/ftrace: fix ftrace_update_ftrace_func implementation
    3b4009b49634 mmc: core: Don't allocate IDA for OF aliases
    fc6ac92cfcab proc: Avoid mixing integer types in mem_rw()
    76f7eae7ec80 cifs: fix fallocate when trying to allocate a hole.
    c26372b8a8c3 cifs: only write 64kb at a time when fallocating a small region of a file
    b91e5b63470d drm/panel: raspberrypi-touchscreen: Prevent double-free
    9e0373945ed6 net: sched: cls_api: Fix the the wrong parameter
    c8ebf135c199 net: dsa: sja1105: make VID 4095 a bridge VLAN too
    164294d09c47 tcp: disable TFO blackhole logic by default
    8eb225873246 sctp: update active_key for asoc when old key is being replaced
    ef799bd8ff5a nvme: set the PRACT bit when using Write Zeroes with T10 PI
    7850f03ed814 r8169: Avoid duplicate sysfs entry creation error
    0f5dc3971473 afs: Fix tracepoint string placement with built-in AFS
    711057846aa7 Revert "USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem"
    8985dc2cabd6 nvme-pci: don't WARN_ON in nvme_reset_work if ctrl.state is not RESETTING
    fb28b1592098 ceph: don't WARN if we're still opening a session to an MDS
    ce8fafb68051 ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions
    071729150be9 net/sched: act_skbmod: Skip non-Ethernet packets
    ee36bb471389 spi: spi-bcm2835: Fix deadlock
    432738c9740c net: hns3: fix rx VLAN offload state inconsistent issue
    3e903e0b578b net: hns3: fix possible mismatches resp of mailbox
    f4305375f031 ALSA: hda: intel-dsp-cfg: add missing ElkhartLake PCI ID
    41a839437a07 net/tcp_fastopen: fix data races around tfo_active_disable_stamp
    ba3336397677 net: hisilicon: rename CACHE_LINE_MASK to avoid redefinition
    320dcbdec4c6 bnxt_en: Check abort error state in bnxt_half_open_nic()
    134a0536f0a4 bnxt_en: Validate vlan protocol ID on RX packets
    4f7da0f97beb bnxt_en: Add missing check for BNXT_STATE_ABORT_ERR in bnxt_fw_rset_task()
    927370485e98 bnxt_en: Refresh RoCE capabilities in bnxt_ulp_probe()
    ab830c3bae19 bnxt_en: don't disable an already disabled PCI device
    26463689445d ACPI: Kconfig: Fix table override from built-in initrd
    113ce8c5043a spi: cadence: Correct initialisation of runtime PM again
    3ea448b62b49 scsi: target: Fix protect handling in WRITE SAME(32)
    b82a1a26aaee scsi: iscsi: Fix iface sysfs attr detection
    6811744bd0ef netrom: Decrease sock refcount when sock timers expire
    096a8dca8ca5 sctp: trim optlen when it's a huge value in sctp_setsockopt
    8e9662fde6d6 net: sched: fix memory leak in tcindex_partial_destroy_work
    e14ef1095387 KVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak
    fcbad8e18d31 KVM: PPC: Book3S: Fix CONFIG_TRANSACTIONAL_MEM=n crash
    30b830215158 net: decnet: Fix sleeping inside in af_decnet
    d402c60da0fd efi/tpm: Differentiate missing and invalid final event log table.
    898376690310 dma-mapping: handle vmalloc addresses in dma_common_{mmap,get_sgtable}
    115e4f5b64ae usb: hso: fix error handling code of hso_create_net_device
    1582a02fecff net: fix uninit-value in caif_seqpkt_sendmsg
    2fc8048265ce bpftool: Check malloc return value in mount_bpffs_for_pin
    3b5b0afd8d97 bpf, sockmap, udp: sk_prot needs inuse_idx set for proc stats
    c260442431b4 bpf, sockmap, tcp: sk_prot needs inuse_idx set for proc stats
    715f378f4290 bpf, sockmap: Fix potential memory leak on unlikely error case
    e3a9548ae538 s390/bpf: Perform r1 range checking before accessing jit->seen_reg[r1]
    9264bebe9ef9 liquidio: Fix unintentional sign extension issue on left shift of u16
    0ff2ea9d8fa3 timers: Fix get_next_timer_interrupt() with no timers pending
    ca9ba1de8f09 xdp, net: Fix use-after-free in bpf_xdp_link_release
    39f1735c8107 bpf: Fix tail_call_reachable rejection for interpreter when jit failed
    2b4046e64f7d bpf, test: fix NULL pointer dereference on invalid expected_attach_type
    3dba72d1fc01 ASoC: rt5631: Fix regcache sync errors on resume
    2435dcfd16ac spi: mediatek: fix fifo rx mode
    a9a85bfedd83 regulator: hi6421: Fix getting wrong drvdata
    5cdc986aad95 regulator: hi6421: Use correct variable type for regmap api val argument
    23811b75fdb8 spi: stm32: fixes pm_runtime calls in probe/remove
    844ab04b62a5 spi: imx: add a check for speed_hz before calculating the clock
    3b6c430d1248 ASoC: wm_adsp: Correct wm_coeff_tlv_get handling
    57efe4f82a76 perf sched: Fix record failure when CONFIG_SCHEDSTATS is not set
    61f2e1e79578 perf data: Close all files in close_dir()
    7c91e0ce2601 perf probe-file: Delete namelist in del_events() on the error path
    a6c32317cd3d perf lzma: Close lzma stream on exit
    2ae8f40a8fdf perf script: Fix memory 'threads' and 'cpus' leaks on exit
    51077d315a46 perf report: Free generated help strings for sort option
    2bfa3c53ea8a perf env: Fix memory leak of cpu_pmu_caps
    a2f0da3af614 perf test maps__merge_in: Fix memory leak of maps
    b7bfd8aeb956 perf dso: Fix memory leak in dso__new_map()
    c9c101da3e83 perf test event_update: Fix memory leak of evlist
    b768db7f8070 perf test session_topology: Delete session->evlist
    b8892d16a928 perf env: Fix sibling_dies memory leak
    306411a8bf75 perf probe: Fix dso->nsinfo refcounting
    f21987d7bb58 perf map: Fix dso->nsinfo refcounting
    7337ff2093e0 perf inject: Fix dso->nsinfo refcounting
    a87d42ae7f5d KVM: x86/pmu: Clear anythread deprecated bit when 0xa leaf is unsupported on the SVM
    b990585f9b7a nvme-pci: do not call nvme_dev_remove_admin from nvme_remove
    0fa11e1a20c7 mptcp: fix warning in __skb_flow_dissect() when do syn cookie for subflow join
    3714e0bb0dcf cxgb4: fix IRQ free race during driver unload
    d92337bf54f2 pwm: sprd: Ensure configuring period and duty_cycle isn't wrongly skipped
    f1edbcc47f46 selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect
    906bbb18db78 selftests: icmp_redirect: remove from checking for IPv6 route get
    bb737eceb9a4 stmmac: platform: Fix signedness bug in stmmac_probe_config_dt()
    79ec7b5b2f4f ipv6: fix 'disable_policy' for fwd packets
    35eaefb44ed7 bonding: fix incorrect return value of bond_ipsec_offload_ok()
    13626bad63e8 bonding: fix suspicious RCU usage in bond_ipsec_offload_ok()
    56ccdf868ab6 bonding: Add struct bond_ipesc to manage SA
    b3bd1f5e5037 bonding: disallow setting nested bonding + ipsec offload
    43511a6a164a bonding: fix suspicious RCU usage in bond_ipsec_del_sa()
    6ca0e55a1310 ixgbevf: use xso.real_dev instead of xso.dev in callback functions of struct xfrmdev_ops
    ba7bfcdff1ad bonding: fix null dereference in bond_ipsec_add_sa()
    3ae639af3626 bonding: fix suspicious RCU usage in bond_ipsec_add_sa()
    4a31baf55f6a net: add kcov handle to skb extensions
    78e4baff950d gve: Fix an error handling path in 'gve_probe()'
    813449fb85f6 igb: Fix position of assignment to *ring
    44171801d39c igb: Check if num of q_vectors is smaller than max before array access
    cb9292445d23 iavf: Fix an error handling path in 'iavf_probe()'
    a6756d637b40 e1000e: Fix an error handling path in 'e1000_probe()'
    dea695a2ee23 fm10k: Fix an error handling path in 'fm10k_probe()'
    a099192fe7e1 igb: Fix an error handling path in 'igb_probe()'
    db4c32c1b926 igc: Fix an error handling path in 'igc_probe()'
    7bc9fb1f8019 ixgbe: Fix an error handling path in 'ixgbe_probe()'
    02d1af0bee65 igc: change default return of igc_read_phy_reg()
    f153664d8e70 igb: Fix use-after-free error during reset
    e15f629036ba igc: Fix use-after-free error during reset

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9a56f6566208517e458e5279992abe9664c4ae67)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agotar: ignore node-tar CVEs
Ross Burton [Mon, 16 Aug 2021 09:05:49 +0000 (10:05 +0100)]
tar: ignore node-tar CVEs

These two CVEs are specific to the Node package node-tar.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bc7216e8148d0dee7b56e6851da6615e93647a0a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoterminal.bbclass: force bash for devshell
Joe Slater [Thu, 12 Aug 2021 22:59:31 +0000 (15:59 -0700)]
terminal.bbclass: force bash for devshell

Since shell_trap_code in build.py sets /bin/sh as the interpreter
we will die a silent death if our environment contains things like
"export -f bodilyfunction" and /bin/sh is really /bin/dash.

Fixes this for the case of devshell.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 23d296b3567aa31bad7b2a8558d4bd3e4505843b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/runtime/cases: make date.DateTest.test_date more reliable
Alexandre Belloni [Thu, 12 Aug 2021 21:46:38 +0000 (23:46 +0200)]
oeqa/runtime/cases: make date.DateTest.test_date more reliable

The test uses the broken out time and can only handle about 59s of delay,
use a UNIX timestamp to allow for up to a 300s delay.

[YOCTO #14463]

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b705e9373acd4119da75af4eb96ec92cc964aa86)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agokmod: use nonarch_base_libdir for depmod.d and modprobe.d
Anton Blanchard [Sun, 8 Aug 2021 05:03:49 +0000 (15:03 +1000)]
kmod: use nonarch_base_libdir for depmod.d and modprobe.d

These should always be in /lib, regardless of the configuration.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 63877226c09a674d3794fdc171adf12fe604a3c9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopixman: re-disable iwmmxt
Patrick Williams [Fri, 6 Aug 2021 21:00:28 +0000 (16:00 -0500)]
pixman: re-disable iwmmxt

Commit dd9c3d042aa5c2ae0fd80b558ec7e9c793ff36f0 dropped the iwmmxt
disable as part of the meson conversion and said: "we can add this
back again if it fails."  It does.

| cc1: warning: switch '-mcpu=arm1176jz-s' conflicts with switch '-march=iwmmxt2'
| FAILED: pixman/libpixman-1.so.0.40.0
| lto1: fatal error: target specific builtin not available
| compilation terminated.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia1278d18543493a3f9eace6c2dd2f84701b9c2b1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit afa713033a7fc9b7c4ac3d703ea9218b4d775def)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosstate.bbclass: fix error handling when sstate mirrors is ro
Jose Quaresma [Sun, 8 Aug 2021 13:11:45 +0000 (14:11 +0100)]
sstate.bbclass: fix error handling when sstate mirrors is ro

The commit dd555537fc35c5f934af09d601d70772eb5955ae
'sstate.bbclass: fix errors about read-only sstate mirrors'
adds an additional exception handler to silently mask read
only rootfs errors thrown during the touch.

The exception handler checks the error type with the python module errno
but this module needs to be imported as it don't exist.

Example of the error:

File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:sstate_task_postfunc(d)
     0003:
File: '/home/builder/src/base/poky/meta/classes/sstate.bbclass', lineno: 778, function: sstate_task_postfunc
     0774:
     0775:    omask = os.umask(0o002)
     0776:    if omask != 0o002:
     0777:       bb.note("Using umask 0o002 (not %0o) for sstate packaging" % omask)
 *** 0778:    sstate_package(shared_state, d)
     0779:    os.umask(omask)
     0780:
     0781:    sstateinst = d.getVar("SSTATE_INSTDIR")
     0782:    d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])
File: '/home/builder/src/base/poky/meta/classes/sstate.bbclass', lineno: 708, function: sstate_package
     0704:        except PermissionError:
     0705:            pass
     0706:        except OSError as e:
     0707:            # Handle read-only file systems gracefully
 *** 0708:            if e.errno != errno.EROFS:
     0709:                raise e
     0710:
     0711:    return
     0712:
Exception: NameError: name 'errno' is not defined

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 15f30ad144fbe25e9a5e71bc7e42e746d2039992)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>