In preparation for converting exec_update_mutex to a rwsem so that
multiple readers can execute in parallel and not deadlock, add
down_read_interruptible. This is needed for perf_event_open to be
converted (with no semantic changes) from working on a mutex to
wroking on a rwsem.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/87k0tybqfy.fsf@x220.int.ebiederm.org Signed-off-by: Sasha Levin <sashal@kernel.org>
We implement a -rt variant to fix the build issues.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
In preparation for converting exec_update_mutex to a rwsem so that
multiple readers can execute in parallel and not deadlock, add
down_read_interruptible. This is needed for perf_event_open to be
converted (with no semantic changes) from working on a mutex to
wroking on a rwsem.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/87k0tybqfy.fsf@x220.int.ebiederm.org Signed-off-by: Sasha Levin <sashal@kernel.org>
We implement a -rt variant to fix the build issues.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Wed, 3 Feb 2021 03:24:00 +0000 (22:24 -0500)]
linux-yocto/5.4: update to v5.4.90
Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:
ceed81a883dc Linux 5.4.90 6f484096196b regmap: debugfs: Fix a reversed if statement in regmap_debugfs_init() bbb2fee395e9 net: drop bogus skb with CHECKSUM_PARTIAL and offset beyond end of trimmed packet bd0051a5cb05 block: fix use-after-free in disk_part_iter_next c5fe50e18fcb KVM: arm64: Don't access PMCR_EL0 when no PMU is available f595e44b161a net: mvpp2: disable force link UP during port init procedure 5b8d3c3a9fcb regulator: qcom-rpmh-regulator: correct hfsmps515 definition 3582406b9c04 wan: ds26522: select CONFIG_BITREVERSE 480c5e9c7e4c regmap: debugfs: Fix a memory leak when calling regmap_attach_dev c3c774886790 net/mlx5e: Fix two double free cases ce74b5a0689d net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups a2b2ae3812e5 bpftool: Fix compilation failure for net.o with older glibc 2992e3371a3a iommu/intel: Fix memleak in intel_irq_remapping_alloc 006319327d21 lightnvm: select CONFIG_CRC32 46c15eeb0a8a block: rsxx: select CONFIG_CRC32 4834a984e456 wil6210: select CONFIG_CRC32 b28378bc91d0 qed: select CONFIG_CRC32 cc196d4604c9 dmaengine: xilinx_dma: fix mixed_enum_type coverity warning d0eaf8a8eff8 dmaengine: xilinx_dma: fix incompatible param warning in _child_probe() e6f247a5f927 dmaengine: xilinx_dma: check dma_async_device_register return value c15556cb344a dmaengine: mediatek: mtk-hsdma: Fix a resource leak in the error handling path of the probe function 55503711adff i2c: i801: Fix the i2c-mux gpiod_lookup_table not being properly terminated 12e8bcaef61a spi: stm32: FIFO threshold level - fix align packet size 9ff4796e6fd9 cpufreq: powernow-k8: pass policy rather than use cpufreq_cpu_get() 4dd15f9bc881 can: kvaser_pciefd: select CONFIG_CRC32 82adac5ad13b can: m_can: m_can_class_unregister(): remove erroneous m_can_clk_stop() 3b68980596fb can: tcan4x5x: fix bittiming const, use common bittiming from m_can driver b77e0283efdc dmaengine: dw-edma: Fix use after free in dw_edma_alloc_chunk() f6dd8c259ab8 i2c: sprd: use a specific timeout to avoid system hang up issue 8d0cadc2ea64 ARM: OMAP2+: omap_device: fix idling of devices during probe 003280bd8845 HID: wacom: Fix memory leakage caused by kfifo_alloc 6f367fb1b7ee iio: imu: st_lsm6dsx: fix edge-trigger interrupts 87ea51c90280 vmlinux.lds.h: Add PGO and AutoFDO input sections 099340d3e758 exfat: Month timestamp metadata accidentally incremented bb039d45ebc5 x86/resctrl: Don't move a task to the same resource group 628af07fc5cd x86/resctrl: Use an IPI instead of task_work_add() to update PQR_ASSOC MSR 96fb3d28c885 chtls: Fix chtls resources release sequence fac9b53cfacb chtls: Added a check to avoid NULL pointer dereference 38768ea1127d chtls: Replace skb_dequeue with skb_peek dcce456b2843 chtls: Fix panic when route to peer not configured 44bed66b2be9 chtls: Remove invalid set_tcb call 266ee00f402b chtls: Fix hardware tid leak ed62af62da41 net/mlx5e: ethtool, Fix restriction of autoneg with 56G cf59803ce4b3 net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address 3008c639c081 net: dsa: lantiq_gswip: Exclude RMII from modes that report 1 GbE fc1c907da5a1 s390/qeth: fix L2 header access in qeth_l3_osa_features_check() e6931e3eb084 nexthop: Unlink nexthop group entry in error path 3cecab93f271 nexthop: Fix off-by-one error in error path f03b81e61ef5 octeontx2-af: fix memory leak of lmac and lmac->name 12e10b12124c net: ip: always refragment ip defragmented packets 41bfd4111257 net: fix pmtu check in nopmtudisc mode 98fc9692ac3d tools: selftests: add test for changing routes with PTMU exceptions 7694654168bb net: ipv6: fib: flush exceptions when purging route 1cba7e270b16 net/sonic: Fix some resource leaks in error handling paths 37e6368a8de6 net: vlan: avoid leaks on register_vlan_dev() failures 4ff0737ebc76 net: stmmac: dwmac-sun8i: Balance internal PHY power 5698f0921c9b net: stmmac: dwmac-sun8i: Balance internal PHY resource references fa020a28896c net: hns3: fix a phy loopback fail issue bddaf51d116c net: hns3: fix the number of queues actually used by ARQ d73f7e757526 net: cdc_ncm: correct overhead in delayed_ndp_size 5597557244d4 vfio iommu: Add dma available capability 335104082c21 x86/asm/32: Add ENDs to some functions and relabel with SYM_CODE_* a829146c3fdc Linux 5.4.89 485e21729b1e scsi: target: Fix XCOPY NAA identifier lookup 7795afa0d7a9 KVM: x86: fix shift out of bounds reported by UBSAN a9d49da7edf8 x86/mtrr: Correct the range check before performing MTRR type lookups a798b367a066 netfilter: nft_dynset: report EOPNOTSUPP on missing set feature 5e401ea71676 netfilter: xt_RATEEST: reject non-null terminated string from userspace 1dd6a790c220 netfilter: ipset: fix shift-out-of-bounds in htable_bits() e0281bb5a82d netfilter: x_tables: Update remaining dereference to RCU 828f2a20f946 drm/i915: clear the gpu reloc batch ef8133b1b47e dmabuf: fix use-after-free of dmabuf's file->f_inode 284be2b993ca Revert "device property: Keep secondary firmware node secondary by type" 64d06c7f2fa2 btrfs: send: fix wrong file path when there is an inode with a pending rmdir 0cb0b876f17f ALSA: hda/realtek: Add two "Intel Reference board" SSID in the ALC256. 02e59692a6b1 ALSA: hda/realtek: Enable mute and micmute LED on HP EliteBook 850 G7 d63a96f45c4f ALSA: hda/realtek - Fix speaker volume control on Lenovo C940 30fd9778cf8f ALSA: hda/conexant: add a new hda codec CX11970 121944484cc4 ALSA: hda/via: Fix runtime PM for Clevo W35xSS a5c7a456680f kvm: check tlbs_dirty directly 10dcb79ec79e x86/mm: Fix leak of pmd ptlock d3e5db486fd8 USB: serial: keyspan_pda: remove unused variable bcffe2de9dde usb: gadget: configfs: Fix use-after-free issue with udc_name 276828221852 usb: gadget: configfs: Preserve function ordering after bind failure b2bd36f54495 usb: gadget: Fix spinlock lockup on usb_function_deactivate ce507b55db29 USB: gadget: legacy: fix return error code in acm_ms_bind() 7f875ea9883c usb: gadget: u_ether: Fix MTU size mismatch with RX packet size b89a5f39c2b5 usb: gadget: function: printer: Fix a memory leak for interface descriptor 692ab0726460 usb: gadget: f_uac2: reset wMaxPacketSize 7ac84fa85ba2 usb: gadget: select CONFIG_CRC32 77a804dd6b46 ALSA: usb-audio: Fix UBSAN warnings for MIDI jacks 5c263f16822f USB: usblp: fix DMA to stack 41f15da2abd9 USB: yurex: fix control-URB timeout handling 175f7a5fa7e6 USB: serial: option: add Quectel EM160R-GL 1a59feb52dc4 USB: serial: option: add LongSung M5710 module support ac48b1dacb07 USB: serial: iuu_phoenix: fix DMA from stack 8a051eaae708 usb: uas: Add PNY USB Portable SSD to unusual_uas a7b81d0d2e07 usb: usbip: vhci_hcd: protect shift size f7cc27eb358d USB: xhci: fix U1/U2 handling for hardware with XHCI_INTEL_HOST quirk set ea472d839133 usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data() a37a0667e1e0 usb: dwc3: ulpi: Use VStsDone to detect PHY regs access completion 5b8e1be9e0c1 USB: cdc-wdm: Fix use after free in service_outstanding_interrupt(). 5445502a344b USB: cdc-acm: blacklist another IR Droid device eeae1d95ce4e usb: gadget: enable super speed plus 70cf59b8ffb4 staging: mt7621-dma: Fix a resource leak in an error handling path c511f27e130e powerpc: Handle .text.{hot,unlikely}.* in linker script 867c10a03f84 crypto: asym_tpm: correct zero out potential secrets ff7397add935 crypto: ecdh - avoid buffer overflow in ecdh_set_secret() 9e60056b1f53 video: hyperv_fb: Fix the mmap() regression for v5.4.y and older 84d488719b27 Bluetooth: revert: hci_h5: close serdev device and free hu in h5_close 3417067b3111 kbuild: don't hardcode depmod path 3f2a28930a7e net/sched: sch_taprio: ensure to reset/destroy all child qdiscs c41ea30c3839 ionic: account for vlan tag len in rx buffer len 5c6eb887e192 vhost_net: fix ubuf refcount incorrectly when sendmsg fails 8f64957fda12 net: usb: qmi_wwan: add Quectel EM160R-GL 12ab7b627d43 CDC-NCM: remove "connected" log message 171a2bce9d6c net: dsa: lantiq_gswip: Fix GSWIP_MII_CFG(p) register access c0883010d3b3 net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs 07f26fc52b45 r8169: work around power-saving bug on some chip versions 106ca9ca9acc net: hdlc_ppp: Fix issues when mod_timer is called while timer is running 2b8aa896b151 erspan: fix version 1 check in gre_parse_header() 606f5412ad86 net: hns: fix return value check in __lb_other_process() e40b5fc79110 net: sched: prevent invalid Scell_log shift count b16f883e71f3 ipv4: Ignore ECN bits for fib lookups in fib_compute_spec_dst() a018c071de14 net: mvpp2: fix pkt coalescing int-threshold configuration 443a71031e49 tun: fix return value when the number of iovs exceeds MAX_SKB_FRAGS c076e1198554 net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered 8602c20a9160 net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc 1f6b04a2b282 net-sysfs: take the rtnl lock when storing xps_rxqs 67ed54a63f43 net-sysfs: take the rtnl lock when accessing xps_cpus_map and num_tc fb14db9508c0 net-sysfs: take the rtnl lock when storing xps_cpus e43ec45d45af net: ethernet: Fix memleak in ethoc_probe 56dc7908ed85 net/ncsi: Use real net-device for response handler dffef999e484 virtio_net: Fix recursive call to cpus_read_lock() 5404192a8721 qede: fix offload for IPIP tunnel packets 8009f6bb13a3 net: ethernet: mvneta: Fix error handling in mvneta_probe 6d003fe7fe87 ibmvnic: continue fatal error reset after passive init 3d16088a9668 net: mvpp2: Fix GoP port 3 Networking Complex Control configurations 8548c9679939 atm: idt77252: call pci_disable_device() on error path 2a006b4fa5cc ethernet: ucc_geth: set dev->max_mtu to 1518 c2ca14cc6f55 ethernet: ucc_geth: fix use-after-free in ucc_geth_remove() af99cae96fdc net: systemport: set dev->max_mtu to UMAC_MAX_MTU_SIZE 8dd98d5d2ba4 net: mvpp2: prs: fix PPPoE with ipv6 packet parse 73445f29575a net: mvpp2: Add TCAM entry to drop flow control pause frames a5a6dc4dc293 iavf: fix double-release of rtnl_lock 6aba31a7c72e i40e: Fix Error I40E_AQ_RC_EINVAL when removing VFs 9ea03f6890ce proc: fix lookup in /proc/net subdirectories after setns(2) d2942e958f26 proc: change ->nlink under proc_subdir_lock 59b10c8a59a1 depmod: handle the case of /sbin/depmod without /sbin in PATH 663a0bcb3fa5 lib/genalloc: fix the overflow when size is too big 19e0cf8fc481 scsi: scsi_transport_spi: Set RQF_PM for domain validation commands eb3e975ac2a3 scsi: ide: Do not set the RQF_PREEMPT flag for sense requests 4ae3573c571e scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff() 5f9c3d640505 scsi: ufs: Fix wrong print message in dev_err() 515dc635eb76 workqueue: Kick a worker based on the actual activation of delayed works f3a4c8d50145 Linux 5.4.88 0a49aaf4df29 mwifiex: Fix possible buffer overflows in mwifiex_cmd_802_11_ad_hoc_start 117433236ae2 exec: Transform exec_update_mutex into a rw_semaphore d390fc97df62 rwsem: Implement down_read_interruptible 1b75a263fbd9 rwsem: Implement down_read_killable_nested 71b8355ba667 perf: Break deadlock involving exec_update_mutex 732251cabeb3 fuse: fix bad inode 06c672dd61b5 iio:imu:bmi160: Fix alignment and data leak issues 7a736f41013e kdev_t: always inline major/minor helper functions 61a0d8e437bb dmaengine: at_hdmac: add missing kfree() call in at_dma_xlate() 20d5ee563bfd dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate() f2a0b7677444 dmaengine: at_hdmac: Substitute kzalloc with kmalloc 4d3ba541bede Revert "mtd: spinand: Fix OOB read" da5b4cf021b9 Revert "drm/amd/display: Fix memory leaks in S3 resume"
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Wed, 3 Feb 2021 03:23:59 +0000 (22:23 -0500)]
linux-yocto/5.10: update to v5.10.8
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
7a1519a74f3d Linux 5.10.8 b77681d400f4 tools headers UAPI: Sync linux/fscrypt.h with the kernel sources 27c6968cfb76 drm/panfrost: Remove unused variables in panfrost_job_close() 75e5e51acf59 regmap: debugfs: Fix a reversed if statement in regmap_debugfs_init() 43f6ea41408b net: drop bogus skb with CHECKSUM_PARTIAL and offset beyond end of trimmed packet 481097d66174 block: fix use-after-free in disk_part_iter_next 61e8c02ae6d6 can: isotp: isotp_getname(): fix kernel information leak 6f7a362e1c6f block/rnbd-clt: avoid module unload race with close confirmation be665727363f xsk: Rollback reservation at NETDEV_TX_BUSY 9ad0375ed292 xsk: Fix race in SKB mode transmit with shared cq 610e2c5699f8 KVM: arm64: Don't access PMCR_EL0 when no PMU is available c5c22948f235 selftests: fib_nexthops: Fix wrong mausezahn invocation e336a772cdcb net: mvneta: fix error message when MTU too large for XDP 729319e4f177 drm/i915/dp: Track pm_qos per connector e7f0992529b2 net: mvpp2: disable force link UP during port init procedure 734bd3f8256b regulator: qcom-rpmh-regulator: correct hfsmps515 definition ae4db0bc5cde arm64: cpufeature: remove non-exist CONFIG_KVM_ARM_HOST 344f59a93151 wan: ds26522: select CONFIG_BITREVERSE c9698380b01a regmap: debugfs: Fix a memory leak when calling regmap_attach_dev 6defee43fe54 net/mlx5e: Fix two double free cases 699804e07641 net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups b23accd11a89 nvme-tcp: Fix possible race of io_work and direct send 31a3520409ff bpftool: Fix compilation failure for net.o with older glibc 2a21faa9c596 iommu/intel: Fix memleak in intel_irq_remapping_alloc 39b3204e54c1 iommu/vt-d: Fix misuse of ALIGN in qi_flush_piotlb() 2bbe923d7a84 zonefs: select CONFIG_CRC32 771865dc5a6e lightnvm: select CONFIG_CRC32 432071f6af70 block: rsxx: select CONFIG_CRC32 0d813da1bde0 wil6210: select CONFIG_CRC32 e208085c82f7 phy: dp83640: select CONFIG_CRC32 f03e2257df3c qed: select CONFIG_CRC32 41dcfc0cb955 arm64: mm: Fix ARCH_LOW_ADDRESS_LIMIT when !CONFIG_ZONE_DMA d4a7eb9fbfcc dmaengine: xilinx_dma: fix mixed_enum_type coverity warning c16e7cfc1baf dmaengine: xilinx_dma: fix incompatible param warning in _child_probe() e72371fab4ea dmaengine: xilinx_dma: check dma_async_device_register return value 41f95d84fcf5 dmaengine: milbeaut-xdmac: Fix a resource leak in the error handling path of the probe function ceb97fbe4816 dmaengine: mediatek: mtk-hsdma: Fix a resource leak in the error handling path of the probe function fcd04aa9b52c interconnect: qcom: fix rpmh link failures 6a0e580ded88 interconnect: imx: Add a missing of_node_put after of_device_is_available e5689d84ebd8 bcache: set bcache device into read-only mode for BCH_FEATURE_INCOMPAT_OBSO_LARGE_BUCKET 8f243682e5ed i2c: mediatek: Fix apdma and i2c hand-shake timeout d908dd5c1064 i2c: i801: Fix the i2c-mux gpiod_lookup_table not being properly terminated 7a30d664c949 spi: stm32: FIFO threshold level - fix align packet size c75a66726d7e spi: spi-geni-qcom: Fix geni_spi_isr() NULL dereference in timeout case 932e130e3dc8 cpufreq: powernow-k8: pass policy rather than use cpufreq_cpu_get() a885713b0c03 spi: spi-geni-qcom: Fail new xfers if xfer/cancel/abort pending 175465cb6d87 can: kvaser_pciefd: select CONFIG_CRC32 9fc286ed3926 can: m_can: m_can_class_unregister(): remove erroneous m_can_clk_stop() 9b990788d84d can: tcan4x5x: fix bittiming const, use common bittiming from m_can driver 4abc2dbd8822 selftests/bpf: Clarify build error if no vmlinux e095ac6bc3ea dmaengine: dw-edma: Fix use after free in dw_edma_alloc_chunk() 75dfd242b46a i2c: sprd: use a specific timeout to avoid system hang up issue 0a27398d8969 ARM: OMAP2+: omap_device: fix idling of devices during probe 797335659e58 fanotify: Fix sys_fanotify_mark() on native x86-32 797c128d3c7d HID: wacom: Fix memory leakage caused by kfifo_alloc bca9046c36d3 ionic: start queues before announcing link up 6aebfdacad97 scsi: lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler() 8543acf02563 net/mlx5: Check if lag is supported before creating one 1e5b0a2300bb net/mlx5e: In skb build skip setting mark in switchdev mode dd7cce96dd37 net/mlx5e: ethtool, Fix restriction of autoneg with 56G 39e86d3ca489 net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address d6d3f9de7a06 net: dsa: lantiq_gswip: Exclude RMII from modes that report 1 GbE af9b4ab6ee6d s390/qeth: fix L2 header access in qeth_l3_osa_features_check() af0c184ea106 s390/qeth: fix locking for discipline setup / removal 1214d69a2bfc s390/qeth: fix deadlock during recovery 5fb8a3116cd0 nexthop: Bounce NHA_GATEWAY in FDB nexthop groups eaa7a6c39d10 nexthop: Unlink nexthop group entry in error path 6486bc0a3400 nexthop: Fix off-by-one error in error path 2e7635299fbf octeontx2-af: fix memory leak of lmac and lmac->name ab8e7a1af3f2 chtls: Fix chtls resources release sequence 23e696e2f382 chtls: Added a check to avoid NULL pointer dereference 5a1af38e06b6 chtls: Replace skb_dequeue with skb_peek d9297487df15 chtls: Avoid unnecessary freeing of oreq pointer 523cea39aab2 chtls: Fix panic when route to peer not configured 2702758d42a4 chtls: Remove invalid set_tcb call 694635a7b8cb chtls: Fix hardware tid leak b0ff6d00edac net: ip: always refragment ip defragmented packets d5fc41ebe260 net: fix pmtu check in nopmtudisc mode 541c22aad368 tools: selftests: add test for changing routes with PTMU exceptions 69363e37d470 net: ipv6: fib: flush exceptions when purging route 6d233d9501af ptp: ptp_ines: prevent build when HAS_IOMEM is not set 210b9cdb3d5b net: bareudp: add missing error handling for bareudp_link_config() 2a432be9ba44 net/sonic: Fix some resource leaks in error handling paths 9591f32a630f net: vlan: avoid leaks on register_vlan_dev() failures 60de77165d0b net: stmmac: dwmac-sun8i: Balance syscon (de)initialization 35526a9c46b4 net: stmmac: dwmac-sun8i: Balance internal PHY power 22e1ed2abc66 net: stmmac: dwmac-sun8i: Balance internal PHY resource references 413a79ccb98e net: stmmac: dwmac-sun8i: Fix probe error handling 8d12c062ca99 net: hns3: fix a phy loopback fail issue ed59d391ee5e net: hns3: fix the number of queues actually used by ARQ 799d8080f903 net: hns3: fix incorrect handling of sctp6 rss tuple b044a949a5c5 net: cdc_ncm: correct overhead in delayed_ndp_size e3b5252b5cdb btrfs: shrink delalloc pages instead of full inodes 17243f73ad74 btrfs: fix deadlock when cloning inline extent and low on free metadata space 87738164592f btrfs: skip unnecessary searches for xattrs when logging an inode e28ace868c1e scsi: ufs: Fix -Wsometimes-uninitialized warning 458b40598dc0 io_uring: Fix return value from alloc_fixed_file_ref_node 51495b719515 drm/panfrost: Don't corrupt the queue mutex on open/close 9d7751a39a19 iommu/arm-smmu-qcom: Initialize SCTLR of the bypass context 85bbe2e64ab4 RDMA/hns: Avoid filling sl in high 3 bits of vlan_id 85e25e2370a2 io_uring: patch up IOPOLL overflow_flush sync bc924dd21ecf io_uring: limit {io|sq}poll submit locking scope 1d5e50da5cc7 io_uring: synchronise IOPOLL on task_submit fail bca9ca5a603f powerpc/32s: Fix RTAS machine check with VMAP stack 659361086d8b Linux 5.10.7 6f1e88527c18 scsi: target: Fix XCOPY NAA identifier lookup 513729aecb53 rtlwifi: rise completion at the last step of firmware callback 0fae7d269ef7 xsk: Fix memory leak for failed bind 563135ec664f KVM: x86: fix shift out of bounds reported by UBSAN 02ccda90ef7e x86/mtrr: Correct the range check before performing MTRR type lookups 6e3c67976eda dmaengine: idxd: off by one in cleanup code 8b109f4cd1dc netfilter: nft_dynset: report EOPNOTSUPP on missing set feature 810bc977f8a4 netfilter: xt_RATEEST: reject non-null terminated string from userspace d17f2ccf6f99 netfilter: ipset: fix shift-out-of-bounds in htable_bits() 27bc60d9678a netfilter: x_tables: Update remaining dereference to RCU 56429ddfd59c ARM: dts: OMAP3: disable AES on N950/N9 00a6b090d5c9 net/mlx5e: Fix SWP offsets when vlan inserted by driver a3601005de8f bcache: introduce BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE for large bucket a9c413cd0cdf bcache: check unsupported feature sets for bcache register fbb23cd18755 bcache: fix typo from SUUP to SUPP in features.h 36d366ace154 drm/i915: clear the gpu reloc batch 13738d7d5a24 drm/i915: clear the shadow batch 1cd7e30a6db6 arm64: link with -z norelro for LLD or aarch64-elf a19dae4254c4 dmabuf: fix use-after-free of dmabuf's file->f_inode 6844bc38c9fe Revert "device property: Keep secondary firmware node secondary by type" 5e84c99055eb btrfs: send: fix wrong file path when there is an inode with a pending rmdir 1888e5df8449 btrfs: qgroup: don't try to wait flushing if we're already holding a transaction 1c31964eca13 iommu/vt-d: Move intel_iommu info from struct intel_svm to struct intel_svm_dev a07c54917aad ALSA: hda/realtek: Add two "Intel Reference board" SSID in the ALC256. 41af04d3037a ALSA: hda/realtek: Enable mute and micmute LED on HP EliteBook 850 G7 3e1bcaebe8b1 ALSA: hda/realtek: Add mute LED quirk for more HP laptops 582de98b59fd ALSA: hda/realtek - Fix speaker volume control on Lenovo C940 2eda063db992 ALSA: hda/conexant: add a new hda codec CX11970 c03f37d52934 ALSA: hda/via: Fix runtime PM for Clevo W35xSS cafc6e70a63c blk-iocost: fix NULL iocg deref from racing against initialization 397e352ca96f x86/resctrl: Don't move a task to the same resource group 34e4ae4dca72 x86/resctrl: Use an IPI instead of task_work_add() to update PQR_ASSOC MSR c3cf9ffe8d9c KVM: x86/mmu: Ensure TDP MMU roots are freed after yield ffee6772c489 kvm: check tlbs_dirty directly f4064ef40c5c KVM: x86/mmu: Get root level from walkers when retrieving MMIO SPTE afd621673f03 KVM: x86/mmu: Use -1 to flag an undefined spte in get_mmio_spte() 23220e87c91f x86/mm: Fix leak of pmd ptlock 876195e1c8c6 mm: make wait_on_page_writeback() wait for multiple pending writebacks 96e6724310f2 hwmon: (amd_energy) fix allocation of hwmon_channel_info config 3f47b182241f USB: serial: keyspan_pda: remove unused variable a4b202cba3ab usb: gadget: configfs: Fix use-after-free issue with udc_name ed57b762f51b usb: gadget: configfs: Preserve function ordering after bind failure 8ca9626a819c usb: gadget: Fix spinlock lockup on usb_function_deactivate c92e6831dc90 USB: gadget: legacy: fix return error code in acm_ms_bind() 9cc6bf99c64d usb: gadget: u_ether: Fix MTU size mismatch with RX packet size e698e1478be7 usb: gadget: function: printer: Fix a memory leak for interface descriptor c4aa893e2e0d usb: gadget: f_uac2: reset wMaxPacketSize e7f2c25aa88e USB: Gadget: dummy-hcd: Fix shift-out-of-bounds bug 2cd6988fbfa5 usb: gadget: select CONFIG_CRC32 88eaa6c077f8 ALSA: usb-audio: Fix UBSAN warnings for MIDI jacks 0a5b28c99dc4 USB: usblp: fix DMA to stack 4f7e97ffb4eb USB: yurex: fix control-URB timeout handling 008689576a4e USB: serial: option: add Quectel EM160R-GL 3013ff766dad USB: serial: option: add LongSung M5710 module support 5410726d7def USB: serial: iuu_phoenix: fix DMA from stack 677503c72765 usb: uas: Add PNY USB Portable SSD to unusual_uas 91a6375b1836 usb: usbip: vhci_hcd: protect shift size cee536f1a5c7 USB: xhci: fix U1/U2 handling for hardware with XHCI_INTEL_HOST quirk set 4485bdb99624 usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data() 150a9c163c3d usb: dwc3: ulpi: Fix USB2.0 HS/FS/LS PHY suspend regression 97abe6663fa3 usb: dwc3: ulpi: Replace CPU-based busyloop with Protocol-based one b51963e9f562 usb: dwc3: ulpi: Use VStsDone to detect PHY regs access completion 8907a10c8ffa usb: dwc3: gadget: Clear wait flag on dequeue dd8363fbca50 usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup 906b0510dde5 usb: dwc3: meson-g12a: disable clk on error handling path in probe 5a5ce1e75c77 usb: typec: intel_pmc_mux: Configure HPD first for HPD+IRQ request 340db7c0a6c0 USB: cdc-wdm: Fix use after free in service_outstanding_interrupt(). 1452fefc4c29 USB: cdc-acm: blacklist another IR Droid device b55debd08b8f usb: gadget: enable super speed plus 22f56c63d50e staging: mt7621-dma: Fix a resource leak in an error handling path b8c9bb139331 Staging: comedi: Return -EFAULT if copy_to_user() fails cb5a170e979e powerpc: Handle .text.{hot,unlikely}.* in linker script 80a364421c95 crypto: asym_tpm: correct zero out potential secrets 3f20005ab271 crypto: ecdh - avoid buffer overflow in ecdh_set_secret() d55d15a332ec scsi: block: Do not accept any requests while suspended 782c9ef2ac05 scsi: block: Remove RQF_PREEMPT and BLK_MQ_REQ_PREEMPT faa613d033f3 Bluetooth: revert: hci_h5: close serdev device and free hu in h5_close 3ca425885bb7 kbuild: don't hardcode depmod path e5383432d92c scsi: ufs: Clear UAC for FFU and RPMB LUNs 43dee885bead depmod: handle the case of /sbin/depmod without /sbin in PATH 8532d3ec57e5 lib/genalloc: fix the overflow when size is too big 2179bae04b12 local64.h: make <asm/local64.h> mandatory 271822bbf9fe scsi: core: Only process PM requests if rpm_status != RPM_ACTIVE a97d55de10aa scsi: scsi_transport_spi: Set RQF_PM for domain validation commands 60fb6a8d782b scsi: ide: Mark power management requests with RQF_PM instead of RQF_PREEMPT 2d8b9f991de7 scsi: ide: Do not set the RQF_PREEMPT flag for sense requests 8ed46b329d4e scsi: block: Introduce BLK_MQ_REQ_PM 4bdd912c724e scsi: ufs-pci: Enable UFSHCD_CAP_RPM_AUTOSUSPEND for Intel controllers 3a1be8e3806e scsi: ufs-pci: Fix recovery from hibernate exit errors for Intel controllers 46e435583610 scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff() 20e1aec964ea scsi: ufs-pci: Fix restore from S4 for Intel controllers 42b464fb10ff scsi: ufs: Fix wrong print message in dev_err() dfec7dc891d7 workqueue: Kick a worker based on the actual activation of delayed works bfb39e6d67a5 block: add debugfs stanza for QUEUE_FLAG_NOWAIT 2dc3447a043b selftests/vm: fix building protection keys test 952264ac96ef stmmac: intel: Add PCI IDs for TGL-H platform 22c0b151bca4 selftests: mlxsw: Set headroom size of correct port 7b81c2f8ad8f net: usb: qmi_wwan: add Quectel EM160R-GL 063608092aa5 ibmvnic: fix: NULL pointer dereference. 57dde18a1e60 CDC-NCM: remove "connected" log message 143143feae03 net: dsa: lantiq_gswip: Fix GSWIP_MII_CFG(p) register access 495442144c74 net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs f62153027b9a r8169: work around power-saving bug on some chip versions 0ad31889c481 vhost_net: fix ubuf refcount incorrectly when sendmsg fails cf78c32ac7eb bareudp: Fix use of incorrect min_headroom size cfcd702d038e bareudp: set NETIF_F_LLTX flag 8ca1d23e6ad3 net: hdlc_ppp: Fix issues when mod_timer is called while timer is running 0d6eeee3b9d4 erspan: fix version 1 check in gre_parse_header() cd63471a4184 net: hns: fix return value check in __lb_other_process() 7a20969b874e net: sched: prevent invalid Scell_log shift count 5e87eabce7bc ipv4: Ignore ECN bits for fib lookups in fib_compute_spec_dst() 042c7f35fa61 bnxt_en: Fix AER recovery. cdb02a7a9e8d net: mvpp2: fix pkt coalescing int-threshold configuration 9b350728118e bnxt_en: Check TQM rings for maximum supported value. 7c0681c2b681 e1000e: Export S0ix flags to ethtool d0cd009b052e Revert "e1000e: disable s0ix entry and exit flows for ME systems" 4e7176129f4f e1000e: bump up timeout to wait when ME un-configures ULP mode 35a44ba54587 e1000e: Only run S0ix flows if shutdown succeeded e3cbce80be89 tun: fix return value when the number of iovs exceeds MAX_SKB_FRAGS 44dc29d44b84 net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered e4535dbb721d net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc 90297553d870 net-sysfs: take the rtnl lock when storing xps_rxqs 0ca897c1ec41 net-sysfs: take the rtnl lock when accessing xps_cpus_map and num_tc 4da25d83b7cc net-sysfs: take the rtnl lock when storing xps_cpus 7eab4e69cb01 net: ethernet: Fix memleak in ethoc_probe 2cdf8c2747d3 net/ncsi: Use real net-device for response handler 23f8bea3e9d9 virtio_net: Fix recursive call to cpus_read_lock() 087cfc73598a qede: fix offload for IPIP tunnel packets c7d068a2d711 net: ethernet: mvneta: Fix error handling in mvneta_probe 933b2ba7f9de ibmvnic: continue fatal error reset after passive init 0583c8ed2d30 ibmvnic: fix login buffer memory leak cad75a6bdba6 net: stmmac: dwmac-meson8b: ignore the second clock input 04f241fc7eb3 net: mvpp2: Fix GoP port 3 Networking Complex Control configurations 8ece401fa3d6 atm: idt77252: call pci_disable_device() on error path 0e2dee9a6b26 ionic: account for vlan tag len in rx buffer len 15741c05a889 ethernet: ucc_geth: set dev->max_mtu to 1518 116395a26d95 ethernet: ucc_geth: fix use-after-free in ucc_geth_remove() ca126e9e0345 net: systemport: set dev->max_mtu to UMAC_MAX_MTU_SIZE cf65734dee5f net: mvpp2: prs: fix PPPoE with ipv6 packet parse 121164dc3314 net: mvpp2: Add TCAM entry to drop flow control pause frames db8895aa58c7 net/sched: sch_taprio: ensure to reset/destroy all child qdiscs e2572423ab92 iavf: fix double-release of rtnl_lock d9dea80af65e i40e: Fix Error I40E_AQ_RC_EINVAL when removing VFs 5650152ddab1 Linux 5.10.6 94cc73b27a25 mwifiex: Fix possible buffer overflows in mwifiex_cmd_802_11_ad_hoc_start ab7709b551de exec: Transform exec_update_mutex into a rw_semaphore 933b7cc86068 rwsem: Implement down_read_interruptible 27bae39e4fc4 rwsem: Implement down_read_killable_nested 2cded5a3cc38 perf: Break deadlock involving exec_update_mutex 36cf9ae54b0e fuse: fix bad inode e522a788eb91 RDMA/siw,rxe: Make emulated devices virtual in the device tree 404fa093741e RDMA/core: remove use of dma_virt_ops 2a54ad3066a8 scsi: ufs: Re-enable WriteBooster after device reset acbf7db67ae3 scsi: ufs: Allow an error return value from ->device_reset() 8cba90399216 drm/i915/tgl: Fix Combo PHY DPLL fractional divider for 38.4MHz ref clock adee1c5126ef ALSA: hda/hdmi: Fix incorrect mutex unlock in silent_stream_disable() e235fd076eb7 ALSA: hda/realtek - Modify Dell platform name ce9163cf7a84 Bluetooth: Fix attempting to set RPA timeout when unsupported 3e073508920a kdev_t: always inline major/minor helper functions fd3ec3b25137 dt-bindings: rtc: add reset-source property 757cd94ac859 rtc: pcf2127: only use watchdog when explicitly available acb821425c8c rtc: pcf2127: move watchdog initialisation to a separate function b00195241186 Revert "mtd: spinand: Fix OOB read" 261f4d03ad23 Revert "drm/amd/display: Fix memory leaks in S3 resume"
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
sstatesig: Add descriptive error message to getpwuid/getgrgid "uid/gid not found" KeyError
If path is not owned by any user installed on target it gives
insufficient error "getpwuid(): uid not found" which may be misleading.
This exception occurs if uid/gid of path was not found in PSEUDO_PASSWD
files, which simply means the path is owned by host user and there is
host user contamination.
Add more information to the exception message to make it easier for user
to debug.
[YOCTO #14031]
Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/oe/patch.py: Ignore scissors line on applying patch
The "devtool modify" could remove message body before scissors line, so
patches re-generated from git tree were incorrectly modified.
Adding --no-scissors to "git am" invocation to prevent this behaviour.
[YOCTO #12674]
Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sun, 31 Jan 2021 10:35:35 +0000 (10:35 +0000)]
python3-setuptools: Add back accidentally dropped RDEPENDS
This was accidentally removed in a previous commit. Due to improvements
in the core, we can now just add it as a normal RDEPENDS along with the
others as the native case no longer causes issues.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sat, 30 Jan 2021 17:57:13 +0000 (17:57 +0000)]
image_types: Ensure tar archives are reproducible
The tar output seems to vary depending on the version of tar used and distro
configuration. Be explict about the output format to avoid this and be
determinstic.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Dorinda [Wed, 27 Jan 2021 14:27:10 +0000 (15:27 +0100)]
elfutils: split libdebuginfod into its own package
Added package options for libdebuginfod.
Added GPLv2+ | LGPLv3+ license for libdebuginfod with reference to
https://sourceware.org/git/?p=elfutils.git;a=blob;f=debuginfod/debuginfod-client.c;h=de26af5bb26e187b51d9ea00d5826e199a96d01a;hb=HEAD
[YOCTO #13807]
Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
python3: Use addtask statement instead of task dependencies
The externalsrc class deletes do_patch task which results with:
| ERROR: Task do_create_manifest in <PATH>/python3_3.8.2.bb depends upon
| non-existent task do_patch in <PATH>/python3_3.8.2.bb
Use addtask to define correct order to prevent this error, since addtask
mechanism accepts deleted tasks.
[YOCTO #14151]
Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Awais Belal [Fri, 29 Jan 2021 12:42:39 +0000 (17:42 +0500)]
kernel.bbclass: fix deployment for initramfs images
The do_bundle_initramfs() only processes kernel image
types that are found in KERNEL_IMAGETYPE_FOR_MAKE whereas
the build system can generate other types that are not
directly supported by the kernel build system. In which
case when we come to the deploy phase not all the images
mentioned in KERNEL_IMAGETYPES would have a respective
initramfs bundled image. An example is using vmlinux.gz
in KERNEL_IMAGETYPES and enabling initramfs and then we
see
install: cannot stat 'arch/arm64/boot/vmlinux.gz.initramfs': No such file or directory
So we align the deploy phase with bundle initramfs phase
and pick up relevant initramfs bundled images using
KERNEL_IMAGETYPE_FOR_MAKE instead of KERNEL_IMAGETYPES.
Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Lee Chee Yang [Fri, 29 Jan 2021 03:51:15 +0000 (11:51 +0800)]
cve_check: add CVE_VERSION_SUFFIX to indicate suffix in versioning
add CVE_VERSION_SUFFIX to indicate the version suffix type, currently
works in two value, "alphabetical" if the version string uses single
alphabetical character suffix as incremental release, blank to not
consider the unidentified suffixes. This can be expand when more suffix
pattern identified.
refactor cve_check.Version class to use functools and add parameter to
handle suffix condition.
Also update testcases to cover new changes.
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
python2-native executable is not available in sysroot anymore, which
causes compilation of some nodejs modules to fail. Switch to python3 as a
default python version.
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 27 Jan 2021 16:13:29 +0000 (16:13 +0000)]
meta: Clean up various class-native* RDEPENDS overrides
With PACKAGES functioning more correctly for native recipes combined
with classextend improvements over the years, there are various overrides
of RDEPENDS which look unecessary now, clean them up.
There some some minor changes in dependencies, specifically:
Richard Purdie [Wed, 27 Jan 2021 14:48:21 +0000 (14:48 +0000)]
native: Stop clearing PACKAGES
Native recipes have been special and they don't have packages generated
from them. The RDEPENDS/RPROVIDES and other runtime package specific
variables can contain important data about dependencies recipes need
though and currently it is required to write this information explicitly
in the native case.
We now delete the packaging tasks for native recipes which removes the
need to clear PACKAGES. The next step to improve the metadata is to
stop clearing it and ensure any entries in these variables are remapped
appropriately. The R* variables were already being processed by the class
extension code but the implementation was suboptimal.
This patch stops clearing PACKAGES and PACKAGES_DYNAMIC and fixes the places
where that caused issues in OE-Core, for example PACKAGES additions in anonymous
python without the "-native" suffix and a case where the included classes
caused a self reference in DEPENDS which would once have been removed by
the previous code.
The implementation uses datastore/parser parameters to ensure that the
variable overrides are not overwritten when calling setVar which is appropriate
for a function as close to the core as this one is.
Some now unneeded code in python3-setuptools is dropped, there are further
changes like this which can follow.
This change was verified with OE-Core by comparing task-depends.dot generated
by "bitbake world -g" before and after the change, the files were identical.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 27 Jan 2021 21:48:54 +0000 (21:48 +0000)]
package_rpm: Clean up unset runtime package variable handling
If the R* runtime package variables are unset it could cause trackbacks. There
were some fallbacks already, clean this up to handle consistently.
The code was expecting strings but setting defaults of empty lists
which silently were converted to strings by the "or" statements which
was a nightmare to understand or alter.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Peter Bergin [Fri, 29 Jan 2021 09:50:54 +0000 (10:50 +0100)]
buildhistory.bbclass: avoid exception for empty BUILDHISTORY_FEATURES variable
An exception is fired when a BuildStarted event is sent to buildhistory bbclass
and the variable BUILDHISTORY_FEATURES is not set.
ERROR: Execution of event handler 'buildhistory_eventhandler' failed
Traceback (most recent call last):
File "<...>/meta/classes/buildhistory.bbclass", line 862, in buildhistory_eventhandler(e=<bb.event.BuildStarted object at 0x7f94c3810250>):
python buildhistory_eventhandler() {
> if e.data.getVar('BUILDHISTORY_FEATURES').strip():
reset = e.data.getVar("BUILDHISTORY_RESET")
AttributeError: 'NoneType' object has no attribute 'strip'
This can happen in a multiconfig build where the default configuration use the
buildhistory class but not the configuration in mc. It should be a rare case that
this happens and it was found in a missconfigured build.
Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jose Quaresma [Sun, 24 Jan 2021 18:26:45 +0000 (18:26 +0000)]
spirv-tools: cleanup
- spirv-headers is provived in a separete receipe, so add it as dependencie
- add a new package spirv-tools-lesspipe that needs bash
- remove unneeded external sources
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jose Quaresma [Sun, 24 Jan 2021 18:07:58 +0000 (18:07 +0000)]
shaderc: fix the build with glslang 11.1.0
Drop patches:
* 0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
is rejected upstream and is not need when glslang as shared libs.
Update pacthes:
* 0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
renamed and refreshed from 0003-cmake-de-vendor-libs-and-disable-git-versioning.patch.
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 27 Jan 2021 17:15:17 +0000 (17:15 +0000)]
staging: Clean up files installed into the sysroot
There are a variety of files being installed into $datadir which we
don't need. Pick the top "offenders" which amount of thousands of files
and simply don't install them. These include things like test data,
terminfo data, locale data for native tools and so on. This saves
copying these files into native and target sysroots and should improve
performance (smaller sstate, fewer files to copy around).
With this and the python recipe change, alsa-tools went from:
Richard Purdie [Wed, 27 Jan 2021 17:12:46 +0000 (17:12 +0000)]
python3: Avoid installing test data into recipe-sysroot
There are several thousand files in the test directory which we don't need.
Adding these for the native and target sysroots is a crazy amount of files
to be throwing around needlessly. Delete the files from the sysroot side
of things to tidy up the sysroots and improve performance.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 27 Jan 2021 12:13:28 +0000 (12:13 +0000)]
ncurses: Don't put terminfo into the sysroot
This recudes the file count from ~2850 to ~100 which is a huge win
for reducing build directory clutter, its unlikely anything uses the
terminfo data or man pages in the sysroot. This is especially helpful
as we usually end up with two copies of these sets of files.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Teoh Jay Shen [Wed, 27 Jan 2021 01:36:13 +0000 (09:36 +0800)]
oeqa/ethernet_ip_connman : add test for network connections
This test mimic the ethernet_static_ip_set_in_connman and ethernet_get_IP_in_connman_via_DHCP test case from oeqa/manual/bsp-hw.json.
The ethernet_static_ip_set_in_connman and ethernet_get_IP_in_connman_via_DHCP manual test case should be remove from oeqa/manual/bsp-hw.json if this patch get merged.
Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/oe/package_manager: Do not pass stderr to package manager as an argument
The cmd redirected stderr to stdout that was then assigned to variable
with pkgs to install. Then this variable was passed to package manager
that then tried to install it and generated confusing warnings.
For example this variable could contain:
| ['(en_US.UTF-8)', 'LC_ALL:', 'bash:', 'cannot', 'change', 'locale', 'setlocale:', 'warning:']
Dorinda [Tue, 26 Jan 2021 01:33:59 +0000 (02:33 +0100)]
sanity.bbclass: sanity check for if bitbake is present in PATH
If a user executes the environment script instead of sourcing it,
there's an error about an empty element in PATH. This is because
bitbake isn't present in environment variable PATH. Hence, this
patch adds a sanity check to verify if bitbake is present in
PATH and if bitbake isn't present issue a warning message.
[YOCTO #13822]
Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Dorinda [Tue, 26 Jan 2021 00:53:47 +0000 (01:53 +0100)]
sanity: Verify that user isn't building in PSEUDO_IGNORE_PATHS
If a user builds in a path in PSEUDO_IGNORE_PATHS, random failures
are generated. Hence this patch adds a sanity check in sanity.bbclass
to ensure that a user isn't building in PSEUDO_IGNORE_PATHS.
[YOCTO #14179]
Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Alan Perry [Mon, 25 Jan 2021 07:21:19 +0000 (07:21 +0000)]
iproute2: Add subpackage for rdma command
The rdma command is part of iproute2 and is used to query or set the RDMA
configuration where applicable. This patch adds options to build it
and include it.
Signed-off-by: Alan Perry <alanp@snowmoose.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
selftest/devtool: Add modify_localfiles_only test checking symlink path
If recipe uses only file:// fetcher devtool unpacks sources under
oe-local-files/ and adds symlink in source root directory. We need to
verify if the symlink in subdirectory has correct path.
See [YOCTO #13738] for details.
Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Lee Chee Yang [Fri, 22 Jan 2021 10:07:19 +0000 (18:07 +0800)]
cve-check: replace Looseversion with custom version class
The way distutils.version.LooseVersion compare version are tricky, it treat
all these ( "1.0-beta2", "1.0-rc1", "1.0A", "1.0p2" and "1.0pre1") as greater
version than "1.0". This might be right for "1.0A" and "1.0p1" but not for
the rest, also these version could be confusing, the "p" in "1.0p1" can be
"pre" or "patched" version or even other meaning.
Replace Looseversion with custom class, it uses regex to capture common
version format like "1.1.1" or tag format using date like "2020-12-12" as
release section, check for following known string/tags ( beta, rc, pre, dev,
alpha, preview) as pre-release section, any other trailing characters
are difficult to understand/define so ignore them. Compare release
section and pre-release section saperately.
included selftest for the version class.
[YOCTO#14127]
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Kai Kang [Thu, 21 Jan 2021 07:29:22 +0000 (15:29 +0800)]
adwaita-icon-theme: add version 3.34.3 back
Newer versions of adwaita-icon-theme can't work well with librsvg 2.40.
Boot up the core-image-sato image, and start "Media Player", most of the
icons are not showed properly.
The source code of librsvg has been adapted to rust, so it is impossible
to update librsvg in oe core for now. Then add adwaita-icon-theme 3.34.3
back and set as preferred version.
Duplicate one patch as well to fix patch fuzz issue.
Ross Burton [Thu, 21 Jan 2021 16:09:22 +0000 (16:09 +0000)]
base: use URI instead of decodeurl when detecting unpack dependencies
decodeurl() has limitations, primarily that it doesn't handle query
parameters at all. If a SRC_URI looks like this:
http://example.com/download.tar.gz?something
Then the returned path attribute is download.tar.gz?something. This means
the filename extension detection fails and required tools are not added
to the dependencies.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
externalsrc: Fix parsing error with devtool non-git sources
If srcdir is under poky directory (e.g. devtool poky/build/workspace/sources)
and is not a git repository then ${@srctree_hash_files(d)} will run "git
rev-parse --git-dir" and detect poky directory as git-dir and run "'git', 'add',
'-A', '.'], cwd=s_dir" trying to add srcdir but build dir is in .gitignore and
latest git will fail with "The following paths are ignored by one of your
.gitignore files: build" which will end with "ExpansionError during parsing".
In this commit I added a check if git_dir is the same as git-dir from
TOPDIR (which will detect poky directory) and if yes, then treat srcdir
as non-git sources.
Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>