Skip to content
  1. Jul 23, 2018
    • Linus Torvalds's avatar
      Linux 4.18-rc6 · d72e90f3
      Linus Torvalds authored
      v4.18-rc6
      d72e90f3
    • Linus Torvalds's avatar
      Merge tag 'nvme-for-4.18' of git://git.infradead.org/nvme · 74413084
      Linus Torvalds authored
      Pull NVMe fixes from Christoph Hellwig:
      
       - fix a regression in 4.18 that causes a memory leak on probe failure
         (Keith Bush)
      
       - fix a deadlock in the passthrough ioctl code (Scott Bauer)
      
       - don't enable AENs if not supported (Weiping Zhang)
      
       - fix an old regression in metadata handling in the passthrough ioctl
         code (Roland Dreier)
      
      * tag 'nvme-for-4.18' of git://git.infradead.org/nvme:
        nvme: fix handling of metadata_len for NVME_IOCTL_IO_CMD
        nvme: don't enable AEN if not supported
        nvme: ensure forward progress during Admin passthru
        nvme-pci: fix memory leak on probe failure
      74413084
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 165ea0d1
      Linus Torvalds authored
      Pull vfs fixes from Al Viro:
       "Fix several places that screw up cleanups after failures halfway
        through opening a file (one open-coding filp_clone_open() and getting
        it wrong, two misusing alloc_file()). That part is -stable fodder from
        the 'work.open' branch.
      
        And Christoph's regression fix for uapi breakage in aio series;
        include/uapi/linux/aio_abi.h shouldn't be pulling in the kernel
        definition of sigset_t, the reason for doing so in the first place had
        been bogus - there's no need to expose struct __aio_sigset in
        aio_abi.h at all"
      
      * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        aio: don't expose __aio_sigset in uapi
        ocxlflash_getfile(): fix double-iput() on alloc_file() failures
        cxl_getfile(): fix double-iput() on alloc_file() failures
        drm_mode_create_lease_ioctl(): fix open-coded filp_clone_open()
      165ea0d1
    • Al Viro's avatar
      alpha: fix osf_wait4() breakage · f88a333b
      Al Viro authored
      kernel_wait4() expects a userland address for status - it's only
      rusage that goes as a kernel one (and needs a copyout afterwards)
      
      [ Also, fix the prototype of kernel_wait4() to have that __user
        annotation   - Linus ]
      
      Fixes: 92ebce5a
      
       ("osf_wait4: switch to kernel_wait4()")
      Cc: stable@kernel.org # v4.13+
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f88a333b
  2. Jul 22, 2018
    • Linus Torvalds's avatar
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 45ae4df9
      Linus Torvalds authored
      Pull ARM SoC fixes from Olof Johansson:
      
       - Fix interrupt type on ethernet switch for i.MX-based RDU2
      
       - GPC on i.MX exposed too large a register window which resulted in
         userspace being able to crash the machine.
      
       - Fixup of bad merge resolution moving GPIO DT nodes under pinctrl on
         droid4.
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        ARM: dts: imx6: RDU2: fix irq type for mv88e6xxx switch
        soc: imx: gpc: restrict register range for regmap access
        ARM: dts: omap4-droid4: fix dts w.r.t. pwm
      45ae4df9
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ef81e63e
      Linus Torvalds authored
      Pull x86 fix from Ingo Molnar:
       "A single fix for a MCE-polling regression, which prevented the
        disabling of polling"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/MCE: Remove min interval polling limitation
      ef81e63e
    • Linus Torvalds's avatar
      Merge branch 'x86-pti-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 43227e09
      Linus Torvalds authored
      Pull x86 pti fixes from Ingo Molnar:
       "An APM fix, and a BTS hardware-tracing fix related to PTI changes"
      
      * 'x86-pti-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/apm: Don't access __preempt_count with zeroed fs
        x86/events/intel/ds: Fix bts_interrupt_threshold alignment
      43227e09
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 48b1db7c
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Two fixes: a stop-machine preemption fix and a SCHED_DEADLINE fix"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/deadline: Fix switched_from_dl() warning
        stop_machine: Disable preemption when waking two stopper threads
      48b1db7c
    • Linus Torvalds's avatar
      Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ea75a2c7
      Linus Torvalds authored
      Pull core kernel fixes from Ingo Molnar:
       "This is mostly the copy_to_user_mcsafe() related fixes from Dan
        Williams, and an ORC fix for Clang"
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/asm/memcpy_mcsafe: Fix copy_to_user_mcsafe() exception handling
        lib/iov_iter: Fix pipe handling in _copy_to_iter_mcsafe()
        lib/iov_iter: Document _copy_to_iter_flushcache()
        lib/iov_iter: Document _copy_to_iter_mcsafe()
        objtool: Use '.strtab' if '.shstrtab' doesn't exist, to support ORC tables on Clang
      ea75a2c7
    • Linus Torvalds's avatar
      Merge tag 'powerpc-4.18-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · ffb48e79
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "Two regression fixes, one for xmon disassembly formatting and the
        other to fix the E500 build.
      
        Two commits to fix a potential security issue in the VFIO code under
        obscure circumstances.
      
        And finally a fix to the Power9 idle code to restore SPRG3, which is
        user visible and used for sched_getcpu().
      
        Thanks to: Alexey Kardashevskiy, David Gibson. Gautham R. Shenoy,
        James Clarke"
      
      * tag 'powerpc-4.18-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/powernv: Fix save/restore of SPRG3 on entry/exit from stop (idle)
        powerpc/Makefile: Assemble with -me500 when building for E500
        KVM: PPC: Check if IOMMU page is contained in the pinned physical page
        vfio/spapr: Use IOMMU pageshift rather than pagesize
        powerpc/xmon: Fix disassembly since printf changes
      ffb48e79
    • Linus Torvalds's avatar
      Merge tag 'for-4.18-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 55b636b4
      Linus Torvalds authored
      Pull btrfs fix from David Sterba:
       "A fix of a corruption regarding fsync and clone, under some very
        specific conditions explained in the patch.
      
        The fix is marked for stable 3.16+ so I'd like to get it merged now
        given the impact"
      
      * tag 'for-4.18-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        Btrfs: fix file data corruption after cloning a range and fsync
      55b636b4
    • Linus Torvalds's avatar
      mm: make vm_area_alloc() initialize core fields · 490fc053
      Linus Torvalds authored
      
      
      Like vm_area_dup(), it initializes the anon_vma_chain head, and the
      basic mm pointer.
      
      The rest of the fields end up being different for different users,
      although the plan is to also initialize the 'vm_ops' field to a dummy
      entry.
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      490fc053
    • Linus Torvalds's avatar
      mm: make vm_area_dup() actually copy the old vma data · 95faf699
      Linus Torvalds authored
      
      
      .. and re-initialize th eanon_vma_chain head.
      
      This removes some boiler-plate from the users, and also makes it clear
      why it didn't need use the 'zalloc()' version.
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      95faf699
    • Linus Torvalds's avatar
      mm: use helper functions for allocating and freeing vm_area structs · 3928d4f5
      Linus Torvalds authored
      
      
      The vm_area_struct is one of the most fundamental memory management
      objects, but the management of it is entirely open-coded evertwhere,
      ranging from allocation and freeing (using kmem_cache_[z]alloc and
      kmem_cache_free) to initializing all the fields.
      
      We want to unify this in order to end up having some unified
      initialization of the vmas, and the first step to this is to at least
      have basic allocation functions.
      
      Right now those functions are literally just wrappers around the
      kmem_cache_*() calls.  This is a purely mechanical conversion:
      
          # new vma:
          kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL) -> vm_area_alloc()
      
          # copy old vma
          kmem_cache_alloc(vm_area_cachep, GFP_KERNEL) -> vm_area_dup(old)
      
          # free vma
          kmem_cache_free(vm_area_cachep, vma) -> vm_area_free(vma)
      
      to the point where the old vma passed in to the vm_area_dup() function
      isn't even used yet (because I've left all the old manual initialization
      alone).
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3928d4f5
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 191a3afa
      Linus Torvalds authored
      Merge fixes from Andrew Morton:
       "5 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        mm: memcg: fix use after free in mem_cgroup_iter()
        mm/huge_memory.c: fix data loss when splitting a file pmd
        fat: fix memory allocation failure handling of match_strdup()
        MAINTAINERS: Peter has moved
        mm/memblock: add missing include <linux/bootmem.h>
      191a3afa
    • Jing Xia's avatar
      mm: memcg: fix use after free in mem_cgroup_iter() · 9f15bde6
      Jing Xia authored
      It was reported that a kernel crash happened in mem_cgroup_iter(), which
      can be triggered if the legacy cgroup-v1 non-hierarchical mode is used.
      
      Unable to handle kernel paging request at virtual address 6b6b6b6b6b6b8f
      ......
      Call trace:
        mem_cgroup_iter+0x2e0/0x6d4
        shrink_zone+0x8c/0x324
        balance_pgdat+0x450/0x640
        kswapd+0x130/0x4b8
        kthread+0xe8/0xfc
        ret_from_fork+0x10/0x20
      
        mem_cgroup_iter():
            ......
            if (css_tryget(css))    <-- crash here
      	    break;
            ......
      
      The crashing reason is that mem_cgroup_iter() uses the memcg object whose
      pointer is stored in iter->position, which has been freed before and
      filled with POISON_FREE(0x6b).
      
      And the root cause of the use-after-free issue is that
      invalidate_reclaim_iterators() fails to reset the value of iter->position
      to NULL when the css of the memcg is released in non- hierarchical mode.
      
      Link: http://lkml.kernel.org/r/1531994807-25639-1-git-send-email-jing.xia@unisoc.com
      Fixes: 6df38689
      
       ("mm: memcontrol: fix possible memcg leak due to interrupted reclaim")
      Signed-off-by: default avatarJing Xia <jing.xia.mail@gmail.com>
      Acked-by: default avatarMichal Hocko <mhocko@suse.com>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
      Cc: <chunyan.zhang@unisoc.com>
      Cc: Shakeel Butt <shakeelb@google.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9f15bde6
    • Hugh Dickins's avatar
      mm/huge_memory.c: fix data loss when splitting a file pmd · e1f1b157
      Hugh Dickins authored
      __split_huge_pmd_locked() must check if the cleared huge pmd was dirty,
      and propagate that to PageDirty: otherwise, data may be lost when a huge
      tmpfs page is modified then split then reclaimed.
      
      How has this taken so long to be noticed?  Because there was no problem
      when the huge page is written by a write system call (shmem_write_end()
      calls set_page_dirty()), nor when the page is allocated for a write fault
      (fault_dirty_shared_page() calls set_page_dirty()); but when allocated for
      a read fault (which MAP_POPULATE simulates), no set_page_dirty().
      
      Link: http://lkml.kernel.org/r/alpine.LSU.2.11.1807111741430.1106@eggly.anvils
      Fixes: d21b9e57
      
       ("thp: handle file pages in split_huge_pmd()")
      Signed-off-by: default avatarHugh Dickins <hughd@google.com>
      Reported-by: default avatarAshwin Chaugule <ashwinch@google.com>
      Reviewed-by: default avatarYang Shi <yang.shi@linux.alibaba.com>
      Reviewed-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
      Cc: "Huang, Ying" <ying.huang@intel.com>
      Cc: <stable@vger.kernel.org>	[4.8+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e1f1b157
    • OGAWA Hirofumi's avatar
      fat: fix memory allocation failure handling of match_strdup() · 35033ab9
      OGAWA Hirofumi authored
      
      
      In parse_options(), if match_strdup() failed, parse_options() leaves
      opts->iocharset in unexpected state (i.e.  still pointing the freed
      string).  And this can be the cause of double free.
      
      To fix, this initialize opts->iocharset always when freeing.
      
      Link: http://lkml.kernel.org/r/8736wp9dzc.fsf@mail.parknet.co.jp
      Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Reported-by: default avatar <syzbot+90b8e10515ae88228a92@syzkaller.appspotmail.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      35033ab9
    • Peter Senna Tschudin's avatar
      MAINTAINERS: Peter has moved · 5a696494
      Peter Senna Tschudin authored
      
      
      Update my E-mail address in the MAINTAINERS file.
      
      Link: http://lkml.kernel.org/r/20180710144702.1308-1-peter.senna@gmail.com
      Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
      Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      Acked-by: default avatarMartyn Welch <martyn.welch@collabora.co.uk>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: Martin Donnelly <martin.donnelly@ge.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5a696494
    • Mathieu Malaterre's avatar
      mm/memblock: add missing include <linux/bootmem.h> · 19373672
      Mathieu Malaterre authored
      Commit 26f09e9b ("mm/memblock: add memblock memory allocation apis")
      introduced two new function definitions:
      
        memblock_virt_alloc_try_nid_nopanic()
        memblock_virt_alloc_try_nid()
      
      and commit ea1f5f37 ("mm: define memblock_virt_alloc_try_nid_raw")
      introduced the following function definition:
      
        memblock_virt_alloc_try_nid_raw()
      
      This commit adds an include of header file <linux/bootmem.h> to provide
      the missing function prototypes.  This silences the following gcc warning
      (W=1):
      
        mm/memblock.c:1334:15: warning: no previous prototype for `memblock_virt_alloc_try_nid_raw' [-Wmissing-prototypes]
        mm/memblock.c:1371:15: warning: no previous prototype for `memblock_virt_alloc_try_nid_nopanic' [-Wmissing-prototypes]
        mm/memblock.c:1407:15: warning: no previous prototype for `memblock_virt_alloc_try_nid' [-Wmissing-prototypes]
      
      Also adds #ifdef blockers to prevent compilation failure on mips/ia64
      where CONFIG_NO_BOOTMEM=n as could be seen in commit commit 6cc22dc0
      
      
      ("revert "mm/memblock: add missing include <linux/bootmem.h>"").
      
      Because Makefile already does:
      
        obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o
      
      The #ifdef has been simplified from:
      
        #if defined(CONFIG_HAVE_MEMBLOCK) && defined(CONFIG_NO_BOOTMEM)
      
      to simply:
      
        #if defined(CONFIG_NO_BOOTMEM)
      
      Link: http://lkml.kernel.org/r/20180626184422.24974-1-malat@debian.org
      Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
      Suggested-by: default avatarTony Luck <tony.luck@intel.com>
      Suggested-by: default avatarMichal Hocko <mhocko@kernel.org>
      Acked-by: default avatarMichal Hocko <mhocko@suse.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      19373672
  3. Jul 21, 2018
    • Linus Torvalds's avatar
      Merge tag 'vfio-v4.18-rc6' of git://github.com/awilliam/linux-vfio · 48e5aee8
      Linus Torvalds authored
      Pull VFIO fix from Alex Williamson:
       "Harden potential Spectre v1 issue (Gustavo A. R. Silva)"
      
      * tag 'vfio-v4.18-rc6' of git://github.com/awilliam/linux-vfio:
        vfio/pci: Fix potential Spectre v1
      48e5aee8
    • Linus Torvalds's avatar
      Merge tag 'for-4.18/dm-fixes-2' of... · b4460a95
      Linus Torvalds authored
      Merge tag 'for-4.18/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fix from Mike Snitzer:
       "Fix DM writecache target to allow an optional offset to the start of
        the data and metadata area.
      
        This allows userspace tools (e.g. LVM2) to place a header and metadata
        at the front of the writecache device for its use"
      
      * tag 'for-4.18/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm writecache: support optional offset for start of device
      b4460a95
    • Olof Johansson's avatar
      Merge tag 'imx-fixes-4.18-4' of... · 5858610f
      Olof Johansson authored
      
      Merge tag 'imx-fixes-4.18-4' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into fixes
      
      i.MX fixes for 4.18, round 4:
       - A fix for i.MX6 RDU2 board on the wrong IRQ type of Marvell switch,
         which might result in a race condition in the interrupt handler and
         cause the OS to miss all future events.
      
      * tag 'imx-fixes-4.18-4' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        ARM: dts: imx6: RDU2: fix irq type for mv88e6xxx switch
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      5858610f
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 18cadf9f
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "A set of 8 obvious fixes.
      
        Three (2 qla2xxx and the cxlflash oopses) are regressions, two from
        4.17 and one from the merge window. The hpsa change is user visible,
        but it fixes an error users have complained about"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: cxlflash: fix assignment of the backend operations
        scsi: qedi: Send driver state to MFW
        scsi: qedf: Send the driver state to MFW
        scsi: hpsa: correct enclosure sas address
        scsi: sd_zbc: Fix variable type and bogus comment
        scsi: qla2xxx: Fix NULL pointer dereference for fcport search
        scsi: qla2xxx: Fix kernel crash due to late workqueue allocation
        scsi: qla2xxx: Fix inconsistent DMA mem alloc/free
      18cadf9f
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v4.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 47736af3
      Linus Torvalds authored
      Pull IOMMU fix from Joerg Roedel:
       "Only one revert, for an an Intel VT-d patch that caused issues with
        the i915 GPU driver"
      
      * tag 'iommu-fixes-v4.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        Revert "iommu/vt-d: Clean up pasid quirk for pre-production devices"
      47736af3
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v4.18-2' of git://git.infradead.org/linux-platform-drivers-x86 · de87dcde
      Linus Torvalds authored
      Pull x86 platform driver fixes from Andy Shevchenko:
       "The Dell laptop ACPI video brightness control is now back after fixing
        a regression brought by SMM refactoring"
      
      * tag 'platform-drivers-x86-v4.18-2' of git://git.infradead.org/linux-platform-drivers-x86:
        platform/x86: dell-laptop: Fix backlight detection
      de87dcde
    • Linus Torvalds's avatar
      Merge tag 'arc-4.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 2a0ea7df
      Linus Torvalds authored
      Pull ARC fixes from Vineet Gupta:
       "ARC is back after radio silence in 4.17:
      
         - Fix CONFIG_SWAP [Alexey]
      
         - Robustify cmpxchg emulation for systems w/o atomics [Alexey /
           PeterZ]
      
         - Allow mprotext(PROT_EXEC) for stack mappings [Vineet]
      
         - HSDK platform enable PCIe, APG GPIO [Gustavo]
      
         - miscll other fixes, config updates etc"
      
      * tag 'arc-4.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARCv2: [plat-hsdk]: Save accl reg pair by default
        ARC: mm: allow mprotect to make stack mappings executable
        ARC: Fix CONFIG_SWAP
        ARC: [arcompact] entry.S: minor code movement
        ARC: configs: Remove CONFIG_INITRAMFS_SOURCE from defconfigs
        ARC: configs: remove no longer needed CONFIG_DEVPTS_MULTIPLE_INSTANCES
        ARC: Improve cmpxchg syscall implementation
        ARC: [plat-hsdk]: Configure APB GPIO controller on ARC HSDK platform
        ARC: [plat-hsdk] Add PCIe support
        ARC: Enable machine_desc->init_per_cpu for !CONFIG_SMP
        ARC: Explicitly add -mmedium-calls to CFLAGS
      2a0ea7df
    • Linus Torvalds's avatar
      Merge tag 'nds32-for-linus-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/greentime/linux · 293bccc5
      Linus Torvalds authored
      Pull nds32 updates from Greentime Hu:
       "Bug fixes and build ixes for nds32"
      
      * tag 'nds32-for-linus-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/greentime/linux:
        nds32: fix build error "relocation truncated to fit: R_NDS32_25_PCREL_RELA" when make allyesconfig
        nds32: To simplify the implementation of update_mmu_cache()
        nds32: Fix the dts pointer is not passed correctly issue.
        nds32: To implement these icache invalidation APIs since nds32 cores don't snoop data cache. This issue is found by Guo Ren. Based on the Documentation/core-api/cachetlb.rst and it says:
        nds32: Fix build error caused by configuration flag rename
        nds32: define __NDS32_E[BL]__ for sparse
      293bccc5
    • Linus Torvalds's avatar
      Merge tag 'pm-4.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · bfa54a3a
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix a relatively old initialization issue in intel_pstate causing the
        pcc-cpufreq driver to be used instead of it on some HP Proliant
        systems.
      
        This turned into a functional regression during the 4.17 cycle,
        because pcc-cpufreq is a scalability disaster and that was amplified
        by the idle loop rework done at that time (Rafael Wysocki).
      
      * tag 'pm-4.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: intel_pstate: Register when ACPI PCCH is present
      bfa54a3a
    • Linus Torvalds's avatar
      Merge tag 'acpi-4.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 73894397
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Extend the recently added suspend-to-idle quirk for Thinkpad X1 Carbon
        6th to other systems from that familiy which turned out to need it too
        (Robin Johnson)"
      
      * tag 'acpi-4.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI / EC: Use ec_no_wakeup on more Thinkpad X1 Carbon 6th systems
      73894397
  4. Jul 20, 2018
    • Roland Dreier's avatar
      nvme: fix handling of metadata_len for NVME_IOCTL_IO_CMD · 9b382768
      Roland Dreier authored
      The old code in nvme_user_cmd() passed the userspace virtual address
      from nvme_passthru_cmd.metadata as the length of the metadata buffer
      as well as the address to nvme_submit_user_cmd().
      
      Fixes: 63263d60
      
       ("nvme: Use metadata for passthrough commands")
      Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
      Reviewed-by: default avatarKeith Busch <keith.busch@intel.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      9b382768
    • Damien Thébault's avatar
      platform/x86: dell-laptop: Fix backlight detection · 2502e5a0
      Damien Thébault authored
      Fix return code check for "max brightness" ACPI call.
      
      The Dell laptop ACPI video brightness control is not present on dell
      laptops anymore, but was present in older kernel versions.
      
      The code that checks the return value is incorrect since the SMM
      refactoring.
      
      The old code was:
        if (buffer->output[0] == 0)
      
      Which was changed to:
        ret = dell_send_request(...)
        if (ret)
      
      However, dell_send_request() will return 0 if buffer->output[0] == 0,
      so we must change the check to:
        if (ret == 0)
      
      This issue was found on a Dell M4800 laptop, and the fix tested on it
      as well.
      
      Fixes: 549b4930
      
       ("dell-smbios: Introduce dispatcher for SMM calls")
      Signed-off-by: default avatarDamien Thébault <damien@dtbo.net>
      Tested-by: default avatarDamien Thébault <damien@dtbo.net>
      Reviewed-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Reviewed-by: default avatarMario Limonciello <mario.limonciello@dell.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      2502e5a0
    • Lu Baolu's avatar
      Revert "iommu/vt-d: Clean up pasid quirk for pre-production devices" · 2db1581e
      Lu Baolu authored
      This reverts commit ab96746a.
      
      The commit ab96746a
      
       ("iommu/vt-d: Clean up pasid quirk for
      pre-production devices") triggers ECS mode on some platforms
      which have broken ECS support. As the result, graphic device
      will be inoperable on boot.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107017
      
      Cc: Ashok Raj <ashok.raj@intel.com>
      Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
      Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
      2db1581e
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2018-07-20' of git://anongit.freedesktop.org/drm/drm · 28c20cc7
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Just two sets of driver fixes this week to follow up on the set from
        earlier in the week and hopefully get me realigned schedule wise.
      
        amdgpu:
         - ACP fix for boards with multiple I2S instances
         - DP fix for CZ, vega
         - hybrid laptop fixes
         - Resume regression fix
      
        nouveau:
         - large memory systems and Pascal fix
         - MST race fixes
         - runtime PM fix"
      
      * tag 'drm-fixes-2018-07-20' of git://anongit.freedesktop.org/drm/drm:
        drm/nouveau/fb/gp100-: disable address remapper
        drm/amd/amdgpu: creating two I2S instances for stoney/cz (v2)
        drm/amdgpu: add another ATPX quirk for TOPAZ
        drm/amd/display: Fix DP HBR2 Eye Diagram Pattern on Carrizo
        drm/amdgpu: Make sure IB tests flushed after IP resume
        drm/nouveau: Set DRIVER_ATOMIC cap earlier to fix debugfs
        drm/nouveau: Remove bogus crtc check in pmops_runtime_idle
        drm/nouveau/drm/nouveau: Fix runtime PM leak in nv50_disp_atomic_commit()
        drm/nouveau: Avoid looping through fake MST connectors
        drm/nouveau: Use drm_connector_list_iter_* for iterating connectors
        drm/nouveau/gem: off by one bugs in nouveau_gem_pushbuf_reloc_apply()
        drm/nouveau/kms/nv50-: ensure window updates are submitted when flushing mst disables
      28c20cc7
    • Uwe Kleine-König's avatar
      ARM: dts: imx6: RDU2: fix irq type for mv88e6xxx switch · e01a06c8
      Uwe Kleine-König authored
      
      
      The Marvell switches report their interrupts in a level sensitive way.
      When using edge sensitive detection a race condition in the interrupt
      handler of the swich might result in the OS to miss all future events
      which might make the switch non-functional.
      
      The problem is that both mv88e6xxx_g2_irq_thread_fn() and
      mv88e6xxx_g1_irq_thread_work() sample the irq cause register
      (MV88E6XXX_G2_INT_SRC and MV88E6XXX_G1_STS respectively) once and then
      handle the observed sources. If after sampling but before all observed
      irq sources are handled a new irq source gets active this is not noticed
      by the handler which returns unsuspecting, but the interrupt line stays
      active which prevents the edge detector to kick in.
      
      All device trees but imx6qdl-zii-rdu2 get this right (most of them by
      not specifying an interrupt parent). So fix imx6qdl-zii-rdu2
      accordingly.
      
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Fixes: f64992d1
      
       ("ARM: dts: imx6: RDU2: Add Switch interrupts")
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      e01a06c8
    • Dave Airlie's avatar
      Merge branch 'linux-4.18' of git://github.com/skeggsb/linux into drm-fixes · 02e546ea
      Dave Airlie authored
      
      
      - fix problem with pascal and large memory systems
      - fix a bunch of MST problems
      - fix a runtime PM interaction with MST
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/CACAvsv79O8deSts2fxJ_oS6=q8yA+OgwBSEpp5R=BQBmWa+oyg@mail.gmail.com
      02e546ea
    • Dave Airlie's avatar
      Merge branch 'drm-fixes-4.18' of git://people.freedesktop.org/~agd5f/linux into drm-fixes · b83ce39b
      Dave Airlie authored
      
      
      Fixes for 4.18.  The ACP patch is a bit bigger than I would like
      at this point, but it should have gone in long ago, it just fell
      through the cracks.  The others are pretty small and straight-forward.
      - ACP fix for boards with 2 I2S instances
      - DP fix for CZ, vega
      - Fix for a hybrid graphics laptop
      - Fix a resume regression
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180718162603.2747-1-alexander.deucher@amd.com
      b83ce39b
    • Olof Johansson's avatar
      Merge tag 'imx-fixes-4.18-3' of... · 8b369c00
      Olof Johansson authored
      
      Merge tag 'imx-fixes-4.18-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into fixes
      
      i.MX fixes for 4.18, round 3:
       - Restrict GPC driver on register range that is accessible by regmap,
         so that we can avoid user space from triggering imprecise external
         abort exception.
      
      * tag 'imx-fixes-4.18-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        soc: imx: gpc: restrict register range for regmap access
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      8b369c00
    • Olof Johansson's avatar
      Merge tag 'omap-for-v4.18/fixes-rc5-signed' of... · 1f9f1635
      Olof Johansson authored
      
      Merge tag 'omap-for-v4.18/fixes-rc5-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
      
      One omap dts mismerge fix
      
      The dts patch for droid4 PWM vibrator has added gpio6 entries to the wrong
      node. Let's fix it with a note that there seems to be also other GPIO PWM
      issues to fix still to get the PWM vibrator working. So this can wait for
      v4.19 merge cycle if necessary.
      
      * tag 'omap-for-v4.18/fixes-rc5-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
        ARM: dts: omap4-droid4: fix dts w.r.t. pwm
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      1f9f1635
    • Linus Torvalds's avatar
      Merge tag 'pci-v4.18-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · fb7d1bcf
      Linus Torvalds authored
      Pull PCI fixes from Bjorn Helgaas:
      
       - Fix crashes that happen when PHY drivers are left disabled in the V3
         Semiconductor, MediaTek, Faraday, Aardvark, DesignWare, Versatile,
         and X-Gene host controller drivers (Sergei Shtylyov)
      
       - Fix a NULL pointer dereference in the endpoint library configfs
         support (Kishon Vijay Abraham I)
      
       - Fix a race condition in Hyper-V IRQ handling (Dexuan Cui)
      
      * tag 'pci-v4.18-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI: v3-semi: Fix I/O space page leak
        PCI: mediatek: Fix I/O space page leak
        PCI: faraday: Fix I/O space page leak
        PCI: aardvark: Fix I/O space page leak
        PCI: designware: Fix I/O space page leak
        PCI: versatile: Fix I/O space page leak
        PCI: xgene: Fix I/O space page leak
        PCI: OF: Fix I/O space page leak
        PCI: endpoint: Fix NULL pointer dereference error when CONFIGFS is disabled
        PCI: hv: Disable/enable IRQs rather than BH in hv_compose_msi_msg()
      fb7d1bcf