Commit Graph

62007 Commits

Author SHA1 Message Date
Richard Purdie
d0facfa5d7 bitbake: cookerdata: Show a readable error for invalid multiconfig name
If a multiconfig starts with a digit, users would see pages of
errors as we use the multiconfig as a python function name prefix
and python functions cannot start with a digit. We could avoid doing
that but it is easier just to ask users to name multiconfigs not
starting with digits.

This tweak ensures the user sees an easier to understand error.

(Bitbake rev: fb2c154c8a96fd30d46e34c7ae715d1b964ced35)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f9cddaeef35b2ea0dadf717101ed896f6b857abd)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-24 10:13:32 +01:00
Richard Purdie
623ac03b1b bitbake: bitbake-worker: Improve error handling
If bitbake-worker fails, return an error code showing that. Also
make the thread cleanup code explict in a finally clause as it would
otherwise hang.

[YOCTO #14393]

(Bitbake rev: 0637703046d3f3f7d3bfdd1e5ecb524440897c35)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7e0af70fb53fb13f824ca954b8cc1dffee730233)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-24 10:13:32 +01:00
Martin Jansa
c3af55d95c bitbake: cooker/process: Fix typos in exiting message
(Bitbake rev: 284ca139b3a2ce61cef91b3076fd8bb544461c16)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1ff1ea3880d293b14ce0fc65e3bc4c938d587a2f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-24 10:13:32 +01:00
Richard Purdie
7bd62cf73b bitbake: runqueue: Clean up task stats handling
When we parallelised normal and setscene tasks, the task stats
handling was left separate pending further thought. We had to remove
handling of the setscene tasks from the UI in order to maintain
consistent task numbering.

Currently, "0 of 0" tasks can be shown as setscene tasks execute
until the first normal task runs.

The only use left for sq_stats is in the active task numbers which
we can use the length of sq_ive for instead. We can therefore
drop it and return stats in all cases. This removes the "0 of 0" task
problem since the stats in all normal and setscene tasks matches.

[YOCTO #14479]

(Bitbake rev: fac319e2d5463be2a82335b9cb348c7893a1e65f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit eae6e947e37e18cded053814bd2a268b44fb25cd)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-24 10:13:32 +01:00
Richard Purdie
a1c41452d6 bitbake: data_smart: Improve error display for handled exceptions
We don't need tracebacks for BBHandledException. Reduces confusing output like:

ERROR: /meta/recipes-core/images/core-image-tiny-initramfs.bb: Circular task dependencies as do_image_complete depends itself via the chain do_image_complete -> do_packageswu -> do_image_qa -> do_image -> do_image_cpio
ERROR: ExpansionError during parsing /meta/recipes-core/images/core-image-tiny-initramfs.bb
Traceback (most recent call last):
  File "/bitbake/lib/bb/build.py", line 1050, in follow_chain(task='do_image_qa', endtask='do_build', chain=['do_image_complete', 'do_packageswu', 'do_image_qa', 'do_image', 'do_image_cpio']):
                     if task in deps:
    >                    follow_chain(othertask, endtask, chain)
             chain.pop()
  File "/bitbake/lib/bb/build.py", line 1050, in follow_chain(task='do_image', endtask='do_build', chain=['do_image_complete', 'do_packageswu', 'do_image_qa', 'do_image', 'do_image_cpio']):
                     if task in deps:
    >                    follow_chain(othertask, endtask, chain)
             chain.pop()
  File "/bitbake/lib/bb/build.py", line 1050, in follow_chain(task='do_image_cpio', endtask='do_build', chain=['do_image_complete', 'do_packageswu', 'do_image_qa', 'do_image', 'do_image_cpio']):
                     if task in deps:
    >                    follow_chain(othertask, endtask, chain)
             chain.pop()
  File "/bitbake/lib/bb/build.py", line 1038, in follow_chain(task='do_image_complete', endtask='do_build', chain=['do_image_complete', 'do_packageswu', 'do_image_qa', 'do_image', 'do_image_cpio']):
             if task in chain:
    >            bb.fatal("Circular task dependencies as %s depends itself via the chain %s?!" % (task, " -> ".join(chain)))
             chain.append(task)
  File "/bitbake/lib/bb/__init__.py", line 165, in fatal:
         mainlogger.critical(''.join(args), extra=kwargs)
    >    raise BBHandledException()

to the real error:

ERROR: /media/build1/poky/meta/recipes-core/images/core-image-tiny-initramfs.bb: Circular task dependencies as do_image_complete depends itself via the chain do_image_complete -> do_packageswu -> do_image_qa -> do_image -> do_image_cpio

(Bitbake rev: bdaab86ae7c2c16e5e1a0afa3e3f68130e9d57ca)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 551d4c0576a0a0c3406000029df9238b312f2263)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-24 10:13:32 +01:00
Richard Purdie
1e9edf6d39 bitbake: cookerdata: Improve missing core layer error message
If the core layer is missing from bblayers.conf, the message the user sees is
hard to understand. Improve it.

