Bruce Ashfield [Tue, 24 Sep 2019 22:00:54 +0000 (18:00 -0400)]
linux-yocto/5.2: update to v5.2.13
Integrating the korg -stable updates that comprise the following
commits:
218ca2e5affe Linux 5.2.13 4c634717d778 Revert "Input: elantech - enable SMBus on new (2018+) systems" 140839fe4e71 Linux 5.2.12 5566d1c61b2f Revert "ASoC: Fail card instantiation if DAI format setup fails" 4d8966020827 hsr: switch ->dellink() to ->ndo_uninit() 072c9337f3a0 hsr: fix a NULL pointer deref in hsr_dev_xmit() 08523d5a2f4a hsr: implement dellink to clean up resources a282179be747 bpf: fix use after free in prog symbol exposure 0d5014b80e5c x86/ptrace: fix up botched merge of spectrev1 fix 3af8db6a99f6 drm/i915/dp: Fix DSC enable code to use cpu_transcoder instead of encoder->type b6980646c9ab drm/i915: Do not create a new max_bpc prop for MST connectors 79d5d7317ce3 iwlwifi: pcie: handle switching killer Qu B0 NICs to C0 3146a6de3d58 iwlwifi: pcie: don't switch FW to qnj when ax201 is detected 9e7e685012f2 iwlwifi: pcie: add support for qu c-step devices c013312ef7a8 iwlwifi: change 0x02F0 fw from qu to quz feee62efa7ad iwlwifi: add new cards for 9000 and 20000 series 0fdbd727e12a iwlwifi: add new cards for 22000 and change wrong structs 805363e2dfa5 iwlwifi: add new cards for 22000 and fix struct name e27fc3445751 mmc: sdhci-sprd: add get_ro hook function 9ad0348f708d mmc: sdhci-sprd: Implement the get_max_timeout_count() interface d100666e3cfc mmc: sdhci-sprd: clear the UHS-I modes read from registers b018fcb92250 mac80211: Correctly set noencrypt for PAE frames 08392de0ccc7 mac80211: Don't memset RXCB prior to PAE intercept 4e118994cea8 cfg80211: Fix Extended Key ID key install checks b14f5ba7490e mac80211: fix possible sta leak 3cd42050aac6 Revert "cfg80211: fix processing world regdomain when non modular" b6a0d1f9bf08 mm: memcontrol: fix percpu vmstats and vmevents flush bba5bcb0cc0e mm, memcg: partially revert "mm/memcontrol.c: keep local VM counters in sync with the hierarchical ones" 8706ffe20444 mms: sdhci-sprd: add SDHCI_QUIRK_BROKEN_CARD_DETECTION d7c7531ac9a3 mt76: mt76x0u: do not reset radio on resume 839e96131567 SUNRPC: Don't handle errors if the bind/connect succeeded 90ff6dd4ced6 crypto: ccp - Ignore unconfigured CCP device on suspend/resume 3c3c233738df VMCI: Release resource if the work is already queued 6992ae83866a bus: hisi_lpc: Add .remove method to avoid driver unbind crash 0a6caa4e3f21 bus: hisi_lpc: Unregister logical PIO range to avoid potential use-after-free 3e3bf9dfdaf4 i2c: piix4: Fix port selection for AMD Family 16h Model 30h 712029329a58 drm/i915: Call dma_set_max_seg_size() in i915_driver_hw_probe() 0573f44d42b1 drm/i915: Don't deballoon unused ggtt drm_mm_node in linux guest f78e0d8172f3 drm/amdgpu: fix GFXOFF on Picasso and Raven2 4c7ee7bd4f7e drm/amdgpu: Add APTX quirk for Dell Latitude 5495 71817079db2f lib: logic_pio: Add logic_pio_unregister_range() 0a6e75686543 lib: logic_pio: Avoid possible overlap for unregistering regions 94cfb33438e0 lib: logic_pio: Fix RCU usage e0e3650991cd Revert "NFSv4/flexfiles: Abort I/O early if the layout segment was invalidated" 666a848c6797 NFS: Ensure O_DIRECT reports an error if the bytes read/written is 0 3fd824dc16de NFSv4/pnfs: Fix a page lock leak in nfs_pageio_resend() d3a2180a5720 lkdtm/bugs: fix build error in lkdtm_EXHAUST_STACK 61c6f2b0000a fsi: scom: Don't abort operations for minor errors d886915cd91b typec: tcpm: fix a typo in the comparison of pdo_max_voltage 82b520267b49 intel_th: pci: Add Tiger Lake support 1c01033684f3 intel_th: pci: Add support for another Lewisburg PCH d36c706f854c stm class: Fix a double free of stm_source_device ba3e88a664c8 mmc: sdhci-sprd: add SDHCI_QUIRK2_PRESET_VALUE_BROKEN 77162751167c mmc: sdhci-sprd: fixed incorrect clock divider a94076eed72e mmc: core: Fix init of SD cards reporting an invalid VDD range b8dd05ea2e74 mmc: sdhci-cadence: enable v4_mode to fix ADMA 64-bit addressing 096179da39b6 mmc: sdhci-of-at91: add quirk for broken HS200 cb82fa2d124a Revert "mmc: sdhci-tegra: drop ->get_ro() implementation" 31f4eb72692c mei: me: add Tiger Lake point LP device ID 871c867ac423 KVM: arm/arm64: vgic-v2: Handle SGI bits in GICD_I{S,C}PENDR0 as WI ea93e118ef2e KVM: arm/arm64: vgic: Fix potential deadlock when ap_list is long d69ebe85e169 KVM: PPC: Book3S: Fix incorrect guest-to-user-translation error handling 3698cd854f43 tools/power turbostat: Fix caller parameter of get_tdp_amd() 2d26f7f401e7 USB: storage: ums-realtek: Whitelist auto-delink support 35f1b0a62c36 USB: storage: ums-realtek: Update module parameter description for auto_delink_en 960ff077477e usb: host: xhci: rcar: Fix typo in compatible string matching 6ca46f45c208 usb: host: ohci: fix a race condition between shutdown and irq 73830b83ece9 usb: chipidea: udc: don't do hardware access if gadget has stopped 0aa1e87affce usb: hcd: use managed device resources c07f658df19f USB: cdc-wdm: fix race between write and disconnect due to flag abuse 43d94dafbcdd usb-storage: Add new JMS567 revision to unusual_devs 7300afed0334 usbtmc: more sanity checking for packet size e56b7b3b9256 ftrace: Check for empty hash and comment the race with registering probes d784aa1a0f13 ftrace: Check for successful allocation of hash cd419e7c03e9 ftrace: Fix NULL pointer dereference in t_probe_next() 6c781717c5cc HID: logitech-hidpp: remove support for the G700 over USB 602038487748 x86/apic: Include the LDR when clearing out APIC registers edacccb34680 x86/apic: Do not initialize LDR and DFR for bigsmp af65ce08ec91 x86/mm/cpa: Prevent large page split when ftrace flips RW on kernel text 861e386d11b5 uprobes/x86: Fix detection of 32-bit user mode 4479763b8436 KVM: x86: Don't update RIP or do single-step on faulting emulation 4344cb8cf72d KVM: x86: hyper-v: don't crash on KVM_GET_SUPPORTED_HV_CPUID when kvm_intel.nested is disabled 7d01c081e861 kvm: x86: skip populating logical dest map if apic is not sw enabled e824fe6a6750 ALSA: usb-audio: Add implicit fb quirk for Behringer UFX1604 4f3c293ccffe ALSA: usb-audio: Fix invalid NULL check in snd_emuusb_set_samplerate() ee26f3722d2b ALSA: seq: Fix potential concurrent access to the deleted pool 853ccdea876b ALSA: hda - Fixes inverted Conexant GPIO mic mute led 441f5ecc1e24 ALSA: line6: Fix memory leak at line6_init_pcm() error path 6ff7b2c68d22 ALSA: hda/ca0132 - Add new SBZ quirk 701ff405be9f ALSA: usb-audio: Check mixer unit bitmap yet more strictly b4b92e95d9e5 mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n 2905d7847cd5 xfrm/xfrm_policy: fix dst dev null pointer dereference in collect_md mode 1c7fbbc0fc3f ipv4/icmp: fix rt dst dev null pointer dereference fc90789e580b openvswitch: Fix conntrack cache with timeout c1c3307a832a ipv4: mpls: fix mpls_xmit for iptunnel ae154dcba8f4 tcp: make sure EPOLLOUT wont be missed cbc9336afc74 net/smc: make sure EPOLLOUT is raised 5b71ce93d7b1 net: fix __ip_mc_inc_group usage a6058b22e17e net: cpsw: fix NULL pointer exception in the probe error path c5df65fd6f06 ipv6: Fix return value of ipv6_mc_may_pull() for malformed packets dc428ae89cd4 ipv6/addrconf: allow adding multicast addr if IFA_F_MCAUTOJOIN is set 8903c1ed2c14 mt76: usb: fix rx A-MSDU support 962d7207f53b drm/bridge: tfp410: fix memleak in get_modes() d4ccc1744b55 selftests/bpf: install files test_xdp_vlan.sh d857dcf1c807 watchdog: bcm2835_wdt: Fix module autoload eeb6b4a09695 lcoking/rwsem: Add missing ACQUIRE to read_slowpath sleep loop 931424d0781e locking/rwsem: Add missing ACQUIRE to read_slowpath exit when queue is empty 5faa01cc2b1f tools: hv: fix KVP and VSS daemons exit code b6018c3a79e5 tools: hv: fixed Python pep8/flake8 warnings for lsvmbus c983df11ed19 usb: host: fotg2: restart hcd after port reset 5a3db3021b17 drm/ast: Fixed reboot test may cause system hanged 68fc8f1e9103 drm/scheduler: use job count instead of peek 7046212603e0 i2c: emev2: avoid race when unregistering slave client 38869e74c3ac i2c: rcar: avoid race when unregistering slave client 6ad482444c98 riscv: fix flush_tlb_range() end address for flush_tlb_page() 325fd0056cc0 arm64: cpufeature: Don't treat granule sizes as strict 2a7a7ff625cd xen/blkback: fix memory leaks 82fcf8a5d8f7 habanalabs: fix device IRQ unmasking for BE host a1a6c6b4f8d8 habanalabs: fix endianness handling for internal QMAN submission 1900d706b9c4 habanalabs: fix completion queue handling when host is BE 79e338d70c86 habanalabs: fix endianness handling for packets from user 0a18515cc03f habanalabs: fix DRAM usage accounting on context tear down c041ddb75698 usb: gadget: mass_storage: Fix races between fsg_disable and fsg_set_alt 3f1b93b5a45c usb: gadget: composite: Clear "suspended" on reset/disconnect 4ab6b15a00ca dma-direct: don't truncate dma_required_mask to bus addressing capabilities 583c8d3118e0 iommu/dma: Handle SG length overflow better 4aab45c37962 omap-dma/omap_vout_vrfb: fix off-by-one fi value 7ceddea2da13 dmaengine: stm32-mdma: Fix a possible null-pointer dereference in stm32_mdma_irq_handler() a4a200842e83 IB/mlx5: Fix implicit MR release flow a8bd4c018836 btrfs: trim: Check the range passed into to prevent overflow c1b16e1427f4 auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach ceac72e0a8cc soundwire: cadence_master: fix definitions for INTSTAT0/1 50b59bb1043b soundwire: cadence_master: fix register definition for SLAVE_STATE c88a50ced6de nvme-pci: Fix async probe remove race 9dd8dc3d8a79 nvme: fix controller removal race with scan work be2e81d1d8d4 nvme-rdma: fix possible use-after-free in connect error flow f3b4b4440a0c nvme: fix a possible deadlock when passthru commands sent to a multipath device d067f76d2009 nvme-core: Fix extra device_put() call on error path a7b13f9b376d nvmet-file: fix nvmet_file_flush() always returning an error 938f8292e9ef nvmet-loop: Flush nvme_delete_wq when removing the port 19620ce482fc nvmet: Fix use-after-free bug when a port is removed a40201a850a8 afs: Fix missing dentry data version updating fb64ee182656 afs: Only update d_fsdata if different in afs_d_revalidate() b4988bb90114 afs: Fix off-by-one in afs_rename() expected data version calculation 768edf3604b6 fs: afs: Fix a possible null-pointer dereference in afs_put_read() 3bde518dd5f1 afs: Fix loop index mixup in afs_deliver_vl_get_entry_by_name_u() 3e5fa7f20b76 afs: Fix the CB.ProbeUuid service handler to reply correctly f902c873cb0f nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns 76c2a562a193 dmaengine: ste_dma40: fix unneeded variable warning c3915fe1bf12 Linux 5.2.11 85a55331d9ae rxrpc: Fix local refcounting fa321a9ce599 rxrpc: Fix local endpoint replacement d2783ccec7e0 rxrpc: Fix read-after-free in rxrpc_queue_local() 486a72744507 rxrpc: Fix local endpoint refcounting 3981720f800f powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB 28ad328e672b io_uring: add need_resched() check in inner poll loop 7fe55f17deee io_uring: don't enter poll loop if we have CQEs pending 2b2c2647a19c io_uring: fix potential hang with polled IO 2a50be6e0551 dm zoned: fix potential NULL dereference in dmz_do_reclaim() b295171cff3f IB/hfi1: Drop stale TID RDMA packets be46f90b7436 xfs: fix missing ILOCK unlock when xfs_setattr_nonsize fails due to EDQUOT 92aeca3af02a mm/kasan: fix false positive invalid-free reports with CONFIG_KASAN_SW_TAGS=y f6d997de0883 mm/zsmalloc.c: fix race condition in zs_destroy_pool e3f9299cbe4c mm/zsmalloc.c: migration can leave pages in ZS_EMPTY indefinitely 199faced432f mm, page_owner: handle THP splits correctly ef1cb3ee97ec mm: memcontrol: flush percpu vmevents before releasing memcg 2bd82494d1d6 mm: memcontrol: flush percpu vmstats before releasing memcg 27674f5f49a8 mm, page_alloc: move_freepages should not examine struct page of reserved memory 764fa2f4ff59 mm/z3fold.c: fix race between migration and destruction 641c1d8396dc genirq: Properly pair kobject_del() with kobject_add() f2f89f89e5fe dm zoned: properly handle backing device failure 5d77bfe7e69d dm zoned: improve error handling in i/o map code 544518b023cb dm zoned: improve error handling in reclaim ace23a455383 dm table: fix invalid memory accesses with too high sector number 23c9e199076a dm space map metadata: fix missing store of apply_bops() return value f57bbd7c7894 dm raid: add missing cleanup in raid_ctr() e7b9e2afcc68 dm integrity: fix a crash due to BUG_ON in __journal_read_write() 9e3dcb641f08 dm btree: fix order of block initialization in btree_split_beneath e92dfd8d1403 dm dust: use dust block size for badblocklist index a6d64ebeb5eb dm kcopyd: always complete failed jobs 1e2528273532 psi: get poll_work to run when calling poll syscall next time b9e0cc134d73 IB/hfi1: Drop stale TID RDMA packets that cause TIDErr a382c2b3d9c2 IB/hfi1: Add additional checks when handling TID RDMA WRITE DATA packet 47a2c4e414fb IB/hfi1: Add additional checks when handling TID RDMA READ RESP packet b568370cf1d7 IB/hfi1: Unsafe PSN checking for TID RDMA READ Resp packet f1c2546fff1f x86/boot: Fix boot regression caused by bootparam sanitizing 6659665f0afd x86/boot: Save fields explicitly, zero out everything else 4aa0f3b05a3a x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h 50d3cd159713 x86/apic: Handle missing global clockevent gracefully 60d4af6a0e5f x86/retpoline: Don't clobber RFLAGS during CALL_NOSPEC on i386 accdfad7aed6 userfaultfd_release: always remove uffd flags and clear vm_userfaultfd_ctx 1069617a56d7 Drivers: hv: vmbus: Fix virt_to_hvpfn() for X86_PAE a7ef13769f73 gpiolib: never report open-drain/source lines as 'input' to user-space b3b7c576df89 scsi: ufs: Fix NULL pointer dereference in ufshcd_config_vreg_hpm() aaf36ec5aa67 drm/nouveau: Don't retry infinitely when receiving no data on i2c over AUX be85d2279c5c drm/amdgpu/gfx9: update pg_flags after determining if gfx off is possible 9d87603371b7 libceph: fix PG split vs OSD (re)connect race bfb7dd36f7b9 ceph: don't try fill file_lock on unsuccessful GETFILELOCK reply a927f8a9dfd5 ceph: clear page dirty before invalidate page e9e5f8e96fe6 clk: socfpga: stratix10: fix rate caclulationg for cnt_clks 328380940d3a Revert "dm bufio: fix deadlock with loop device" 2ad350fb4c92 Revert "KVM: x86/mmu: Zap only the relevant pages when removing a memslot" 24c5a3d468b2 HID: wacom: Correct distance scale for 2nd-gen Intuos devices ccdca005c5a3 HID: wacom: correct misreported EKR ring values 89b925e73610 iwlwifi: mvm: disable TX-AMSDU on older NICs 6c64df946909 selftests: kvm: Adding config fragments b53832252a68 KVM: arm: Don't write junk to CP15 registers on reset 9b2b6603766b KVM: arm64: Don't write junk to sysregs on reset 2590622af1a6 dt-bindings: riscv: fix the schema compatible string for the HiFive Unleashed board 9941192b06ec perf pmu-events: Fix missing "cpu_clk_unhalted.core" event 40db83cb0c86 perf cpumap: Fix writing to illegal memory in handling cpumap mask dcd75c90dec1 perf ftrace: Fix failure to set cpumask when only one cpu is present 371879acb44e block, bfq: handle NULL return value by bfq_init_rq() 6bfd59d99133 block: aoe: Fix kernel crash due to atomic sleep when exiting bcc19f380ecc drm/vmwgfx: fix memory leak when too many retries have occurred 41dddcbf27fd x86/lib/cpu: Address missing prototypes warning 8e88ef54c22a libata: add SG safety checks in SFF pio transfers 9ba76a5214e4 libata: have ata_scsi_rw_xlat() fail invalid passthrough requests 75d360c01f48 NFSv4: Ensure state recovery handles ETIMEDOUT correctly 37f3fc22b32d net: hisilicon: Fix dma_map_single failed on arm64 36ea6d81a99e net: hisilicon: fix hip04-xmit never return TX_BUSY 9e7a5c2730bd net: hisilicon: make hip04_tx_reclaim non-reentrant 39db6b4e6fa1 drm/amdgpu: pin the csb buffer on hw init for gfx v8 84de7cd06750 net: stmmac: tc: Do not return a fragment entry f0d73daeef24 net: stmmac: Fix issues when number of Queues >= 4 9474322cadfd net: cxgb3_main: Fix a resource leak in a error path in 'init_one()' 4f339c4018a8 ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe 976dcd26cb03 s390: put _stext and _etext into .text section d810001f3e92 s390/mm: fix dump_pagetables top level page table walking 580b216496b6 s390/protvirt: avoid memory sharing for diag 308 set/store 1f54a9b84956 sched/psi: Do not require setsched permission from the trigger creator 9ea2355c3117 sched/psi: Reduce psimon FIFO priority a343eca8fd92 sched/deadline: Fix double accounting of rq/running bw in push & pull 4fe7ee5ed9b0 SMB3: Kernel oops mounting a encryptData share with CONFIG_DEBUG_VIRTUAL efb86f76c6c8 SMB3: Fix potential memory leak when processing compound chain 6dfb0916b1fd drm/rockchip: Suspend DP late ef411a41d35a HID: input: fix a4tech horizontal wheel custom usage b6f61042d3c5 HID: quirks: Set the INCREMENT_USAGE_ON_DUPLICATE quirk on Saitek X52 3055b274a141 NFS: Fix regression whereby fscache errors are appearing on 'nofsc' mounts 83d99ded4b1d NFSv4: Fix a potential sleep while atomic in nfs4_do_reclaim() 55a76b7b9a5c NFSv4.1: Only reap expired delegations 00cfd19b4aab NFSv4.1: Fix open stateid recovery 5ebc4cb05315 NFSv4: When recovering state fails with EAGAIN, retry the same recovery 8c0391db53ef NFSv4: Fix a credential refcount leak in nfs41_check_delegation_stateid 1cfb3722bb57 enetc: Select PHYLIB while CONFIG_FSL_ENETC_VF is set bf92682c476b net/ethernet/qlogic/qed: force the string buffer NULL-terminated e9da4fc7d8ec ASoC: amd: acp3x: use dma_ops of parent device for acp3x dma driver ac8bf342add9 can: peak_usb: force the string buffer NULL-terminated 4a17b244620c can: sja1000: force the string buffer NULL-terminated c7bc59702fa8 spi: pxa2xx: Add support for Intel Tiger Lake 8da2ee75f213 perf bench numa: Fix cpu0 binding cbffa423f725 net: phy: phy_led_triggers: Fix a possible null-pointer dereference in phy_led_trigger_change_speed() e17659fd38cf isdn: hfcsusb: Fix mISDN driver crash caused by transfer buffer on the stack b7737b00b86d enetc: Fix build error without PHYLIB 4784684e960a iwlwifi: mvm: send LQ command always ASYNC 14311a90347b iwlwifi: fix locking in delayed GTK setting 743fa6a7baa8 iwlwifi: dbg_ini: move iwl_dbg_tlv_free outside of debugfs ifdef 250352ddc2b4 iwlwifi: dbg_ini: move iwl_dbg_tlv_load_bin out of debug override ifdef de0f0564b100 iwlwifi: mvm: avoid races in rate init and rate perform 505d5fc02a34 nvmem: Use the same permissions for eeprom as for nvmem f1079e415bc1 rxrpc: Fix the lack of notification when sendmsg() fails on a DATA packet 04ce53b00a89 rxrpc: Fix potential deadlock 68c55a2c6c2f netfilter: ipset: Fix rename concurrency with listing 3fb7dc7af067 netfilter: ipset: Copy the right MAC address in bitmap:ip,mac and hash:ip,mac sets 79ebfb394cbe netfilter: ipset: Actually allow destination MAC address for hash:ip,mac sets too edd7585d6751 net: stmmac: manage errors returned by of_get_mac_address() 79ea14eea8cd mac80211_hwsim: Fix possible null-pointer dereferences in hwsim_dump_radio_nl() 813f42fc5695 habanalabs: fix F/W download in BE architecture 45d6a121c7dc isdn: mISDN: hfcsusb: Fix possible null-pointer dereferences in start_isoc_chain() c60f443cf039 qed: RDMA - Fix the hw_ver returned in device attributes 349b39f98d1b net: usb: qmi_wwan: Add the BroadMobi BM818 card 7446b2794d9f ASoC: ti: davinci-mcasp: Correct slot_width posed constraint ec10dcf3ae89 ASoC: rockchip: Fix mono capture 205cd0f91481 ASoC: ti: davinci-mcasp: Fix clk PDIR handling for i2s master mode 7bd8e226cd63 {nl,mac}80211: fix interface combinations on crypto controlled devices cb2150b718c0 st_nci_hci_connectivity_event_received: null check the allocation 775d026bbfe2 st21nfca_connectivity_event_received: null check the allocation 8f28ebbdf9bc libbpf: silence GCC8 warning about string truncation 46af9cbcf73a Staging: fbtft: Fix GPIO handling ab4f4d331a98 ASoC: Fail card instantiation if DAI format setup fails 2d0befff4db8 can: gw: Fix error path of cgw_module_init ad14579d403a can: mcp251x: add error check when wq alloc failed eae5534465c8 can: dev: call netif_carrier_off() in register_candev() 7dae14d19c4f libbpf: fix using uninitialized ioctl results 890626e2d964 selftests/bpf: add another gso_segs access 24c21fa64560 selftests: forwarding: gre_multipath: Fix flower filters f4bed7ed14a2 selftests: forwarding: gre_multipath: Enable IPv4 forwarding 82d861e06dc6 net: mvpp2: Don't check for 3 consecutive Idle frames for 10G links a25bd473e8c9 bonding: Force slave speed check after link state recovery for 802.3ad 1c3e3000de80 ASoC: dapm: fix a memory leak bug 5fa1d7a76dd0 selftests/bpf: fix sendmsg6_prog on s390 5c447c1951cd bpf: sockmap, only create entry if ulp is not already enabled 47032e94979e bpf: sockmap, synchronize_rcu before free'ing map 2a574254d6f5 bpf: sockmap, sock_map_delete needs to use xchg 705409085597 spi: pxa2xx: Balance runtime PM enable/disable on error bdeaab6261ff ASoC: SOF: use __u32 instead of uint32_t in uapi headers 5cecec718e35 ASoC: dapm: Fix handling of custom_stop_condition on DAPM graph walks 8d376e73adf1 netfilter: ebtables: fix a memory leak bug in compat 0ea865793835 libbpf: sanitize VAR to conservative 1-byte INT 3883ef3b1de6 mips: fix cacheinfo 7afa881dd42a MIPS: kernel: only use i8253 clocksource with periodic clockevent 22c0b70969e3 HID: Add 044f:b320 ThrustMaster, Inc. 2 in 1 DT e6cca5f2ab53 HID: logitech-hidpp: add USB PID for a few more supported mice e301eb65c861 ASoC: Intel: bytcht_es8316: Add quirk for Irbis NB41 netbook af3eab0b3016 ASoC: samsung: odroid: fix a double-free issue for cpu_dai b3978884ac59 ASoC: samsung: odroid: fix an use-after-free issue for codec cb7829e5aeb3 regulator: axp20x: fix DCDC5 and DCDC6 for AXP803 7a2ec3fbdcb1 regulator: axp20x: fix DCDCA and DCDCD for AXP806 3861684475d5 ASoC: audio-graph-card: add missing const at graph_get_dai_id() e5e516915f78 ASoC: audio-graph-card: fix an use-after-free in graph_get_dai_id() 7b83af285ad2 ASoC: audio-graph-card: fix use-after-free in graph_dai_link_of_dpcm() 86827ec32e56 ASoC: simple-card: fix an use-after-free in simple_for_each_link() 9b7f263403ab ASoC: simple-card: fix an use-after-free in simple_dai_link_of_dpcm() c9479b9717c3 ASoC: simple_card_utils.h: care NULL dai at asoc_simple_debug_dai()
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li [Fri, 20 Sep 2019 02:31:55 +0000 (10:31 +0800)]
devtool.py: fix buildclean test
when build with EXTERNALSRC, checksum of EXTERNALSRC is one of inputs
for generate sigdata of task do_compile. without change any source, the
sigdata will not changed, and buildclean task only do make clean, and
not clean stampfiles like clean task, so the stampfile keep there, then
do_compile after do_buildclean will not rerun, and targetfile
tempdir_mdadm/mdadm will not be generated, report below error:
AssertionError: '/tmp/devtoolqarxv8ct6u/mdadm' does not exist
Fix by add a comments in Makefile to trigger rebuild of compile task
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li [Fri, 20 Sep 2019 02:31:54 +0000 (10:31 +0800)]
devtool.py: change to do clean before remove-layer
if do clean after remove-layer, it will make stamp file not cleaned
since variable STAMP has changed, this will cause error like:
if testcase buildclean failed, when run next testcase modify, since
do_prepare_recipe_sysroot's stamp file exists, sysroot not populated,
then do_compile will fail with error:
/bin/sh: x86_64-poky-linux-gcc: command not found
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Fri, 20 Sep 2019 11:28:03 +0000 (12:28 +0100)]
distcc: clean up the UI install logic
Remove the local copy of the desktop file, instead apply a patch from upstream
to fix the file. This also fixes the install paths, so update the recipe.
Remove glibc-specific installation as this was due to uclibc failures.
Refresh and submit upstream the out-of-tree build fix.
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adrian Bunk [Fri, 20 Sep 2019 08:26:19 +0000 (11:26 +0300)]
json-c: Don't --enable-rdrand
In recent years AMD CPUs have had various problems with RDRAND
giving either non-random data or no result at all, which is
problematic if either build or target machine has a CPU with
this problem.
The fallback is /dev/urandom, and I'd trust the kernel here.
--enable-rdrand was added in an upgrade to a new upstream
version without mentioning any reason.
[YOCTO #13534]
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jonathan Marler [Thu, 19 Sep 2019 21:34:34 +0000 (15:34 -0600)]
package: Multiple shlib_providers for the same file should error
In the case where multiple packages provide the same file, we show an error.
Otherwise, python will generate a different build depending on which provider
appears first in the dictionary. On my system this order changes every time
I run bitbake causing intermittent build differences.
Add a sorted() to fix the determinism issue too.
Signed-off-by: Jonathan Marler <johnnymarler@hp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
tzdata: Correct the packaging of /etc/localtime and /etc/timezone
During restructuring of the packaging in 2af4d6eb (tzdata: Install
everything by default), these two files remained in the tzdata
package, which is supposed to be empty. Move them to tzdata-core where
they belong.
Also simplify the definition of CONFFILES_tzdata-core. As its value
only takes effect for files that actually exist, there is no need to
complicate its definition by checking if a file is created before
adding it to the list of configuration files.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 19 Sep 2019 12:21:26 +0000 (13:21 +0100)]
oeqa/concurrenttest: Use ionice to delete build directories
Autobuilder type infrastructure can benefit from deletion of certain files as
background IO due to the way Linux filesystem priority works.
We have problems where build directories as part of oe-selftest being
delete starves the running tasks of IO to the point builds take much
longer to compelte.
Having this option of running the deletion at "idle" helps a lot with
that. Use the new option added to bb.utils.prunedir().
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
externalsrc: stop rebuilds of 2+ externalsrc recipes sharing the same git repo
externalsrc do_configure task watches oe-devtool-tree-sha1 file and its
checksum. That file basically contains the result of `git add -A
${EXTERNALSRC} && git write-tree` which is the hash of temporary
"commit" of the non committed changes. This file is stored in the .git
directory of the git repo of the externalsrc recipe. do_configure then
depends on the checksum of oe-devtool-tree-sha1 file.
If 2+ recipes with different externalsrc paths but same git repo (e.g.
one recipe at /some/path and the other at /some/path/subdir) are parsed,
this oe-devtool-tree-sha1 will be overwritten by those recipes at
parsing time since .git is shared between those recipes.
If there is one non committed git change in /some/path but not in
/some/path/subdir, the oe-devtool-tree-sha1 of both recipes will be
different.
What will happen is that recipe1 will watch over the
oe-devtool-tree-sha1 with a specific checksum, fill in file-checksums
for do_configure correctly, then recipe2 will watch over the identically
named file with different content also fill in the file-checksums
varflag. When do_configure of recipe1 will be evaluated for
re-execution, oe-devtool-tree-sha1 will be of the value of what is
watched over by recipe2, thus triggering a rebuild of recipe1.
This behavior is not always reproducible which I'm guessing is due to a
small window between recipe1 putting info into oe-devtool-tree-sha1 and
calculating the checksum of that file and recipe2 putting its content
into oe-devtool-tree-sha1.
By appending the name of the recipe to oe-devtool-tree-sha1, we make
sure that a recipe won't have its oe-devtool-tree-sha1 overwritten by
another recipe sharing the same externalsrc git repo.
Signed-off-by: Quentin Schulz <quentin.schulz@streamunlimited.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jaewon Lee [Wed, 18 Sep 2019 00:37:33 +0000 (17:37 -0700)]
populate_sdk_ext: Introduce mechanism to keep nativesdk* sstate in esdk
When doing a devtool build-sdk from within an esdk all nativesdk
components would be rebuilt. This patch introduces SDK_INCLUDE_NATIVESDK
flag to toggle the inclusion of nativesdk packages when creating the
esdk sstate
Currently locked-sigs.inc is generated during do_sdk_depends which
doesn't pull in nativesdk packages. Generating another locked-sigs.inc
in do_populate_sdk_ext and pruning it to only nativesdk* packages by
using a modified version of the already existing function
prune_locked_sigs and merging it with the current locked-sigs.inc
Also adding SDK_INCLUDE_NATIVESDK tasklistfn to the logic surrounding
setting tasklist file to not prune esdk sstate during creation
[YOCTO #13261]
Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 19 Sep 2019 12:08:05 +0000 (13:08 +0100)]
initramfs-framework: support PARTLABEL option
Since commit (kernel >= 4.20):
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f027c34d844013d9d6c902af8fa01a82d6e5073d
specifying rootfs by PARTLABEL is supported. This commit adds support to
specify root by GPT partition label.
RP: [Fixup to match v2 of the patch]
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
When archiving patched source, WORKDIR should only be changed to
${ARCHIVER_WORKDIR} if the recipe doesn't use a shared work directory.
This matches the behavior of do_unpack_and_patch for these recipes.
This fixes kernel recipes that set S = "${WORKDIR}/git"
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diego Rondini [Mon, 16 Sep 2019 13:23:15 +0000 (15:23 +0200)]
initramfs-framework: support PARTLABEL option
Since commit (kernel >= 4.20):
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f027c34d844013d9d6c902af8fa01a82d6e5073d
specifying rootfs by PARTLABEL is supported. This commit adds support to
specify root by GPT partition label.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
glibc: Make it build without ldconfig in DISTRO_FEATURES
The removal of the supposedly empty /etc when ldconfig is not in
DISTRO_FEATURES seems to be a remnant from a long time ago when nothing
else was installed in /etc. However, that is no longer the case as,
e.g., nscd.conf is always installed to /etc now.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
udev-extraconf: skip mounting partitions already mounted by systemd
For some devices, udev may sometimes trigger twice the 'add' rule during
boot. Calling the mount.sh script twice will eventually fail for
already mounted partitions, but in that case, the script tries to remove
the created mountpoint, when it shouldn't.
This has been observed on USB sticks connected to a USB hub and may
result in devices not being mounted if plugged-in before booting.
This patch checks for already mounted partitions earlier (before creating
the mount point) and returns with no actions.
Signed-off-by: Hector Palacios <hector.palacios@digi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li [Wed, 18 Sep 2019 01:31:25 +0000 (09:31 +0800)]
report-error.bbclass: add local.conf/auto.conf into error report
sometimes, it is not enough to reproduce a failed build with current
info on error reports web, add local.conf/auto.conf into error
report to make it more easier to reproduce failed build
Note: this need work together with change in repo error-report-web,
which will display local.conf and auto.conf as Error Details
[YOCTO #13252]
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5.2 kernel has introduced a significant performance regression
where some of the tests take many minutes to complete (where
previously it was seconds). While we're getting to the bottom
of the issue and working with upstream to resove it, this
change allows tests to proceed instead of getting stuck and
eventually timing out.
openssl: Enable os option for with-rand-seed as well
with openSSL 1.1.1d we start seeing errors like
Error Generating Key 139979727451584:error:2406C06E:random number generator:RAND_DRBG_instantiate:error retrieving entropy:../openssl-1.1.1d/crypto/rand/drbg_lib.c:342:
when using openssl from openssl-native on build hosts, this is due to
limiting the random seed to devrandom, to support older hosts, since the
option allows to have a comma separated list of methods to try, we can
try the default first and if that fails then fallback to devrandom, this
will ensure that it keeps working with build systems which dont support
getrandom()
Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Adrian Bunk <bunk@stusta.de> Cc: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andrew F. Davis [Tue, 17 Sep 2019 13:10:53 +0000 (09:10 -0400)]
weston: Set depends to the virtual needed not explicitly on Mesa
The dependency is for EGL and GLES2 libraries. On some systems these
are not provided by Mesa, list what is actually needed so the system
can choose the correct provider.
Signed-off-by: Andrew F. Davis <afd@ti.com> Acked-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andrew F. Davis [Tue, 17 Sep 2019 13:10:52 +0000 (09:10 -0400)]
gtk+3: Set depends to the virtual needed not explicitly on Mesa
The dependency is for EGL and GLES2 libraries. On some systems these
are not provided by Mesa, list what is actually needed so the system
can choose the correct provider.
Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andrew F. Davis [Tue, 17 Sep 2019 13:10:51 +0000 (09:10 -0400)]
cogl: Set depends to the virtual needed not explicitly on Mesa
The dependency is for EGL and GLES2 libraries. On some systems these
are not provided by Mesa, list what is actually needed so the system
can choose the correct provider.
Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andre McCurdy [Mon, 16 Sep 2019 19:24:24 +0000 (12:24 -0700)]
ffmpeg: add PACKAGECONFIG controls for alsa and zlib (enable by default)
Also move the libogg dependency to the theora PACKAGECONFIG, since
according to the configure script, theora is the specific component
which requires it.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yi Zhao [Mon, 16 Sep 2019 09:29:17 +0000 (17:29 +0800)]
grub: remove diffutils and freetype runtime dependencies
The diffutils runtime dependency was introduced from legacy grub since
the script grub-install invokes cmp command which is from diffutils
package. But in Grub2 the grub-install has been rewritten with C
language. So this package isn't needed anymore.
The freetype runtime dependency is for grub-mkfont but we have
explicitly disabled grub-mkfont build. It is safe to remove it.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Mikko Rapeli [Mon, 16 Sep 2019 07:16:16 +0000 (10:16 +0300)]
busybox.inc: handle empty DEBUG_PREFIX_MAP
DEBUG_PREFIX_MAP can be empty if e.g. old clang
toolchain doesn't support the default poky values for gcc.
Fixes build failure:
ERROR: Logfile of failure stored in: /home/builder/src/base/build/tmp/work/aarch64-poky-linux/busybox/1.31.0-r
0/temp/log.do_configure.14451
Log data follows:
| DEBUG: Executing shell function do_configure
| sed: -e expression #1, char 0: no previous regular expression
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/builder/src/base/build/tmp/work/aarch64-poky-linux/busybox/1.31.0-r0/temp/run.do_configure.14451' failed with exit code 1:
| sed: -e expression #1, char 0: no previous regular expression
| WARNING: exit code 1 from a shell command.
|
This log entry is really useless for debugging problems so
add "set -x" to the configure script so that details can be seen
if something isn't working.
Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li [Mon, 16 Sep 2019 05:50:23 +0000 (13:50 +0800)]
classextend.py: don't extend file for file dependency
Fix error like:
lib32-e2fsprogs-1.45.3-r0 do_package_qa: QA Issue: /usr/sbin/e2scrub_all
contained in package lib32-e2fsprogs-e2scrub requires /bin/bash,
but no providers found in RDEPENDS_lib32-e2fsprogs-e2scrub
For some lib32 packages(eg: lib32-bash, lib32-sed) which probvides files,
extend is not needed
Eg: RPROVIDES of lib32-bash expects to have /bin/bash, with original
extend, it will become lib32-/bin/bash, then will cause above error
Fix by don't extend file dependency, and skip multilib check for file dependency
in do_package_qa to avoid error like:
WARNING: lib32-bash-5.0-r0 do_package: QA Issue: lib32-bash package lib32-bash
- suspicious values '/bin/bash /bin/sh' in RPROVIDES [multilib]
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
nativesdk.bbclass: Clear out LIBCEXTENSION and ABIEXTENSION
These variables dont make sense for nativesdk targets which essentially
are target only properties, this helps in avoiding recompile of
nativesdk-libgcc-initial when switch libcs. nativesdk targets are glibc
only for OE
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
populate_sdk_base.bbclass: nativesdk-glibc-locale is required on musl too
musl based extensible sdk fails to install
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Your system needs to support the en_US.UTF-8 locale.
The real reason is that its missing locale-archive in buildtools-tarball
hence python3 from buildtools-tarball fails to run bitbake when
installing esdk
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
glibc: Move DISTRO_FEATURE specific do_install code for target recipe only
nativesdk-glibc should be spared of recompile when the distro features
are changed e.g. ldconfig is not in
DISTRO_FEATURES, this happens when sdk with musl and another one with
glibc is built
Fixes
Variable do_install value changed:
...
-DISTRO_FEATURES{ldconfig} = Set
+DISTRO_FEATURES{ldconfig} = Unset
Signed-off-by: Khem Raj <raj.khem@gmail.com>
s
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Added copy_file_range posix_spawn_file_actions_add[f]chdir API
* optreset is added to getopt
* pthread fixes
* Conditionally add legacy long definition of wchar_t
Ross Burton [Fri, 13 Sep 2019 12:04:31 +0000 (13:04 +0100)]
adwaita-icon-theme: fix rare install race
There have been rare errors during the build of adwaita-icon-theme, such as:
Exception: bb.process.ExecutionError: Execution of '.../temp/run.sysroot_stage_all.45186' failed with exit code 2:
cpio: ./icons/Adwaita/32x32/legacy/_inst.34160_: Cannot stat: No such file or directory
cpio: ./icons/Adwaita/32x32/legacy/_inst.33428_: Cannot stat: No such file or directory
cpio: ./icons/Adwaita/32x32/legacy/_inst.35421_: Cannot stat: No such file or directory
cpio: ./icons/Adwaita/32x32/legacy/_inst.34533_: Cannot stat: No such file or directory
cpio: ./icons/Adwaita/32x32/legacy/_inst.35366_: Cannot stat: No such file or directory
The problem was that a previous optimisation (oe-core cd9af17028) to massively
increase the install speed (by parallelling the hundreds of installs) was subtly
wrong. It was essentially doing this:
for i in list; do
install i &
done
wait
In pure shell this does parallelise the install commands and then wait for them
all to finish before exiting, but in Makefiles *each line in a separate shell*. The actual Makefile is closer to this:
for i in list; do \
install i & \
done
wait
The backslashes are required to write a multi-line for loop in a Makefile, but
note that when the loop ends the shell exits and all of the install processes
that are still running are disowned. The wait command then executes in a new
shell, and there are no childen to wait for.
The fix is trivial: add more backslashes so that the wait is part of the same
shell.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Martin Jansa [Fri, 13 Sep 2019 08:28:02 +0000 (08:28 +0000)]
perf: fix build on kernels which don't have ${S}/tools/include/linux/bits.h
* tools/include/linux/bits.h was added in v4.20-rc1 with this commit:
commit ba4aa02b417f08a0bee5e7b8ed70cac788a7c854
Author: Arnaldo Carvalho de Melo <acme@redhat.com>
Date: Tue Sep 25 10:55:59 2018 -0300
tools include: Adopt linux/bits.h
* also if you're building for such older kernel you will probably see
do_compile failing with:
| config/Makefile:448: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev
| config/Makefile:495: Python 3 is not yet supported; please set
| config/Makefile:496: PYTHON and/or PYTHON_CONFIG appropriately.
easiest work around is to disable scripting PACKAGECONFIG, because
since oe-core commit:
The upstream kernel can now handle python3 for the perf scripts, coupled
with the impending EOL of python2, we switch the dependencies in perf
(scripting) to python3.
it now uses python3, but the support for that was added in kernel
v4.17-rc1 with:
Jack Mitchell [Thu, 5 Sep 2019 09:35:37 +0000 (09:35 +0000)]
iptables: add systemd helper unit to load/restore rules
There is currently no way to automatically load iptables rules in OE.
Add a systemd unit file to automatically load rules on network
connection. This is cribbed from the way ArchLinux handles iptables with
some minor modifications for OE.
New rules can be generated directly on the target using:
# iptables-save -f /etc/iptables/iptables.rules
Good documentation for writing rules offline is lacking, but the basics
are explained here:
https://unix.stackexchange.com/q/400163/49405
Signed-off-by: Jack Mitchell <jack@embed.me.uk> Signed-off-by: Diego Rondini <diego.rondini@kynetics.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
The renesas rcar SoC H3/M3 is big.LITTLE architecture(cortex-a57.cortex-a53).
In order to optimize the performance of the code running on SoC H3/M3,
add a tune file for ARM Cortex-A53-Cortex-A57.
Create this tune file by refering GCC doc, 3.18.5 ARM Options.
Signed-off-by: Meng Li <Meng.Li@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
$ bitbake ovmf lib32-ovmf
[snip]
ERROR: ovmf-edk2-stable201905-r0 do_deploy_setscene: The recipe ovmf is trying to install files into a shared area when those files already exist.
Those files and their manifest location are:
/buildarea1/lyang1/rebase-work/test_cc/tmp-glibc/deploy/images/qemux86-64/OvmfPkKek1.key
(matched in manifest-qemux86_64-lib32-ovmf.deploy)
[snip]
Add it NON_MULTILIB_RECIPES to fix the problem since it is a firmware, build
multilib for it doens't make much sense.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Randy MacLeod [Tue, 10 Sep 2019 21:41:36 +0000 (17:41 -0400)]
valgrind: disable 256 ptests for aarch64
On qemuarm64 systems, about half of the valgrind tests fail and
often result in defunct processes, eg:
root 819 818 25 00:12 pts/0 00:01:52 /usr/bin/valgrind --command-line-only=yes --memcheck:leak-check=no --tool=memcheck -q --track-origins=
root 861 420 0 00:13 pts/0 00:00:00 [sh] <defunct>
Eventually these processes use so much memory that the
out of memory killer runs.
Hide the tests that fail as a horrid work-around until the
root cause has been resolved since this at least allows the
ptest run to complete. This work-around is done in the run-ptest
script using a sorted list of tests so that they can be easily
restored one by one without a rebuild during testing.
Randy MacLeod [Tue, 10 Sep 2019 21:41:35 +0000 (17:41 -0400)]
valgrind: ptest improvements to run-ptest and more
Make some changes to the run-ptest script:
- after main tests run integrity check like the pkg Makefile.
- aesthetic and ordering changes
Add the .in_place directory and its contents which allows valgrind
to be run in-place thereby enabling the gdbserver_tests to
complete rather than hang. Unfortunately directory paths embedded
in binaries still cause many of these test to fail.
Add the exp-sgcheck tests.
With core-image-minimal on qemux86-64/kvm:
Recipe | Passed | Failed | Skipped | Time(s)
before | 648 | 12 | 60 | 1541
after | 662 | 20 | 38 | 1429
ppc-no-gdbserv | 415 | 196 | 34 | 10689
Since fewer tests timeout, the overall time has decreased.
With core-image-sato on qemux86-64/kvm the results are now
the same as core-image-minimal.
qemuppc/arm64 runs result in the oom-killer eventually running since
some processes do not terminate properly and accumulate as defunct
processes in memory. Without the gdbserver_tests, the tests
complete without defunct process or the oom-killer running for
ppc but not for arm64.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Randy MacLeod [Tue, 10 Sep 2019 21:41:34 +0000 (17:41 -0400)]
valgrind: make a few more ptests pass
Adjust two memcheck vgtest files to deal with relative paths
that are in test executables when cross-compiling.
Add libgomp to enable OpenMP tests.
Add the bz2 executable for memcheck/tests/vcpu_bz2.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>