]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agolinux-yocto/4.18: integrate CVE fixes
Bruce Ashfield [Mon, 17 Dec 2018 03:38:21 +0000 (22:38 -0500)]
linux-yocto/4.18: integrate CVE fixes

Integrating the following CVE fixes into the 4.18 tree:

  e78a46f375fe cdrom: fix improper type cast, which can leat to information leak.
  4815231b9b65 btrfs: tree-checker: Verify block_group_item
  6dfe2fe5dd52 btrfs: Introduce mount time chunk <-> dev extent mapping check
  ccd06dcdc11b btrfs: Verify that every chunk has corresponding block group at mount time
  7cf70b1e759a btrfs: Check that each block group has corresponding chunk at mount time
  166bbd6ff86b btrfs: validate type when reading a chunk
  ecf31c809599 ip: frags: fix crash in ip_do_fragment()
  02fc22c5eb30 ip: use rb trees for IP frag queue.
  72dd075ee367 net: modify skb_rbtree_purge to return the truesize of all purged skbs.
  7a9f904c49aa ip: discard IPv4 datagrams with overlapping segments.
  abea198657b7 f2fs: fix to do sanity check with i_extra_isize
  408c425c41e4 f2fs: fix to do sanity check with node footer and iblocks
  5e4ccef734c3 f2fs: fix to do sanity check with user_block_count

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.14: update to v4.14.79
Bruce Ashfield [Mon, 17 Dec 2018 03:38:20 +0000 (22:38 -0500)]
linux-yocto/4.14: update to v4.14.79

