Bruce Ashfield [Thu, 8 Jun 2017 19:21:55 +0000 (15:21 -0400)]
linux-yocto/4.9: update to 4.9.31
Updating to the latest 4.9 -stable which comprises the following
commits:
f1aa865ae5d4 Linux 4.9.31 11214bd292ec xfs: Fix off-by-in in loop termination in xfs_find_get_desired_pgoff() 75c5afd58d46 xfs: fix unaligned access in xfs_btree_visit_blocks 7fb8ab8f0a38 xfs: avoid mount-time deadlock in CoW extent recovery e40c145c023d xfs: xfs_trans_alloc_empty 0e542792a046 xfs: bad assertion for delalloc an extent that start at i_size f60d76efa91a xfs: BMAPX shouldn't barf on inline-format directories 53c44c236f21 xfs: fix indlen accounting error on partial delalloc conversion 54894ea3c542 xfs: fix use-after-free in xfs_finish_page_writeback d457f822817f xfs: reserve enough blocks to handle btree splits when remapping 0ba833fe73d2 xfs: wait on new inodes during quotaoff dquot release 2ea882d8ebc7 xfs: update ag iterator to support wait on new inodes e86b616b5b9e xfs: support ability to wait on new inodes 10f0b2c3c225 xfs: fix up quotacheck buffer list error handling 95487d4be1e9 xfs: prevent multi-fsb dir readahead from reading random blocks 93bd169845e5 xfs: handle array index overrun in xfs_dir2_leaf_readbuf() 99226b890d63 xfs: fix integer truncation in xfs_bmap_remap_alloc 4e2762878a59 xfs: drop iolock from reclaim context to appease lockdep 4e8163fc8159 xfs: actually report xattr extents via iomap de417ea6b0a6 xfs: fix over-copying of getbmap parameters from userspace c2ad2dc3d264 xfs: use dedicated log worker wq to avoid deadlock with cil wq 3890d83805fe xfs: fix kernel memory exposure problems ca659e086fb7 xfs: rework the inline directory verifiers 815414e7648b xfs: verify inline directory data forks 11b485477285 xfs: fix off-by-one on max nr_pages in xfs_find_get_desired_pgoff() 9c795fff53f9 xfs: use ->b_state to fix buffer I/O accounting release race c9eab63b9e62 xfs: Fix missed holes in SEEK_HOLE implementation 670821b9482d drm/gma500/psb: Actually use VBT mode when it is found 74b416367b4e mm/slub.c: trace free objects at KERN_INFO c1bb2a899b5f slub/memcg: cure the brainless abuse of sysfs attributes 873f3b0ebbfe ksm: prevent crash after write_protect_page fails d5ecb4ca0da7 x86/boot: Use CROSS_COMPILE prefix for readelf d1cff2222071 RDMA/qib,hfi1: Fix MR reference count leak on write with immediate 292f70cd9649 mm: consider memblock reservations for deferred memory initialization sizing 1163e785b150 mlock: fix mlock count can not decrease in race condition d494cab70697 mm/migrate: fix refcount handling when !hugepage_migration_supported() 7d8ef0e0bc1e ALSA: hda - apply STAC_9200_DELL_M22 quirk for Dell Latitude D430 da856d05645c pcmcia: remove left-over %Z format ebd4c110fd0b drm/radeon: Fix vram_size/visible values in DRM_RADEON_GEM_INFO ioctl acc771fdaec7 drm/radeon: Unbreak HPD handling for r600+ c8d25fcb5980 drm/radeon/ci: disable mclk switching for high refresh rates (v2) 9869fb485cc6 scsi: mpt3sas: Force request partial completion alignment 21f33b157721 nvme: avoid to use blk_mq_abort_requeue_list() 510b0ec7f60f nvme: use blk_mq_start_hw_queues() in nvme_kill_queues() ae0578089242 nvme-rdma: support devices with queue size < 32 34808d76dd77 HID: wacom: Have wacom_tpc_irq guard against possible NULL dereference 69b1d90e6a0f ibmvscsis: Fix the incorrect req_lim_delta 80569d0e09ad ibmvscsis: Clear left-over abort_cmd pointers 49d33fd10070 iscsi-target: Always wait for kthread_should_stop() before kthread exit ecbf0f48d65e mmc: sdhci-iproc: suppress spurious interrupt with Multiblock read 8735cf2291cd Revert "ACPI / button: Change default behavior to lid_init_state=open" 32d8077f1e9b acpi, nfit: Fix the memory error check in nfit_handle_mce() 68c83a379106 x86/MCE: Export memory_error() 4472887cbd13 crypto: skcipher - Add missing API setkey checks 63399974effb i2c: i2c-tiny-usb: fix buffer not being DMA capable d3b2d9ca90c2 drivers/tty: 8250: only call fintek_8250_probe when doing port I/O 1d74fc36f3ec powerpc/spufs: Fix hash faults for kernel regions 68a056175512 fs/ufs: Set UFS default maximum bytes per file 1a658771d5e1 sparc/ftrace: Fix ftrace graph time measurement 45ceb845ef34 sparc: Fix -Wstringop-overflow warning c1133c671a04 bpf: add bpf_clone_redirect to bpf_helper_changes_pkt_data 988b9792b856 ipv4: add reference counting to metrics 1de51502a025 sctp: fix ICMP processing if skb is non-linear 4b81271ed1c3 tcp: avoid fastopen API to be used on AF_UNSPEC 9e056584770b virtio-net: enable TSO/checksum offloads for Q-in-Q vlans 9c6cfd5811bd be2net: Fix offload features for Q-in-Q packets 5f595d529796 vlan: Fix tcp checksum offloads in Q-in-Q vlans cc6773b51bf3 net: phy: marvell: Limit errata to 88m1101 4fb5fd27dec0 net/mlx5: Avoid using pending command interface slots 1730a2b9e5b5 bonding: fix accounting of active ports in 3ad 304b41014acb ipv6: fix out of bound writes in __ip6_append_data() ee72e7e5c2b4 bridge: start hello_timer when enabling KERNEL_STP in br_stp_start 0d10ebbc835f qmi_wwan: add another Lenovo EM74xx device ID 2ea4221eb4ae bridge: netlink: check vlan_default_pvid range 3fa202ef74c8 ipv6: Check ip6_find_1stfragopt() return value properly. a2c845e51a82 ipv6: Prevent overrun when parsing v6 header options 68647616fd53 net: Improve handling of failures on link and route dumps 0174b07408f2 tcp: eliminate negative reordering in tcp_clean_rtx_queue ac3735bf97f0 net/mlx5e: Fix ethtool pause support and advertise reporting 1594973b8e07 net/mlx5e: Use the correct pause values for ethtool advertising f79d3307c035 net/packet: fix missing net_device reference release 5e7d9f0b3f72 sctp: do not inherit ipv6_{mc|ac|fl}_list from parent eb7f6d6989ad sctp: fix src address selection if using secondary addresses for ipv6 8d625242e86b tcp: avoid fragmenting peculiar skbs in SACK a5db124dc2a4 net: fix compile error in skb_orphan_partial() 5d165daafc44 netem: fix skb_orphan_partial() 21e3113298f9 bpf, arm64: fix faulty emission of map access in tail calls c1f3f197d650 s390/qeth: add missing hash table initializations 96a81eb6ad5a s390/qeth: avoid null pointer dereference on OSN b68c2e387a23 s390/qeth: unbreak OSM and OSN support 25c1a1e4d891 s390/qeth: handle sysfs error during initialization 4bd8f5e38e5a ipv6/dccp: do not inherit ipv6_mc_list from parent 8f1f08be3974 driver: vrf: Fix one possible use-after-free issue 4eed44029507 dccp/tcp: do not inherit mc_list from parent db3fd4527ed3 Linux 4.9.30 5a597b225d48 drm/i915/gvt: Disable access to stolen memory as a guest 1489183c2005 drivers: char: mem: Check for address space wraparound with mmap() 51d9c51523ec nfsd: encoders mustn't use unitialized values in error cases ea465551af30 nfsd: fix undefined behavior in nfsd4_layout_verify f2b6f508c541 NFS: Use GFP_NOIO for two allocations in writeback a8c35e5c88de NFS: Fix use after free in write error path 88ac6b7e0c82 NFSv4: Fix a hang in OPEN related to server reboot 5438f8952906 drm/edid: Add 10 bpc quirk for LGD 764 panel in HP zBook 17 G2 5956b2815f90 mtd: nand: add ooblayout for old hamming layout 6639b27f5a4c mtd: nand: omap2: Fix partition creation via cmdline mtdparts e437af936a49 mtd: nand: orion: fix clk handling db6636416195 PCI: Freeze PME scan before suspending devices 9ad81ecb28d6 PCI: Only allow WC mmap on prefetchable resources 6bec009a2f69 PCI: Fix another sanity check bug in /proc/pci mmap fa3bbb1c7f06 PCI: Fix pci_mmap_fits() for HAVE_PCI_RESOURCE_TO_USER platforms 87e7dc97c8a0 PCI: hv: Specify CPU_AFFINITY_ALL for MSI affinity when >= 32 CPUs d1d63f97dd76 PCI: hv: Allocate interrupt descriptors with GFP_ATOMIC dd0023d7105c tracing/kprobes: Enforce kprobes teardown after testing cc0aa21de47c um: Fix to call read_initrd after init_bootmem 541c67844198 osf_wait4(): fix infoleak 07d8aabff490 MIPS: Loongson-3: Select MIPS_L1_CACHE_SHIFT_6 6d6a43a08611 nvme: unmap CMB and remove sysfs file in reset path 423f1752a028 genirq: Fix chained interrupt data ordering 3fe116563d5d uwb: fix device quirk on big-endian hosts f157261b55a4 stackprotector: Increase the per-task stack canary's random range from 32 bits to 64 bits on 64-bit platforms e8a8a6972c50 metag/uaccess: Check access_ok in strncpy_from_user 9fefcb947ec2 metag/uaccess: Fix access_ok() 21f2950f91ff iommu/vt-d: Flush the IOTLB to get rid of the initial kdump mappings 58e36d6f7f11 staging: rtl8192e: GetTs Fix invalid TID 7 warning. 93a46fe4eb41 staging: rtl8192e: rtl92e_get_eeprom_size Fix read size of EPROM_CMD. d0226f9adaf8 staging: rtl8192e: fix 2 byte alignment of register BSSIDR. f4205502948b staging: rtl8192e: rtl92e_fill_tx_desc fix write to mapped out memory. e6b8f5ade305 arm64: documentation: document tagged pointer stack constraints e817a7fb2f31 arm64: uaccess: ensure extension of access_ok() addr 4775fbcc92d7 arm64: armv8_deprecated: ensure extension of addr f2e4f4e538f0 arm64: ensure extension of smp_store_release value 88675139a81d arm64: xchg: hazard against entire exchange variable 31a331c8cf26 arm64: dts: hi6220: Reset the mmc hosts 5ee1c675ab92 ARM: dts: imx6sx-sdb: Remove OPP override 03d8b264bcb9 ARM: dts: at91: sama5d3_xplained: not all ADC channels are available 086ea4b9510c ARM: dts: at91: sama5d3_xplained: fix ADC vref 9f6cea2e3bbd ARM: 8670/1: V7M: Do not corrupt vector table around v7m_invalidate_l1 call 3304f5a1cb87 ARM: 8662/1: module: split core and init PLT sections ee773459557d KVM: arm: plug potential guest hardware debug leakage 0ba7e8e34193 arm: KVM: Do not use stack-protector to compile HYP code d0fb4b7d00bb arm64: KVM: Do not use stack-protector to compile EL2 code a685601f8533 powerpc/tm: Fix FP and VMX register corruption 018b91870856 powerpc/64e: Fix hang when debugging programs with relocated kernel 3915c566ea94 powerpc/iommu: Do not call PageTransHuge() on tail pages 5ba5685a26b1 powerpc/pseries: Fix of_node_put() underflow during DLPAR remove a0da3e00df38 powerpc/book3s/mce: Move add_taint() later in virtual mode 222f1d668d00 powerpc/eeh: Avoid use after free in eeh_handle_special_event() 690f09eb52bc powerpc/mm: Ensure IRQs are off in switch_mm() 2338de43e234 cx231xx-cards: fix NULL-deref at probe 8ebb884009b6 cx231xx-audio: fix NULL-deref at probe 1b24b8c07023 cx231xx-audio: fix init error path 40616929f87e dw2102: limit messages to buffer size e42a6715d26b digitv: limit messages to buffer size 28590f1bb601 dvb-frontends/cxd2841er: define symbol_rate_min/max in T/C fe-ops 64579fcc57fd zr364xx: enforce minimum size when reading header 466b45af50fd dib0700: fix NULL-deref at probe 074912daab55 s5p-mfc: Fix unbalanced call to clock management 4a9c54250492 gspca: konica: add missing endpoint sanity check e2f95f88106f s5p-mfc: Fix race between interrupt routine and device functions 6bee0b1fe4ed iio: hid-sensor: Store restore poll and hysteresis on S3 a99462b13dff iio: proximity: as3935: fix as3935_write 820adccd0e3b ipx: call ipxitf_put() in ioctl error path c67e87a22dd8 USB: hub: fix non-SS hub-descriptor handling 3e4a4e68df08 USB: hub: fix SS hub-descriptor handling f9cd79e0ad1f USB: serial: io_ti: fix div-by-zero in set_termios c3e024ff9180 USB: serial: mct_u232: fix big-endian baud-rate handling d8fc44d67488 USB: serial: qcserial: add more Lenovo EM74xx device IDs 7e5407600663 usb: serial: option: add Telit ME910 support ee0f3a89842e USB: iowarrior: fix info ioctl on big-endian hosts dbb127332abf usb: musb: Fix trying to suspend while active for OTG configurations 08c735a15d5b usb: musb: tusb6010_omap: Do not reset the other direction's packet size ff9177b158c3 usb: dwc3: gadget: Prevent losing events in event cache 653cd31a2ca5 dvb-usb-dibusb-mc-common: Add MODULE_LICENSE 4f93054d9b45 ttusb2: limit messages to buffer size c71b5040632f mceusb: fix NULL-deref at probe 736f41a47442 usbvision: fix NULL-deref at probe a3adb4721ae2 net: irda: irda-usb: fix firmware name on big-endian hosts 1046d6a51f57 usb: host: xhci-mem: allocate zeroed Scratchpad Buffer 219628bb0c05 xhci: apply PME_STUCK_QUIRK and MISSING_CAS quirk for Denverton 1a926919364f usb: host: xhci-plat: propagate return value of platform_get_irq() 374a3fb5c3b0 xhci: remove GFP_DMA flag from allocation fa313fd6673e libnvdimm: fix clear length of nvdimm_forget_poison() af9bd5218855 fscrypt: avoid collisions when presenting long encrypted filenames 8daed21dbce1 f2fs: check entire encrypted bigname when finding a dentry b9c0da6219e1 USB: chaoskey: fix Alea quirk on big-endian hosts 545a3171d37f USB: serial: ftdi_sio: add Olimex ARM-USB-TINY(H) PIDs 038ccaa5d50e USB: serial: ftdi_sio: fix setting latency for unprivileged users 2ea2f891fa85 pid_ns: Fix race between setns'ed fork() and zap_pid_ns_processes() 6dc6a2700b6a pid_ns: Sleep in TASK_INTERRUPTIBLE in zap_pid_ns_processes 5e40ac3fbd0d IB/hfi1: Fix a subcontext memory leak b894ea8263ca IB/hfi1: Return an error on memory allocation failure dfb450b2b66e IIO: bmp280-core.c: fix error in humidity calculation a03176f92a02 iio: dac: ad7303: fix channel description 05a36277a195 ibmvscsis: Do not send aborted task response 9907c838fc07 of: fdt: add missing allocation-failure check 80cdf2065bf0 of: fix "/cpus" reference leak in of_numa_parse_cpu_nodes() ae5074ba9ef8 of: fix sparse warning in of_pci_range_parser_one d10b21d6e562 proc: Fix unbalanced hard link numbers 168b2bfaa235 cxl: Route eeh events to all drivers in cxl_pci_error_detected() 393531299547 cxl: Force context lock during EEH flow fc6b678ab1d4 ohci-pci: add qemu quirk 809ae061d998 cdc-acm: fix possible invalid access when processing notification 198ab4031873 gpio: omap: return error if requested debounce time is not possible b77adf29b856 drm/nouveau/tmr: handle races with hw when updating the next alarm time 1ec3c712e231 drm/nouveau/tmr: avoid processing completed alarms when adding a new one 6445a49a8c59 drm/nouveau/tmr: fix corruption of the pending list when rescheduling an alarm 16e10490d260 drm/nouveau/tmr: ack interrupt before processing alarms e8ee63059196 drm/nouveau/therm: remove ineffective workarounds for alarm bugs d1f006efde1f drm/amdgpu: Add missing lb_vblank_lead_lines setup to DCE-6 path. b334b3492888 drm/amdgpu: Avoid overflows/divide-by-zero in latency_watermark calculations. ebf3cf5b9a67 drm/amdgpu: Make display watermark calculations more accurate adc6647c4f0f ath9k_htc: fix NULL-deref at probe c39bafb9ee7a ath9k_htc: Add support of AirTies 1eda:2315 AR9271 device 768ae64b2ab2 s390/cputime: fix incorrect system time 8c5157c1967e s390/kdump: Add final note c849b4fa8e10 regulator: tps65023: Fix inverted core enable logic. 5b00d6c85a92 regulator: rk808: Fix RK818 LDO2 ae382caa96f7 x86: fix 32-bit case of __get_user_asm_u64() 54e385430e12 KVM: X86: Fix read out-of-bounds vulnerability in kvm pio emulation c996ad7568c0 KVM: x86: Fix potential preemption when get the current kvmclock timestamp b64ecb25b1d5 KVM: x86: Fix load damaged SSEx MXCSR register 91034255e42f ima: accept previously set IMA_NEW_FILE ce7146cf9bdf mwifiex: pcie: fix cmd_buf use-after-free in remove/reset 385eb9b33e1d mwifiex: MAC randomization should not be persistent 444df795edf4 rtlwifi: rtl8821ae: setup 8812ae RFE according to device type 7e7897878783 md: MD_CLOSING needs to be cleared after called md_set_readonly or do_md_stop fa9a4a9c6d6f md: update slab_cache before releasing new stripes when stripes resizing f2bb8bcbc09d dm space map disk: fix some book keeping in the disk space map cc681811a92c dm thin metadata: call precommit before saving the roots eeaf13394d32 dm bufio: make the parameter "retain_bytes" unsigned long e69242436b6b dm cache metadata: fail operations if fail_io mode has been established 042d8dbf69c6 dm mpath: split and rename activate_path() to prepare for its expanded use e08047c90c8a dm bufio: check new buffer allocation watermark every 30 seconds 98e7b9d45bf4 dm bufio: avoid a possible ABBA deadlock c5066c4c1b7e dm raid: select the Kconfig option CONFIG_MD_RAID0 4de8eceefbea dm btree: fix for dm_btree_find_lowest_key() 5db8f42b62da infiniband: call ipv6 route lookup via the stub interface cb5cf8aaba2e mlx5: Fix mlx5_ib_map_mr_sg mr length ece453e8b0ca ASoC: cs4271: configure reset GPIO as output cc15d340ec6a tpm_crb: check for bad response size 0c150305212b tpm: add sleep only for retry in i2c_nuvoton_write_status() 40ca1fd38e11 tpm: msleep() delays - replace with usleep_range() in i2c nuvoton driver 568ea0dcc27e tpm_tis_spi: Add small delay after last transfer c4b3779c9783 tpm_tis_spi: Remove limitation of transfers to MAX_SPI_FRAMESIZE bytes d513cf24e240 tpm_tis_spi: Check correct byte for wait state indicator daa432c1a65a tpm_tis_spi: Abort transfer when too many wait states are signaled aad1e5c81cbb tpm_tis_spi: Use single function to transfer data cc0f994c205d fanotify: don't expose EOPENSTALE to userspace e8b6d43ce3ea ARM: tegra: paz00: Mark panel regulator as enabled on boot 0251f6affb11 ALSA: hda: Fix cpu lockup when stopping the cmd dmas 5c1bd0cb4992 tpm_tis_core: Choose appropriate timeout for reading burstcount 3888f62943bb USB: core: replace %p with %pK 5d263d94a870 char: lp: fix possible integer overflow in lp_setup() 7a2b8471ab12 watchdog: pcwd_usb: fix NULL-deref at probe 6e2078c10092 USB: ene_usb6250: fix DMA to the stack 7d96e4a404c1 usb: misc: legousbtower: Fix memory leak 810b7c559954 usb: misc: legousbtower: Fix buffers on stack f5eea276d8de Linux 4.9.29 9ee8502bd2cc pstore: Shut down worker when unregistering a4de93008625 pstore: Fix flags to enable dumps on powerpc 1a1029507258 libnvdimm, pfn: fix 'npfns' vs section alignment c171b24fe508 libnvdimm, pmem: fix a NULL pointer BUG in nd_pmem_notify 5b6e7f353290 libnvdimm, region: fix flush hint detection crash 46ba11b007c1 ipmi: Fix kernel panic at ipmi_ssif_thread() 6e7de39ef9a4 Bluetooth: hci_intel: add missing tty-device sanity check f2f6d77fabe2 Bluetooth: hci_bcm: add missing tty-device sanity check 518ca84479d7 Bluetooth: Fix user channel for 32bit userspace on 64bit kernel 89c91ea37581 tty: pty: Fix ldisc flush after userspace become aware of the data already e38a4c3b0b4a serial: omap: suspend device on probe errors f8d2751b0012 serial: omap: fix runtime-pm handling on unbind c5689e0ab6e1 serial: samsung: Use right device for DMA-mapping calls 64a599ac5dcc fscrypt: fix context consistency check when key(s) unavailable 8dd114ef78c8 device-dax: fix cdev leak 6240377c574b padata: free correct variable 1c5d8b377e58 CIFS: add misssing SFM mapping for doublequote 6f3b2eed8c9a cifs: fix CIFS_IOC_GET_MNT_INFO oops f13d96bf98c2 CIFS: fix oplock break deadlocks 411346640ccd cifs: fix CIFS_ENUMERATE_SNAPSHOTS oops 449a74439d15 cifs: fix leak in FSCTL_ENUM_SNAPS response handling 87c0604d860f CIFS: fix mapping of SFM_SPACE and SFM_PERIOD 8dd4e3ff1bfb SMB3: Work around mount failure when using SMB3 dialect to Macs 2ac2ad9fb045 Set unicode flag on cifs echo request to avoid Mac error 4f5e1c48e80b Fix match_prepath() 4e434d4fe28a mm: prevent potential recursive reclaim due to clearing PF_MEMALLOC 945d0ecdd9bd fs/block_dev: always invalidate cleancache in invalidate_bdev() 091784ae9738 ceph: fix memory leak in __ceph_setxattr() 9a6bb7b5637e fs/xattr.c: zero out memory copied to userspace in getxattr 1777e888bd40 orangefs: do not check possibly stale size on truncate 63907bb781e7 orangefs: do not set getattr_time on orangefs_lookup 59f496104112 orangefs: clean up oversize xattr validation 127adc188c62 orangefs: fix bounds check for listxattr b2764f851db6 ext4: evict inline data when writing to memory map 7929b50dedd1 perf auxtrace: Fix no_size logic in addr_filter__resolve_kernel_syms() e3cea38357ea IB/hfi1: Prevent kernel QP post send hard lockups 43c54927f6f4 IB/mlx4: Reduce SRIOV multicast cleanup warning message to debug level 9ae6b33dcbb4 IB/mlx4: Fix ib device initialization error flow d20bfe223d3e IB/IPoIB: ibX: failed to create mcg debug file 7a227630ab89 IB/core: For multicast functions, verify that LIDs are multicast LIDs ecb0ab0f89c7 IB/core: Fix sysfs registration error flow 377178321690 iov_iter: don't revert iov buffer if csum error 9f43f70dcc56 vfio/type1: Remove locked page accounting workqueue 1773131ec4b9 dm thin: fix a memory leak when passing discard bio down f32e35bc3d54 dm rq: check blk_mq_register_dev() return value in dm_mq_init_request_queue() f6ec18eb7425 dm era: save spacemap metadata root after the pre-commit f8d05099ec72 crypto: ccp - Change ISR handler method for a v5 CCP a0a232489c0f crypto: ccp - Change ISR handler method for a v3 CCP 93424b2b63e0 crypto: ccp - Disable interrupts early on unload 36dffff240d9 crypto: ccp - Use only the relevant interrupt bits bcc70358396a crypto: algif_aead - Require setkey before accept(2) 9b2fb8ad5ba1 block: fix blk_integrity_register to use template's interval_exp if not 0 884ba252f3f1 arm64: KVM: Fix decoding of Rt/Rt2 when trapping AArch32 CP accesses 7b0d4391d0f4 KVM: arm/arm64: fix races in kvm_psci_vcpu_on bdf1d5b4c129 KVM: x86: fix user triggerable warning in kvm_apic_accept_events() f99985cdee64 perf/x86: Fix Broadwell-EP DRAM RAPL events 0750e8b865ee um: Fix PTRACE_POKEUSER on x86_64 e0c871792cc6 x86, pmem: Fix cache flushing for iovec write < 8 bytes e65c6aa10860 selftests/x86/ldt_gdt_32: Work around a glibc sigaction() bug acb6dc6aa744 x86/boot: Fix BSS corruption/overwrite bug in early x86 kernel startup 219a99dd2198 usb: hub: Do not attempt to autosuspend disconnected devices 181b0de7f7cc usb: hub: Fix error loop seen after hub communication errors 5a001a687f7c usb: Make sure usb/phy/of gets built-in 5c51e4b65fca usb: gadget: legacy gadgets are optional af534bf9540e usb: misc: add missing continue in switch a54ab7420ac7 staging: comedi: jr3_pci: cope with jiffies wraparound 2bdc2e8c29e9 staging: comedi: jr3_pci: fix possible null pointer dereference 55f9811b98f2 staging: gdm724x: gdm_mux: fix use-after-free on module unload 83f66c9a6026 staging: vt6656: use off stack for out buffer USB transfers. 3eff228fdd43 staging: vt6656: use off stack for in buffer USB transfers. 6312a84dc8b5 USB: Revert "cdc-wdm: fix "out-of-sync" due to missing notifications" 5ffe717f351d USB: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously c31ff3ceb326 USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit 91cd8f900c75 usb: host: xhci: print correct command ring address 853469d53e86 usb: xhci: bInterval quirk for TI TUSB73x0 bb1f06f53bcb iscsi-target: Set session_fall_back_to_erl0 when forcing reinstatement f788fa43d87a target/fileio: Fix zero-length READ and WRITE handling a4e52cc7d81b target: Fix compare_and_write_callback handling for non GOOD status f2b8de98f737 xen: adjust early dom0 p2m handling to xen hypervisor behavior 58cd97ff374b Linux 4.9.28 6a7620744e89 block: get rid of blk_integrity_revalidate() 48d9fa1ece5e drm/ttm: fix use-after-free races in vm fault handling 347d07bf3add wlcore: Add RX_BA_WIN_SIZE_CHANGE_EVENT event bbd839a40dde wlcore: Pass win_size taken from ieee80211_sta to FW 5d7ab8339a9a xen: Revert commits da72ff5bfcb0 and 72a9b186292d 93862955cbf4 f2fs: sanity check segment count 265d382cc8db net: mdio-mux: bcm-iproc: call mdiobus_free() in error path ced0a31e667f bpf: don't let ldimm64 leak map addresses on unprivileged e37aab9c63b8 bnxt_en: allocate enough space for ->ntp_fltr_bmap 8795ee7bed24 ipv6: reorder ip6_route_dev_notifier after ipv6_dev_notf ecbd3ed2ddfe ipv6: initialize route null entry in addrconf_init() 5d8e07740c69 rtnetlink: NUL-terminate IFLA_PHYS_PORT_NAME string f19065308601 ipv4, ipv6: ensure raw socket message is big enough to hold an IP header 747a00193f26 tcp: do not inherit fastopen_req from parent 78f032b071c1 net: usb: qmi_wwan: add Telit ME910 support 0f4ac291a768 net: ipv6: Do not duplicate DAD on link up 91260baa9d67 tcp: fix wraparound issue in tcp_lp 493d0a7be31c bpf, arm64: fix jit branch offset related to ldimm64 7bca0a9702ed bpf: enhance verifier to understand stack pointer arithmetic f3235cbd5be1 tcp: do not underestimate skb->truesize in tcp_trim_head() 3b0129d4111e macsec: dynamically allocate space for sglist 22d6b013ffcf sparc64: fix fault handling in NGbzero.S and GENbzero.S 7aa0e14336d9 ALSA: hda - Fix deadlock of controller device lock at unbinding 170e0abd886b staging: emxx_udc: remove incorrect __init annotations d8e94d091376 staging: wlan-ng: add missing byte order conversion 47b7257fc20f staging/lustre/llite: move root_squash from sysfs to debugfs 0b77c687d4e0 brcmfmac: Make skb header writable before use f73dfc29afa6 brcmfmac: Ensure pointer correctly set if skb data location changes b0e2e3acfe8e MIPS: R2-on-R6 MULTU/MADDU/MSUBU emulation bugfix 2d652d0abd3c scsi: smartpqi: fix time handling a46d03e35179 scsi: mac_scsi: Fix MAC_SCSI=m option when SCSI=m 76aa65a2c0fd scsi: qla2xxx: Fix crash in qla2xxx_eh_abort on bad ptr 71fd9a94bd3f serial: 8250_omap: Fix probe and remove for PM runtime 115fb7ec22b5 phy: qcom-usb-hs: Add depends on EXTCON 52dd14d76812 clk: rockchip: add "," to mux_pll_src_apll_dpll_gpll_usb480m_p on rk3036 6fa44d4ba212 USB: serial: io_edgeport: fix descriptor error handling 62b8b773ebde USB: serial: mct_u232: fix modem-status error handling e17c48c3280e USB: serial: quatech2: fix control-message error handling 594c9b4b0acb USB: serial: ftdi_sio: fix latency-timer error handling ca4e6525df05 USB: serial: ark3116: fix open error handling 94bbbfe21b5a USB: serial: ti_usb_3410_5052: fix control-message error handling b07e930d1f49 USB: serial: io_edgeport: fix epic-descriptor handling 4d32e36d6262 USB: serial: ssu100: fix control-message error handling 9ca301067502 USB: serial: digi_acceleport: fix incomplete rx sanity check 84443215cf54 USB: serial: keyspan_pda: fix receive sanity checks b6c17077e056 usb: chipidea: Handle extcon events properly 8eb8c9b16fdd usb: chipidea: Only read/write OTGSC from one place 4a36b6a7ee88 usb: host: ohci-exynos: Decrese node refcount on exynos_ehci_get_phy() error paths 8f50cb88d862 usb: host: ehci-exynos: Decrese node refcount on exynos_ehci_get_phy() error paths 30643b5ac754 usb: dwc2: host: use msleep() for long delay d0ee36354f77 KVM: nVMX: do not leak PML full vmexit to L1 560a979735f4 KVM: nVMX: initialize PML fields in vmcs02 39058adebbb1 Revert "KVM: nested VMX: disable perf cpuid reporting" b6cd52a0eeaf x86/platform/intel-mid: Correct MSI IRQ line for watchdog device 1eae95d4bc03 kprobes/x86: Fix kernel panic when certain exception-handling addresses are probed c9f617223904 clk: Make x86/ conditional on CONFIG_COMMON_CLK 1f0c69cfb2ad x86/mpx: Re-add MPX to selftests Makefile 56e524a8c305 x86/pci-calgary: Fix iommu_free() comparison of unsigned expression >= 0 5ed26fad2d08 x86/ioapic: Restore IO-APIC irq_chip retrigger callback 3b141e2965a7 iwlwifi: mvm: writing zero bytes to debugfs causes a crash 1fb264cf7d54 iwlwifi: mvm: synchronize firmware DMA paging memory 495f91630205 iwlwifi: mvm: fix references to first_agg_queue in DQA mode 4d6f2ac95bc5 iwlwifi: mvm: fix pending frame counter calculation 48aa5ec292f3 iwlwifi: mvm/pcie: adjust A-MSDU tx_cmd length in PCIe 04dd401a5145 iwlwifi: mvm: Use aux queue for offchannel frames in dqa a6fe39262c51 iwlwifi: mvm: fix reorder timer re-arming 20a9de99a0da iwlwifi: pcie: fix the set of DMA memory mask 562c868d94a8 iwlwifi: pcie: trans: Remove unused 'shift_param' 9c8655c0a860 iwlwifi: pcie: don't increment / decrement a bool 948634492b40 iwlwifi: mvm: overwrite skb info later 45dad03aca55 iwlwifi: mvm: don't restart HW if suspend fails with unified image d0a8075ffe05 iwlwifi: fix MODULE_FIRMWARE for 6030 9291cabe094b mwifiex: Avoid skipping WEP key deletion for AP dcdeaa743342 mwifiex: remove redundant dma padding in AMSDU 525fda9221a8 mwifiex: debugfs: Fix (sometimes) off-by-1 SSID print 1d61da618969 ARM: dts: sun7i: lamobo-r1: Fix CPU port RGMII settings ebae7681697d ARM: OMAP5 / DRA7: Fix HYP mode boot for thumb2 build f4bff2c44dc9 ARM: dts: NSP: GPIO reboot open-source 329607b4864d leds: ktd2692: avoid harmless maybe-uninitialized warning f46fdb8a2611 arm64: Improve detection of user/non-user mappings in set_pte(_at) aadb7e073e81 arm: dts: qcom: Fix ipq board clock rates e33fb57428a1 arm64: dts: r8a7795: Mark EthernetAVB device node disabled e7b34f4a74f6 power: supply: bq24190_charger: Handle fault before status on interrupt 7f2b4ad9c07a power: supply: bq24190_charger: Don't read fault register outside irq_handle_thread() 4b7dac0a23b7 power: supply: bq24190_charger: Call power_supply_changed() for relevant component 63e1acc84d28 power: supply: bq24190_charger: Install irq_handler_thread() at end of probe() 20e448f2251c power: supply: bq24190_charger: Call set_mode_host() on pm_resume() d8d6aedd54ce power: supply: bq24190_charger: Fix irq trigger to IRQF_TRIGGER_FALLING 89e8bd3add69 perf/x86/intel/pt: Add format strings for PTWRITE and power event tracing 1641bb14e8be powerpc: Correctly disable latent entropy GCC plugin on prom_init.o b47a6b40655b powerpc/ftrace: Fix confusing help text for DISABLE_MPROFILE_KERNEL 50e027728915 powerpc/powernv: Fix opal_exit tracepoint opcode 754a2bcfd8b1 powerpc/mm: Fixup wrong LPCR_VRMASD value a19718bd0b19 cpupower: Fix turbo frequency reporting for pre-Sandy Bridge cores 4f39fcce99d7 power: supply: lp8788: prevent out of bounds array access ccef31d22e80 crypto: caam - fix error path for ctx_dma mapping failure 819e3601d3c5 tmp: use pdev for parent device in tpm_chip_alloc 326f9b0a39d3 tpm: fix RC value check in tpm2_seal_trusted a941f261c8f1 hwmon: (it87) Fix pwm4 detection for IT8620 and IT8628 898c6bbfc88d drm/sti: fix GDP size to support up to UHD resolution f5ca890f138d 9p: fix a potential acl leak
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Bruce Ashfield [Thu, 8 Jun 2017 19:21:52 +0000 (15:21 -0400)]
kern-tools: avoid syntax errors when inheriting meta data
It is possible to inherit meta data for either patches + config
or for just config.
It is possible that the patch queue contains invalid (when
sourced) shell characters in the patch names, which throws a
syntax error and aborts processing.
The patch + config case was fixed some time ago, but we recently
stumbled onto the config-only case which was still not properly
quoted and hence safe.
This commit brings the config-only inherit in line with the
patch + config processing and we won't abort processing if
characters like () are in patch names.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Aníbal Limón [Thu, 8 Jun 2017 16:32:05 +0000 (11:32 -0500)]
oeqa/core/loader: Allow unittest.TestCase's to be executed
Currently there was a restriction to only execute tests that's
inherits from OETestCase but in some circunstancies the features
from the OEQA framework isn't needed so we need to support
basic unittests.
[YOCTO #10828]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Aníbal Limón [Thu, 8 Jun 2017 16:32:07 +0000 (11:32 -0500)]
oeqa/core/loader: Fix filtering on test modules with submodules
Our filtering allows to specify which tests to run using,
<module_name>.[test_class].[test_name]
But the module name logic was restricted to only accept one level,
for example: runtime_test vs oelib.types, to support multiple
submodules use only the first part for filtering.
This allows to run the whole tests in a module with more than tree
levels.
Due to the ambiguity on the test filtering options with test cases
with more than tree levels the supported sytnax is,
<module>
or
<module>.[submoduleN].[test_class].[test_name]
[YOCTO #11632]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Jonathan Liu [Thu, 8 Jun 2017 11:07:54 +0000 (21:07 +1000)]
image-vm: Avoid use of fold, tac and paste commands for DISK_SIGNATURE
These commands are not whitelisted by the HOSTTOOLS variable which
silently prevents the MBR disk signature from being written to the
image.
Reported-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Peter Marko [Wed, 7 Jun 2017 06:04:29 +0000 (08:04 +0200)]
cve-check: do not parse error output
Sometimes there are control messages in cve-check-tool printed to
stderr. These lead to parsing error and thus failed build.
This can happen for instance when cve database needs to be
refreshed during build.
Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Peter Marko [Wed, 7 Jun 2017 06:04:30 +0000 (08:04 +0200)]
cve-check: clean cve-check recipe result before re-building
If there is cve report for a recipe in previous build and there
is no result for current one, old cves are kept in CVE_CHECK_DIR.
This happens on version upgrade or when cve/recipe is whitelisted.
Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Jan Kiszka [Sun, 30 Apr 2017 15:28:01 +0000 (17:28 +0200)]
tcf-agent: Fix daemon termination
The upstream init script uses SIGUSR2 to terminate that daemon because
SIGTERM is ignored. As the killproc function does not support specifying
a signal, switch to start-stop-daemon. Drop the retry loop because
SIGUSR2 is lethal for agent.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Richard Purdie [Wed, 7 Jun 2017 09:20:51 +0000 (10:20 +0100)]
meta*: Add LAYERSERIES_COMPAT and LAYERSERIES_CORENAMES markup to layer.conf
This means mismatched layers are more clearly identified to the user in
cases where compatibility has not been tested. This is perhaps not as
needed for the core repository (other than CORENAMES) but lets lead by
example.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Fan Xin [Wed, 7 Jun 2017 05:55:26 +0000 (14:55 +0900)]
hdparm: Upgrade to 9.52
1. Upgrade hdparm from 9.51 to 9.52
2. Update the checksum of LIC_FILES_CHKSUM
The following content is appended to LICENSE.TXT, the licence is still BSD & GPLv2.
The apt.c file is Copyright (c) 2009 Jan Friesse <jfriesse@gmail.com>.
You may use/distribute apt.c freely, under the terms of either
(your choice) the GNU General Public License version 2,
or a BSD style license.
Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Khem Raj [Tue, 6 Jun 2017 17:13:46 +0000 (10:13 -0700)]
mesa: Add define to indicate missing 64bit atomics on armv5
This is wrongly detected by configure since it only checks for
__sync_add_and_fetch and not __atomic_fetch_add, it decides
to let compiler emit references to atomic functions which
it expects to be provided by libgcc, but thats not the
case for armv5 arch
[YOCTO #11616]
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Khem Raj [Fri, 2 Jun 2017 04:34:03 +0000 (21:34 -0700)]
distutils-base.bbclass: Do not use -pie with hardening
Fix build when PIE is turned on. It tries to build
.so file using -pie and -shared flags together because
its doing compile and link in same step CFLAGS and LDFLAGS
are combined and does not work, ending in errors e.g.
| /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/python-pygpgme/0.3-r0/recipe-sysroot/usr/l
ib/Scrt1.o: In function `_start_c':
| /usr/src/debug/musl/1.1.16+gitAUTOINC+179766aa2e-r0/git/crt/crt1.c:17: undefined reference to `main'
| collect2: error: ld returned 1 exit status
This error while cryptic is due to the fact that we are
building a shared library but also pass -pie flag to the link
step after specify LDHSARED ( which is -shared linker flags )
we can not use -pie when doing shared libs. This is true for all the python
modules inheriting setup tools
Disable the pie flags thusly for all modules using setuptools since
this setting is done in setuptools makefiles which are then used
during module compiles
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Ming Liu [Tue, 6 Jun 2017 03:21:18 +0000 (05:21 +0200)]
busybox: fix a linking issue
A following linking error was observed:
| ==========
| archival/lib.a(tar.o): In function `tar_main':
| archival/tar.c:1168: undefined reference to `unpack_Z_stream'
| archival/tar.c:1168: undefined reference to `unpack_Z_stream'
| ld: busybox_unstripped: hidden symbol `unpack_Z_stream' isn't defined
| ld: final link failed: Bad value
this happened with clang compiler, with the following configs:
| CONFIG_TAR=y
| # CONFIG_FEATURE_SEAMLESS_Z is not set
which can be fixed by adding IF_FEATURE_* checks in.
Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Ming Liu [Tue, 6 Jun 2017 03:19:43 +0000 (05:19 +0200)]
buildstats-diff: show more graceful error messages
I got a following error when I run buildstats-diff against a invalid
buildstats file:
| Traceback (most recent call last):
| File "/poky/scripts/buildstats-diff", line 548, in <module>
| sys.exit(main())
| File "/poky/scripts/buildstats-diff", line 534, in main
| bs1 = read_buildstats(args.buildstats1, args.multi)
| File "/poky/scripts/buildstats-diff", line 222, in read_buildstats
| return read_buildstats_dir(path)
| File "/poky/scripts/buildstats-diff", line 165, in read_buildstats_dir
| os.path.join(recipe_dir, task))]
| File "/poky/scripts/buildstats-diff", line 124, in read_buildstats_file
| bs_task['elapsed_time'] = end_time - start_time
| UnboundLocalError: local variable 'end_time' referenced before assignment
the root cause is that a task was terminated by me on the terminal,
so the generated buildstats file was invalid, supposing that it would
make the buildstats.sh fail, but the script should give more graceful
error messages.
Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
selftest/devtool: Modify test to use default config
Modify “test_devtool_virtual_kernel_modify” to be executed with default
configuration defined on oe-selftest test suite. A shorter string was
added to the the header file to avoid overlapped sections when building
kernel for qemux86-64.
[Yocto #11300]
Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Humberto Ibarra [Mon, 5 Jun 2017 17:19:34 +0000 (12:19 -0500)]
runtime-test.py: Split different tests inside selftest.py
There were two completely different tests inside selftest.py,
and the only reason for them to be together was that both needed
the same mechanism to execute (run testimage from within selftest)
This fixes the design issue and error-prone situation by separating
these tests. In add a new module for dnf-runtime and also has an
extra time added to running the tests, but it is minimal since
the builds reuse data from previuous build.
[YOCTO #11436]
Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Ed Bartosh [Wed, 7 Jun 2017 13:24:16 +0000 (16:24 +0300)]
u-boot: enable dhcp for MPC8315 board
Getting ip address from DHCP server is much more convenient
than setting static ip. It allows to configure u-boot in
more generic way and to avoid hardcoding static ip in
u-boot configuration.
Enabled dhcp client functionality for Yocto reference
hardware MPC8315E-RDB.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Marek Vasut [Wed, 24 May 2017 20:44:41 +0000 (22:44 +0200)]
u-boot: Update to 2017.05 release
Upgrade U-Boot to the latest version.
Since the latest version has the default gcc patch in it, drop it.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Denys Dmytriyenko <denis@denix.org> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Ross Burton <ross.burton@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
buildhistory: skip tests if GitPython module is missing
Catching a possible exception when importing the git module,
allows us to skip test if the latter is missing on the host.
Also, import oe.buildhistory_analysis inside fuctions
because this module also needs git to work correctly.
[YOCTO #11620]
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Joe Slater [Mon, 5 Jun 2017 17:53:08 +0000 (10:53 -0700)]
tcf-agent: correct CFLAGS
Modify CFLAGS for several cases which will not compile otherwise.
Do not use the form CFLAGS_x_append because it will replace, not
append to CFLAGS for override x.
Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Daniel Díaz [Thu, 1 Jun 2017 18:47:47 +0000 (13:47 -0500)]
piglit: fix building issues regarding gbm_bo_map and a MESA test
These patches fix a few building problems but are not being
taken into consideration at the moment, even though they have
been reviewed upstream with most of them merged (and accepted
already in OE-core master):
1.- CMake: define GBM_BO_MAP only when symbol is found
2.- util/egl: Honour Surfaceless MESA in get_default_display
3.- egl_mesa_platform_surfaceless: Don't use eglGetPlatformDisplay directly
4.- egl_mesa_platform_surfaceless: Use EXT functions for surfaces
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
Khem Raj [Fri, 2 Jun 2017 04:41:53 +0000 (21:41 -0700)]
setuptoools.bbclass: Do not use -pie with hardening
Fix build when PIE is turned on. It tries to build
.so file using -pie and -shared flags together because
its doing compile and link in same step CFLAGS and LDFLAGS
are combined and does not work, ending in errors e.g.
| /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/python-pygpgme/0.3-r0/recipe-sysroot/usr/l
ib/Scrt1.o: In function `_start_c':
| /usr/src/debug/musl/1.1.16+gitAUTOINC+179766aa2e-r0/git/crt/crt1.c:17: undefined reference to `main'
| collect2: error: ld returned 1 exit status
This error while cryptic is due to the fact that we are
building a shared library but also pass -pie flag to the link
step after specify LDHSARED ( which is -shared linker flags )
we can not use -pie when doing shared libs. This is true for all the python
modules inheriting setup tools
Disable the pie flags thusly for all modules using setuptools since
this setting is done in setuptools makefiles which are then used
during module compiles
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Ross Burton [Tue, 6 Jun 2017 14:23:18 +0000 (15:23 +0100)]
archiver: preserve sysroot paths in configured mode
do_ar_configured alters WORKDIR but also expects to be able to run do_configure,
so forcibly expand the paths to the sysroots as otherwise they'll point to a
non-existant directory in the temporary WORKDIR.
[ YOCTO #11584 ]
Signed-off-by: Ross Burton <ross.burton@intel.com>
Dengke Du [Mon, 28 Nov 2016 12:37:35 +0000 (12:37 +0000)]
archiver.bbclass: fix do_ar_original error for matchbox-desktop
Error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: matchbox-desktop-2.1-r0 do_ar_original: Can not determine archive names
for original source because 'name' URL parameter is unset in more than one URL.
Add it to at least one of these: git://git.yoctoproject.org/matchbox-desktop-2
file://vfolders/%2A
ERROR: matchbox-desktop-2.1-r0 do_ar_original: Function failed: do_ar_original
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function do_ar_original, when recipes have more than one source, it added the
"name" URL parameter as suffix to identify the created tarball.
But the URL type "file://" that we always used to represent a series of patches,
it didn't have "name" parameter, so it failed.
So set "name" to the folder name to identify the created tarball, for example:
In matchbox-desktop bb file, the SRC_URI contains:
file://vfloders/*
We set "name" to "vfolders" to identify the created tarball.
In connman-gnome bb file, the SRC_URI contains:
file://images/*
We set "name" to "images" to identify the created tarball.
Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Mikko Ylinen [Mon, 5 Jun 2017 14:42:51 +0000 (17:42 +0300)]
archiver.bbclass: adapt do_unpack_and_patch to RSS
do_unpack_and_patch was not correctly run until recently
("archiver.bbclass: various fixes for original+diff mode") but
with the fix applied, the errors we get indicate the function
is not adapted to work with recipe specific sysroots.
do_unpack_and_patch sets WORKDIR to ARCHIVER_WORKDIR which
affects all path settings relative to WORKDIR, inluding the paths
to recipes' sysroots. IOW, when do_unpack and do_patch are run, they
cannot find the necessary native tools and files located in the
sysroot (e.g., quiltrc) because the paths point to ARCHIVER_WORKDIR.
Adapt do_unpack_and_patch to RSS by restoring the original
STAGING_DIR_NATIVE after WORKDIR is changed to ARCHIVER_WORKDIR.
Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Anibal Limon [Mon, 5 Jun 2017 08:39:08 +0000 (04:39 -0400)]
oeqa/core/loader: Call parent init method in OETestLoader
After Python 3.5 the init method contains initialization of
_loading_packages set to avoid infinite loops in recursive
loading.
Fix,
Traceback (most recent call last):
File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/oe-selftest", line 70, in <module>
ret = main()
File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/oe-selftest", line 57, in main
results = args.func(logger, args)
File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/context.py", line 214, in run
rc = self._internal_run(logger, args)
File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/context.py", line 175, in _internal_run
self.tc.loadTests(self.module_paths, **self.tc_kwargs['load'])
File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/context.py", line 51, in loadTests
self.suites = self.loader.discover()
File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/loader.py", line 268, in discover
pattern='*.py', top_level_dir=path)
File "/usr/lib/python3.5/unittest/loader.py", line 341, in discover
tests = list(self._find_tests(start_dir, pattern))
File "/usr/lib/python3.5/unittest/loader.py", line 398, in _find_tests
full_path, pattern, namespace)
File "/usr/lib/python3.5/unittest/loader.py", line 473, in _find_test_path
self._loading_packages.add(name)
AttributeError: 'OETestLoader' object has no attribute '_loading_packages'
Signed-off-by: Anibal Limon <anibal.limon@linux.intel.com>
Khem Raj [Fri, 2 Jun 2017 16:01:50 +0000 (09:01 -0700)]
distutils-base.bbclass: Do not use -pie with hardening
Fix build when PIE is turned on. It tries to build
.so file using -pie and -shared flags together because
its doing compile and link in same step CFLAGS and LDFLAGS
are combined and does not work, ending in errors e.g.
| /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/python-pygpgme/0.3-r0/recipe-sysroot/usr/l
ib/Scrt1.o: In function `_start_c':
| /usr/src/debug/musl/1.1.16+gitAUTOINC+179766aa2e-r0/git/crt/crt1.c:17: undefined reference to `main'
| collect2: error: ld returned 1 exit status
This error while cryptic is due to the fact that we are
building a shared library but also pass -pie flag to the link
step after specify LDHSARED ( which is -shared linker flags )
we can not use -pie when doing shared libs. This is true for all the python
modules inheriting setup tools
Disable the pie flags thusly for all modules using setuptools since
this setting is done in setuptools makefiles which are then used
during module compiles
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
David Vincent [Fri, 2 Jun 2017 15:16:03 +0000 (17:16 +0200)]
initscripts: Populate volatile from existing file
In some cases, it may be useful to populate a volatile file from an
existing one, e.g. a file in a read-only rootfs that may be edited in a
read-write destination.
To provide this behavior, creation of volatile files has been updated to
copy a file which has been given in the <linksource> field. If set to
none, the current behavior is preserved.
Signed-off-by: David Vincent <freesilicon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Martin Jansa [Tue, 30 May 2017 08:08:01 +0000 (10:08 +0200)]
sstate-diff-machines.sh: Replace MACHINE_ARCH only at the beginning and separated with dash
* I had some components where the MACHINE name was also included in PV of allarch recipe
which was tripping the script into saying that they have different signatures (because
for one MACHINE was the string in PV replaced with 'MACHINE' and not for other MACHINEs
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Martin Jansa [Tue, 30 May 2017 08:08:36 +0000 (10:08 +0200)]
recipes: Replace "cp -a" with "cp -R --no-dereference --preserve=mode, links"
* Using "cp -a" leaks UID of user running the builds, causing
many QA warnings.
* See this thread for details:
http://lists.openembedded.org/pipermail/openembedded-core/2015-November/112904.html
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-selftest: Migrate to new framework into oeqa.selftest.context
The new OEQA framework aims to re-use code into the different Test
components.
The previous oe-selftest implements it-self loading, run, and list test
cases in a non-standard way (unittest base) and other functionalities
like logging that is now on oeqa core. This ends on a compact oe-selftest
script.
All needed command line options was migrated but there are some of them
pending of implementation and others deprecated.
Deprecated options:
list-tags: The tag functionality into the old oeqa framework isn't
work, the selftest doesn't has tag decorators.
{run, list}-tests-by: Ambiguos options it accepts all the posibilites module,
class, name, id or tag.
Remaining to implement:
coverage: It enables covrage reports over a test run, currently isn't on
on use and some bugs [1], i filed a bug to add support to OEQA core module in
this way other Test components could enable it.
repository: It push XML results into a git repository and isn't in use,
i filed a bug to implement this into OEQA core module. [2]
scripts/oe-selftest: Move {add,remove}_include files to case
The oe-selftest creates include files to store custom configuration to
make specific tests, every class executes a different test and may be
uses custom configuration.
So move to case class in order to simplify oe-selftest script and later
implement later a build folder per class.
oeqa/selftest/case: Migrate case class to the new OEQA framework
Summary of the changes:
- Use OETestCase as base class instead of unittest.TestCase
- Remove LogResults decorator the new framework provides logging into
the core functionality.
- Logger is now self.logger instead of self.log
- Move comments into docstrings in several help methods
- Use get_test_layer() method instead of access monkey patched variable
in old oeSelfTest case class.
Aníbal Limón [Tue, 23 May 2017 20:04:57 +0000 (15:04 -0500)]
scripts/oe-test: Move load_test_components to oeqa.utils
In order to maintain compatibility with oe-selftest, the
load_test_components needs to be re-used, so the script
executor needs to pass to only load components supported
by certain script (oe-test, oe-selftest).
Ross Burton [Mon, 5 Jun 2017 16:30:42 +0000 (17:30 +0100)]
oeqa/selftest: lock down Meson git revision for reliability
The test_recipetool_create_github test fetches HEAD of the repository so
upstream changes can (and do) break the test. Avoid these problems by passing
the rev= argument in the URL to lock the checkout to the same version that is
fetched in the github_tarball test.
Also pass the commands to runCmd() as a list instead of a string, the semicolon
in the URL needs more quotes if the shell is involved and passing a list
bypasses the shell entirely.
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
kernel.bbclass: fix KERNEL_IMAGETYPE(S) for Image.gz
KERNEL_IMAGETYPES lists all the kernel images that we want to build. in cb17b6c2a7 (kernel.bbclass: support kernel image type of vmlinux.gz), some logic
was added to support vmlinux.gz which is not a target built by kernel
makefiles (only vmlinux). It is clear that the goal of this logic is only to
support vmlinux.gz and not others compressed format (such as Image.gz) which are
valid target for kernel makefiles.
For Image.gz we should rely on the kernel makefiles and not do the compression
in kernel class.
This patch updates the logic used to filter out non supported kernel target from
KERNEL_IMAGETYPES, and make vmlinux.gz a 'special case', instead of *.gz. If
more special cases are needed in the future, we could add them in a similar way.
This patch should be a no-op for anyone using vmlinux or vmlinux.gz, and on top
of that it is fixing the build for Image.gz which was not working until now.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>