CHROMIUM: Merge 'v4.14.127' into release-R73-11647.B-chromeos-4.14

Merge of v4.14.127 into release-R73-11647.B-chromeos-4.14

Conflicts:
    drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

Changelog:
----------------------------------------------------------------
Alex Deucher (1):
      drm/amdgpu/psp: move psp version specific function pointers to early_init

Amit Kucheria (1):
      drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER

Andrey Smirnov (9):
      ARM: dts: imx51: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
      ARM: dts: imx50: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
      ARM: dts: imx53: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
      ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ahb" clock to SDMA
      ARM: dts: imx7d: Specify IMX7D_CLK_IPG as "ipg" clock to SDMA
      ARM: dts: imx6ul: Specify IMX6UL_CLK_IPG as "ipg" clock to SDMA
      ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ipg" clock to SDMA
      ARM: dts: imx6qdl: Specify IMX6QDL_CLK_IPG as "ipg" clock to SDMA
      gpio: vf610: Do not share irq_chip

Andy Shevchenko (1):
      dmaengine: idma64: Use actual device for DMA transfers

Arnd Bergmann (1):
      ARM: prevent tracing IPI_CPU_BACKTRACE

Ben Skeggs (1):
      drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration

Binbin Wu (1):
      mfd: intel-lpss: Set the device in reset state when init

Chao Yu (4):
      f2fs: fix to avoid panic in do_recover_data()
      f2fs: fix to clear dirty inode in error path of f2fs_iget()
      f2fs: fix to avoid panic in dec_valid_block_count()
      f2fs: fix to do sanity check on valid block count of segment

Chris Wilson (1):
      drm/i915: Fix I915_EXEC_RING_MASK

Christian Brauner (1):
      sysctl: return -EINVAL if val violates minmax

Christian König (1):
      drm/radeon: prefer lower reference dividers

Christoph Vogtländer (1):
      pwm: tiehrpwm: Update shadow register for disabling PWMs

Cyrill Gorcunov (1):
      kernel/sys.c: prctl: fix false positive in validate_prctl_map()

Dan Carpenter (2):
      genwqe: Prevent an integer overflow in the ioctl
      test_firmware: Use correct snprintf() limit

Daniel Drake (1):
      drm/i915/fbc: disable framebuffer compression on GeminiLake

Daniel Gomez (1):
      mfd: tps65912-spi: Add missing of table registration

Dave Airlie (1):
      drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)

David Ahern (2):
      neighbor: Call __ipv4_neigh_lookup_noref in neigh_xmit
      ipv4: Define __ipv4_neigh_lookup_noref when CONFIG_INET is disabled

Dennis Zhou (1):
      percpu: do not search past bitmap when allocating an area

Douglas Anderson (2):
      clk: rockchip: Turn on "aclk_dmac1" for suspend on rk3288
      soc: rockchip: Set the proper PWM for rk3288

Enrico Granata (1):
      platform/chrome: cros_ec_proto: check for NULL transfer function

Erez Alfasi (1):
      net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query

Eric Dumazet (5):
      tcp: reduce tcp_fastretrans_alert() verbosity
      tcp: limit payload size of sacked skbs
      tcp: tcp_fragment() should apply sane memory limits
      tcp: add tcp_min_snd_mss sysctl
      tcp: enforce tcp_min_snd_mss in tcp_mtu_probing()

Farhan Ali (1):
      vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING"

Georg Hofmann (1):
      watchdog: imx2_wdt: Fix set_timeout for big timeout values

Greg Kroah-Hartman (7):
      Revert "fib_rules: fix error in backport of e9919a24d302 ("fib_rules: return 0...")"
      Revert "MIPS: perf: ath79: Fix perfcount IRQ assignment"
      Linux 4.14.125
      Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections"
      Revert "drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)"
      Linux 4.14.126
      Linux 4.14.127

Guenter Roeck (1):
      Merge remote-tracking branch 'origin/linux/v4.14.127' into merge/release-R73-11647.B-chromeos-4.14-v4.14.127

