1. 12 Oct, 2018 7 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'mtd/fixes-for-4.19-rc8' of git://git.infradead.org/linux-mtd · a291ab2d
      Greg Kroah-Hartman authored
      Boris writes:
        "mdt: fix for 4.19-rc8
      
         * Fix a stack overflow in lib/bch.c"
      
      * tag 'mtd/fixes-for-4.19-rc8' of git://git.infradead.org/linux-mtd:
        lib/bch: fix possible stack overrun
      a291ab2d
    • Greg Kroah-Hartman's avatar
      Merge tag 'drm-fixes-2018-10-12-1' of git://anongit.freedesktop.org/drm/drm · 62d2e531
      Greg Kroah-Hartman authored
      Dave writes:
        "drm fixes for 4.19-rc8
      
         single nouveau runtime reference and mst change"
      
      * tag 'drm-fixes-2018-10-12-1' of git://anongit.freedesktop.org/drm/drm:
        drm/nouveau/drm/nouveau: Grab runtime PM ref in nv50_mstc_detect()
      62d2e531
    • Greg Kroah-Hartman's avatar
      Merge tag 'for-gkh' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · c789174b
      Greg Kroah-Hartman authored
      Doug writes:
        "RDMA fixes:
      
         Final for-rc pull request for 4.19
      
         We only have one bug to submit this time around.  It fixes a DMA
         unmap issue where we unmapped the DMA address from the IOMMU before
         we did from the card, resulting in a DMAR error with IOMMU enabled,
         or possible crash without."
      
      * tag 'for-gkh' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        IB/mlx5: Unmap DMA addr from HCA before IOMMU
      c789174b
    • Greg Kroah-Hartman's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · eb81bfb2
      Greg Kroah-Hartman authored
      Dmitry writes:
        "Input updates for v4.19-rc7
      
         - we added a few scheduling points into various input interfaces to
           ensure that large writes will not cause RCU stalls
         - fixed configuring PS/2 keyboards as wakeup devices on newer
           platforms
         - added a new Xbox gamepad ID."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: uinput - add a schedule point in uinput_inject_events()
        Input: evdev - add a schedule point in evdev_write()
        Input: mousedev - add a schedule point in mousedev_write()
        Input: i8042 - enable keyboard wakeups by default when s2idle is used
        Input: xpad - add support for Xbox1 PDP Camo series gamepad
      eb81bfb2
    • Greg Kroah-Hartman's avatar
      Merge tag 'next-fixes-20181012' of git://git.kernel.org/pub/scm/linux/kernel/git/sfr/next-fixes · 0c53b6a5
      Greg Kroah-Hartman authored
      Stephen writes:
        "A couple of warning fixes:
      
        Two fixes from Peter Oberparleiter <oberpar@linux.ibm.com>:
          Commit 6b7dca40 ("tracing: Allow gcov profiling on only ftrace subsystem")
         uncovered linker problems when using gcov kernel profiling on some
         architectures. These problems were likely introduced earlier, and are
         possibly related to compiler changes."
      
      * tag 'next-fixes-20181012' of git://git.kernel.org/pub/scm/linux/kernel/git/sfr/next-fixes:
        vmlinux.lds.h: Fix linker warnings about orphan .LPBX sections
        vmlinux.lds.h: Fix incomplete .text.exit discards
      0c53b6a5
    • Arnd Bergmann's avatar
      lib/bch: fix possible stack overrun · f0fe77f6
      Arnd Bergmann authored
      The previous patch introduced very large kernel stack usage and a Makefile
      change to hide the warning about it.
      
      From what I can tell, a number of things went wrong here:
      
      - The BCH_MAX_T constant was set to the maximum value for 'n',
        not the maximum for 't', which is much smaller.
      
      - The stack usage is actually larger than the entire kernel stack
        on some architectures that can use 4KB stacks (m68k, sh, c6x), which
        leads to an immediate overrun.
      
      - The justification in the patch description claimed that nothing
        changed, however that is not the case even without the two points above:
        the configuration is machine specific, and most boards  never use the
        maximum BCH_ECC_WORDS() length but instead have something much smaller.
        That maximum would only apply to machines that use both the maximum
        block size and the maximum ECC strength.
      
      The largest value for 't' that I could find is '32', which in turn leads
      to a 60 byte array instead of 2048 bytes. Making it '64' for future
      extension seems also worthwhile, with 120 bytes for the array. Anything
      larger won't fit into the OOB area on NAND flash.
      
      With that changed, the warning can be enabled again.
      
      Only linux-4.19+ contains the breakage, so this is only needed
      as a stable backport if it does not make it into the release.
      
      Fixes: 02361bc7 ("lib/bch: Remove VLA usage")
      Reported-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
      f0fe77f6
    • Greg Kroah-Hartman's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 90ad1841
      Greg Kroah-Hartman authored
      David writes:
        "Networking
      
         1) RXRPC receive path fixes from David Howells.
      
         2) Re-export __skb_recv_udp(), from Jiri Kosina.
      
         3) Fix refcounting in u32 classificer, from Al Viro.
      
         4) Userspace netlink ABI fixes from Eugene Syromiatnikov.
      
         5) Don't double iounmap on rmmod in ena driver, from Arthur
            Kiyanovski.
      
         6) Fix devlink string attribute handling, we must pull a copy into a
            kernel buffer if the lifetime extends past the netlink request.
            From Moshe Shemesh.
      
         7) Fix hangs in RDS, from Ka-Cheong Poon.
      
         8) Fix recursive locking lockdep warnings in tipc, from Ying Xue.
      
         9) Clear RX irq correctly in socionext, from Ilias Apalodimas.
      
         10) bcm_sf2 fixes from Florian Fainelli."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (38 commits)
        net: dsa: bcm_sf2: Call setup during switch resume
        net: dsa: bcm_sf2: Fix unbind ordering
        net: phy: sfp: remove sfp_mutex's definition
        r8169: set RX_MULTI_EN bit in RxConfig for 8168F-family chips
        net: socionext: clear rx irq correctly
        net/mlx4_core: Fix warnings during boot on driverinit param set failures
        tipc: eliminate possible recursive locking detected by LOCKDEP
        selftests: udpgso_bench.sh explicitly requires bash
        selftests: rtnetlink.sh explicitly requires bash.
        qmi_wwan: Added support for Gemalto's Cinterion ALASxx WWAN interface
        tipc: queue socket protocol error messages into socket receive buffer
        tipc: set link tolerance correctly in broadcast link
        net: ipv4: don't let PMTU updates increase route MTU
        net: ipv4: update fnhe_pmtu when first hop's MTU changes
        net/ipv6: stop leaking percpu memory in fib6 info
        rds: RDS (tcp) hangs on sendto() to unresponding address
        net: make skb_partial_csum_set() more robust against overflows
        devlink: Add helper function for safely copy string param
        devlink: Fix param cmode driverinit for string type
        devlink: Fix param set handling for string type
        ...
      90ad1841
  2. 11 Oct, 2018 31 commits
  3. 10 Oct, 2018 2 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'for-4.19/dm-fixes-3' of... · b8db9e69
      Greg Kroah-Hartman authored
      Merge tag 'for-4.19/dm-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Mike writes:
        "device mapper fixes for 4.19 final
      
         - Fix a DM cache module init error path bug that doesn't properly
           cleanup a KMEM_CACHE if target registration fails.
      
         - Two stable@ fixes for DM zoned target; 4.20 will have changes that
           eliminate this code entirely but <= 4.19 needs these changes."
      
      * tag 'for-4.19/dm-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm linear: eliminate linear_end_io call if CONFIG_DM_ZONED disabled
        dm: fix report zone remapping to account for partition offset
        dm cache: destroy migration_cache if cache target registration failed
      b8db9e69
    • Greg Kroah-Hartman's avatar
      Merge tag 'trace-v4.19-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 588b5938
      Greg Kroah-Hartman authored
      Steven writes:
        "vsprint fix:
      
         It was reported that trace_printk() was not reporting properly
         values that came after a dereference pointer.
      
         trace_printk() utilizes vbin_printf() and bstr_printf() to keep the
         overhead of tracing down. vbin_printf() does not do any conversions
         and just stors the string format and the raw arguments into the
         buffer. bstr_printf() is used to read the buffer and does the
         conversions to complete the printf() output.
      
         This can be troublesome with dereferenced pointers because the
         reference may be different from the time vbin_printf() is called to
         the time bstr_printf() is called. To fix this, a prior commit changed
         vbin_printf() to convert dereferenced pointers into strings and load
         the converted string into the buffer. But the change to bstr_printf()
         had an off-by-one error and didn't account for the nul character at
         the end of the string and this corrupted the rest of the values in
         the format that came after a dereferenced pointer."
      
      * tag 'trace-v4.19-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        vsprintf: Fix off-by-one bug in bstr_printf() processing dereferenced pointers
      588b5938