Integrating the -stable releases the comprise the following changes:

   50961e4888a1 Linux 4.14.79
   fe54a7c4f0d1 net/mlx5: Fix build break when CONFIG_SMP=n
   b0ee9bd40d74 net/sched: cls_api: add missing validation of netlink attributes
   c8c2df18eedf net: bcmgenet: Poll internal PHY for GENETv5
   71944eb54288 net: ipmr: fix unresolved entry dumps
   4ca72d6336df rtnetlink: Disallow FDB configuration for non-Ethernet device
   ac65fd7094ac net/mlx5e: fix csum adjustments caused by RXFCS
   855cb69f4e6d net: fix pskb_trim_rcsum_slow() with odd trim offset
   623670a9f207 net: drop skb on failure in ip_check_defrag()
   fd090ba395fb net: sched: Fix for duplicate class dump
   bc4787003687 net/mlx5: Take only bit 24-26 of wqe.pftype_wq for page fault type
   1d50b74a33d0 openvswitch: Fix push/pop ethernet validation
   f288424ea85e ip6_tunnel: Fix encapsulation layout
   8a865095d399 bonding: fix length of actor system
   95c337646585 ethtool: fix a privilege escalation bug
   574af67123c3 virtio_net: avoid using netif_tx_disable() for serializing tx routine
   b522f279f91b vhost: Fix Spectre V1 vulnerability
   189771d69e14 udp6: fix encap return code for resubmitting
   606694e5ec81 sctp: fix race on sctp_id2asoc
   aa8d067c8547 r8169: fix NAPI handling under high load
   0ecebdfb2e3a net: udp: fix handling of CHECKSUM_COMPLETE packets
   441d0e754082 net: stmmac: Fix stmmac_mdio_reset() when building stmmac as modules
   7d58456872c4 net: socket: fix a missing-check bug
   29d871195e9e net: sched: gred: pass the right attribute to gred_change_table_def()
   e581e28f9dcb net/ipv6: Fix index counter for unicast addresses in in6_dump_addrs
   ff96a3977440 net: fec: don't dump RX FIFO register when not available
   6bb1381cc865 llc: set SOCK_RCU_FREE in llc_sap_add_socket()
   1e42e97af983 ipv6/ndisc: Preserve IPv6 control buffer if protocol error handlers are called
   5d4c5861211f ipv6: mcast: fix a use-after-free in inet6_mc_check
   c3cf86dac56d net: bridge: remove ipv6 zero address check in mcast queries
   1bd68d5612af bridge: do not add port to router list when receives query with source 0.0.0.0
   b6534b3e08e8 drm/i915/gvt: fix memory leak of a cmd_entry struct on error exit path
   2980235974cd perf tools: Disable parallelism for 'make clean'
   ac7c2bb59870 Revert "netfilter: ipv6: nf_defrag: drop skb dst before queueing"
   ee66ad5896ae ALSA: usx2y: Fix invalid stream URBs
   e75194d29442 media: uvcvideo: Fix driver reference counting
   cdb44bdafc3a ARM: dts: r8a7790: Correct critical CPU temperature
   871424f0c3cf kvm: x86: fix WARN due to uninitialized guest FPU state
   3642e3544749 mtd: spi-nor: Add support for is25wp series chips
   bd6df7a19559 sch_netem: restore skb->dev after dequeuing from the rbtree
   3d69b85e14be fs/fat/fatent.c: add cond_resched() to fat_count_free_clusters()
   5309191ec049 selftests: rtnetlink.sh explicitly requires bash.
   1e4f8315a5c8 net: ena: fix NULL dereference due to untimely napi initialization
   ba4cf1eefd54 net: ena: fix warning in rmmod caused by double iounmap
   252869e5fb49 rxrpc: Fix connection-level abort handling
   f1d27ff6e027 rxrpc: Only take the rwind and mtu values from latest ACK
   9a6d45700adf rxrpc: Don't check RXRPC_CALL_TX_LAST after calling rxrpc_rotate_tx_window()
   4fdaadbce403 perf python: Use -Wno-redundant-decls to build with PYTHON=python3
   c005e014fbc6 ARM: dts: imx53-qsb: disable 1.2GHz OPP
   3c3bec81e267 compiler.h: Allow arch-specific asm/compiler.h
   b8f4d375cd1e perf tests: Fix indexing when invoking subtests
   543f1084b67f libertas: call into generic suspend code before turning off power
   48f1b3b56ee4 kconfig: fix the rule of mainmenu_stmt symbol
   cbc38304947e net: stmmac: mark PM functions as __maybe_unused
   726f05951941 x86/paravirt: Fix some warning messages
   aa3aff5b469b net: phy: phylink: Don't release NULL GPIO
   f72388e3670e btrfs: quota: Set rescan progress to (u64)-1 if we hit last leaf
   3c92c7e96fc4 scsi: sd: Remember that READ CAPACITY(16) succeeded
   5aa0d86363b2 scsi: ibmvfc: Avoid unnecessary port relogin
   07e2121f4f2b selftests/powerpc: Add ptrace hw breakpoint test
   672fdbd5966e iio: buffer: fix the function signature to match implementation
   1bee5f3d9530 enic: do not overwrite error code
   b9627a218e2b lan78xx: Don't reset the interface on open
   f18ed65d70f0 MIPS: Workaround GCC __builtin_unreachable reordering bug
   f274c57f0479 mmc: dw_mmc-rockchip: correct property names in debug
   e6df57b60b86 IB/usnic: Update with bug fixes from core code
   d29f27192a2d xen-netfront: Fix mismatched rtnl_unlock
   a0fcefb70022 xen-netfront: Update features after registering netdev
   9de255666ce3 tpm: tpm_crb: relinquish locality on error path.
   3c0cff34e91e bpf: sockmap, map_release does not hold refcnt for pinned maps
   db9d15988afb tpm: move the delay_msec increment after sleep in tpm_transmit()
   c1fdafea627c sparc64: Fix regression in pmdp_invalidate().
   090246ff5f6c KVM: x86: Update the exit_qualification access bits while walking an address
   7d768c84ec31 test_bpf: Fix testing with CONFIG_BPF_JIT_ALWAYS_ON=y on other arches
   8f041940aaf2 cifs: Use ULL suffix for 64-bit constant
   5c097f55e980 l2tp: remove configurable payload offset
   b39ac5421519 ARM: tegra: Fix ULPI regression on Tegra20
   579493b9f689 IB/mlx5: Avoid passing an invalid QP type to firmware
   6cfb67394a42 kbuild: set no-integrated-as before incl. arch Makefile
   a972222a6a30 scsi: qla2xxx: Avoid double completion of abort command
   651f11a83af3 net/mlx5e: Refine ets validation function
   8b882dbba717 net: phy: Add general dummy stubs for MMD register access
   8d9d7f018464 net: phy: realtek: Use the dummy stubs for MMD register access for rtl8211b
   4fbd26a1484c dm integrity: fail early if required HMAC key is not available
   aa2a0c23c9b7 powerpc/pseries: Add empty update_numa_cpu_lookup_table() for NUMA=n
   71a9d1240a30 net/mlx5: Fix mlx5_get_vector_affinity function
   049fee28bba3 s390/qeth: fix error handling in adapter command callbacks
   18addd960fe8 IB/rxe: put the pool on allocation failure
   8c954368de69 IB/ipoib: Fix lockdep issue found on ipoib_ib_dev_heavy_flush
   c750773f3942 scsi: aacraid: address UBSAN warning regression
   3b6c6d9cbdea usbip: vhci_hcd: update 'status' file header and format
   e37e383a4e66 tools/testing/nvdimm: unit test clear-error commands
   18a83c013392 iwlwifi: fix the ALIVE notification layout
   4187fbd60c39 iwlwifi: dbg: allow wrt collection before ALIVE
   d1efab095c20 iwlwifi: mvm: check for short GI only for OFDM
   f83f38fcf17f ocfs2: fix crash in ocfs2_duplicate_clusters_by_page()
   d0539c56391d yam: fix a missing-check bug
   ec4e9618d1fd net: cxgb3_main: fix a missing-check bug
   049b662eeadd be2net: don't flip hw_features when VXLANs are added/deleted
   45894023bee9 locking/ww_mutex: Fix runtime warning in the WW mutex selftest
   a0ab962b674d net: qualcomm: rmnet: Skip processing loopback packets
   3095f0c98c6a declance: Fix continuation with the adapter identification message
   1837dbb25cc5 net: fec: fix rare tx timeout
   784f8395895f perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events
   40568f21f235 perf/x86/intel/uncore: Fix PCI BDF address of M3UPI on SKX
   a18e2159c3ff perf/ring_buffer: Prevent concurent ring buffer access
   ffc3cb561ece perf/core: Fix perf_pmu_unregister() locking
   492a81318e8c cfg80211: fix use-after-free in reg_process_hint()
   35ffbd523797 smsc95xx: Check for Wake-on-LAN modes
   9e3a0366365b smsc75xx: Check for Wake-on-LAN modes
   9eaabc0a7779 r8152: Check for supported Wake-on-LAN Modes
   4301fb3391ed sr9800: Check for supported Wake-on-LAN modes
   9f0962c0f6f7 lan78xx: Check for supported Wake-on-LAN modes
   a0fc06335530 ax88179_178a: Check for supported Wake-on-LAN modes
   eef5935c2d7a asix: Check for supported Wake-on-LAN modes
   915670c48eb3 nl80211: Fix possible Spectre-v1 for CQM RSSI thresholds
   b93393d63d8f qed: Avoid implicit enum conversion in qed_iwarp_parse_rx_pkt
   ee86b4d659c2 qed: Avoid constant logical operation warning in qed_vf_pf_acquire
   935d441968b1 qed: Avoid implicit enum conversion in qed_roce_mode_to_flavor
   ab7998abfea2 qed: Fix mask parameter in qed_vf_prep_tunn_req_tlv
   76f86190774e qed: Avoid implicit enum conversion in qed_set_tunn_cls_info
   865741554925 pxa168fb: prepare the clock
   0f8a689c6a2f Bluetooth: SMP: fix crash in unpairing
   db2a11e706bf mac80211_hwsim: do not omit multicast announce of first added radio
   c7b66583c9ed nl80211: Fix possible Spectre-v1 for NL80211_TXRATE_HT
   fa1578ec411d soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift()
   795b13034224 soc: fsl: qbman: qman: avoid allocating from non existing gen_pool
   d9e742766c76 net: macb: Clean 64b dma addresses if they are not detected
   a5bdfc6892b5 ARM: dts: BCM63xx: Fix incorrect interrupt specifiers
   1241679ce248 arm64: hugetlb: Fix handling of young ptes
   1157713407a6 netfilter: bridge: Don't sabotage nf_hook calls from an l3mdev
   26c6b9da7a00 xfrm: validate template mode
   5d7bf7b4d022 ARM: 8799/1: mm: fix pci_ioremap_io() offset check
   73c6f8606070 xfrm: Fix NULL pointer dereference when skb_dst_force clears the dst_entry.
   35507aabf0e5 mac80211: fix TX status reporting for ieee80211s
   ebec37ed21a2 mac80211: TDLS: fix skb queue/priority assignment
   9da59d2e283d cfg80211: Address some corner cases in scan result channel updating
   574be53ab82c mac80211: fix pending queue hang due to TX_DROP
   d46c334f07f5 cfg80211: reg: Init wiphy_idx in regulatory_hint_core()
   b0be0d83fc68 mac80211: Always report TX status
   64f38286c7be xfrm: reset crypto_done when iterating over multiple input xfrms
   a95d9004fbde xfrm: reset transport header back to network header after all input transforms ahave been applied
   2a55e64d5c5e xfrm6: call kfree_skb when skb is toobig
   3b5d512831af xfrm: Validate address prefix lengths in the xfrm selector.
   e7405910ca55 Linux 4.14.78
   6edd85a7870a IB/hfi1: Fix destroy_qp hang after a link down
   4d5af836674f i2c: rcar: handle RXDMA HW behaviour on Gen3
   faf578e3593e drm/i915/glk: Add Quirk for GLK NUC HDMI port issues.
   2a797fd8f8ae mm: disallow mappings that conflict for devm_memremap_pages()
   8e6173c12467 staging: ccree: check DMA pool buf !NULL before free
   61377bc80861 drm/i915: Nuke the LVDS lid notifier
   e896a2adba93 HID: quirks: fix support for Apple Magic Keyboards
   7b9f716d5550 ARC: build: Don't set CROSS_COMPILE in arch's Makefile
   b6d06b180ff8 ARC: build: Get rid of toolchain check
   541500abfe9e mremap: properly flush TLB before releasing the page
   f473bf921696 Revert "vfs: fix freeze protection in mnt_want_write_file() for overlayfs"
   e261faa2eccb powerpc/lib/feature-fixups: use raw_patch_instruction()
   f78ae314c6e3 iommu/amd: Return devid as alias for ACPI HID devices
   62c15d061f5f powerpc/tm: Avoid possible userspace r1 corruption on reclaim
   256707d3b89b powerpc/tm: Fix userspace r13 corruption
   4f5dbf26a1bd clocksource/drivers/fttmr010: Fix set_next_event handler
   f75ad0441a0a net/mlx4: Use cpumask_available for eq->affinity_mask
   4c0e2e4a4b54 scsi: sd: don't crash the host on invalid commands
   b6b5bc245dc2 scsi: ipr: System hung while dlpar adding primary ipr adapter back
   26377fe2f7b0 drm: mali-dp: Call drm_crtc_vblank_reset on device init
   940d35f3a572 PCI: dwc: Fix scheduling while atomic issues
   48047b847808 ravb: do not write 1 to reserved bits
   997cdc46f436 net: emac: fix fixed-link setup for the RTL8363SB switch
   1c22d2cbd9f2 Input: atakbd - fix Atari CapsLock behaviour
   8b8ab47a093d Input: atakbd - fix Atari keymap
   2b8b339c53d2 intel_th: pci: Add Ice Lake PCH support
   3353c04dd4d7 scsi: ibmvscsis: Ensure partition name is properly NUL terminated
   40e49c155313 scsi: ibmvscsis: Fix a stringop-overflow warning
   89450e431a63 clocksource/drivers/ti-32k: Add CLOCK_SOURCE_SUSPEND_NONSTOP flag for non-am43 SoCs
   498c536f5931 batman-adv: fix hardif_neigh refcount on queue_work() failure
   3e9f714fb58b batman-adv: fix backbone_gw refcount on queue_work() failure
   2b1c4897f256 batman-adv: Prevent duplicated tvlv handler
   b46fd722b7bc batman-adv: Prevent duplicated global TT entry
   2a544b2da44b batman-adv: Prevent duplicated softif_vlan entry
   18733cfe4126 batman-adv: Prevent duplicated nc_node entry
   3b38bed3304d batman-adv: Prevent duplicated gateway_node entry
   c553f7e514b9 batman-adv: Fix segfault when writing to sysfs elp_interval
   acdaf28d8cf5 batman-adv: Fix segfault when writing to throughput_override
   fa04cc5e7b81 batman-adv: Avoid probe ELP information leak
   88be243901ff media: af9035: prevent buffer overflow on write
   8263087bf627 Linux 4.14.77
   d0c9f9f9fb44 perf tools: Fix snprint warnings for gcc 8
   57bff812c4e2 ARM: spectre-v1: mitigate user accesses
   4a1948d692f1 ARM: spectre-v1: use get_user() for __get_user()
   f64824a3d475 ARM: use __inttype() in get_user()
   70b96be10d15 ARM: oabi-compat: copy semops using __copy_from_user()
   38752f417487 ARM: vfp: use __copy_from_user() when restoring VFP state
   faac72dc9150 ARM: signal: copy registers using __copy_from_user()
   b690ec0dc735 ARM: spectre-v1: fix syscall entry
   4186f7cfa1d6 ARM: spectre-v1: add array_index_mask_nospec() implementation
   f6909113ad1f ARM: spectre-v1: add speculation barrier (csdb) macros
   e7fc401a8800 ARM: KVM: report support for SMCCC_ARCH_WORKAROUND_1
   8502541ee216 ARM: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling
   ee4e537d3aa1 ARM: spectre-v2: KVM: invalidate icache on guest exit for Brahma B15
   1df9a0a8201b ARM: KVM: invalidate icache on guest exit for Cortex-A15
   75e48eff8aae ARM: KVM: invalidate BTB on guest exit for Cortex-A12/A17
   6d75fe7ed2f6 ARM: spectre-v2: warn about incorrect context switching functions
   510155b2d95b ARM: spectre-v2: add firmware based hardening
   5ab8c6e8879c ARM: spectre-v2: harden user aborts in kernel space
   81b215a5b80b ARM: spectre-v2: add Cortex A8 and A15 validation of the IBE bit
   3e52aff79d5e ARM: spectre-v2: harden branch predictor on context switches
   c0f64070a310 ARM: spectre: add Kconfig symbol for CPUs vulnerable to Spectre
   0d5360ee15e9 ARM: bugs: add support for per-processor bug checking
   c7825c277bad ARM: bugs: hook processor bug checking into SMP and suspend paths
   9a42b70744b1 ARM: bugs: prepare processor bug infrastructure
   1789de335428 ARM: add more CPU part numbers for Cortex and Brahma B15 CPUs
   d62b8ac8cd54 mm: don't show nr_indirectly_reclaimable in /proc/vmstat
   5de69d648a09 mm: treat indirectly reclaimable memory as free in overcommit logic
   6d7942377c88 dcache: account external names as indirectly reclaimable memory
   dc09a5b68d83 mm: treat indirectly reclaimable memory as available in MemAvailable
   c605894c84b9 mm: introduce NR_INDIRECTLY_RECLAIMABLE_BYTES
   7a4f9efdb213 xhci: Don't print a warning when setting link state for disabled ports
   74a960430a8d i2c: i2c-scmi: fix for i2c_smbus_write_block_data
   1b7ff5208d2f mm: Preserve _PAGE_DEVMAP across mprotect() calls
   68ba0bdfe494 mm/thp: fix call to mmu_notifier in set_pmd_migration_entry() v2
   3e6275d940a4 arm64: perf: Reject stand-alone CHAIN events for PMUv3
   b3e4b3c70a0a pinctrl: mcp23s08: fix irq and irqchip setup order
   d5833a50c6a3 mmc: block: avoid multiblock reads for the last sector in SPI mode
   bc183079ddfd cgroup: Fix dom_cgrp propagation when enabling threaded mode
   c339fab172a9 dm linear: fix linear_end_io conditional definition
   efd6537984d5 dm linear: eliminate linear_end_io call if CONFIG_DM_ZONED disabled
   261f2cba100b dm: fix report zone remapping to account for partition offset
   6c8faa19e9cc dm cache: destroy migration_cache if cache target registration failed
   8d2f62cb2d46 s390/cio: Fix how vfio-ccw checks pinned pages
   e3f725f5c46a perf script python: Fix export-to-sqlite.py sample columns
   82ac2740aa74 perf script python: Fix export-to-postgresql.py occasional failure
   54886c978397 percpu: stop leaking bitmap metadata blocks
   6c8f4babb57b mach64: detect the dot clock divider correctly on sparc
   86717a97f921 MIPS: VDSO: Always map near top of user memory
   8676e0b4a28f mm/vmstat.c: fix outdated vmstat_text
   059726864271 drm/amdgpu: Fix SDMA HQD destroy error on gfx_v7
   e4865b46e195 x86/kvm/lapic: always disable MMIO interface in x2APIC mode
   88659387b9d5 clk: x86: Stop marking clocks as CLK_IS_CRITICAL
   ba54417f8d01 clk: x86: add "ether_clk" alias for Bay Trail / Cherry Trail
   cac34c122cf3 PCI: hv: support reporting serial number as slot information
   18918ed70db9 ARM: dts: at91: add new compatibility string for macb on sama5d3
   c77295d6fa1c net: macb: disable scatter-gather for macb on sama5d3
   3265bda5bd9f stmmac: fix valid numbers of unicast filter entries
   1826e5562516 hv_netvsc: fix schedule in RCU context
   37ca1cc8d4c0 sound: don't call skl_init_chip() to reset intel skl soc
   2af2b70c107b sound: enable interrupt after dma buffer initialization
   a5733703e38c scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted()
   254cc00e53d7 scsi: iscsi: target: Don't use stack buffer for scatterlist
   5d53f0d897c3 mfd: omap-usb-host: Fix dts probe of children
   e3583d7b1bd9 Bluetooth: hci_ldisc: Free rw_semaphore on close
   bac561137155 ASoC: rsnd: don't fallback to PIO mode when -EPROBE_DEFER
   ad9ad950a37b ASoC: rsnd: adg: care clock-frequency size
   6d52f3e1e729 selftests: memory-hotplug: add required configs
   e121efd796c9 selftests/efivarfs: add required kernel configs
   c5f7b0d2ce9e ASoC: sigmadsp: safeload should not have lower byte limit
   c08a99325a56 ASoC: wm8804: Add ACPI support
   a15fac93a3e6 ASoC: rt5514: Fix the issue of the delay volume applied again
   c5df58138946 inet: make sure to grab rcu_read_lock before using ireq->ireq_opt
   17af5475aef3 tcp/dccp: fix lockdep issue when SYN is backlogged
   4b7b26024f52 net-ethtool: ETHTOOL_GUFO did not and should not require CAP_NET_ADMIN
   98c77f2eef29 bnxt_en: don't try to offload VLAN 'modify' action
   eb79c31aac15 nfp: avoid soft lockups under control message storm
   f578e5b34c38 bonding: fix warning message
   90a3d8afe1f4 bonding: pass link-local packets to bonding master also.
   83eb2fdd0483 net/mlx5: E-Switch, Fix out of bound access when setting vport rate
   7aa339e90994 net: aquantia: memory corruption on jumbo frames
   7ba8867fb3a7 net/mlx5e: Set vlan masks for all offloaded TC rules
   431a4fee7114 net: dsa: bcm_sf2: Fix unbind ordering
   5150140b4ea7 net/packet: fix packet drop as of virtio gso
   5e7bb38dc696 net: stmmac: Fixup the tail addr setting in xmit path
   7976e6b70ecf udp: Unbreak modules that rely on external __skb_recv_udp() availability
   49984ca4e60e tipc: fix flow control accounting for implicit connect
   66c1b9cfa07d team: Forbid enslaving team device to itself
   d63d3995d7db sctp: update dst pmtu with the correct daddr
   a8b0f004eb90 rtnl: limit IFLA_NUM_TX_QUEUES and IFLA_NUM_RX_QUEUES to 4096
   5f999abba33f rtnetlink: fix rtnl_fdb_dump() for ndmsg header
   72675512fb1a qmi_wwan: Added support for Gemalto's Cinterion ALASxx WWAN interface
   0d5b9edea995 qlcnic: fix Tx descriptor corruption on 82xx devices
   133aea0f2108 net/usb: cancel pending work when unbinding smsc75xx
   3e80ad8cbf22 net: systemport: Fix wake-up interrupt race during resume
   d9057423312e net: sched: Add policy validation for tc attributes
   85ebbc5a2543 net: mvpp2: fix a txq_done race condition
   d9bf6699aee8 net: mvpp2: Extract the correct ethtype from the skb for tx csum offload
   19c5e73c745c netlabel: check for IPV4MASK in addrinfo_get
   335c37612f9f net/ipv6: Display all addresses in output of /proc/net/if_inet6
   9b4869cf385a net: ipv4: update fnhe_pmtu when first hop's MTU changes
   6c61dae979ae net: hns: fix for unmapping problem when SMMU is on
   8193b775247a net: dsa: bcm_sf2: Call setup during switch resume
   48c14f2ea5c5 ipv6: take rcu lock in rawv6_send_hdrinc()
   32b193216e18 ipv4: fix use-after-free in ip_cmsg_recv_dstaddr()
   deb33b68f40e ip_tunnel: be careful when accessing the inner header
   18bf9a724362 ip6_tunnel: be careful when accessing the inner header
   94402f23659f bonding: avoid possible dead-lock
   e73b51a995ac bnxt_en: free hwrm resources, if driver probe fails.
   67d1ee6c7b76 bnxt_en: Fix TX timeout during netpoll.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.18: update to v4.18.17