Hangbin Liu (1):
      Revert "fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied"

Hans de Goede (1):
      usb: typec: fusb302: Check vconn is off when we start toggling

Helen Koike (1):
      drm: don't block fb changes for async plane updates

Hou Tao (1):
      fs/fat/file.c: issue flush after the writeback of FAT

J. Bruce Fields (1):
      nfsd: allow fh_want_write to be called twice

Jiada Wang (1):
      thermal: rcar_gen3_thermal: disable interrupt in .remove

Jiri Kosina (1):
      x86/power: Fix 'nosmt' vs hibernation triple fault during resume

Jiri Slaby (1):
      TTY: serial_core, add ->install

John David Anglin (1):
      parisc: Use implicit space register selection for loading the coherence index of I/O pdirs

John Sperbeck (1):
      percpu: remove spurious lock dependency between percpu and sched

Jorge Ramirez-Ortiz (1):
      nvmem: core: fix read buffer in place

Josh Poimboeuf (1):
      objtool: Don't use ignore flag for fake jumps

Junxiao Chang (1):
      platform/x86: intel_pmc_ipc: adding error handling

Jérôme Glisse (1):
      mm/hmm: select mmu notifier when selecting HMM

Kangjie Lu (5):
      rapidio: fix a NULL pointer dereference when create_workqueue() fails
      PCI: rcar: Fix a potential NULL pointer dereference
      video: hgafb: fix potential NULL pointer dereference
      video: imsttfb: fix potential NULL pointer dereferences
      PCI: xilinx: Check for __get_free_pages() failure

Kees Cook (3):
      pstore: Remove needless lock during console writes
      pstore: Convert buf_lock to semaphore
      pstore/ram: Run without kernel crash dump region

Keith Busch (1):
      nvme-pci: unquiesce admin queue on shutdown

Kirill Smelkov (3):
      fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
      fuse: Add FOPEN_STREAM to use stream_open()
      fuse: retrieve: cap requested size to negotiated max_write

Kishon Vijay Abraham I (2):
      misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test
      PCI: keystone: Prevent ARM32 specific code to be compiled for ARM64

Kristian Evensen (1):
      qmi_wwan: Add quirk for Quectel dynamic config

Krzysztof Kozlowski (1):
      ARM: dts: exynos: Always enable necessary APIO_1V8 and ABB_1V8 regulators on Arndale Octa

Li Rongqing (1):
      ipc: prevent lockup on alloc_msg and free_msg

Linus Torvalds (1):
      rcu: locking and unlocking need to always be at least barriers

Linxu Fang (1):
      mem-hotplug: fix node spanned pages when we have a node with only ZONE_MOVABLE

Lu Baolu (1):
      iommu/vt-d: Set intel_iommu_gfx_mapped correctly

Ludovic Barre (1):
      mmc: mmci: Prevent polling for busy detection in IRQ context

Maciej Żenczykowski (1):
      uml: fix a boot splat wrt use of cpu_all_mask

Marek Szyprowski (1):
      ARM: exynos: Fix undefined instruction during Exynos5422 resume

Marek Vasut (1):
      PCI: rcar: Fix 64bit MSI message address handling

Martin Blumenstingl (1):
      pwm: meson: Use the spin-lock only to protect register modifications

Matt Redfearn (1):
      drm/bridge: adv7511: Fix low refresh rate selection

Michael Ellerman (1):
      EDAC/mpc85xx: Prevent building as a module

Mike Kravetz (1):
      hugetlbfs: on restore reserve error path retain subpool reservation

Miklos Szeredi (1):
      fuse: fallocate: fix return with locked inode

Ming Lei (1):
      blk-mq: move cancel of requeue_work into blk_mq_release

Miroslav Lichvar (1):
      ntp: Allow TAI-UTC offset to be set to zero

Nathan Chancellor (1):
      soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher

Neil Horman (1):
      Fix memory leak in sctp_process_init

