Richard Purdie [Tue, 9 Mar 2021 14:26:12 +0000 (14:26 +0000)]
ltp: Fix determinism issue
There was still a remaining issue with reporoducibility based upon the
make version from the host system. Some versions added whitespace for
XXX+=<tab> (e.g. 4.1) and some versions do not (e.g. 4.3).
Replace the determinism patches with those submitted upstream both
for this issue and the previous one.
The LC_ALL setting for sort is dropped as it didn't fix an issue as hoped.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Mon, 8 Mar 2021 18:01:52 +0000 (18:01 +0000)]
oeqa/selftest: add test to verify that poisoned sysroots are detected
Add a recipe that explicitly searches /usr/include, and use that in
oe-selftest to verify that host include paths are correctly causing
build failures.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Mon, 8 Mar 2021 18:01:49 +0000 (18:01 +0000)]
insane: don't check for a warning string that is never output
insane has checks that the compiler isn't printing "CROSS COMPILE
Badness" during configure/compile/install, but this message hasn't been
output by GCC since 2010 (23f522e7).
The current warning is "include location [...] is unsafe for cross-
compilation" and as that is a proper GCC warning, we can make it fatal
in follow-up patches.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Fri, 5 Mar 2021 03:54:26 +0000 (22:54 -0500)]
linux-yocto/5.4: update to v5.4.101
Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:
ef1fcccf6e5f Linux 5.4.101 fe257f47e2c3 scripts/recordmcount.pl: support big endian for ARCH sh a2c5e4a083a7 cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath. e6f7bf29e32d cxgb4: Add new T6 PCI device id 0x6092 aaf830ad624a NET: usb: qmi_wwan: Adding support for Cinterion MV31 5f2093be3627 KVM: Use kvm_pfn_t for local PFN variable in hva_to_pfn_remapped() 3f9fbe703164 mm: provide a saner PTE walking API for modules 32f070ad274d KVM: do not assume PTE is writable after follow_pfn 78c7b242573a mm: simplify follow_pte{,pmd} 8aeef9c9ac7e mm: unexport follow_pte_pmd 8f869895cf9d scripts: set proper OpenSSL include dir also for sign-file c7ed0a50f20a scripts: use pkg-config to locate libcrypto c8e3bcc6db7c arm64: tegra: Add power-domain for Tegra210 HDA 74c8a6af692a ntfs: check for valid standard information attribute 54a3c25368d9 usb: quirks: add quirk to start video capture on ELMO L-12F document camera reliable 96ef50ec7266 USB: quirks: sort quirk entries fce3654c648d HID: make arrays usage and value to be the same 185c2266c1df bpf: Fix truncation handling for mod32 dst reg wrt zero fc944ddc0b4a Linux 5.4.100 38d777aaf2c3 btrfs: fix backport of 2175bf57dc952 in 5.4.95 c6dd8545fe38 media: pwc: Use correct device for DMA 524a77aa5d69 xen-blkback: fix error handling in xen_blkbk_map() be05138a9cdd xen-scsiback: don't "handle" error by BUG() 52e8f43af540 xen-netback: don't "handle" error by BUG() 7109f61d25ff xen-blkback: don't "handle" error by BUG() 55ccf71c0985 xen/arm: don't ignore return errors from set_phys_to_machine feda880969a5 Xen/gntdev: correct error checking in gntdev_map_grant_pages() 0e382682dda4 Xen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages() da92e41f010e Xen/x86: also check kernel mapping in set_foreign_p2m_mapping() 104eef952314 Xen/x86: don't bail early from clear_foreign_p2m_mapping() 49de0a17e68f net: bridge: Fix a warning when del bridge sysfs c35ce3d38caa net: qrtr: Fix port ID for control messages f49731dfdb20 KVM: SEV: fix double locking due to incorrect backport
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Fri, 5 Mar 2021 03:54:25 +0000 (22:54 -0500)]
linux-yocto/5.10: update to v5.10.19
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
7b43ec8a0cc6 Linux 5.10.19 983f361bde5e scripts/recordmcount.pl: support big endian for ARCH sh 6ca89ac39e48 kbuild: fix CONFIG_TRIM_UNUSED_KSYMS build for ppc64 b8b65310e4b9 cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath. ec6504c8a1fc cxgb4: Add new T6 PCI device id 0x6092 b7e51e5ecf39 NET: usb: qmi_wwan: Adding support for Cinterion MV31 1f683fd2c21f drm/xlnx: fix kmemleak by sending vblank_event in atomic_disable 3320aa64c322 KVM: Use kvm_pfn_t for local PFN variable in hva_to_pfn_remapped() a42150f1c965 mm: provide a saner PTE walking API for modules 83d42c25868d KVM: do not assume PTE is writable after follow_pfn 6d9c9ec0d859 mm: simplify follow_pte{,pmd} f8d8fb7ae86c mm: unexport follow_pte_pmd d2cbae37c3d8 KVM: x86: Zap the oldest MMU pages, not the newest 729fbb8cb276 hwmon: (dell-smm) Add XPS 15 L502X to fan control blacklist 956690f5c607 arm64: tegra: Add power-domain for Tegra210 HDA d63699364fa3 Bluetooth: btusb: Some Qualcomm Bluetooth adapters stop working 9f04a05fa1ed ntfs: check for valid standard information attribute 3e81e1db8b50 ceph: downgrade warning from mdsmap decode to debug 92c8c930caa0 usb: quirks: add quirk to start video capture on ELMO L-12F document camera reliable f8921ed4d330 USB: quirks: sort quirk entries 95c0528c11b2 nvme-rdma: Use ibdev_to_node instead of dereferencing ->dma_device 225d207da2e1 RDMA: Lift ibdev_to_node from rds to common code 77344e18cf84 HID: make arrays usage and value to be the same 3320bae8c115 bpf: Fix truncation handling for mod32 dst reg wrt zero 63b9d2e001fd Linux 5.10.18 c6152fd3ac2b media: pwc: Use correct device for DMA a6703c711534 btrfs: fix crash after non-aligned direct IO write with O_DSYNC aa0fd921d207 btrfs: fix backport of 2175bf57dc952 in 5.10.13 df443aad518d Bluetooth: btusb: Always fallback to alt 1 for WBS ffec7ee21809 tty: protect tty_write from odd low-level tty disciplines 00805af45a21 xen-blkback: fix error handling in xen_blkbk_map() 9bea436fc3fc xen-scsiback: don't "handle" error by BUG() 2814b3aa38a6 xen-netback: don't "handle" error by BUG() 8f8ebd6b1cb5 xen-blkback: don't "handle" error by BUG() 0462dbbe2cab xen/arm: don't ignore return errors from set_phys_to_machine be89a0300a58 Xen/gntdev: correct error checking in gntdev_map_grant_pages() 1a5c2274349f Xen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages() 0c08037b56a7 Xen/x86: also check kernel mapping in set_foreign_p2m_mapping() 740f4d9d0c34 Xen/x86: don't bail early from clear_foreign_p2m_mapping() 06ab1e63ec5c net: fix proc_fs init handling in af_packet and tls ba2582cd7f20 net: bridge: Fix a warning when del bridge sysfs 2bce178c254c net: openvswitch: fix TTL decrement exception action execution 78b12034d4c3 net: sched: incorrect Kconfig dependencies on Netfilter modules f9d6533d18fd mt76: mt7615: fix rdd mcu cmd endianness 977060d4ec5b mt76: mt7915: fix endian issues 496ef46dbf6d net/sched: fix miss init the mru in qdisc_skb_cb 40bf5450ba6f mptcp: skip to next candidate if subflow has unacked data 36e4b9383890 net: qrtr: Fix port ID for control messages c313e91b97eb IB/isert: add module param to set sg_tablesize for IO cmd 5840f8687fdf vdpa_sim: add get_config callback in vdpasim_dev_attr 8faf3ea12225 vdpa_sim: make 'config' generic and usable for any device type 0fb67eda6a9c vdpa_sim: store parsed MAC address in a buffer 0ed8181561be vdpa_sim: add struct vdpasim_dev_attr for device attributes c721898723bc vdpa_sim: remove hard-coded virtq count
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Fri, 5 Mar 2021 03:54:24 +0000 (22:54 -0500)]
linux-yocto/5.4: update to v5.4.99
Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:
850e6a95deb5 Linux 5.4.99 e8ffaca0fe27 ovl: expand warning in ovl_d_real() b55528a18e40 net/qrtr: restrict user-controlled length in qrtr_tun_write_iter() 99996cd558ba net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS ac79b1d94a88 vsock: fix locking in vsock_shutdown() c025081b57df vsock/virtio: update credit only if socket is not closed 2545c5bd8316 net: watchdog: hold device global xmit lock during tx disable a5f0b6f7b1c0 net/vmw_vsock: improve locking in vsock_connect_timeout() 611d93fbea54 net: fix iteration for sctp transport seq_files 2085d886630a net: gro: do not keep too many GRO packets in napi->rx_list 5c53956a8da0 net: dsa: call teardown method on probe failure 0b42ab078369 udp: fix skb_copy_and_csum_datagram with odd segment sizes 73bc75fda669 rxrpc: Fix clearance of Tx/Rx ring when releasing a call b90e8d5d28d1 usb: dwc3: ulpi: Replace CPU-based busyloop with Protocol-based one 35834bf0b210 usb: dwc3: ulpi: fix checkpatch warning 0b49b82eeea2 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 1019015a5dca i2c: stm32f7: fix configuration of the digital filter 546d92a43c94 clk: sunxi-ng: mp: fix parent rate change flag check b02db23d2647 drm/sun4i: dw-hdmi: Fix max. frequency for H6 40db7dba50fe drm/sun4i: Fix H6 HDMI PHY configuration 3063b80b4bdf drm/sun4i: tcon: set sync polarity for tcon1 channel 107cf5eede74 firmware_loader: align .builtin_fw to 8 beb85f4927e8 net: hns3: add a check for queue_id in hclge_reset_vf_queue() a045956a3b41 x86/build: Disable CET instrumentation in the kernel for 32-bit too da1a5442ad2c netfilter: conntrack: skip identical origin tuple in same zone only 0142b957866f ibmvnic: Clear failover_pending if unable to schedule 3f8954cc624c net: stmmac: set TxQ mode back to DCB after disabling CBS c0daa74b8ed7 selftests: txtimestamp: fix compilation issue 6107338c2fa2 net: enetc: initialize the RFS and RSS memories 71d2bd7921db xen/netback: avoid race in xenvif_rx_ring_slots_available() ff758e8a77f3 netfilter: flowtable: fix tcp and udp header checksum update b110391d1e80 netfilter: nftables: fix possible UAF over chains from packet path in netns 35c279e02b7e netfilter: xt_recent: Fix attempt to update deleted entry 7e3a6b820535 bpf: Check for integer overflow when using roundup_pow_of_two() e29126678f65 drm/vc4: hvs: Fix buffer overflow with the dlist handling 69beec4a8b36 mt76: dma: fix a possible memory leak in mt76_add_fragment() 8a5991c8214b lkdtm: don't move ctors to .rodata 4f5416710e13 vmlinux.lds.h: Create section for protection against instrumentation b7f41a7ad444 ARM: kexec: fix oops after TLB are invalidated f49bff85b6db ARM: ensure the signal page contains defined contents 06350c7f7923 ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL e60577e29deb bfq-iosched: Revert "bfq: Fix computation of shallow depth" 91d604ab2a99 riscv: virt_addr_valid must check the address belongs to linear mapping 0db8d192ee57 drm/amd/display: Decrement refcount of dc_sink before reassignment 5c8f63266255 drm/amd/display: Free atomic state after drm_atomic_commit f35da70b516f drm/amd/display: Fix dc_sink kref count in emulated_link_detect 76979956a8af drm/amd/display: Add more Clock Sources to DCN2.1 4516a0a2c087 nvme-pci: ignore the subsysem NQN on Phison E16 335a285aa0f0 ovl: skip getxattr of security labels 43e3cf46afb1 cap: fix conversions on getxattr df094aa0aab0 ovl: perform vfs_getxattr() with mounter creds cc512646b2e7 platform/x86: hp-wmi: Disable tablet-mode reporting by default 2bb22cd4dae4 ARM: OMAP2+: Fix suspcious RCU usage splats for omap_enter_idle_coupled 2cb208ba0fd1 arm64: dts: qcom: sdm845: Reserve LPASS clocks in gcc 92c40ed0abcb arm64: dts: rockchip: Fix PCIe DT properties on rk3399 2407794f2298 cgroup: fix psi monitor for root cgroup 18d691d837b3 arm/xen: Don't probe xenbus as part of an early initcall a0997a86f5c0 tracing: Check length before giving out the filter buffer 74c7bafdd303 tracing: Do not count ftrace events in top level enable output 4851d7b340e9 gpio: ep93xx: Fix single irqchip with multi gpiochips 2c5abe0f8e9c gpio: ep93xx: fix BUG_ON port F usage
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Fri, 5 Mar 2021 03:54:23 +0000 (22:54 -0500)]
linux-yocto/5.10: update to v5.10.17 and -rt31
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
13b6016e96f6 Linux 5.10.17 90ac1981acfa kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq e5c376c41a57 ovl: expand warning in ovl_d_real() 57068800258f net/qrtr: restrict user-controlled length in qrtr_tun_write_iter() 862d1c0edd21 net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS 69e9fd9de17e vsock: fix locking in vsock_shutdown() afe31701609b vsock/virtio: update credit only if socket is not closed ba3bcb35d783 switchdev: mrp: Remove SWITCHDEV_ATTR_ID_MRP_PORT_STAT 55ad30cb7f73 bridge: mrp: Fix the usage of br_mrp_port_switchdev_set_state e22b963d3ec9 net: watchdog: hold device global xmit lock during tx disable bc21a88465c2 net/vmw_vsock: improve locking in vsock_connect_timeout() fcee53dc03c5 net/vmw_vsock: fix NULL pointer dereference c9013813413e net: fix iteration for sctp transport seq_files 9e6ce473e96b net: gro: do not keep too many GRO packets in napi->rx_list 18193e09834c cpufreq: ACPI: Update arch scale-invariance max perf ratio if CPPC is not there 8a3fc32b322c cpufreq: ACPI: Extend frequency tables to cover boost frequencies c930943a3683 net: dsa: call teardown method on probe failure 46a831d1cc25 udp: fix skb_copy_and_csum_datagram with odd segment sizes 24f5544f76d3 rxrpc: Fix clearance of Tx/Rx ring when releasing a call 975a2396e37c arm64: mte: Allow PTRACE_PEEKMTETAGS access to the zero page 3ed6cc9c2dd0 x86/pci: Create PCI/MSI irqdomain after x86_init.pci.arch_init() 902c6dcbb146 scripts: set proper OpenSSL include dir also for sign-file 4761b1aabcfd h8300: fix PREEMPTION build, TI_PRE_COUNT undefined f6b5e671c6a7 i2c: stm32f7: fix configuration of the digital filter 0c0ddf0dd692 clk: sunxi-ng: mp: fix parent rate change flag check 664b66e3552c drm/sun4i: dw-hdmi: Fix max. frequency for H6 962168c2bc15 drm/sun4i: Fix H6 HDMI PHY configuration e639cb199b8e drm/sun4i: dw-hdmi: always set clock rate 7596c85a8962 drm/sun4i: tcon: set sync polarity for tcon1 channel 39e855fa959e firmware_loader: align .builtin_fw to 8 5ff69431b763 net: hns3: add a check for index in hclge_get_rss_key() 2c0e46258eab net: hns3: add a check for tqp_index in hclge_get_ring_chain_from_mbx() 40389ba14d0e net: hns3: add a check for queue_id in hclge_reset_vf_queue() 6bbc1d5ee0eb net: dsa: felix: implement port flushing on .phylink_mac_link_down 03bf0f163df2 x86/build: Disable CET instrumentation in the kernel for 32-bit too 880b1c2164d1 scsi: scsi_debug: Fix a memory leak d519197b48c1 netfilter: conntrack: skip identical origin tuple in same zone only 4067ace5f119 ibmvnic: Clear failover_pending if unable to schedule 284abe15c17e net: stmmac: set TxQ mode back to DCB after disabling CBS 25c312214d9f selftests: txtimestamp: fix compilation issue 5ed60a17d466 net: enetc: initialize the RFS and RSS memories 8eb3e56fd180 hv_netvsc: Reset the RSC count if NVSP_STAT_FAIL in netvsc_receive() 23b2eac8b76a net: ipa: set error code in gsi_channel_setup() a4595395a915 net: hdlc_x25: Return meaningful error code in x25_open 50ad6fc36aed xen/netback: avoid race in xenvif_rx_ring_slots_available() bbb8c391486b netfilter: flowtable: fix tcp and udp header checksum update 0a0e5d47670b netfilter: nftables: fix possible UAF over chains from packet path in netns ef8f281a6530 selftests: netfilter: fix current year f035e97f331e netfilter: xt_recent: Fix attempt to update deleted entry 8032bf2af9ce bpf: Check for integer overflow when using roundup_pow_of_two() 52d29b478326 bpf: Unbreak BPF_PROG_TYPE_KPROBE when kprobe is called via do_int3 40e3b5c12864 dmaengine: idxd: check device state before issue command 143b87907788 drm/vc4: hvs: Fix buffer overflow with the dlist handling 1d7c14566924 mt76: dma: fix a possible memory leak in mt76_add_fragment() 3ade81db49bd ath9k: fix build error with LEDS_CLASS=m c39cdf559d26 dmaengine: idxd: fix misc interrupt completion 3e53d64e9a4d cgroup-v1: add disabled controller check in cgroup1_parse_param() 2aba53830f5d KVM: x86: cleanup CR3 reserved bits checks e624efe36eb6 lkdtm: don't move ctors to .rodata d070ccc7ad17 x86/efi: Remove EFI PGD build time checks 486c1525eba3 Revert "lib: Restrict cpumask_local_spread to houskeeping CPUs" cf1cab6edb06 ubsan: implement __ubsan_handle_alignment_assumption 249735b01123 ARM: kexec: fix oops after TLB are invalidated 7913ec05fc02 ARM: ensure the signal page contains defined contents 3dc2ba465001 kallsyms: fix nonconverging kallsyms table with lld 11648f26b074 ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL d93178df8f75 bfq-iosched: Revert "bfq: Fix computation of shallow depth" 4fccb50ec95b riscv: virt_addr_valid must check the address belongs to linear mapping cd0604db18d2 drm/amd/display: Decrement refcount of dc_sink before reassignment 8466a0c6bc13 drm/amd/display: Free atomic state after drm_atomic_commit 1898affc717e drm/amd/display: Fix dc_sink kref count in emulated_link_detect b8dc6255bb2d drm/amd/display: Release DSC before acquiring 4d9a5224d507 drm/amd/display: Add more Clock Sources to DCN2.1 7963f3ff8edd drm/amd/display: Fix DPCD translation for LTTPR AUX_RD_INTERVAL 07c8c581d2be nvme-pci: ignore the subsysem NQN on Phison E16 3895bcd96a9e x86/split_lock: Enable the split lock feature on another Alder Lake CPU 020680e36d97 scsi: lpfc: Fix EEH encountering oops with NVMe traffic 116826d615c1 ovl: skip getxattr of security labels 02dee03d4831 cap: fix conversions on getxattr cbb9404a5052 ovl: perform vfs_getxattr() with mounter creds f66fa5ec47e0 arm64: dts: rockchip: Disable display for NanoPi R2S 2a2e911469b5 platform/x86: hp-wmi: Disable tablet-mode reporting by default d33b28e01e5c arm64: dts: rockchip: remove interrupt-names property from rk3399 vdec node 697091f92727 ARM: OMAP2+: Fix suspcious RCU usage splats for omap_enter_idle_coupled 6c152ac1b687 arm64: dts: qcom: sdm845: Reserve LPASS clocks in gcc 413a2353be6b arm64: dts: rockchip: Fix PCIe DT properties on rk3399 8e25e1eef8b9 soc: ti: omap-prm: Fix boot time errors for rst_map_012 bits 0 and 1 8c5864d21e01 tmpfs: disallow CONFIG_TMPFS_INODE64 on alpha b03a0d5cc26d tmpfs: disallow CONFIG_TMPFS_INODE64 on s390 285b57595d40 dmaengine: move channel device_node deletion to driver deae1e6365cd drm/dp_mst: Don't report ports connected if nothing is attached to them 5a36371f8bb5 drm/i915/tgl+: Make sure TypeC FIA is powered up when initializing it e11345ed78b9 Revert "drm/amd/display: Update NV1x SR latency values" e72a65802a3e cgroup: fix psi monitor for root cgroup 89b0c20d80a1 arm/xen: Don't probe xenbus as part of an early initcall bef1f148812d drm/i915: Fix overlay frontbuffer tracking 7c93d8cff582 tracing: Check length before giving out the filter buffer a38c1ee16623 tracing: Do not count ftrace events in top level enable output d9b7ea4c818c gpio: ep93xx: Fix single irqchip with multi gpiochips 10538b869a64 gpio: ep93xx: fix BUG_ON port F usage e072d454faa4 gpio: mxs: GPIO_MXS should not default to y unconditionally 039e0f627397 Revert "dts: phy: add GPIO number and active state used for phy reset" 2b02985bf83e objtool: Fix seg fault with Clang non-section symbols
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As mentioned in yocto bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13992
testimages are failing due to issues with kernel page migration/compaction
function that does not work very well with MIPS kernel HIGHMEM that
is needed for 512Mb.
A valid workaround is to disable CONFIG_COMPACTION and the problematic
migration functionality is also disabled.
[YOCTO: #13992]
Signed-off-by: Victor Kamensky <victor.kamensky7@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
These are due to several changes in the way that MSI interrupts are
assigned and their fallbacks if they fail. Our 32bit qemu boot for
x86 does not have the right support by default, hence we get the
warnings (but boot continues).
If we define PCI_MSI_ARCH_FALLBACKS only for the qemux86 platform we
can supress the warnings and run without issues.
[YOCTO: #14219]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Mon, 8 Mar 2021 16:46:50 +0000 (16:46 +0000)]
build-appliance-image: Drop kernel module handling
kernel-devsrc is a dependency of the image so we no longer need the symlink
creation code or the module-base inherit/dependency as it is included in
that recipe. The KERNEL_VERSION usage was broken anyway as the module
usage would have needed a:
Khem Raj [Sun, 7 Mar 2021 03:18:53 +0000 (19:18 -0800)]
python3-cython: Check for files before editing
If using debug-without-src policy then usr/src/debug won't exist,
therefore the function will fail due to missing files, adding a check
for files to exist before editing them fixes it.
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
In 0.57.0, the uid and gid arguments passed to os.chown() when using
install_mode were accidentally swapped, causing files to end up with
incorrect owner/group if the owner and group are not the same.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This CVE is about TOCTOU (time-of-check time-of-use)
race condition when copying and removing directory trees
which had very low severity problem and marked as closed
and won't fix. Therefore whitelisted CVE-2013-4235.
Master, gatesgarth and dunfell all have shadow version 4.81.
Hence, this is applicable for master, gatesgarth and dunfell. Link: https://bugzilla.redhat.com/show_bug.cgi?id=884658 Signed-off-by: Sana Kazi <Sana.Kazi@kpit.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Thu, 4 Mar 2021 12:00:43 +0000 (12:00 +0000)]
ptest-packagelists: remove libinput-ptest
The libinput ptests are very sensitive to system load, and will fail
if events from the kernel don't arrive sufficiently fast (from 20ms to
200ms depending on the test).
This is by design as input processing is inherently time-sensitive and
to avoid code bugs the test suite considers timing problems fatal.
As this is causing a large proportion of ptest runs to fail in libinput,
disable the execution of these tests for now.
[ YOCTO #14164 ]
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit adds an optional layerid argument which can
be passed to the bitbake-layers create-layer command.
This allows for creation of a layer with a layer id
different to that of the layer's name. The default
behaviour of the command where the layer's id is set
to the layer's name is still retained.
Signed-off-by: Charlie Davies <charles.davies@whitetree.xyz> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Stefan Schmidt [Thu, 4 Mar 2021 19:35:40 +0000 (20:35 +0100)]
systemd-conf: do not ask for DHCP if configured on kernel command line
In cases where we configure the IP address and more on the kernel
command line with ip= we should not ask for DHCP with systemd-networkd
later on. We have such a setup with our runqemu script.
With this match in place we can also deploy this unit on qemu systems.
Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Wed, 3 Mar 2021 21:33:41 +0000 (21:33 +0000)]
libinput: less parallism to increase chances the test suite works
Discussion with the libinput maintainer has confirmed that many of the
libinput test cases need to run on a relatively unloaded system,
because input handling is by definition time-sensitive and any
event mismatches are considered a failure to avoid broken code hiding.
We can't expect libinput to run on an otherside unloaded machine
because the autobuilder ptests execute in a qemu at the same time
as builds can be happening. We can however reduce the amount of
parallellism happening in the libinput test suite to give it a better
chance of succeeding.
This may not be enough, but it's worth a go.
[ YOCTO #14164 ]
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
rpm: split build and extra functionality into separate packages
Having all the rpm build related tools in the main package requires
adding runtime dependencies on perl and python3-core, so adding
rpm to a target image can pull quite many unneeded packages to satisfy
the dependencies.
This splits all the build related tools into rpm-build and moves the
bash, perl and python3-core runtime dependencies to that package.
Also, the rpmsign tool is split into rpm-sign and rpm2archive (only
built if archive is in PACKAGECONFIG) into rpm-archive. These are
separate packages since they are not really related to building, so
do not belong in rpm-build, but are not necessarily wanted in
target images when rpm is included.
Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Stefan Ghinea [Wed, 3 Mar 2021 18:53:08 +0000 (20:53 +0200)]
wpa-supplicant: fix CVE-2021-27803
A vulnerability was discovered in how p2p/p2p_pd.c in wpa_supplicant
before 2.10 processes P2P (Wi-Fi Direct) provision discovery requests.
It could result in denial of service or other impact (potentially
execution of arbitrary code), for an attacker within radio range.
Jon Mason [Wed, 3 Mar 2021 18:29:45 +0000 (13:29 -0500)]
runqemu: use "raw" instead of "bin" for ovmf
bin is not an acceptable format for qemu and will throw an error is set.
The correct format in this case is raw.
Signed-off-by: Jon Mason <jon.mason@arm.com>
Change-Id: I9d78e356d39ecb15bef886c19870b029d9badd65 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Martin Jansa [Tue, 2 Mar 2021 19:32:29 +0000 (20:32 +0100)]
glib-2.0: call os.path.normpath on THISDIR
* some build environments have relative paths in THISDIR, e.g. from OEROOT set in:
https://github.com/96boards/oe-rpb-manifest/blob/1e3345c26c56f77f3a15a3978f412a25955d2606/conf/bblayers.conf#L4
and then the paths in filename normalized in:
filename = os.path.normpath(os.path.join(path, meson.cross.d, element))
don't match.
* COREBASE used here before didn't have this issue because the value is already
normalized when set in:
meta/conf/layer.conf:COREBASE = '${@os.path.normpath("${LAYERDIR}/../")}'
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The systemd-nspawn@.service file uses the following line to try
loading the tun, loop and dm-mod kernel modules, in a non fatal way:
ExecStartPre=-/sbin/modprobe -abq tun loop dm-mod
A non-zero return code from modprobe will not stop the service from
starting, but it would be convenient to inform the user about this
optional support, so add these modules to RRECOMMENDS.
Signed-off-by: Vivien Didelot <vdidelot@pbsc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Martin Jansa [Tue, 2 Mar 2021 09:25:02 +0000 (10:25 +0100)]
coreutils: use u-a for base32
* busybox 1.33.0 added base32 applet and now do_rootfs for read-only images is failing with:
do_rootfs: busybox.postinst returned 1, marking as unpacked only, configuration required on target.
ERROR: image-devel-1.0-r2 do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in image-devel/1.0-r2/temp/log.do_rootfs.
and log.do_rootfs shows:
update-alternatives: Error: not linking image-devel/1.0-r2/rootfs/usr/bin/base32 to /usr/bin/busybox.nosuid since image-devel/1.0-r2/rootfs/usr/bin/base32 exists and is not a link
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 2 Mar 2021 11:12:09 +0000 (11:12 +0000)]
python3-cython: Remove build paths from debug sources
There are build paths which are in generated sources injected
into ${PN}-src. These are in generated files and don't influence the
binary output. As such we can correct them at do_package time by
tweaking in an appropriately injected function. This fixes
the reproducbility of the recipe.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Dorinda [Mon, 1 Mar 2021 14:42:56 +0000 (15:42 +0100)]
scripts/oe-debuginfod: script that fetches package manager directory
Added a script that fetches the package manager directory and runs the elfutils-native debuginfod on DEPLOY_DIR
Added a check to ensure that PACKAGECONFIG options is set in local.conf
Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Modern dosfstools automatically determines the appropriate size
and will error out if something that doesn't make sense is
supplied on the command line.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jate Sujjavanich [Sat, 27 Feb 2021 00:40:10 +0000 (00:40 +0000)]
iputils: Fix cap_net_raw for installed binaries
Add libcap-native to libcap PACKAGECONFIG making native setcap available
during the build. This assures its availability during install and prevents
meson from searching absolute paths and the resulting possible host
contamination.
Move -DNO_SETCAP_OR_SUID=true to the libcap PACKAGECONFIG negative case
This will prevent possible non-determinism for the setuid case.
Signed-off-by: Jate Sujjavanich <jatedev@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Mike Crowe [Sun, 28 Feb 2021 12:20:54 +0000 (12:20 +0000)]
gcc-sanitizers: Move content from gcclibdir into libdir
In e9e5744ba8b0d43c8b874d365f83071ce20bf0a1, Khem Raj wrote:
> OE does not use the traditional /usr/lib/gcc prefix to store
> gcc-runtime it basically is moved into libdir, however some newer
> files were installed by newer versions of gcc especially libgomp (
> omp.h openacc.h ) into gcclibdir, so we have content in both
> directories, this confuses other tools which are trying to guess the
> gcc installation and its runtime location, since now we have two
> directories, the tools either choose one or other and we get
> inconsistent behavior, e.g. clang for aarch64 uses /usr/lib but same
> clang for riscv64 chose /usr/lib/gcc
> This change ensures that OE ends up with single valid location for gcc
> runtime files
I think that the same thing needs to happen in gcc-sanitizers.inc,
otherwise I get errors like:
| .../recipe-sysroot/usr/include/gpg-error-64.h:884:11: fatal error: sanitizer/lsan_interface.h: No such file or directory
when attempting to compile with sanitizers enabled.
FILES_${PN} needs updating to match too.
Signed-off-by: Mike Crowe <mac@mcrowe.com> Cc: Khem Raj <raj.khem@gmail.com> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Fri, 26 Feb 2021 14:24:26 +0000 (14:24 +0000)]
selftest/reproducible: Add ability to pull some objects from sstate
When debugging why a single recipe doesn't reproduce, its a pain
to wait for the world to rebuild from scratch. Update the selftest
to allow this to be configured, for example you could set
targets as ['perf'] and sstate_targets as ['virtual/kernel']
and then it should only be rebuilding perf in the test rather than
things like the toolchain (parts of the kernel may be unavoiable
as they're not in sstate).