Bruce Ashfield [Mon, 17 Dec 2018 03:38:19 +0000 (22:38 -0500)]
linux-yocto/4.18: update to v4.18.17

Integrating the korg -stable updates that comprise the following
commits:

   2237effd7edc Linux 4.18.17
   1757ec69500e net: bridge: remove ipv6 zero address check in mcast queries
   2ec673dbb0cd sparc: Throttle perf events properly.
   12176be9fc14 sparc: Fix syscall fallback bugs in VDSO.
   366187ea2b33 sparc: Fix single-pcr perf event counter management.
   4ce6adbc410a sparc64: Wire up compat getpeername and getsockname.
   a756494fb7bd sparc64: Set %l4 properly on trap return after handling signals.
   1a47e59c4471 sparc64: Make proc_id signed.
   f64ff34d414e sparc64: Make corrupted user stacks more debuggable.
   69e6b8f41fbf sparc64: Export __node_distance.
   6a84bdb84df3 mlxsw: core: Fix devlink unregister flow
   2d484ce0a878 net/mlx5: WQ, fixes for fragmented WQ buffers API
   f8e70fa84f76 net: fix pskb_trim_rcsum_slow() with odd trim offset
   4eb937395873 net: drop skb on failure in ip_check_defrag()
   dc4526d3bfeb net: bpfilter: use get_pid_task instead of pid_task
   79a6dd1cb8e3 mlxsw: spectrum_switchdev: Don't ignore deletions of learned MACs
   f235cdcf4fc4 net/smc: fix smc_buf_unuse to use the lgr pointer
   d09a8fb16103 net/mlx5: Fix memory leak when setting fpga ipsec caps
   63f8939f793b sctp: not free the new asoc when sctp_wait_for_connect returns err
   c1b1e96cffd2 sctp: fix the data size calculation in sctp_data_size
   81e31abfa81d net/ipv6: Allow onlink routes to have a device mismatch if it is the default route
   c5038b492cb1 net/sched: cls_api: add missing validation of netlink attributes
   45675e6e6344 net: sched: Fix for duplicate class dump
   11681b07d320 net: bcmgenet: Poll internal PHY for GENETv5
   b9a30ce087b4 net/mlx5: Take only bit 24-26 of wqe.pftype_wq for page fault type
   739b2449f0cf net: ipmr: fix unresolved entry dumps
   f8c96597387e openvswitch: Fix push/pop ethernet validation
   0b73d75ab52f ip6_tunnel: Fix encapsulation layout
   2f75b5a2c832 bonding: fix length of actor system
   03e00d0609eb ethtool: fix a privilege escalation bug
   e30293d0a03a virtio_net: avoid using netif_tx_disable() for serializing tx routine
   c75d697c8197 vhost: Fix Spectre V1 vulnerability
   886de7239b16 udp6: fix encap return code for resubmitting
   b3c2e8e106df tipc: fix unsafe rcu locking when accessing publication list
   721933262ef7 sctp: fix race on sctp_id2asoc
   2645237c90e7 rtnetlink: Disallow FDB configuration for non-Ethernet device
   9ae97da02a54 r8169: fix NAPI handling under high load
   6c5f9c2de021 net: udp: fix handling of CHECKSUM_COMPLETE packets
   cbfb26f3eb03 net: stmmac: Fix stmmac_mdio_reset() when building stmmac as modules
   a04092cebd73 net: socket: fix a missing-check bug
   ea824d70d673 net: sched: gred: pass the right attribute to gred_change_table_def()
   7344adab32c7 net/mlx5e: fix csum adjustments caused by RXFCS
   60a2c3b4a991 net/ipv6: Fix index counter for unicast addresses in in6_dump_addrs
   4dcde3a4c5ea net: fec: don't dump RX FIFO register when not available
   cc30c16a04cb llc: set SOCK_RCU_FREE in llc_sap_add_socket()
   23b5d05d9114 ipv6: rate-limit probes for neighbourless routes
   9198d01eb02d ipv6/ndisc: Preserve IPv6 control buffer if protocol error handlers are called
   558af64846ca ipv6: mcast: fix a use-after-free in inet6_mc_check
   9801a672beb6 bridge: do not add port to router list when receives query with source 0.0.0.0
   b13411edcf71 perf tools: Disable parallelism for 'make clean'
   f1f040bf29b7 Revert "netfilter: ipv6: nf_defrag: drop skb dst before queueing"
   d496cdeede28 Revert "mm: slowly shrink slabs with a relatively small number of objects"
   4afb03f48e7e fs/fat/fatent.c: add cond_resched() to fat_count_free_clusters()
   9721f5af4d23 afs: Fix cell proc list
   9277b65e04d6 vmlinux.lds.h: Fix linker warnings about orphan .LPBX sections
   e266c397e724 vmlinux.lds.h: Fix incomplete .text.exit discards
   c4659254b987 selftests: udpgso_bench.sh explicitly requires bash
   92e648292600 selftests: rtnetlink.sh explicitly requires bash.
   941a8d0b8409 rds: RDS (tcp) hangs on sendto() to unresponding address
   87113db1242c IB/mlx5: Unmap DMA addr from HCA before IOMMU
   e14b8b11ac50 gpio: Assign gpio_irq_chip::parents to non-stack pointer
   e7579cb736ec net: ena: fix NULL dereference due to untimely napi initialization
   2abc117c9799 net: ena: fix rare bug when failed restart/resume is followed by driver removal
   b0af327d145f net: ena: fix warning in rmmod caused by double iounmap
   6be48d8274ef KVM: x86: support CONFIG_KVM_AMD=y with CONFIG_CRYPTO_DEV_CCP_DD=m
   98154205f7a9 rxrpc: Fix connection-level abort handling
   47af9661cc87 rxrpc: Only take the rwind and mtu values from latest ACK
   54776c736d41 rxrpc: Carry call state out of locked section in rxrpc_rotate_tx_window()
   e3dcbf121240 rxrpc: Don't check RXRPC_CALL_TX_LAST after calling rxrpc_rotate_tx_window()
   903fb78f7436 perf record: Use unmapped IP for inline callchain cursors
   37e241d14094 perf python: Use -Wno-redundant-decls to build with PYTHON=python3
   2b401f26406f ARM: dts: imx53-qsb: disable 1.2GHz OPP
   755b72711bbc compiler.h: Allow arch-specific asm/compiler.h
   ff78e12f6587 HID: i2c-hid: Remove RESEND_REPORT_DESCR quirk and its handling
   e911f46c0cc5 tls: Fix improper revert in zerocopy_from_iter
   2033959b7421 perf report: Don't try to map ip to invalid map
   15ea940bc3fb libertas: call into generic suspend code before turning off power
   d33c4297bac5 clk: mvebu: armada-37xx-periph: Remove unused var num_parents
   e7f8508aca5e x86/paravirt: Fix some warning messages
   3b917cecac61 mm/migrate.c: split only transparent huge pages when allocation fails
   28d6d2236564 mm/gup_benchmark: fix unsigned comparison to zero in __gup_benchmark_ioctl
   203711a8820b ocfs2: fix crash in ocfs2_duplicate_clusters_by_page()
   72c25b9bf77d yam: fix a missing-check bug
   4c8345b62cfe net: cxgb3_main: fix a missing-check bug
   3397d28b3e27 powerpc/numa: Skip onlining a offline node in kdump path
   a7af3a2ae488 be2net: don't flip hw_features when VXLANs are added/deleted
   43cb734246c0 drm/amd/display: Signal hw_done() after waiting for flip_done()
   76c84d0a2313 locking/ww_mutex: Fix runtime warning in the WW mutex selftest
   1ac18a1dbc3f Revert "serial: 8250_dw: Fix runtime PM handling"
   0cf9edba8270 RISCV: Fix end PFN for low memory
   5278d9550d4d declance: Fix continuation with the adapter identification message
   c770ce978ac2 net: fec: fix rare tx timeout
   5613fc70844b thunderbolt: Initialize after IOMMUs
   1699207e9c7c thunderbolt: Do not handle ICM events after domain is stopped
   14ad1e0af45f perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events
   9f1aaaae92ff perf/x86/intel/uncore: Fix PCI BDF address of M3UPI on SKX
   8764955cc03e perf/ring_buffer: Prevent concurent ring buffer access
   3617d16a5744 perf/x86/intel/uncore: Use boot_cpu_data.phys_proc_id instead of hardcorded physical package ID 0
   d318ef466d5f perf/core: Fix perf_pmu_unregister() locking
   2f56f220a61e KVM: nVMX: Fix emulation of VM_ENTRY_LOAD_BNDCFGS
   3c81fff77cfd KVM: x86: Do not use kvm_x86_ops->mpx_supported() directly
   82ba86c25383 KVM: nVMX: Do not expose MPX VMX controls when guest MPX disabled
   2dbf48f8ffb3 cfg80211: fix use-after-free in reg_process_hint()
   9069c847f3fe smsc95xx: Check for Wake-on-LAN modes
   4f1268db2975 smsc75xx: Check for Wake-on-LAN modes
   e3935fa141b8 r8152: Check for supported Wake-on-LAN Modes
   e8f4ce7df75e sr9800: Check for supported Wake-on-LAN modes
   35c636108bc4 lan78xx: Check for supported Wake-on-LAN modes
   58d2f3f743a1 ax88179_178a: Check for supported Wake-on-LAN modes
   afc7b1940200 asix: Check for supported Wake-on-LAN modes
   723b7d86877d netfilter: avoid erronous array bounds warning
   8d3156b3c109 netfilter: nft_set_rbtree: add missing rb_erase() in GC routine
   18cb92701a5d rxrpc: Fix error distribution
   4ca2cf672c5b rxrpc: Fix transport sockopts to get IPv4 errors on an IPv6 socket
   1a75026c857a rxrpc: Fix RTT gathering
   6a14d1c9336f rxrpc: Fix checks as to whether we should set up a new call
   605c374d8d70 scsi: qedi: Initialize the stats mutex lock
   aa1945964a7c nl80211: Fix possible Spectre-v1 for CQM RSSI thresholds
   7a9bda693628 qed: Avoid implicit enum conversion in qed_iwarp_parse_rx_pkt
   d627d3b8bed3 qed: Avoid constant logical operation warning in qed_vf_pf_acquire
   02e2aef498f7 qed: Avoid implicit enum conversion in qed_roce_mode_to_flavor
   b65e69499980 qed: Fix mask parameter in qed_vf_prep_tunn_req_tlv
   a2b1a38ad02b qed: Avoid implicit enum conversion in qed_set_tunn_cls_info
   b9e005da34ff pxa168fb: prepare the clock
   6c2222c8f039 Bluetooth: SMP: fix crash in unpairing
   68fd462426c4 mac80211_hwsim: do not omit multicast announce of first added radio
   5b79f65376d3 mac80211_hwsim: fix race in radio destruction from netlink notifier
   a245a12394fe mac80211_hwsim: fix locking when iterating radios during ns exit
   de835e3911a3 nl80211: Fix possible Spectre-v1 for NL80211_TXRATE_HT
   4417f9e05c28 soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift()
   d87e83a55f4b soc: fsl: qbman: qman: avoid allocating from non existing gen_pool
   da5e35d2f776 net: macb: Clean 64b dma addresses if they are not detected
   5499ce65ff9c ARM: dts: BCM63xx: Fix incorrect interrupt specifiers
   a958dc5482c1 arm64: hugetlb: Fix handling of young ptes
   eaab185b06cd netfilter: conntrack: get rid of double sizeof
   044c43754741 netfilter: bridge: Don't sabotage nf_hook calls from an l3mdev
   6b7174a50fb2 drm/i2c: tda9950: set MAX_RETRIES for errors only
   4abac4cf573a drm/i2c: tda9950: fix timeout counter check
   9981ca44ae4b xfrm: validate template mode
   3dc70478360e ARM: 8799/1: mm: fix pci_ioremap_io() offset check
   c473a489d409 xfrm: Fix NULL pointer dereference when skb_dst_force clears the dst_entry.
   53d617654c50 mac80211: fix TX status reporting for ieee80211s
   fd6b693e1d94 mac80211: TDLS: fix skb queue/priority assignment
   a9489521a39c cfg80211: Address some corner cases in scan result channel updating
   2c4739102f0e mac80211: fix pending queue hang due to TX_DROP
   2953d28476c3 cfg80211: reg: Init wiphy_idx in regulatory_hint_core()
   e20c2a6a7144 mac80211: Always report TX status
   c3767729df27 xfrm: reset crypto_done when iterating over multiple input xfrms
   fdb06c787b34 xfrm: reset transport header back to network header after all input transforms ahave been applied
   401979de6e8b xfrm6: call kfree_skb when skb is toobig
   36ad133bf987 xfrm: Validate address prefix lengths in the xfrm selector.
   6b3252287aa2 Linux 4.18.16
   645ad2d5cccc ARC: build: Don't set CROSS_COMPILE in arch's Makefile
   dfed0698a22e ARC: build: Get rid of toolchain check
   d80183541e60 mremap: properly flush TLB before releasing the page
   94d2da5ba1dd Revert "vfs: fix freeze protection in mnt_want_write_file() for overlayfs"
   7fde798123ef x86/boot: Fix kexec booting failure in the SEV bit detection code
   44e564aa4525 iommu/amd: Return devid as alias for ACPI HID devices
   0e963ecefb72 powerpc/numa: Use associativity if VPHN hcall is successful
   4a079f0a5398 powerpc/tm: Avoid possible userspace r1 corruption on reclaim
   8725b910e72d powerpc/tm: Fix userspace r13 corruption
   b0b901600550 pinctrl/amd: poll InterruptEnable bits in amd_gpio_irq_set_type
   0fe04d27b5e3 iommu/rockchip: Free irqs in shutdown handler
   1e23af485f89 RISC-V: include linux/ftrace.h in asm-prototypes.h
   086906d90bae RDMA/bnxt_re: Fix system crash during RDMA resource initialization
   87e75317fe81 clocksource/drivers/fttmr010: Fix set_next_event handler
   323ad7436184 net/mlx4: Use cpumask_available for eq->affinity_mask
   bcb2acdf27b3 bpf: test_maps, only support ESTABLISHED socks
   19e43942cbb7 bpf: sockmap, fix transition through disconnect without close
   60c302b7aea5 bpf: sockmap only allow ESTABLISHED sock state
   019a15f9bd44 scsi: sd: don't crash the host on invalid commands
   6dba1e338b6e scsi: ipr: System hung while dlpar adding primary ipr adapter back
   ce32caf41e53 drm: mali-dp: Call drm_crtc_vblank_reset on device init
   fab5471586f4 scsi: lpfc: Synchronize access to remoteport via rport
   7dc74b2622c2 RDMA/uverbs: Fix validity check for modify QP
   2c93f6f118ad PCI: dwc: Fix scheduling while atomic issues
   1093a05b5828 qed: Do not add VLAN 0 tag to untagged frames in multi-function mode.
   c23f22169cac qed: Fix populating the invalid stag value in multi function mode.
   9bdac39234d0 net/smc: fix sizeof to int comparison
   4b238ea05476 net/smc: fix non-blocking connect problem
   6b7d727a2d18 ravb: do not write 1 to reserved bits
   14bbe1ab20ac net: emac: fix fixed-link setup for the RTL8363SB switch
   66acb86c0905 selftests: pmtu: properly redirect stderr to /dev/null
   6a08cbb10aac Input: atakbd - fix Atari CapsLock behaviour
   ef17628c07da Input: atakbd - fix Atari keymap
   462809659a39 intel_th: pci: Add Ice Lake PCH support
   ee43eeb4d1b9 scsi: ibmvscsis: Ensure partition name is properly NUL terminated
   10ad9dcade4b scsi: ibmvscsis: Fix a stringop-overflow warning
   bb59249268cf clocksource/drivers/ti-32k: Add CLOCK_SOURCE_SUSPEND_NONSTOP flag for non-am43 SoCs
   385ce0611598 cxgb4: fix abort_req_rss6 struct
   413baacefef9 batman-adv: fix hardif_neigh refcount on queue_work() failure
   04125a63ea54 batman-adv: fix backbone_gw refcount on queue_work() failure
   39b0e1c4c79f batman-adv: Prevent duplicated tvlv handler
   c25ae7c479af batman-adv: Prevent duplicated global TT entry
   71d6d75e5801 batman-adv: Prevent duplicated softif_vlan entry
   2d1749b0fab0 batman-adv: Prevent duplicated nc_node entry
   d8ed2b187456 batman-adv: Prevent duplicated gateway_node entry
   eddab21dd463 batman-adv: Fix segfault when writing to sysfs elp_interval
   54231bb59a9a batman-adv: Fix segfault when writing to throughput_override
   52406f34bbb6 batman-adv: Avoid probe ELP information leak
   26c0bac0c117 spi: gpio: Fix copy-and-paste error
   affb1840c578 media: af9035: prevent buffer overflow on write
   1228a75335e0 soundwire: Fix acquiring bus lock twice during master release
   ad9107d7e1c7 soundwire: Fix incorrect exit after configuring stream
   b1bafbe4ff2d soundwire: Fix duplicate stream state assignment
   2724bf10255a Linux 4.18.15
   4a15f8a1de59 KVM: PPC: Book3S HV: Avoid crash from THP collapse during radix page fault
   726c11216e33 i2c: i2c-scmi: fix for i2c_smbus_write_block_data
   a249cdf8fc74 mm: Preserve _PAGE_DEVMAP across mprotect() calls
   7230bb7c98c1 filesystem-dax: Fix dax_layout_busy_page() livelock
   3c3bb028a3b7 mm/thp: fix call to mmu_notifier in set_pmd_migration_entry() v2
   ffa4d6624e1a mm/mmap.c: don't clobber partially overlapping VMA with MAP_FIXED_NOREPLACE
   53abe5164894 arm64: perf: Reject stand-alone CHAIN events for PMUv3
   59d9c7cba4ba pinctrl: mcp23s08: fix irq and irqchip setup order
   3df1331f63cd mmc: block: avoid multiblock reads for the last sector in SPI mode
   7088776eb06a drm/nouveau/drm/nouveau: Grab runtime PM ref in nv50_mstc_detect()
   ca45da09bc32 Input: xpad - add support for Xbox1 PDP Camo series gamepad
   d8408e8fc720 cgroup: Fix dom_cgrp propagation when enabling threaded mode
   012e6bceab53 dm linear: fix linear_end_io conditional definition
   996a427d8683 dm linear: eliminate linear_end_io call if CONFIG_DM_ZONED disabled
   689ba84574c2 dm: fix report zone remapping to account for partition offset
   e725141c0f4e dm cache: destroy migration_cache if cache target registration failed
   d8e15b143e4d s390/cio: Fix how vfio-ccw checks pinned pages
   b51943f088e5 perf script python: Fix export-to-sqlite.py sample columns
   cfb08fb1815f perf script python: Fix export-to-postgresql.py occasional failure
   37e64cb69f0f percpu: stop leaking bitmap metadata blocks
   71cfcc667ffa vsprintf: Fix off-by-one bug in bstr_printf() processing dereferenced pointers
   254754169d9d mach64: detect the dot clock divider correctly on sparc
   e4882348eaa9 MIPS: VDSO: Always map near top of user memory
   baa63c6a5b11 MIPS: Fix CONFIG_CMDLINE handling
   84a397478153 afs: Fix clearance of reply
   b28b1a5f8653 afs: Fix afs_server struct leak
   04473bb7793b mm/vmstat.c: fix outdated vmstat_text
   62aad93f09c1 mm: slowly shrink slabs with a relatively small number of objects
   3792c002b9ff drm/amdkfd: Fix ATS capablity was not reported correctly on some APUs
   c2fd5b21cbd9 drm/amdkfd: Change the control stack MTYPE from UC to NC on GFX9
   2d3966dd95dc drm/amdgpu: Fix SDMA HQD destroy error on gfx_v7
   1c9f357d3ebb x86/kvm/lapic: always disable MMIO interface in x2APIC mode
   5d85d4e0e105 pinctrl: cannonlake: Fix gpio base for GPP-E
   9f8318a1c50c clk: x86: Stop marking clocks as CLK_IS_CRITICAL
   81b8b9dffca8 clk: x86: add "ether_clk" alias for Bay Trail / Cherry Trail
   b25a8dd9895b PCI: hv: support reporting serial number as slot information
   aed5429279f8 ARM: dts: at91: add new compatibility string for macb on sama5d3
   ee62a5d3ea8a net: macb: disable scatter-gather for macb on sama5d3
   53035808c294 net: ethernet: ti: add missing GENERIC_ALLOCATOR dependency
   8be050c4011b hwmon: (nct6775) Use different register to get fan RPM for fan7
   1d753e689276 stmmac: fix valid numbers of unicast filter entries
   d8eeee24ced8 hwmon: (nct6775) Fix RPM output for fan7 on NCT6796D
   510dc356ff2c hwmon: (nct6775) Fix virtual temperature sources for NCT6796D
   4dc76c13f297 bpf: use __GFP_COMP while allocating page
   d2440a0b0672 bpf: btf: Fix end boundary calculation for type section
   aeaca3563bea sound: don't call skl_init_chip() to reset intel skl soc
   9761976f8e01 sound: enable interrupt after dma buffer initialization
   a1d77f9cd10a scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted()
   9ac4572a7374 scsi: iscsi: target: Don't use stack buffer for scatterlist
   970f5df113b1 KVM: PPC: Book3S HV: Don't use compound_order to determine host mapping size
   ba73c6ed5010 mfd: omap-usb-host: Fix dts probe of children
   e7c4c41389ff Bluetooth: hci_ldisc: Free rw_semaphore on close
   0d95a3d1fcf6 Bluetooth: Use correct tfm to generate OOB data
   3194c412f471 Bluetooth: SMP: Fix trying to use non-existent local OOB data
   5421ce8b59bc drm/pl111: Make sure of_device_id tables are NULL terminated
   d0200873bc9c ASoC: AMD: Ensure reset bit is cleared before configuring
   5d1a5a5eed92 Fix cg_read_strcmp()
   636dd4536009 hwmon: (nct6775) Fix access to fan pulse registers
   59fcb2491ca0 ASoC: rsnd: don't fallback to PIO mode when -EPROBE_DEFER
   ee3953f7b81c ASoC: rsnd: adg: care clock-frequency size
   b7bad669da54 selftests: memory-hotplug: add required configs
   9a90b9e380c5 selftests/efivarfs: add required kernel configs
   40299ec565fa selftests: add headers_install to lib.mk
   36a89768d19f ASoC: q6routing: initialize data correctly
   64458ca97124 ASoC: sigmadsp: safeload should not have lower byte limit
   4a7f15b6d5fa ASoC: wm8804: Add ACPI support
   55261a2cddb5 ASoC: max98373: Added 10ms sleep after amp software reset
   686da99baa28 selftests: kselftest: Remove outdated comment
   6a4d1b70e323 selftests: android: move config up a level
   334411face5a ASoC: rt5514: Fix the issue of the delay volume applied again
   e4c577698c7c ASoC: max98373: Added speaker FS gain cotnrol register to volatile.
   6e6b32ed0413 ASoC: dapm: Fix NULL pointer deference on CODEC to CODEC DAIs
   ffac8fa2bee5 vxlan: fill ttl inherit info
   241e5a13a5ad r8169: set RX_MULTI_EN bit in RxConfig for 8168F-family chips
   87441df1e19e r8169: fix network stalls due to missing bit TXCFG_AUTO_FIFO
   761ea5beff71 qed: Fix shmem structure inconsistency between driver and the mfw.
   6133d8e499e6 net: mscc: fix the frame extraction into the skb
   d29a558b56ee net/ipv6: stop leaking percpu memory in fib6 info
   e3827b9bc3ba net/ipv6: Remove extra call to ip6_convert_metrics for multipath case
   47049f54f89d bnxt_en: get the reduced max_irqs by the ones used by RDMA
   dce53396b52d bnxt_en: Fix enables field in HWRM_QUEUE_COS2BW_CFG request
   23631aa634ef net/mlx5: Check for SQ and not RQ state when modifying hairpin SQ
   6691a126ed63 net: ipv4: don't let PMTU updates increase route MTU
   530a9463cbe6 bnxt_en: Fix VNIC reservations on the PF.
   5d4fe8e6344b rtnetlink: Fail dump if target netnsid is invalid
   36298c66d8dc net: dsa: b53: Keep CPU port as tagged in all VLANs
   efef3f2073d1 inet: make sure to grab rcu_read_lock before using ireq->ireq_opt
   9fd4b0122ac3 tcp/dccp: fix lockdep issue when SYN is backlogged
   54d72415f8b2 sfp: fix oops with ethtool -m
   24205e4e62dd net: phy: phylink: fix SFP interface autodetection
   37b309773a67 net-ethtool: ETHTOOL_GUFO did not and should not require CAP_NET_ADMIN
   2402fbb7aa01 bnxt_en: don't try to offload VLAN 'modify' action
   f219cd971281 nfp: avoid soft lockups under control message storm
   2b4588d75b89 net: stmmac: Rework coalesce timer and fix multi-queue races
   8f389cd37d10 bonding: fix warning message
   5fb48fe95e41 bonding: pass link-local packets to bonding master also.
   92a2a40c876f net/mlx5: E-Switch, Fix out of bound access when setting vport rate
   02e16d375ee6 net: aquantia: memory corruption on jumbo frames
   6db3fc2839be net/mlx5e: Set vlan masks for all offloaded TC rules
   42296a164196 net: dsa: bcm_sf2: Fix unbind ordering
   53afeb0b222b net/packet: fix packet drop as of virtio gso
   75ebeb2e6a60 net: stmmac: Fixup the tail addr setting in xmit path
   0c5eff9c2cf2 tun: napi flags belong to tfile
   d013c6b952f0 tun: initialize napi_mutex unconditionally
   7d96410f397b tun: remove unused parameters
   095a5309c6c6 net: qualcomm: rmnet: Fix incorrect allocation flag in receive path
   9db5df4c92dd net: qualcomm: rmnet: Fix incorrect allocation flag in transmit
   3283c92e91f7 net: qualcomm: rmnet: Skip processing loopback packets
   3ab83c6a1fb4 udp: Unbreak modules that rely on external __skb_recv_udp() availability
   4f6017d6ef53 tipc: fix flow control accounting for implicit connect
   0240ca1b11d3 team: Forbid enslaving team device to itself
   375c63d4a70c sctp: update dst pmtu with the correct daddr
   2ac4b03c0fcc rtnl: limit IFLA_NUM_TX_QUEUES and IFLA_NUM_RX_QUEUES to 4096
   5369306f960f rtnetlink: fix rtnl_fdb_dump() for ndmsg header
   7f4a4fa5fa58 qmi_wwan: Added support for Gemalto's Cinterion ALASxx WWAN interface
   cbf2e16dd724 qlcnic: fix Tx descriptor corruption on 82xx devices
   0993dc028ed2 net/usb: cancel pending work when unbinding smsc75xx
   a308452e12c0 net: systemport: Fix wake-up interrupt race during resume
   6da1bd2d008f net: sched: cls_u32: fix hnode refcounting
   57ad6586fd57 net: sched: Add policy validation for tc attributes
   94d93e549eb1 net: mvpp2: fix a txq_done race condition
   ac521a40054c net: mvpp2: Extract the correct ethtype from the skb for tx csum offload
   dbbae2c07809 netlabel: check for IPV4MASK in addrinfo_get
   e4a00db35924 net/ipv6: Display all addresses in output of /proc/net/if_inet6
   ff34695ced21 net: ipv4: update fnhe_pmtu when first hop's MTU changes
   87d57bb87dd8 net: hns: fix for unmapping problem when SMMU is on
   1ae21378ab43 net: dsa: bcm_sf2: Call setup during switch resume
   08e8e22b6d3a ipv6: take rcu lock in rawv6_send_hdrinc()
   18ea575f665d ipv4: fix use-after-free in ip_cmsg_recv_dstaddr()
   fa111ec2d2c5 ip_tunnel: be careful when accessing the inner header
   84b262a5a008 ip6_tunnel: be careful when accessing the inner header
   1b420a9999f0 bonding: avoid possible dead-lock
   2fc26dfba49d bnxt_en: free hwrm resources, if driver probe fails.
   f462adcb0638 bnxt_en: Fix TX timeout during netpoll.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.18: bug fixes and configuration tweaks