[YOCTO #14340]

(Bitbake rev: b460667572994066921c1971f73c58c081463bfc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5815a7258ebb8a989e0c6f5798853559d9413f02)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-24 10:13:32 +01:00
Richard Purdie
8ef2caa0eb bitbake: cookerdata: Show error for no BBLAYERS in bblayers.conf
If there is no BBLAYERS set in bblayers.conf show a more helpful
error and exit.

[YOCTO #14340]

(Bitbake rev: ba79d4711c8010bb7f28784e18a0a42b98284d48)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 97183e10faf9862b5d9489d6e2c27ac77c3b697d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-24 10:13:32 +01:00
Richard Purdie
2a3e232acf bitbake: tests/fetch2: Use our own git server for dtc test repo
(Bitbake rev: 19c5605b72e25e06f5ea57bcc1672650e7978a7f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-22 22:45:39 +01:00
Bruce Ashfield
0f0682a1fe 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

(From OE-Core rev: e99578cde6078828a3075e10f1bb97e1a373ce12)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Bruce Ashfield
649554508c 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

(From OE-Core rev: e03dd78008235282143093271678944a5ca1f938)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Kiran Surendran
01009831ed ffmpeg: fix CVE-2021-38171
backport from upstream

(From OE-Core rev: 130af0502d1ae6fe3721b83ff5218e3aa48dbf0d)

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>
2021-09-17 21:31:37 +01:00
Richard Purdie
0cc1b4141d 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]

(From OE-Core rev: 3934d33861ebf18e3208b09b892b39b16e350157)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a4ad6c88b683b7310ef46d89b1add80b0f41bf2d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Bruce Ashfield
f393b5d4ce 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

(From OE-Core rev: 8ae6f847f343621933cf6fdacfed456ceff04250)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Bruce Ashfield
a156e64603 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

(From OE-Core rev: 172d84a695a4bb1c4cde95be163b32cc9266ccec)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Richard Purdie
44e80e4edc 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

(From OE-Core rev: 573337b8432677fa3a7643e74045ae7d7b331b3f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5bd5faf0c34b47b2443975d66b71482d2380a01a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Richard Purdie
374cefda4f 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

(From OE-Core rev: e2de2e5e977d84dab6cb1461800d4c29436da5c9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0cae5d7a24bedf6784781b62cbb3795a44bab4d1)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Richard Purdie
65f30e5222 tcl: Exclude CVE-2021-35331 from checks
Upstream don't believe this is an issue.

(From OE-Core rev: d0ff86bccdbcd91e8760001037168043725ef8f4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit adf7bafee3f8884e525b5639ba092a1cd8e3beb9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Trevor Gamblin
ba0245b747 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.

(From OE-Core rev: be18e566413efef12dc2488ab186f397d1dacda9)

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Kiran Surendran
97bcb75926 ffmpeg: fix CVE-2021-38291
backport from upstream

(From OE-Core rev: cbb7b8cfbd4cfe6115e858e14f415d89d182f550)

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>
2021-09-17 21:31:37 +01:00
Kai Kang
cfc17a7ab5 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

(From OE-Core rev: 09de4ef3f33540069a37e9fe6e13081984b77511)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Kai Kang
f7c651ad43 mc: fix CVE-2021-36370
Backport patch to fix CVE-2021-36370.

CVE: CVE-2021-36370

(From OE-Core rev: 38bf4de2bfec63457b55b4ea07d14ca37389e74f)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Armin Kuster
37c55c0e3b 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.

(From OE-Core rev: 2b1a8731359d990b3a8eec6403d689144a516207)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Changqing Li
a5e9dd4bc6 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

(From OE-Core rev: b0c311d784e939342c4bfa771790a0113fc7a704)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Mingli Yu
7de4e6b582 ruby: fix CVE-2021-31799
Backport a patch to fix CVE-2021-31799.

(From OE-Core rev: 97d0237e254a0d90b58fe35a1b40d549991b3779)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Yi Zhao
033ba67e53 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:
bf4d05173c
e2ac25d0eb

(From OE-Core rev: e14761916290c01683d72eb8e3de530f944fdfab)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17 21:31:37 +01:00
Richard Purdie
5dad70fedb bitbake: build: Catch and error upon circular task references
If there are circular task references, error on them rather than show
a recursion error. A simple reproducer is:

"""
do_packageswu () {
       :
}

addtask do_packageswu after do_image_complete before do_image_qa
"""

into image_types.bbclass. There is code in runqueue to detect these but
we never get that far with the current codebase.

[YOCTO #13140]

(Bitbake rev: 4d83d9103d9225a2ac42c0f3dfada2f5cf140b68)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 339d4d6be515a71311b81fb9e99742af0d8a5130)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-16 22:17:48 +01:00
Richard Purdie
4de5c296db bitbake: runqueue: Improve multiconfig deferred task issues
The previous patches have exposed new issues with this code path,
the issues being around what should happen when the hash of a task
changes and the task is or is not on the deferred task list.

Rather than rebuilding the deferred task list during each rehash
event, build it once at the start of a build. This avoids the problem
of tasks being added back after they have run and also avoids problems
of always ensuring the same task is deferred. It also allows the
'outrightfail' codepath to be handled separately as the conditions
are subtly differnt.

One significant win for the new approch is the build is not continually
printing out lists of deferred tasks, that list remains fairly static
from the start of the build. Logic is added in to ensure a rehashed
task with a hash matching other deferred tasks is deferred along with
them as a small optimization.

An interesting test case for this code was reported by Mark Hatle
with four multiconfigs, each the same apart from TMPDIR and running a
build of:

bitbake buildtools-tarball mc:{one,two,three,four}:core-image-minimal

which is interesting in that the build of buildtools partially overlaps
core-image-minimal and the build has a rehash event for qemuwrapper-cross
even without any external hash equivalence server or preexisting data.

(Bitbake rev: 1775bcb95f61af21712bc1ba5098a49df8f21128)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bb424e0a6d274d398f434f7df63951da9ce305b3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-16 22:17:48 +01:00
Joshua Watt
0004786a15 bitbake: cooker: Allow upstream for local hash equivalence server
The hash equivalence server has had the option to support a read-only
upstream server for some time now when launched as a standalone program,
but there was no way to set the upstream when using a locally started
server. Add a new variable called BB_HASHSERVE_UPSTREAM that can be used
to specify an upstream server when a local hash equivalence server is
used (e.g. BB_HASHSERVE is "auto")

(Bitbake rev: c225638a1bef06aa7b3c07e37102d550afc0107e)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 250fa17f1391ff1ee01ab9b51d2a4f9aa35c1d1e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-16 22:17:48 +01:00
Richard Purdie
97afd55a88 bitbake: runqueue: Fix issues with multiconfig deferred task deadlock messages
In multiconfig builds with large numbers of identical tasks, builds were
deadlocking after recent runqueue changes upon rebuilds where there was
heavy sstate usage (i.e. on second builds after a first completed).

The issue was that deferred tasks were being left indefinitely on
the deferred list. The deadlock handler was then "breaking" things
by failing tasks that had already succeeded, leading to the task
being on both covered and not covered lists, giving a further error.

The fix is to clean up the deferred task list when each setscene task
completes. I'd previously been hoping to avoid iterating that list
but it appears unavoidable.

[YOCTO #14342]

(Bitbake rev: 27d5b55bb33c319ca595c192c910eac91a5d9428)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ae24a0f2d2d8b4b5ec10efabd0e9362e560832ea)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-16 22:17:48 +01:00
Richard Purdie
4d8077527b bitbake: runqueue: Avoid deadlock avoidance task graph corruption
If the deferred task deadlock avoidance code triggers, it could mark an executed
task as failed which leads to "covered and not covered" error messages. Improve
the logic so if the deadlock code is triggered, it doesn't cause the errors.

(Bitbake rev: 72f51767da47af12d2c56bd3ee87cb0018b16705)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 51bdd6cb3bd9e2c02e261fb578bb945b86b82c75)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-16 22:17:48 +01:00
Richard Purdie
0a2ca9d60f build-appliance-image: Update to hardknott head revision
(From OE-Core rev: 567dd35d893c5d8969d41f263a24da8fbae3fc2f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:51 +01:00
Richard Purdie
45fb2254f6 xdg-utils: Add fix for CVE-2020-27748
Backport an upstream patch for the CVE.

(From OE-Core rev: 850dcfad6cf31488b44a7502931787063d0679b0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 87191ed0303f6552865ad1edcacd674c57f2010c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:43 +01:00
Richard Purdie
f8befac502 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]

(From OE-Core rev: f749f4e73e7c5c5f42dc91672d2c7df0ad7b3734)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2475ce68f0bc1f342c75364dfcfaf7f30499badf)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Bruce Ashfield
b6eb6cfac2 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]

(From OE-Core rev: fc5c448d94e63bebb97de83113697c5cefe27116)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Bruce Ashfield
e63b95cf4f 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

(From OE-Core rev: 2a785e70c87b45e2627e0730603e3f1859fc8fac)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Bruce Ashfield
e42aecd7b5 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"

(From OE-Core rev: 28a4e85011c6339c555195d3a640ef1e14ea431c)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Andrej Valek
1fe02d8d8c 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.

(From OE-Core rev: 79aef159411df59f4bbdb3d3dcc87be9a7b5010e)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Ross Burton
8ba8e3e679 cpio: backport fix for CVE-2021-38185
(From OE-Core rev: dfc013ae9cb01e9985471df45e279b67ed8771a1)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Richard Purdie
2fc81e048f 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]

(From OE-Core rev: 1b4309ee196c45661ddb79d8529517a8777a8d53)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bc4ee5453560dcefc4a4ecc5657df5cc1666e153)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Armin Kuster
c3e58483bc lz4: Security Fix for CVE-2021-3520
Source: https://github.com/lz4/lz4
MR: 111604
Type: Security Fix
Disposition: Backport from 8301a21773 (diff-7055e9cf14c488aea9837aaf9f528b58ee3c22988d7d0d81d172ec62d94a88a7)
ChangeID: 58492f950164e75954a97cf084df6f9af3d88244
Description:

(From OE-Core rev: d7d278286d4dea215f3e8fbff59a9e95056cb7f4)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Trevor Gamblin
22f2aee79d bluez5: fix CVE-2021-3658
Backporting upstream fix since the uprev from 5.60 -> 5.61 does include
some minor functionality changes.

(From OE-Core rev: 0559cba2b46883e2d0178d611b164814a989df37)

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Paul Barker
6e2b2ab438 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.

(From OE-Core rev: 0c8d643d7b474a845588ad7dbf86f85a9aad5c49)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Joshua Watt
f4526a6e7d bitbake: server: Fix early parsing errors preventing zombie bitbake
If the client process never sends cooker data, the server timeout will
be 0.0, not None. This will prevent the server from exiting, as it is
waiting for a new client. In particular, the client will disconnect with
a bad "INHERIT" line, such as:

    INHERIT += "this-class-does-not-exist"

Instead of checking explicitly for None, check for a false value, which
means either 0.0 or None.

(Bitbake rev: c7b506d11df78cfc4610db6578745eaa6220b13a)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 13e2855bff6a6ead6dbd33c5be4b988aafcd4afa)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-09 10:19:42 +01:00
Richard Purdie
4624b855ed build-appliance-image: Update to hardknott head revision
(From OE-Core rev: e3a7eaf9fe1420b2525e14f0c0f2936e7818b8a3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-01 16:28:24 +01:00
Anuj Mittal
72a6e6fbe0 poky.conf: bump version for 3.3.3 hardknott release
(From meta-yocto rev: aaeea8c91a51a6f65f05ffecb970358a7b2378ef)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-01 16:28:04 +01:00
Anuj Mittal
52994ada6e documentation: prepare for 3.3.3 release
Also add a link for documentation to just release 3.1.10 release.

(From yocto-docs rev: d890e8fcf0c43ea911c04e84b80c250432236010)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-01 16:28:04 +01:00
Bruce Ashfield
390e4422e6 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

(From OE-Core rev: 06ac6e4b3193fe8dbd2987a32bace14e09f17751)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-01 16:28:04 +01:00
Bruce Ashfield
5c17ffbf65 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

(From OE-Core rev: 4d7d06f27e64441a8b98dc7469513a8216e205b7)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-01 16:28:04 +01:00
Alexander Kanavin
6ebf59653a linux-firmware: upgrade 20210511 -> 20210818
License-Update: new firmware files, copyright years, file names
(From OE-Core rev: 37c6df10e8d9b997b3631ee1e7b1cad39353d926)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-01 16:28:04 +01:00
Marek Vasut
565c499a49 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.

(From OE-Core rev: 6a72c7c688c7985d19f0387121b3a77639ba6f60)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-01 16:28:04 +01:00