Olivier Matz (2):
      ipv6: fix EFAULT on sendto with icmpv6 and hdrincl
      ipv6: use READ_ONCE() for inet->hdrincl as in ipv4

Paolo Abeni (1):
      pktgen: do not sleep with the thread lock held.

Paolo Valente (1):
      block, bfq: increase idling for weight-raised queues

Patrik Jakobsson (1):
      drm/gma500/cdv: Check vbt config bits when detecting lvds panels

Paul Burton (2):
      MIPS: Bounds check virt_addr_valid
      MIPS: pistachio: Build uImage.gz by default

Phong Hoang (1):
      pwm: Fix deadlock warning when removing PWM device

Qian Cai (1):
      mm/slab.c: fix an infinite loop in leaks_show()

Robert Hancock (1):
      i2c: xiic: Add max_read_len quirk

Russell King (1):
      net: sfp: read eeprom in maximum 16 byte increments

Stephane Eranian (1):
      perf/x86/intel: Allow PEBS multi-entry in watermark mode

Sven Van Asbroeck (1):
      power: supply: max14656: fix potential use-before-alloc

Takashi Iwai (2):
      ALSA: hda - Register irq handler after the chip initialization
      ALSA: seq: Cover unsubscribe_port() in list_mutex

Tony Lindgren (2):
      mfd: twl6040: Fix device init errors for ACCCTL register
      gpio: gpio-omap: add check for off wake capable gpios

Tyrel Datwyler (1):
      PCI: rpadlpar: Fix leaked device_node references in add/remove paths

Vivien Didelot (1):
      ethtool: fix potential userspace buffer overflow

Vladimir Zapolskiy (1):
      watchdog: fix compile time error of pretimeout governors

Wenwen Wang (1):
      x86/PCI: Fix PCI IRQ routing table memory leak

Xin Long (1):
      ipv6: fix the check before getting the cookie in rt6_get_cookie

Yue Hu (3):
      mm/cma.c: fix crash on CMA allocation if bitmap allocation fails
      mm/cma.c: fix the bitmap status to show failed allocation reason
      mm/cma_debug.c: fix the break condition in cma_maxchunk_get()

YueHaibing (1):
      configfs: fix possible use-after-free in configfs_register_group

Yunsheng Lin (1):
      ethtool: check the return value of get_regs_len