Bruce Ashfield [Mon, 17 Dec 2018 03:38:18 +0000 (22:38 -0500)]
linux-yocto/4.18: bug fixes and configuration tweaks

Integrating the following commits:

  2ba9a28434f8 netfilter: use kvmalloc_array to allocate memory for hashtable
  6e1fae5d233a ipv4: net namespace does not inherit network configurations

As well as the following configuration changes:

  ed1978c99214 features/module-signing: add new feature
  a28fd4843381 edac: Drop CONFIG_EDAC_MM_EDAC and add dependency
  8ae63963256e xfs: add xfs support

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/tiny: restore qemuarm support
Bruce Ashfield [Mon, 17 Dec 2018 03:38:17 +0000 (22:38 -0500)]
linux-yocto/tiny: restore qemuarm support

qemuarm-tiny support was added to the 4.15 linux-yocto kernel, and
was incorrectly dropped from 4.18.

This restores the support for out of the box builds in 4.18+.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/tiny: switch default branch to standard/tiny/base
Bruce Ashfield [Mon, 17 Dec 2018 03:38:16 +0000 (22:38 -0500)]
linux-yocto/tiny: switch default branch to standard/tiny/base

The default KBRANCH for building -tiny should not be machine specific.
In fact, the SRCREVs that have been in place for -tiny have been using
the hashes from tiny/base for some time, but since the machine specific
branches all contain that hash, the mismatch hasn't been spotted.

Setting the default branch to standard/tiny/base makes sure that the
default branch and SRCREVs always match.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.18: -rt sync and config cleanups
Bruce Ashfield [Mon, 17 Dec 2018 03:38:15 +0000 (22:38 -0500)]
linux-yocto/4.18: -rt sync and config cleanups

Integrating the following -rt patches:

  cab37ca8426b rt: update localversion to match latest content
  186274b2b6dc tty: serial: pl011: explicitly initialize the flags variable
  ac121b7124a0 mm/kasan: make quarantine_lock a raw_spinlock_t
  6100773500e7 watchdog: prevent deferral of watchdogd wakeup on RT
  ce594291c4eb kthread: convert worker lock to raw spinlock

And the following configuration tweaks:

  e39413ec2bdd sound.cfg: enable SND_SOC_INTEL_SKYLAKE

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.14: configuration cleanups
Bruce Ashfield [Mon, 17 Dec 2018 03:38:14 +0000 (22:38 -0500)]
linux-yocto/4.14: configuration cleanups

Integrating the following configuration cleanups/tweaks:

 19c174f547e6 sound.cfg: enable SND_SOC_INTEL_SKYLAKE explicitly

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto: remove obselete options from lxc config
Bruce Ashfield [Mon, 17 Dec 2018 03:38:13 +0000 (22:38 -0500)]
linux-yocto: remove obselete options from lxc config

The lxc config fragments have some options that are no long valid. So we
can safely drop them.

  721f3cfcb199 lxc: drop CONFIG_MM_OWNER
  3b5f717d0311 vfio: drop CONFIG_KVM_DEVICE_ASSIGNMENT

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Drop 7.3 since 8.2 is working fine for us
Richard Purdie [Sat, 15 Dec 2018 12:17:53 +0000 (12:17 +0000)]
gcc: Drop 7.3 since 8.2 is working fine for us

We've had gcc 8.2 around for long enough that 7.3 can be removed now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe: Fix opkg status list parse - Missing postinst
Raul Martins [Wed, 12 Dec 2018 07:38:19 +0000 (05:38 -0200)]
oe: Fix opkg status list parse - Missing postinst

While parsing opkg package status, last package status was not
properly handled, resulting in final image without postinst and
pkg depends

Signed-off-by: Raul Martins <raul.martins@alta-rt.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobase.bbclass: Add comments for gcc links to ccache
Robert Yang [Wed, 12 Dec 2018 06:59:59 +0000 (14:59 +0800)]
base.bbclass: Add comments for gcc links to ccache

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-7.3, gcc-8.2: Use variable SYSTEMLIBS_DIR instead of hardcoding it for ppc64
Serhey Popovych [Fri, 14 Dec 2018 17:54:42 +0000 (19:54 +0200)]
gcc-7.3, gcc-8.2: Use variable SYSTEMLIBS_DIR instead of hardcoding it for ppc64

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Enable secureplt for powerpc64 target too
Serhey Popovych [Fri, 14 Dec 2018 17:54:41 +0000 (19:54 +0200)]
gcc: Enable secureplt for powerpc64 target too

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: More places to patch to disable ldbl 128 for musl on PPC
Serhey Popovych [Fri, 14 Dec 2018 17:54:40 +0000 (19:54 +0200)]
gcc: More places to patch to disable ldbl 128 for musl on PPC

There are four functions using TFmode type (128bit) that isn't
available when building with musl. Move each of them from common
ppc64-fp.c to individual files referenced from t-float128 that used
when ldbl 128 enabled at configure time.

For gcc-7.3 if -mfloat128 is given -mfloat128-type must be given too.

Exclude ibm-ldouble.c when ldbl 128 isn't enabled at config time.

Build and boot tested with musl (no float128) and glibc (float128
and ibm128 on PowerPC64).

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Fix preprocessor redefines for header pathes
Serhey Popovych [Fri, 14 Dec 2018 17:54:39 +0000 (19:54 +0200)]
gcc: Fix preprocessor redefines for header pathes

When building for powerpc64 using musl as C library we get preprocessor
macro redefinition errors since gcc-configure-common.inc adds #define
of STANDARD_STARTFILE_PREFIX_1 and STANDARD_STARTFILE_PREFIX_2 to
gcc/defaults.h after ones added by a patch that ensures target gcc
headers included.

Since gcc-configure-common.inc included in every gcc recipe either
directly or indirectly, do_configure task is not disabled/deleted for
any of them (except gcc-source.inc) and there is no precondition that
skips gcc/defaults.h patching in
gcc-configure-common.inc::do_configure_prepend() we can just remove
conflicting parts of mentioned above patch to have single place where
start files prefixes defined in do_configure() task.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: Fix do_configure check platform triplet error (2)
Serhey Popovych [Fri, 14 Dec 2018 17:54:38 +0000 (19:54 +0200)]
python3: Fix do_configure check platform triplet error (2)

When building for powerpc 32bit with musl following error triggered
from do_configure:

checking for the platform triplet based on compiler characteristics... powerpc-linux-gnu
configure: error: internal configure error for the platform triplet, please file a bug report

This is caused by PLATFORM_TRIPLET != MULTIARCH mismatch since MULTIARCH
in case of musl is powerpc-linux-musl. Since triplet is used as part
module name as described in PEP-3149 to make fix less intrusive alias
powerpc-linux-musl to powerpc-linux-gnu to avoid possible runtime
(e.g. tests) incompatibilities later.