Zhu Yanjun (1):
      net: rds: fix memory leak in rds_ib_flush_mr_pool

 Documentation/networking/ip-sysctl.txt           |   8 +
 Makefile                                         |   2 +-
 arch/arm/boot/dts/exynos5420-arndale-octa.dts    |   2 +
 arch/arm/boot/dts/imx50.dtsi                     |   2 +-
 arch/arm/boot/dts/imx51.dtsi                     |   2 +-
 arch/arm/boot/dts/imx53.dtsi                     |   2 +-
 arch/arm/boot/dts/imx6qdl.dtsi                   |   2 +-
 arch/arm/boot/dts/imx6sl.dtsi                    |   2 +-
 arch/arm/boot/dts/imx6sx.dtsi                    |   2 +-
 arch/arm/boot/dts/imx6ul.dtsi                    |   2 +-
 arch/arm/boot/dts/imx7s.dtsi                     |   4 +-
 arch/arm/include/asm/hardirq.h                   |   1 +
 arch/arm/kernel/smp.c                            |   6 +-
 arch/arm/mach-exynos/suspend.c                   |  19 ++
 arch/mips/ath79/setup.c                          |   6 +
 arch/mips/mm/mmap.c                              |   5 +
 arch/mips/pistachio/Platform                     |   1 +
 arch/powerpc/kernel/nvram_64.c                   |   2 -
 arch/um/kernel/time.c                            |   2 +-
 arch/x86/events/intel/core.c                     |   2 +-
 arch/x86/pci/irq.c                               |  10 +-
 arch/x86/power/cpu.c                             |  10 +
 arch/x86/power/hibernate_64.c                    |  33 +++
 block/bfq-iosched.c                              |   2 +
 block/blk-core.c                                 |   1 -
 block/blk-mq.c                                   |   2 +
 drivers/acpi/apei/erst.c                         |   1 -
 drivers/clk/rockchip/clk-rk3288.c                |  11 +
 drivers/dma/idma64.c                             |   6 +-
 drivers/dma/idma64.h                             |   2 +
 drivers/edac/Kconfig                             |   4 +-
 drivers/firmware/efi/efi-pstore.c                |   4 +-
 drivers/gpio/gpio-omap.c                         |  25 +-
 drivers/gpio/gpio-vf610.c                        |  26 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c          |  20 +-
 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c     |   6 +-
 drivers/gpu/drm/drm_atomic_helper.c              |  10 +
 drivers/gpu/drm/gma500/cdv_intel_lvds.c          |   3 +
 drivers/gpu/drm/gma500/intel_bios.c              |   3 +
 drivers/gpu/drm/gma500/psb_drv.h                 |   1 +
 drivers/gpu/drm/i915/intel_fbc.c                 |   4 +
 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c    |  11 +-
 drivers/gpu/drm/radeon/radeon_display.c          |   4 +-
 drivers/i2c/busses/i2c-xiic.c                    |   5 +
 drivers/iommu/intel-iommu.c                      |   7 +-
 drivers/irqchip/irq-ath79-misc.c                 |  11 -
 drivers/mfd/intel-lpss.c                         |   3 +
 drivers/mfd/tps65912-spi.c                       |   1 +
 drivers/mfd/twl6040.c                            |  13 +-
 drivers/misc/genwqe/card_dev.c                   |   2 +
 drivers/misc/genwqe/card_utils.c                 |   4 +
 drivers/misc/pci_endpoint_test.c                 |   1 +
 drivers/mmc/host/mmci.c                          |   5 +-
 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c  |   4 +-
 drivers/net/ethernet/mellanox/mlx4/port.c        |   5 -
 drivers/net/phy/sfp.c                            |  24 +-
 drivers/net/usb/qmi_wwan.c                       |  39 ++-
 drivers/nvme/host/pci.c                          |   5 +-
 drivers/nvmem/core.c                             |  15 +-
 drivers/parisc/ccio-dma.c                        |   4 +-
 drivers/parisc/sba_iommu.c                       |   3 +-
 drivers/pci/dwc/pci-keystone.c                   |   4 +
 drivers/pci/host/pcie-rcar.c                     |  10 +-
 drivers/pci/host/pcie-xilinx.c                   |  12 +-
 drivers/pci/hotplug/rpadlpar_core.c              |   4 +
 drivers/platform/chrome/cros_ec_proto.c          |  11 +
 drivers/platform/x86/intel_pmc_ipc.c             |   6 +-
 drivers/power/supply/max14656_charger_detector.c |  14 +-
 drivers/pwm/core.c                               |  10 +-
 drivers/pwm/pwm-meson.c                          |  25 +-
 drivers/pwm/pwm-tiehrpwm.c                       |   2 +
 drivers/pwm/sysfs.c                              |  14 +-
 drivers/rapidio/rio_cm.c                         |   8 +
 drivers/soc/mediatek/mtk-pmic-wrap.c             |   2 +-
 drivers/soc/rockchip/grf.c                       |   2 +
 drivers/spi/spi-pxa2xx.c                         |   7 +-
 drivers/staging/typec/fusb302/fusb302.c          |   2 +
 drivers/thermal/qcom/tsens.c                     |   3 +-
 drivers/thermal/rcar_gen3_thermal.c              |   3 +
 drivers/tty/serial/8250/8250_dw.c                |   4 +-
 drivers/tty/serial/serial_core.c                 |  24 +-
 drivers/vfio/vfio.c                              |  30 +-
 drivers/video/fbdev/hgafb.c                      |   2 +
 drivers/video/fbdev/imsttfb.c                    |   5 +
 drivers/watchdog/Kconfig                         |   1 +
 drivers/watchdog/imx2_wdt.c                      |   4 +-
 drivers/xen/xenbus/xenbus_dev_frontend.c         |   4 +-
 fs/configfs/dir.c                                |  17 +-
 fs/f2fs/f2fs.h                                   |  12 +-
 fs/f2fs/inode.c                                  |   1 +
 fs/f2fs/recovery.c                               |  10 +-
 fs/f2fs/segment.h                                |   3 +-
 fs/fat/file.c                                    |  11 +-
 fs/fuse/dev.c                                    |   2 +-
 fs/fuse/file.c                                   |   6 +-
 fs/nfsd/vfs.h                                    |   5 +-
 fs/open.c                                        |  18 ++
 fs/pstore/platform.c                             |  76 ++---
 fs/pstore/ram.c                                  |  37 ++-
 fs/read_write.c                                  |   5 +-
 include/drm/drm_modeset_helper_vtables.h         |   8 +
 include/linux/cpu.h                              |   4 +
 include/linux/fs.h                               |   4 +
 include/linux/pstore.h                           |   7 +-
 include/linux/pwm.h                              |   5 -
 include/linux/rcupdate.h                         |   6 +-
 include/linux/tcp.h                              |   4 +
 include/net/arp.h                                |   8 +
 include/net/bluetooth/hci_core.h                 |   3 -
 include/net/ip6_fib.h                            |   3 +-
 include/net/netns/ipv4.h                         |   1 +
 include/net/tcp.h                                |   2 +
 include/uapi/drm/i915_drm.h                      |   2 +-
 include/uapi/linux/fuse.h                        |   2 +
 include/uapi/linux/snmp.h                        |   1 +
 ipc/mqueue.c                                     |  10 +-
 ipc/msgutil.c                                    |   6 +
 kernel/cpu.c                                     |   4 +-
 kernel/power/hibernate.c                         |   9 +
 kernel/sys.c                                     |   2 +-
 kernel/sysctl.c                                  |   6 +-
 kernel/time/ntp.c                                |   2 +-
 lib/test_firmware.c                              |  14 +-
 mm/Kconfig                                       |   2 +-
 mm/cma.c                                         |  23 +-
 mm/cma_debug.c                                   |   2 +-
 mm/hugetlb.c                                     |  21 +-
 mm/page_alloc.c                                  |   6 +-
 mm/percpu.c                                      |   9 +-
 mm/slab.c                                        |   6 +-
 net/bluetooth/hci_conn.c                         |   8 -
 net/core/ethtool.c                               |  17 +-
 net/core/fib_rules.c                             |   7 +-
 net/core/neighbour.c                             |   9 +-
 net/core/pktgen.c                                |  11 +
 net/ipv4/proc.c                                  |   1 +
 net/ipv4/sysctl_net_ipv4.c                       |  11 +
 net/ipv4/tcp.c                                   |   1 +
 net/ipv4/tcp_input.c                             |  32 +-
 net/ipv4/tcp_ipv4.c                              |   1 +
 net/ipv4/tcp_output.c                            |  10 +-
 net/ipv4/tcp_timer.c                             |   1 +
 net/ipv6/raw.c                                   |  25 +-
 net/rds/ib_rdma.c                                |  10 +-
 net/sctp/sm_make_chunk.c                         |  13 +-
 net/sctp/sm_sideeffect.c                         |   5 +
 scripts/coccinelle/api/stream_open.cocci         | 363 +++++++++++++++++++++++
 sound/core/seq/seq_ports.c                       |   2 +-
 sound/pci/hda/hda_intel.c                        |   6 +-
 tools/objtool/check.c                            |   8 +-
 150 files changed, 1185 insertions(+), 378 deletions(-)
 create mode 100644 scripts/coccinelle/api/stream_open.cocci

BUG=b:135494242
TEST=Build and test on various affected systems

Change-Id: I0af16fc62708a1f3233f6332c24377570b7fefe2
Signed-off-by: Guenter Roeck <groeck@chromium.org>