Fix was inspired by commit cda0ef61d373 ("python3: fix do_configure
check platform triplet error").

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: Skip assembler optimized code for powerpc64 with musl
Serhey Popovych [Fri, 14 Dec 2018 17:54:37 +0000 (19:54 +0200)]
openssl: Skip assembler optimized code for powerpc64 with musl

This code is written for elfv1 ABI in mind and linked as such: disable
all optimizations at the moment when building for powerpc64 with musl.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Create default library search path based on configuration
Serhey Popovych [Fri, 14 Dec 2018 17:54:35 +0000 (19:54 +0200)]
musl: Create default library search path based on configuration

In absence of /etc/ld-musl-$(ARCH).path file musl uses hardcoded default
search path "/lib:/usr/local/lib:/usr/lib". This works for cases when
system libraries installed in one of these pathes.

However if lib64 or libx32 used as system library directories and no
usr merge functionality enabled for distro musl dynamic loader cannot
find libraries and finally execute binaries.

Found while working on support for musl on powerpc64 builds where
lib64 variant is used regardless of multilib being on or off.

Fix by creating default search path based on configuration time values
for syslibdir and libdir.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarch-powerpc64.inc: Use elfv2 ABI when building with musl
Serhey Popovych [Fri, 14 Dec 2018 17:54:34 +0000 (19:54 +0200)]
arch-powerpc64.inc: Use elfv2 ABI when building with musl

Historically first PowerPC ABI was big-endian only (elfv1 currently). It
is standard ABI for both 32-bit ppc and 64-bit ppc64 architectures.

With PowerPC little-endian support new ABI was introduced (elfv2) and it
is used primarily with ppc64le target only. While it has support for
big-endian it is not commonly used and elfv1 still preferred.

Musl does support only elfv2 ABI for both LE and BE and does not have
any plans to support elfv1.

Since then to build for powerpc64 with musl new ABI should be used. As
expected it is not compatible with elfv1 but that isn't problem as long
as there is no binary distributed software or assembly code written for
elfv1 ABI.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemuwrapper: Explicitly exit in case of no qemu supported for target
Serhey Popovych [Fri, 14 Dec 2018 17:54:33 +0000 (19:54 +0200)]
qemuwrapper: Explicitly exit in case of no qemu supported for target

Running qemu for userspace code on unsupported target binaries might
be bad idea because qemu could say running in endless loop instead
of crashing due to illegal instruction or unsupported binary format.

While this is qemu bug we should avoid hitting it by explicitly exiting
from the wrapper when qemu backfill considered for machine.

Behaviour was observed in do_rootfs stage when building on IBM Power 8
host for PowerPC e7400 target.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotune-power[5-7].inc: Disable QEMU usermode usage
Serhey Popovych [Fri, 14 Dec 2018 17:54:32 +0000 (19:54 +0200)]
tune-power[5-7].inc: Disable QEMU usermode usage

The QEMU usermode fails with invalid instruction error when
used with those tunes.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotune-power[5-7].inc: Fix DEFAULTTUNE values
Serhey Popovych [Fri, 14 Dec 2018 17:54:31 +0000 (19:54 +0200)]
tune-power[5-7].inc: Fix DEFAULTTUNE values

It is ppcpX, not ppcprX, where X is 6 or 7. While there select 32bit
tune for P5 machine to bring it inline with P6 and P7.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/elf.py: Add powerpc64 architecture definition for musl
Serhey Popovych [Fri, 14 Dec 2018 17:54:30 +0000 (19:54 +0200)]
lib/oe/elf.py: Add powerpc64 architecture definition for musl

Add the ELF definition for the powerpc64 architecture when building
with musl as libc.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage: Add possibility to pass parmeters to qemu
Erik Botö [Fri, 14 Dec 2018 18:53:42 +0000 (19:53 +0100)]
testimage: Add possibility to pass parmeters to qemu

Add a variable called TEST_QEMUPARAMS in testimage.bbclass to make it
possible to pass parameters to qemu. This can be useful for e.g.
increasing the amount of RAM available during testimage runs.

Signed-off-by: Erik Botö <erik.boto@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu: clean up subprocess usage
Ross Burton [Fri, 21 Sep 2018 15:11:32 +0000 (16:11 +0100)]
runqemu: clean up subprocess usage

Where possible pass lists instead of strings, don't use a subshell, and call
check*() instead of using Popen directly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoqemu: Bump to version 3.1
Alistair Francis [Thu, 13 Dec 2018 22:06:05 +0000 (22:06 +0000)]
qemu: Bump to version 3.1

Bump QEMU to the latest 3.1 and update the patches.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemu-targets: Fix the list of QEMU targets
Alistair Francis [Thu, 13 Dec 2018 22:06:03 +0000 (22:06 +0000)]
qemu-targets: Fix the list of QEMU targets

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: Fix build with glibc 2.29
Khem Raj [Fri, 14 Dec 2018 22:57:05 +0000 (14:57 -0800)]
ltp: Fix build with glibc 2.29

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotcl: in run-ptest show output if a test fails
Ross Burton [Fri, 14 Dec 2018 17:10:42 +0000 (17:10 +0000)]
tcl: in run-ptest show output if a test fails

If a test fails the log has useful information, so include that in the output.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoRevert "popt: update SRC_URI"
Ross Burton [Fri, 14 Dec 2018 17:08:59 +0000 (17:08 +0000)]
Revert "popt: update SRC_URI"

Go back to use rpm5.org, as it's the canonical host for popt.  The host is back up now.

This reverts commit 347ee336dcc94e6fa4e4788117013615b90abd70.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsoup: upgrade to 2.64.2
Ross Burton [Fri, 14 Dec 2018 17:08:54 +0000 (17:08 +0000)]
libsoup: upgrade to 2.64.2

Add new build dependency libpsl.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers: Add entry for libpsl (required by libsoup)
Richard Purdie [Sat, 15 Dec 2018 11:46:59 +0000 (11:46 +0000)]
maintainers: Add entry for libpsl (required by libsoup)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibpsl: add
Ross Burton [Fri, 14 Dec 2018 17:08:50 +0000 (17:08 +0000)]
libpsl: add

A Public Suffix List is a collection of Top Level Domains (TLDs) suffixes. TLDs
include Global Top Level Domains (gTLDs) like .com and .net; Country Top Level
Domains (ccTLDs) like .de and .cn; and Brand Top Level Domains like .apple and
.google. Brand TLDs allows users to register their own top level domain that
exist at the same level as ICANN's gTLDs. Brand TLDs are sometimes referred to
as Vanity Domains.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoyocto-uninative: Correct sha256sum for aarch64
Michael Halstead [Fri, 14 Dec 2018 23:08:03 +0000 (15:08 -0800)]
yocto-uninative: Correct sha256sum for aarch64

Avoid uninative checksum warnings when building on aarch64 hardware.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/distrodata: Port to use the new recipeutils.get_recipe_upgrade_status...
Richard Purdie [Fri, 14 Dec 2018 18:02:17 +0000 (18:02 +0000)]
oeqa/selftest/distrodata: Port to use the new recipeutils.get_recipe_upgrade_status() function

Rather than use the obsolete do_checkpkg function, use the new recipeutils
function which uses tinfoil to get the data rather than needing csv file
manipulation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/recipeutils: Add a new function to mimic do_checkpkg
Richard Purdie [Fri, 14 Dec 2018 17:45:27 +0000 (17:45 +0000)]
lib/oe/recipeutils: Add a new function to mimic do_checkpkg

The code in distrodata.bbclass related to the do_checkpkg task is rather
dated, has holes in it (ignoring some recipes) and has horrible locking
and csv related issues.

We should use modern APIs such as tinfoil to make the calls we need directly
against bitbake, cutting out the middleman and clarifing the code.

This change imports the bits of distrodata.bbclass that are needed by the
automated upgrade helper (AUH) into a standalone function which uses the
tinfoil API. This can then be used by AUH and by the tests in
oeqa/selftest/distrodata as well as by any other standalone script that needs
this functionality. Its likely it can be further improved from here but this is a
good start and appears to function as before, with slightly wider recipe
coverage as some things skipped by distrodata are not skipped here (images,
pieces of gcc, nativesdk only recipes).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers: Clarify/add several entries
Richard Purdie [Thu, 13 Dec 2018 16:21:54 +0000 (16:21 +0000)]
maintainers: Clarify/add several entries

Images were previously missing but are added, this also corrects the names
used for gcc/go/bintuils/gdb recipes and adds a few other misc missing ones
to ensure we have complete coverage of the recipes in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo-crosssdk: PN should use SDK_SYS, not TARGET_ARCH
Richard Purdie [Thu, 13 Dec 2018 14:46:30 +0000 (14:46 +0000)]
go-crosssdk: PN should use SDK_SYS, not TARGET_ARCH

The crosssdk dependencies are handled using the virtual/ namespace so
this name doesn't matter in the general sense. We want to be able to provide
recipe maintainer information through overrides though, so this standardises it
with the behaviour from gcc-crosssdk and ensures the maintainer overrides work.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovulkan: don't fetch from the deprecated repository
Ross Burton [Thu, 13 Dec 2018 15:35:52 +0000 (15:35 +0000)]
vulkan: don't fetch from the deprecated repository

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng-tools: fix compile error for x32
Kai Kang [Thu, 13 Dec 2018 14:14:11 +0000 (09:14 -0500)]
lttng-tools: fix compile error for x32

Fix build error of src/common/utils.c for x32:

| .../src/common/utils.c: Assembler messages:
| .../src/common/utils.c:1026: Error: register type mismatch for `bsr'
| .../src/common/utils.c:1028: Error: operand type mismatch for `movq'
| make[3]: *** [utils.lo] Error 1

[YOCTO #13081]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: fix compile error for x32
Kai Kang [Thu, 13 Dec 2018 14:14:10 +0000 (09:14 -0500)]
systemd: fix compile error for x32

Backport patch to fix systemd compile error for x32:

| ../git/src/timesync/timesyncd-manager.c:607:19: error: format '%lli'
| expects argument of type 'long long int', but argument 11 has type
| 'long int' [-Werror=format=]

[YOCTO #13074]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe-selftest: distrodata: change test_maintainers() to use tinfoil
Paul Eggleton [Thu, 13 Dec 2018 03:46:56 +0000 (16:46 +1300)]
oe-selftest: distrodata: change test_maintainers() to use tinfoil

Use tinfoil to enumerate recipes and get the value of RECIPE_MAINTAINER
to make it a bit more reliable in the face of do_checkpkg issues we are
currently seeing on the Yocto Project autobuilder. This also makes it a
little less painful to re-execute test_maintainers() since you don't
have to wait for bitbake -c checkpkg to complete every time.

Note that the new test has been written in such a way that it will still
function if RECIPE_MAINTAINER values are ever moved to the recipes.
Also, the test still currently fails as there are recipes that don't
have an assigned maintainer.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/utils: Set stderr for host_gcc_version()
Robert Yang [Thu, 13 Dec 2018 03:19:28 +0000 (11:19 +0800)]
lib/oe/utils: Set stderr for host_gcc_version()

Fixed:
$ ln -s /usr/bin/ccache /folk/lyang1/bin/gcc
$ rm -fr tmp/hosttools/ && bitbake -p
[snip]
ERROR: Error running gcc  --version:

It didn't print the error message, now it is:
ERROR: Error running gcc  --version: ccache: error: Could not find compiler "gcc" in PATH

For the error itself, it is because ccache is not in my HOSTTOOLS, so this is
an expected error.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: add package specific skips to sstate hash
Michael Ho [Thu, 29 Nov 2018 12:21:37 +0000 (14:21 +0200)]
insane.bbclass: add package specific skips to sstate hash

The bbclass currently adds INSANE_SKIP to the sstate hash dependencies
however the package specific skips such as INSANE_SKIP_${PN} are
not added automatically because of how the class references them.

This causes the problem that modifying INSANE_SKIP_${PN} does not
invalidate the sstate cache and can mask build breaking warnings.

Add an anonymous python snippet to explicitly include these additional
relevant skips to the sstate hash.

Singed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake.bbclass: append includedir to implicit include dirs
Michael Ho [Thu, 29 Nov 2018 12:21:35 +0000 (14:21 +0200)]
cmake.bbclass: append includedir to implicit include dirs

This resolves issues with paths being marked as system includes that
differ from /usr/include but are considered implicit by the toolchain.
This enables developers to add directories to system includes
to supress compiler compiler warnings from them.

Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Cc: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: rewrite cpio test
Ross Burton [Tue, 11 Dec 2018 23:26:36 +0000 (23:26 +0000)]
oeqa/sdk: rewrite cpio test

Don't use the helper class as it gets in the way more than it helps, exercise
the out-of-tree paths, and verify the installed files match the expected
architecture.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: rewrite lzip test
Ross Burton [Tue, 11 Dec 2018 23:26:35 +0000 (23:26 +0000)]
oeqa/sdk: rewrite lzip test

Don't use the helper class as it gets in the way more than it helps, exercise
the out-of-tree paths, and verify the installed files match the expected
architecture.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: clean up galculator test
Ross Burton [Tue, 11 Dec 2018 23:26:34 +0000 (23:26 +0000)]
oeqa/sdk: clean up galculator test

Drop redundant imports and variables, and use os.makedirs() instead of
bb.utils.mkdirhier().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: show output if run() fails
Ross Burton [Tue, 11 Dec 2018 23:26:33 +0000 (23:26 +0000)]
oeqa/sdk: show output if run() fails

Use oeqa.utils.subprocesstweak to monkey-patch the subprocess exception so that
any output is shown, and remove any explicit try/catch handling that would have
hidden this.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: clarify ELF assertion message
Ross Burton [Tue, 11 Dec 2018 23:26:32 +0000 (23:26 +0000)]
oeqa/sdk: clarify ELF assertion message

For example, instead of saying "3 != 62", say "Binary was x86-64 but expected
i586".

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-libc-headers: Fix build failure by using fixed temporary file instead of pipe
He Zhe [Wed, 21 Nov 2018 14:06:05 +0000 (22:06 +0800)]
linux-libc-headers: Fix build failure by using fixed temporary file instead of pipe

This is a workaround for the following possible build failure.

*** Compiler lacks asm-goto support.. Stop.

When building linux-libc-headers we need to use binutils on build machine.
binutils v2.31 introduces a bug that could cause scripts/gcc-goto.sh to fail
when running in an environment where /tmp is rarely used, e.g. in docker.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowebkitgtk: Link compiler-rt for clang specific built-ins
Khem Raj [Mon, 10 Dec 2018 23:52:07 +0000 (15:52 -0800)]
webkitgtk: Link compiler-rt for clang specific built-ins

When using clang, its increasingly using its own runtime which means
libgcc is not enough to find all primitives its using.

Fixes errors like
recipe-sysroot/usr/lib/libwebkit2gtk-4.0.so: undefined reference to
`__mulodi4'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: BPF objects may mismatch in endianness and bitness too
Khem Raj [Mon, 10 Dec 2018 23:52:06 +0000 (15:52 -0800)]
insane.bbclass: BPF objects may mismatch in endianness and bitness too

This ensures that bitness and endianness is ignored for BPF objects
Fixes QA issues like

Bit size did not match (32 to 64) kernel-selftest on
/work/qemumips-yoe-linux/kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/bpf/test_btf_nokv.o

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolzip: clean up recipe
Ross Burton [Tue, 11 Dec 2018 10:49:07 +0000 (10:49 +0000)]
lzip: clean up recipe

Use cleandirs to ensure ${B} is always empty, and remove redundant assignment of
EXTRA_OEMAKE (presumably from when it had a non-empty default).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocurl: Add PACKAGECONFIG to enable NSS support
Otavio Salvador [Tue, 11 Dec 2018 13:21:09 +0000 (11:21 -0200)]
curl: Add PACKAGECONFIG to enable NSS support

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest/package: Correct format arguments in test_gdb_hardlink_debug
Ola x Nilsson [Tue, 11 Dec 2018 11:33:57 +0000 (12:33 +0100)]
selftest/package: Correct format arguments in test_gdb_hardlink_debug

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss: fix Upstream-Status format
Ross Burton [Mon, 10 Dec 2018 17:11:38 +0000 (17:11 +0000)]
nss: fix Upstream-Status format

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoliberror-perl: upgrade 0.17026 -> 0.17027
Tim Orling [Sun, 9 Dec 2018 21:43:22 +0000 (13:43 -0800)]
liberror-perl: upgrade 0.17026 -> 0.17027

* add RDEPENDS
* add RDEPENDS for ptest
  - tested on qemux86 with glibc and musl
* drop do_compile, not obvious why LIBC needed to be set
* Added HOMEPAGE:
  https://bitbucket.org/shlomif/perl-error.pm
  - Repository used to be github.com/shlomif (deadlink)

Upstream release notes:
"""
0.17027         2018-10-28
- Documentation and examples enhancements.
  - https://bitbucket.org/shlomif/perl-error.pm/pull-requests/1/october-prc-some-minor-mostly-doc-changes/diff
  - Thanks to https://metacpan.org/author/JMERELO .
"""

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreate_manifest2: Dont match filenames which contain the directory name for new manifest
Alejandro Enedino Hernandez Samaniego [Sat, 8 Dec 2018 01:31:56 +0000 (17:31 -0800)]
create_manifest2: Dont match filenames which contain the directory name for new manifest

When creating a new python2 manifest, there is a corner case on which
the filepath for a certain dependency that was found, could contain
the path of an existing folder, e.g. ${libdir}/python2.7/xmlrpclib.py
module path contains ${libdir}/python2.7/xml, this causes an issue where
the dependency doesnt get eventually added on FILES for that module.

This patch checks if the dependency that was found is a directory, if it
is, it checks if it matches one of the existing directories on the
manifest, if it is not, then it checks if the dependency's path (without
the filename) matches one of the directories.

Also some misc indentation fixes.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomdadm: Drop redundant patches and fix build with clang
Khem Raj [Sat, 8 Dec 2018 20:56:02 +0000 (12:56 -0800)]
mdadm: Drop redundant patches and fix build with clang

Several patches were being applied unnecessarily, the purpose they
served at one point has either been fixed differently, or accepted
upstream.

Add a new patch to make clang's diagnostics happy

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreate_manifest3: Dont match filenames which contain the directory name for new manifest
Alejandro Enedino Hernandez Samaniego [Sat, 8 Dec 2018 01:33:46 +0000 (17:33 -0800)]
create_manifest3: Dont match filenames which contain the directory name for new manifest

When creating a new python3 manifest, there is a corner case on which
the filepath for a certain dependency that was found, could contain
the path of an existing folder, e.g. ${libdir}/python3/xmlrpclib.py
module path contains ${libdir}/python3/xml, this causes an issue where
the dependency doesnt get eventually added on FILES for that module.

This patch checks if the dependency that was found is a directory, if it
is, it checks if it matches one of the existing directories on the
manifest, if it is not, then it checks if the dependency's path (without
the filename) matches one of the directories.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonfs-utils: Fix build with clang
Khem Raj [Sat, 8 Dec 2018 10:26:38 +0000 (02:26 -0800)]
nfs-utils: Fix build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson.bbclass: map mips64el TARGET_ARCH to mips64 for the cross file
Andrea Adami [Fri, 7 Dec 2018 23:23:23 +0000 (00:23 +0100)]
meson.bbclass: map mips64el TARGET_ARCH to mips64 for the cross file

Meson uses 'mips64' for both big- and little-endian MIPS64 machines,
so map mips64el to mips64.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk/galculator: rewrite to use new helpers
Ross Burton [Fri, 7 Dec 2018 21:26:05 +0000 (21:26 +0000)]
oeqa/sdk/galculator: rewrite to use new helpers

6 years agooeqa/sdk/python: fix version typo
Ross Burton [Fri, 7 Dec 2018 21:25:18 +0000 (21:25 +0000)]
oeqa/sdk/python: fix version typo

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooeqa/sdk/assimp: use helpers
Ross Burton [Fri, 7 Dec 2018 21:25:00 +0000 (21:25 +0000)]
oeqa/sdk/assimp: use helpers

6 years agooeqa/sdk/case: add fundamental helper methods
Ross Burton [Fri, 7 Dec 2018 21:24:42 +0000 (21:24 +0000)]
oeqa/sdk/case: add fundamental helper methods

6 years agoavahi: avoid depending on skipped package
Jens Rehsack [Wed, 28 Nov 2018 08:15:30 +0000 (09:15 +0100)]
avahi: avoid depending on skipped package

When built without D-Bus, libavahi-client is not build:
  Building libavahi-client:           no   (You need avahi-daemon and D-Bus!)
which causes avahi-dev RDEPENDS failing when creating an image
containing development-tools:
 *   - nothing provides libavahi-client = 0.7-r0 needed by avahi-dev-0.7-r0.cortexa8hf-neon

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agouboot-sign.bbclass: fix signature and deployment
Robert Yang [Fri, 30 Nov 2018 02:26:14 +0000 (10:26 +0800)]
uboot-sign.bbclass: fix signature and deployment

Fixed:
MACHINE = "beaglebone-yocto"
KERNEL_CLASSES += "kernel-fitimage"
KERNEL_IMAGETYPE_beaglebone-yocto = "fitImage"
UBOOT_MACHINE_beaglebone-yocto = "am335x_boneblack_vboot_config"
UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb -p 2000"
UBOOT_SIGN_KEYDIR = "${TOPDIR}/conf"
UBOOT_SIGN_KEYNAME = "dev"
UBOOT_SIGN_ENABLE = "1"
IMAGE_INSTALL_remove = "kernel-image-zimage"

$ cd conf
$ openssl genrsa -F4 -out dev.key 2048
$ openssl req -batch -new -x509 -key dev.key -out dev.crt
$ cd ../
$ bitbake u-boot linux-yocto
$ grep signature tmp/deploy/images/beaglebone-yocto/*.dtb
Binary file tmp/deploy/images/beaglebone-yocto/u-boot-beaglebone-yocto-2018.07-r0.dtb matches
Binary file tmp/deploy/images/beaglebone-yocto/u-boot-beaglebone-yocto.dtb matches
Binary file tmp/deploy/images/beaglebone-yocto/u-boot.dtb matches

And there would be no signature info when rebuild from sstate:
$ bitbake u-boot linux-yocto -cclean
$ bitbake u-boot linux-yocto
$ grep signature tmp/deploy/images/beaglebone-yocto/*.dtb
No result

This s because kernel directly edit ${DEPLOY_DIR_IMAGE}/u-boot.dtb, (Note, it
is global ${DEPLOY_DIR_IMAGE}, not recipe's DEPLOYDIR), so that the modified
info is not in sstate, and would be lost when rebuild from sstate.

There are other problems in previouse code:
- The u-boot.dtb is provided by u-boot, but edited by kernel during signing, so
  it should be deployed by kernel rather than u-boot.

- The u-boot.do_concat_dtb directly install files to global ${DEPLOY_DIR_IMAGE},
  this is incorrect, the ${DEPLOY_DIR_IMAGE} should be installed by do_deploy.

- It seems that it assumes do_deploy depends on do_install according the comments,
  but they have no relationships:
  # do_concat_dtb is scheduled _before_ do_install as it overwrite the
  # u-boot.bin in both DEPLOYDIR and DEPLOY_IMAGE_DIR.

- The do_concat_dtb should be run after do_compile, but it doesn't have this
  dependency.

Make u-boot install u-boot.dtb to ${datadir}, kernel copies u-boot.dtb from
${STAGING_DATADIR} to ${B} and deploy it can fix the problem.

[YOCTO #12112]

Reported-by: Christian Andersen <c.andersen@kostal.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostrace: fix ptest fail and strip ptest host references
Changqing Li [Wed, 5 Dec 2018 09:42:26 +0000 (17:42 +0800)]
strace: fix ptest fail and strip ptest host references

1. Add LDFLAGS_FOR_BUILD for strip host reference
2. Revert one previous replace operation for fix ptest fail.
   refer oe commit: 74b5088f1cc1708db43c33ac2dc7f01f4a4db9c1

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agou-boot-tools: fix compile error
Kai Kang [Fri, 30 Nov 2018 01:58:22 +0000 (20:58 -0500)]
u-boot-tools: fix compile error

It uses sandbox_defconfig to produce u-boot tools. But EFI is only
supported by arm and x86, then it fails to run task do_compile on other
arches:

| include/config_distro_bootcmd.h:267:3: error: #error "sandbox EFI
| support is only supported on ARM and x86"

Only enable EFI support for u-boot-tools on x86 and arm to fix the issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: improve reproducibility with multilib
Hongxu Jia [Thu, 6 Dec 2018 08:56:15 +0000 (16:56 +0800)]
glibc: improve reproducibility with multilib

Multilib builds specify several loaders which will end up embedded in
some binaries or script files. To support reproducible builds, we must
ensure the loaders are always in deterministic order.

[YOCTO #2655]
[YOCTO #12478]
[YOCTO #12480]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Improve the fix and rebase it to 2.28

Here is the log of lib32-glibc
[log.do_compile]
|Adjust ldd script
|ldd "/lib64/ld-linux-x86-64.so.2 /lib/ld-linux.so.2 /lib/ld-linux.so.2
/lib64/ld-linux-x86-64.so.2" -> "/lib/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2"
[log.do_compile]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorecipeutils-test: Add missing LIC_FILES_CHKSUM
Khem Raj [Thu, 6 Dec 2018 00:33:55 +0000 (16:33 -0800)]
recipeutils-test: Add missing LIC_FILES_CHKSUM

Fixes
ERROR: QA Issue: recipeutils-test: Recipe file fetches files and does
not have license file information (LIC_FILES_CHKSUM) [license-checksum]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibunwind: Enable building static archive on musl
Khem Raj [Thu, 6 Dec 2018 00:07:49 +0000 (16:07 -0800)]
libunwind: Enable building static archive on musl

This ensures that we have .a for libunwind on musl targets, this is used
for stack unwinding infra e.g. in rust

Help compiling rust compiler and standard library from meta-rust

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel: don't assign the build user/host
Federico Sauter [Wed, 5 Dec 2018 14:22:32 +0000 (14:22 +0000)]
kernel: don't assign the build user/host

The KBUILD_BUILD_USER and KBUILD_BUILD_HOST variables were
assigned at the kernel class level, which made it impossible
to override them in the local configuration.

By setting only the default values of those variables in the
kernel class, it is now possible to override them as expected.

Signed-off-by: Federico Sauter <federico.sauter@ableton.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/runcmd: Increase timeout delta
Richard Purdie [Thu, 29 Nov 2018 10:28:34 +0000 (10:28 +0000)]
oeqa/selftest/runcmd: Increase timeout delta

Expecting 1s accuracy on a 2s timeout on a heavily loaded system has proven to be
unreliable. Update this to a 5s timeout with a 3s delta which should be achievable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage-buildinfo: Remove unused function argument
Joshua Watt [Tue, 4 Dec 2018 03:42:45 +0000 (21:42 -0600)]
image-buildinfo: Remove unused function argument

Removes the listvars argument to image_buildinfo_outputvars(). It
doesn't appear that this argument ever did anything.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-fitimage: Replace tabs with spaces in python
Alex Kiernan [Fri, 7 Dec 2018 10:31:07 +0000 (10:31 +0000)]
kernel-fitimage: Replace tabs with spaces in python

Fix:

  WARNING: python should use 4 spaces indentation, but found tabs in kernel-fitimage.bbclass, line 24

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/context: ensure log directory exists
Chen Qi [Fri, 7 Dec 2018 06:43:07 +0000 (14:43 +0800)]
oeqa/selftest/context: ensure log directory exists

Ensure log directory exists to avoid the following error.

  FileNotFoundError: [Errno 2] No such file or directory: '/.../build-selftest/tmp/log/oe-selftest-results-20181207043431.log'

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobinutils: Fix build with clang
Khem Raj [Fri, 7 Dec 2018 03:12:33 +0000 (19:12 -0800)]
binutils: Fix build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibart-lgpl: remove
Ross Burton [Thu, 6 Dec 2018 23:40:13 +0000 (23:40 +0000)]
libart-lgpl: remove

This is very dead, and nothing in oe-core or meta-oe depends on it anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: Cleanup deprecated function usage
Richard Purdie [Fri, 7 Dec 2018 00:05:26 +0000 (00:05 +0000)]
bitbake.conf: Cleanup deprecated function usage

This function was moved in bitbake a long time ago, use the
preferred version to avoid a Deprecation warning.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses: Correctly markup regex strings
Richard Purdie [Fri, 7 Dec 2018 00:04:50 +0000 (00:04 +0000)]
classes: Correctly markup regex strings

There are various escape characters in these stings which python warns
about so use the correct regex markup for them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/esdk: Ensure parent directory exists
Richard Purdie [Thu, 6 Dec 2018 14:06:34 +0000 (14:06 +0000)]
oeqa/selftest/esdk: Ensure parent directory exists

INFO - ======================================================================
INFO - ERROR: setUpClass (eSDK.oeSDKExtSelfTest)
INFO - ----------------------------------------------------------------------
INFO - Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/core/case.py", line 32, in _oeSetUpClass
    clss.setUpClassMethod()
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/eSDK.py", line 76, in setUpClass
    cls.tmpdirobj = tempfile.TemporaryDirectory(prefix="selftest-esdk-", dir=bb_vars["WORKDIR"])
  File "/usr/lib/python3.5/tempfile.py", line 929, in __init__
    self.name = mkdtemp(suffix, prefix, dir)
  File "/usr/lib/python3.5/tempfile.py", line 507, in mkdtemp
    _os.mkdir(file, 0o700)
FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-worker/oe-selftest-debian/build/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/selftest-esdk-q7ln84gc'

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/esdk: Fix typo causing test failure
Richard Purdie [Thu, 6 Dec 2018 23:25:49 +0000 (23:25 +0000)]
oeqa/selftest/esdk: Fix typo causing test failure

2018-12-06 23:19:24,564 - oe-selftest - INFO - Traceback (most recent call last):
  File "/media/build1/poky-sumo/meta/lib/oeqa/core/case.py", line 32, in _oeSetUpClass
    clss.setUpClassMethod()
  File "/media/build1/poky-sumo/meta/lib/oeqa/selftest/cases/eSDK.py", line 78, in setUpClass
    cls.tmpdir_eSDKQA = cls.tempdirobj.name
AttributeError: type object 'oeSDKExtSelfTest' has no attribute 'tempdirobj'

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotcl: Upgrade to 8.6.9
Hong Liu [Wed, 5 Dec 2018 01:21:32 +0000 (09:21 +0800)]
tcl: Upgrade to 8.6.9

Upgrade tcl from 8.6.8 to 8.6.9.

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoat: upgrade to 3.1.23
Chen Qi [Wed, 5 Dec 2018 08:40:46 +0000 (16:40 +0800)]
at: upgrade to 3.1.23

The following patches are rebased.

  fix_parallel_build_error.patch
  pam.conf.patch

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosysstat: upgrade to 12.1.1
Chen Qi [Wed, 5 Dec 2018 08:40:45 +0000 (16:40 +0800)]
sysstat: upgrade to 12.1.1

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocups: upgrade to 2.2.9
Chen Qi [Wed, 5 Dec 2018 08:40:44 +0000 (16:40 +0800)]
cups: upgrade to 2.2.9

The following patch is rebased.

  0001-don-t-try-to-run-generated-binaries.patch

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosudo: upgrade to 1.8.26
Chen Qi [Wed, 5 Dec 2018 08:40:43 +0000 (16:40 +0800)]
sudo: upgrade to 1.8.26

License-Update: include more files to check, but license remains the same.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackages: respect PACKAGE_NO_GCONV
Kai Kang [Wed, 5 Dec 2018 13:00:56 +0000 (08:00 -0500)]
packages: respect PACKAGE_NO_GCONV

PACKAGE_NO_GCONV is set in libc-package.bbclass if not all of
'libc-charsets libc-locale-code libc-locales' included in
DISTRO_FEATURES. And then no packages glibc-gconv-* glibc-charmap-* and
glibc-localedata-* is created. Update recipes and conf file which depend
on these packages to check required distro features.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage.bbclass: respect PACKAGE_NO_GCONV
Kai Kang [Wed, 5 Dec 2018 13:00:55 +0000 (08:00 -0500)]
image.bbclass: respect PACKAGE_NO_GCONV

It installs locale-base-* packages according to var IMAGE_LINGUAS.
Packages locale-base-* are split in libc-package.bbclass if variable
PACKAGE_NO_GCONV is not set. When none of ditro features libc-charsets
libc-locales and libc-locale-code is set, PACKAGE_NO_GCONV is set. Then
no locale-base-* is created and fails to create image.

Clear IMAGE_LINGUAS in such situation.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc-locale: fix installed-vs-shipped qa issue
Kai Kang [Wed, 5 Dec 2018 13:00:54 +0000 (08:00 -0500)]
glibc-locale: fix installed-vs-shipped qa issue

Variable PACKAGE_NO_GCONV is set in libc-package.bbclass when none of
libc-charsets, libc-locales and libc-locale-code set in DISTRO_FEATURES.
Then it causes installed-vs-shipped qa issue of glibc-locale:

| ERROR: glibc-locale-2.28-r0 do_package: QA Issue: glibc-locale:
| Files/directories were installed but not shipped in any package:
|   /usr/share/i18n
|   /usr/share/i18n/charmaps
|   /usr/share/i18n/locales
|   /usr/share/i18n/charmaps/CP737.gz
|   ...
|   /usr/share/i18n/locales/ru_RU
|   ...
|   /usr/lib64/gconv/gconv-modules
| Please set FILES such that these items are packaged. Alternatively if they
| are unneeded, avoid installing them or delete them within do_install.
| glibc-locale: 843 installed and not shipped files. [installed-vs-shipped]

So check PACKAGE_NO_GCONV during do_install and not copy those files if
PACKAGE_NO_GCONV has been set.

Simplify call of bb.utils.contains() in libc-package.bbclass as well.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoautoconf-doc: improve reproducibility
Hongxu Jia [Wed, 5 Dec 2018 02:11:48 +0000 (10:11 +0800)]
autoconf-doc: improve reproducibility

autoconf-doc package contains autoconf.info.
This file contains date when this file was created, i.e:

     "This manual (31 January 2018) .."

Therefore, two builds done on two different days will show different dates for
otherwise identical files, hence breaking reproducibility.
The date is obtained from mtime of "autoconf.texi", unfortunately we patch this
file and change the mtime as a consequence.
We restore reproducibility by removing the patch modifying "autoconf.texi".
As a consequence certain supplemental information will be not added to the documentation.
In particular:  more details on usage, and on workarounds for non-updated projects.

[YOCTO #12524]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
With applying this fix:

    "This manual (24 April 2012) .."

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/waf: Fix builds when B != S
Joshua Watt [Sat, 1 Dec 2018 03:01:42 +0000 (21:01 -0600)]
classes/waf: Fix builds when B != S

Waf requires that the current working directory be ${S} (the location of
the wscript) when building. Most of the time, this was true only because
B defaults to S. However, anything that changed that behavior (notably,
using externalsrc) would break the recipe. Remedy this by explicitly
changing cwd to ${S} when running waf commands. As a happy side effect,
B can be set up for "out of tree" builds to keep the source directory
clean.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agouboot-sign.bbclass: Remove tab indentations in python code
Robert Yang [Fri, 23 Nov 2018 11:08:41 +0000 (19:08 +0800)]
uboot-sign.bbclass: Remove tab indentations in python code

Use 4 spaces to replace a tab.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/esdk: run selftest inside workdir not /tmp
Ross Burton [Mon, 3 Dec 2018 20:35:15 +0000 (20:35 +0000)]
oeqa/selftest/esdk: run selftest inside workdir not /tmp

We've seen issues with rootfs size calculations and we've seen systems
like opensuse which have btrfs mounted on /tmp causing selftest failures.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa: don't litter /tmp with temporary directories
Ross Burton [Mon, 3 Dec 2018 20:35:14 +0000 (20:35 +0000)]
oeqa: don't litter /tmp with temporary directories

If we need to create a temporary directory in targetbuild or buildproject use
tempfile.TemporaryDirectory so that when the test case is finished, the
directory is deleted.

Also synchronise the logic and don't possibly store the temporary directory in
self.tmpdir as nothing uses that.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: Avoid tracebacks on closed files
Richard Purdie [Sun, 2 Dec 2018 11:23:17 +0000 (11:23 +0000)]
oeqa/utils/qemurunner: Avoid tracebacks on closed files

Reorder the shutdown/teardown to avoid:

  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/utils/qemurunner.py", line 224, in launch
    op = self.getOutput(output)
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/utils/qemurunner.py", line 90, in getOutput
    fl = fcntl.fcntl(o, fcntl.F_GETFL)
ValueError: I/O operation on closed file

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>