Skip to content
  1. Jan 19, 2018
  2. Jan 12, 2018
    • Arnd Bergmann's avatar
      arm64: dts: socfpga: add missing interrupt-parent · 69c4d8ed
      Arnd Bergmann authored
      
      
      The PMU node has no working interrupt, as shown by this dtc warning:
      
      arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dtb: Warning (interrupts_property): Missing interrupt-parent for /pmu
      
      This adds an interrupt-parent property so we can correct parse
      that interrupt number.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarDinh Nguyen <dinguyen@kernel.org>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      69c4d8ed
    • Olof Johansson's avatar
      Merge tag 'sunxi-fixes-for-4.15-2' of... · bd730bfd
      Olof Johansson authored
      
      Merge tag 'sunxi-fixes-for-4.15-2' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into fixes
      
      Allwinner fixes for 4.15, round 2
      
      One fix that fixes the display pipeline description in the device tree
      for the A10 and A20 SoCs. This description was introduced in 4.15-rc1
      with a mismatch in the graph remote endpoints, which would likely
      result in the driver misinterpreting how the individual components fit
      together.
      
      * tag 'sunxi-fixes-for-4.15-2' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
        ARM: dts: sun[47]i: Fix display backend 1 output to TCON0 remote endpoint
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      bd730bfd
    • Olof Johansson's avatar
      Merge tag 'mvebu-fixes-4.15-1' of git://git.infradead.org/linux-mvebu into fixes · 9ddd0c13
      Olof Johansson authored
      
      
      mvebu fixess for 4.15 (part 1)
      
      2 device tree related fixes fixing 2 issues:
       - broken pinctrl support since 4.11 on OpenBlocks A7
       - implicit clock dependency making the kernel hang if the Xenon sdhci
         module was loaded before the mvpp2 Ethernet support (for this one
         the driver had to be fixed which was done in v4.14)
      
      * tag 'mvebu-fixes-4.15-1' of git://git.infradead.org/linux-mvebu:
        ARM64: dts: marvell: armada-cp110: Fix clock resources for various node
        ARM: dts: kirkwood: fix pin-muxing of MPP7 on OpenBlocks A7
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      9ddd0c13
    • Olof Johansson's avatar
      Merge tag 'davinci-for-v4.16/dt' of... · 52334750
      Olof Johansson authored
      
      Merge tag 'davinci-for-v4.16/dt' of https://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci into fixes
      
      A DT warning fix for W=1 warning message.
      
      * tag 'davinci-for-v4.16/dt' of https://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
        ARM: dts: da850-lcdk: Remove leading 0x and 0s from unit address
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      52334750
  3. Jan 08, 2018
    • Linus Torvalds's avatar
      Linux 4.15-rc7 · b2cd1df6
      Linus Torvalds authored
      b2cd1df6
    • Linus Torvalds's avatar
      Merge branch 'parisc-4.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · b84449dc
      Linus Torvalds authored
      Pull parisc fixes from Helge Deller:
      
       - Many small fixes to show the real physical addresses of devices
         instead of hashed addresses.
      
       - One important fix to unbreak 32-bit SMP support: We forgot to 16-byte
         align the spinlocks in the assembler code.
      
       - Qemu support: The host will get a chance to sleep when the parisc
         guest is idle. We use the same mechanism as the power architecture by
         overlaying the "or %r10,%r10,%r10" instruction which is simply a nop
         on real hardware.
      
      * 'parisc-4.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: qemu idle sleep support
        parisc: Fix alignment of pa_tlb_lock in assembly on 32-bit SMP kernel
        parisc: Show unhashed EISA EEPROM address
        parisc: Show unhashed HPA of Dino chip
        parisc: Show initial kernel memory layout unhashed
        parisc: Show unhashed hardware inventory
      b84449dc
    • Linus Torvalds's avatar
      Merge tag 'apparmor-pr-2018-01-07' of... · 9cfd403a
      Linus Torvalds authored
      Merge tag 'apparmor-pr-2018-01-07' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
      
      Pull apparmor fix from John Johansen:
       "This fixes a regression when the kernel feature set is reported as
        supporting mount and policy is pinned to a feature set that does not
        support mount mediation"
      
      * tag 'apparmor-pr-2018-01-07' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor:
        apparmor: fix regression in mount mediation when feature set is pinned
      9cfd403a
    • Linus Torvalds's avatar
      Merge tag 'led_fixes_for_4.15-rc7' of... · 9d61ec5b
      Linus Torvalds authored
      Merge tag 'led_fixes_for_4.15-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds
      
      Pull LED fix from Jacek Anaszewski:
       "The commit 2b83ff96 for 4.15-rc6, which was fixing LED brightness
        setting after clearing delay_off broke the behavior on any alteration
        of delay_on{off} properties, due to use of a LED core helper that does
        too much for this particular case"
      
      * tag 'led_fixes_for_4.15-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds:
        leds: core: Fix regression caused by commit 2b83ff96
      9d61ec5b
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20180107' of git://git.infradead.org/linux-mtd · c11a5fe6
      Linus Torvalds authored
      Pull MTD bugfix from Richard Weinberger:
       "A single fix for the pxa3xx NAND driver"
      
      * tag 'for-linus-20180107' of git://git.infradead.org/linux-mtd:
        mtd: nand: pxa3xx: Fix READOOB implementation
      c11a5fe6
  4. Jan 07, 2018
    • Jacek Anaszewski's avatar
      leds: core: Fix regression caused by commit 2b83ff96 · 7b6af2c5
      Jacek Anaszewski authored
      Commit 2b83ff96 ("led: core: Fix brightness setting when setting delay_off=0")
      replaced del_timer_sync(&led_cdev->blink_timer) with led_stop_software_blink()
      in led_blink_set(), which additionally clears LED_BLINK_SW flag as well as
      zeroes blink_delay_on and blink_delay_off properties of the struct led_classdev.
      
      Cleansing of the latter ones wasn't required to fix the original issue but
      wasn't considered harmful. It nonetheless turned out to be so in case when
      pointer to one or both props is passed to led_blink_set() like in the
      ledtrig-timer.c. In such cases zeroes are passed later in delay_on and/or
      delay_off arguments to led_blink_setup(), which results either in stopping
      the software blinking or setting blinking frequency always to 1Hz.
      
      Avoid using led_stop_software_blink() and add a single call required
      to clear LED_BLINK_SW flag, which was the only needed modification to
      fix the original issue.
      
      Fixes 2b83ff96
      
       ("led: core: Fix brightness setting when setting delay_off=0")
      Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
      7b6af2c5
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 75d4276e
      Linus Torvalds authored
      Pull vfs fixes from Al Viro:
      
       - untangle sys_close() abuses in xt_bpf
      
       - deal with register_shrinker() failures in sget()
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        fix "netfilter: xt_bpf: Fix XT_BPF_MODE_FD_PINNED mode of 'xt_bpf_info_v1'"
        sget(): handle failures of register_shrinker()
        mm,vmscan: Make unregister_shrinker() no-op if register_shrinker() failed.
      75d4276e
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 5b6c02f3
      Linus Torvalds authored
      Pull KVM fixes from Radim Krčmář:
       "s390:
         - Two fixes for potential bitmap overruns in the cmma migration code
      
        x86:
         - Clear guest provided GPRs to defeat the Project Zero PoC for CVE
           2017-5715"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        kvm: vmx: Scrub hardware GPRs at VM-exit
        KVM: s390: prevent buffer overrun on memory hotplug during migration
        KVM: s390: fix cmma migration for multiple memory slots
      5b6c02f3
    • Boris Brezillon's avatar
      mtd: nand: pxa3xx: Fix READOOB implementation · fee4380f
      Boris Brezillon authored
      In the current driver, OOB bytes are accessed in raw mode, and when a
      page access is done with NDCR_SPARE_EN set and NDCR_ECC_EN cleared, the
      driver must read the whole spare area (64 bytes in case of a 2k page,
      16 bytes for a 512 page). The driver was only reading the free OOB
      bytes, which was leaving some unread data in the FIFO and was somehow
      leading to a timeout.
      
      We could patch the driver to read ->spare_size + ->ecc_size instead of
      just ->spare_size when READOOB is requested, but we'd better make
      in-band and OOB accesses consistent.
      Since the driver is always accessing in-band data in non-raw mode (with
      the ECC engine enabled), we should also access OOB data in this mode.
      That's particularly useful when using the BCH engine because in this
      mode the free OOB bytes are also ECC protected.
      
      Fixes: 43bcfd2b
      
       ("mtd: nand: pxa3xx: Add driver-specific ECC BCH support")
      Cc: stable@vger.kernel.org
      Reported-by: default avatarSean Nyekjær <sean.nyekjaer@prevas.dk>
      Tested-by: default avatarWilly Tarreau <w@1wt.eu>
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Acked-by: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
      Tested-by: default avatarSean Nyekjaer <sean.nyekjaer@prevas.dk>
      Acked-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      fee4380f
    • Linus Torvalds's avatar
      Merge tag 'powerpc-4.15-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 3219e264
      Linus Torvalds authored
      Pull powerpc fix from Michael Ellerman:
       "Just one fix to correctly return SEGV_ACCERR when we take a SEGV on a
        mapped region. The bug was introduced in the refactoring of the page
        fault handler we did in the previous release.
      
        Thanks to John Sperbeck"
      
      * tag 'powerpc-4.15-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/mm: Fix SEGV on mapped region to return SEGV_ACCERR
      3219e264
    • Radim Krčmář's avatar
      Merge tag 'kvm-s390-master-4.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux · bb4945e6
      Radim Krčmář authored
      KVM: s390: fixes for cmma migration
      
      Two fixes for potential bitmap overruns in the cmma migration
      code.
      bb4945e6
  5. Jan 06, 2018
    • Helge Deller's avatar
      parisc: qemu idle sleep support · 310d8278
      Helge Deller authored
      
      
      Add qemu idle sleep support when running under qemu with SeaBIOS PDC
      firmware.
      
      Like the power architecture we use the "or" assembler instructions,
      which translate to nops on real hardware, to indicate that qemu shall
      idle sleep.
      
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: Richard Henderson <rth@twiddle.net>
      CC: stable@vger.kernel.org # v4.9+
      310d8278
    • Chen-Yu Tsai's avatar
      ARM: dts: sun[47]i: Fix display backend 1 output to TCON0 remote endpoint · bdae4470
      Chen-Yu Tsai authored
      
      
      There is a copy-paste error in the display pipeline device tree graph.
      The remote endpoint of the display backend 1's output to TCON0 points
      to the wrong endpoint. This will result in the driver incorrectly
      parsing the relationship of the components.
      
      Reported-by: default avatarAndrea Venturi <ennesimamail.av@gmail.com>
      Fixes: 0df4cf33 ("ARM: dts: sun4i: Add device nodes for display
      		      pipelines")
      Fixes: 5b92b29b
      
       ("ARM: dts: sun7i: Add device nodes for display
      		      pipelines")
      Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
      Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      bdae4470
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 65c64d18
      Linus Torvalds authored
      Pull input fixes from Dmitry Torokhov:
       "Just a few driver fixups, nothing exciting"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: xen-kbdfront - do not advertise multi-touch pressure support
        Input: hideep - fix compile error due to missing include file
        Input: elants_i2c - do not clobber interrupt trigger on x86
        Input: joystick/analog - riscv has get_cycles()
        Input: elantech - add new icbody type 15
        Input: ims-pcu - fix typo in the error message
      65c64d18
    • Linus Torvalds's avatar
      Merge tag 'iommu-v4.15-rc7' of git://github.com/awilliam/linux-vfio · 313243aa
      Linus Torvalds authored
      Pull IOMMU fixes from Alex Williamson:
       "Fixes via Will Deacon for arm-smmu-v3.
      
         - Fix duplicate Stream ID handling in arm-smmu-v3
      
         - Fix arm-smmu-v3 page table ops double free"
      
      * tag 'iommu-v4.15-rc7' of git://github.com/awilliam/linux-vfio:
        iommu/arm-smmu-v3: Cope with duplicated Stream IDs
        iommu/arm-smmu-v3: Don't free page table ops twice
      313243aa
    • Linus Torvalds's avatar
      Merge tag 'arc-4.15-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · f84d595a
      Linus Torvalds authored
      Pull ARC fixes from Vineet Gupta:
      
       - platform updates for setting up clock correctly
      
       - fixes to accomodate newer gcc (__builtin_trap, removed inline asm
         modifier)
      
       - other fixes
      
      * tag 'arc-4.15-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: handle gcc generated __builtin_trap for older compiler
        ARC: handle gcc generated __builtin_trap()
        ARC: uaccess: dont use "l" gcc inline asm constraint modifier
        ARC: [plat-axs103] refactor the quad core DT quirk code
        ARC: [plat-axs103]: Set initial core pll output frequency
        ARC: [plat-hsdk]: Get rid of core pll frequency set in platform code
        ARC: [plat-hsdk]: Set initial core pll output frequency
        ARC: [plat-hsdk] Switch DisplayLink driver from fbdev to DRM
        arc: do not use __print_symbol()
        ARC: Fix detection of dual-issue enabled
      f84d595a
    • John Johansen's avatar
      apparmor: fix regression in mount mediation when feature set is pinned · 5b9f57cf
      John Johansen authored
      When the mount code was refactored for Labels it was not correctly
      updated to check whether policy supported mediation of the mount
      class.  This causes a regression when the kernel feature set is
      reported as supporting mount and policy is pinned to a feature set
      that does not support mount mediation.
      
      BugLink: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882697#41
      Fixes: 2ea3ffb7
      
       ("apparmor: add mount mediation")
      Reported-by: default avatarFabian Grünbichler <f.gruenbichler@proxmox.com>
      Cc: Stable <stable@vger.kernel.org>
      Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
      5b9f57cf
    • Linus Torvalds's avatar
      Merge tag 'for-4.15-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 89876f27
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "We have two more fixes for 4.15, both aimed for stable.
      
        The leak fix is obvious, the second patch fixes a bug revealed by the
        refcount API, when it behaves differently than previous atomic_t and
        reports refs going from 0 to 1 in one case"
      
      * tag 'for-4.15-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: fix refcount_t usage when deleting btrfs_delayed_nodes
        btrfs: Fix flush bio leak
      89876f27
    • Linus Torvalds's avatar
      Merge tag 'xfs-4.15-fixes-10' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 12e971b6
      Linus Torvalds authored
      Pull XFS fixes from Darrick Wong:
       "I have just a few fixes for bugs and resource cleanup problems this
        week:
      
         - Fix resource cleanup of failed quota initialization
      
         - Fix integer overflow problems wrt s_maxbytes"
      
      * tag 'xfs-4.15-fixes-10' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: fix s_maxbytes overflow problems
        xfs: quota: check result of register_shrinker()
        xfs: quota: fix missed destroy of qi_tree_lock
      12e971b6
    • Linus Torvalds's avatar
      Merge tag 'mfd-fixes-4.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd · f842839c
      Linus Torvalds authored
      Pull MFD fix from Lee Jones:
       "Late bugfix to plug a leak in rtsx_pcr"
      
      * tag 'mfd-fixes-4.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
        mfd: rtsx: Release IRQ during shutdown
      f842839c
    • Linus Torvalds's avatar
      Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · abb7099d
      Linus Torvalds authored
      Pull  more x86 pti fixes from Thomas Gleixner:
       "Another small stash of fixes for fallout from the PTI work:
      
         - Fix the modules vs. KASAN breakage which was caused by making
           MODULES_END depend of the fixmap size. That was done when the cpu
           entry area moved into the fixmap, but now that we have a separate
           map space for that this is causing more issues than it solves.
      
         - Use the proper cache flush methods for the debugstore buffers as
           they are mapped/unmapped during runtime and not statically mapped
           at boot time like the rest of the cpu entry area.
      
         - Make the map layout of the cpu_entry_area consistent for 4 and 5
           level paging and fix the KASLR vaddr_end wreckage.
      
         - Use PER_CPU_EXPORT for per cpu variable and while at it unbreak
           nvidia gfx drivers by dropping the GPL export. The subject line of
           the commit tells it the other way around, but I noticed that too
           late.
      
         - Fix the ASM alternative macros so they can be used in the middle of
           an inline asm block.
      
         - Rename the BUG_CPU_INSECURE flag to BUG_CPU_MELTDOWN so the attack
           vector is properly identified. The Spectre mitigations will come
           with their own bug bits later"
      
      * 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN
        x86/alternatives: Add missing '\n' at end of ALTERNATIVE inline asm
        x86/tlb: Drop the _GPL from the cpu_tlbstate export
        x86/events/intel/ds: Use the proper cache flush method for mapping ds buffers
        x86/kaslr: Fix the vaddr_end mess
        x86/mm: Map cpu_entry_area at the same place on 4/5 level
        x86/mm: Set MODULES_END to 0xffffffffff000000
      abb7099d
    • Linus Torvalds's avatar
      Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b03acc4c
      Linus Torvalds authored
      Pull EFI updates from Thomas Gleixner:
      
       - A fix for a add_efi_memmap parameter regression which ensures that
         the parameter is parsed before it is used.
      
       - Reinstate the virtual capsule mapping as the cached copy turned out
         to break Quark and other things
      
       - Remove Matt Fleming as EFI co-maintainer. He stepped back a few days
         ago. Thanks Matt for all your great work!
      
      * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        MAINTAINERS: Remove Matt Fleming as EFI co-maintainer
        efi/capsule-loader: Reinstate virtual capsule mapping
        x86/efi: Fix kernel param add_efi_memmap regression
      b03acc4c
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 3eac6903
      Linus Torvalds authored
      Pull s390 fixes from Martin Schwidefsky:
       "Four bug fixes"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/dasd: fix wrongly assigned configuration data
        s390: fix preemption race in disable_sacf_uaccess
        s390/sclp: disable FORTIFY_SOURCE for early sclp code
        s390/pci: handle insufficient resources during dma tlb flush
      3eac6903
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.15-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 925cbd7e
      Linus Torvalds authored
      Pull xen fix from Juergen Gross:
       "One minor fix adjusting the kmalloc flags in the new pvcalls driver
        added in rc1"
      
      * tag 'for-linus-4.15-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/pvcalls: use GFP_ATOMIC under spin lock
      925cbd7e
    • Linus Torvalds's avatar
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 64648a5f
      Linus Torvalds authored
      Pull crypto fixes from Herbert Xu:
       "This fixes the following issues:
      
         - racy use of ctx->rcvused in af_alg
      
         - algif_aead crash in chacha20poly1305
      
         - freeing bogus pointer in pcrypt
      
         - build error on MIPS in mpi
      
         - memory leak in inside-secure
      
         - memory overwrite in inside-secure
      
         - NULL pointer dereference in inside-secure
      
         - state corruption in inside-secure
      
         - build error without CRYPTO_GF128MUL in chelsio
      
         - use after free in n2"
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: inside-secure - do not use areq->result for partial results
        crypto: inside-secure - fix request allocations in invalidation path
        crypto: inside-secure - free requests even if their handling failed
        crypto: inside-secure - per request invalidation
        lib/mpi: Fix umul_ppmm() for MIPS64r6
        crypto: pcrypt - fix freeing pcrypt instances
        crypto: n2 - cure use after free
        crypto: af_alg - Fix race around ctx->rcvused by making it atomic_t
        crypto: chacha20poly1305 - validate the digest size
        crypto: chelsio - select CRYPTO_GF128MUL
      64648a5f
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · d8887f1c
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "9 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        mailmap: update Mark Yao's email address
        userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK fails
        mm/sparse.c: wrong allocation for mem_section
        mm/zsmalloc.c: include fs.h
        mm/debug.c: provide useful debugging information for VM_BUG
        kernel/exit.c: export abort() to modules
        mm/mprotect: add a cond_resched() inside change_pmd_range()
        kernel/acct.c: fix the acct->needcheck check in check_free_space()
        mm: check pfn_valid first in zero_resv_unavail
      d8887f1c
    • Al Viro's avatar
      fix "netfilter: xt_bpf: Fix XT_BPF_MODE_FD_PINNED mode of 'xt_bpf_info_v1'" · 040ee692
      Al Viro authored
      Descriptor table is a shared object; it's not a place where you can
      stick temporary references to files, especially when we don't need
      an opened file at all.
      
      Cc: stable@vger.kernel.org # v4.14
      Fixes: 98589a09
      
       ("netfilter: xt_bpf: Fix XT_BPF_MODE_FD_PINNED mode of 'xt_bpf_info_v1'")
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      040ee692
  6. Jan 05, 2018
    • Gregory CLEMENT's avatar
      ARM64: dts: marvell: armada-cp110: Fix clock resources for various node · e3af9f7c
      Gregory CLEMENT authored
      On the CP modules we found on Armada 7K/8K, many IP block actually also
      need a "functional" clock (from the bus). This patch add them which allows
      to fix some issues hanging the kernel:
      
      If Ethernet and sdhci driver are built as modules and sdhci was loaded
      first then the kernel hang.
      
      Fixes: bb16ea17
      
       ("mmc: sdhci-xenon: Fix clock resource by adding an
      optional bus clock")
      Cc: stable@vger.kernel.org
      Reported-by: default avatarRiku Voipio <riku.voipio@linaro.org>
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
      e3af9f7c
    • Jim Mattson's avatar
      kvm: vmx: Scrub hardware GPRs at VM-exit · 0cb5b306
      Jim Mattson authored
      
      
      Guest GPR values are live in the hardware GPRs at VM-exit.  Do not
      leave any guest values in hardware GPRs after the guest GPR values are
      saved to the vcpu_vmx structure.
      
      This is a partial mitigation for CVE 2017-5715 and CVE 2017-5753.
      Specifically, it defeats the Project Zero PoC for CVE 2017-5715.
      
      Suggested-by: default avatarEric Northup <digitaleric@google.com>
      Signed-off-by: default avatarJim Mattson <jmattson@google.com>
      Reviewed-by: default avatarEric Northup <digitaleric@google.com>
      Reviewed-by: default avatarBenjamin Serebrin <serebrin@google.com>
      Reviewed-by: default avatarAndrew Honig <ahonig@google.com>
      [Paolo: Add AMD bits, Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>]
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      0cb5b306
    • Thomas Gleixner's avatar
      x86/pti: Rename BUG_CPU_INSECURE to BUG_CPU_MELTDOWN · de791821
      Thomas Gleixner authored
      
      
      Use the name associated with the particular attack which needs page table
      isolation for mitigation.
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Acked-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
      Cc: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
      Cc: Jiri Koshina <jikos@kernel.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Tim Chen <tim.c.chen@linux.intel.com>
      Cc: Andi Lutomirski  <luto@amacapital.net>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Paul Turner <pjt@google.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Greg KH <gregkh@linux-foundation.org>
      Cc: Dave Hansen <dave.hansen@intel.com>
      Cc: Kees Cook <keescook@google.com>
      Cc: stable@vger.kernel.org
      Link: https://lkml.kernel.org/r/alpine.DEB.2.20.1801051525300.1724@nanos
      de791821
    • Mathieu Malaterre's avatar
      ARM: dts: da850-lcdk: Remove leading 0x and 0s from unit address · 7669b122
      Mathieu Malaterre authored
      Improve the DTS files by removing all the leading "0x" and zeros to fix the
      following dtc warnings:
      
      Warning (unit_address_format): Node /XXX unit name should not have leading "0x"
      
      and
      
      Warning (unit_address_format): Node /XXX unit name should not have leading 0s
      
      Converted using the following command:
      
      find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -i -e "s/@\([0-9a-fA-FxX\.;:#]+\)\s*{/@\L\1 {/g" -e "s/@0x\(.*\) {/@\1 {/g" -e "s/@0+\(.*\) {/@\1 {/g" {} +^C
      
      For simplicity, two sed expressions were used to solve each warnings separately.
      
      To make the regex expression more robust a few other issues were resolved,
      namely setting unit-address to lower case, and adding a whitespace before the
      the opening curly brace:
      
      https://elinux.org/Device_Tree_Linux#Linux_conventions
      
      This will solve as a side effect warning:
      
      Warning (simple_bus_reg): Node /XXX@<UPPER> simple-bus unit address format error, expected "<lower>"
      
      This is a follow up to commit 4c9847b7
      
       ("dt-bindings: Remove leading 0x from bindings notation")
      
      Reported-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
      Suggested-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
      Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
      7669b122
    • David Woodhouse's avatar
      x86/alternatives: Add missing '\n' at end of ALTERNATIVE inline asm · b9e705ef
      David Woodhouse authored
      Where an ALTERNATIVE is used in the middle of an inline asm block, this
      would otherwise lead to the following instruction being appended directly
      to the trailing ".popsection", and a failed compile.
      
      Fixes: 9cebed42
      
       ("x86, alternative: Use .pushsection/.popsection")
      Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: gnomes@lxorguk.ukuu.org.uk
      Cc: Rik van Riel <riel@redhat.com>
      Cc: ak@linux.intel.com
      Cc: Tim Chen <tim.c.chen@linux.intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Paul Turner <pjt@google.com>
      Cc: Jiri Kosina <jikos@kernel.org>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Dave Hansen <dave.hansen@intel.com>
      Cc: Kees Cook <keescook@google.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Greg Kroah-Hartman <gregkh@linux-foundation.org>
      Cc: stable@vger.kernel.org
      Link: https://lkml.kernel.org/r/20180104143710.8961-8-dwmw@amazon.co.uk
      b9e705ef
    • Sinan Kaya's avatar
      mfd: rtsx: Release IRQ during shutdown · 107b7d9f
      Sinan Kaya authored
      'Commit cc27b735 ("PCI/portdrv: Turn off PCIe services during
      shutdown")' revealed a resource leak in rtsx_pci driver during shutdown.
      
      Issue shows up as a warning during shutdown as follows:
      
      remove_proc_entry: removing non-empty directory 'irq/17', leaking at least
      'rtsx_pci'
      WARNING: CPU: 0 PID: 1578 at fs/proc/generic.c:572
      remove_proc_entry+0x11d/0x130
      Modules linked in <long list but none that are out-of-tree>
      ...
      Call Trace:
      unregister_irq_proc
      free_desc
      irq_free_descs
      mp_unmap_irq
      acpi_unregister_gsi_apic
      acpi_pci_irq_disable
      do_pci_disable_device
      pci_disable_device
      device_shutdown
      kernel_restart
      Sys_reboot
      
      Even though rtsx_pci driver implements a shutdown callback, it is not
      releasing the interrupt that it registered during probe. This is causing
      the ACPI layer to complain that the shared IRQ is in use while freeing
      IRQ.
      
      This code releases the IRQ to prevent resource leak and eliminate the
      warning.
      
      Fixes: cc27b735
      
       ("PCI/portdrv: Turn off PCIe services during shutdown")
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=198141
      Reported-by: default avatarChris Clayton <chris2553@googlemail.com>
      Signed-off-by: default avatarSinan Kaya <okaya@codeaurora.org>
      Reviewed-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      107b7d9f
    • Thomas Petazzoni's avatar
      ARM: dts: kirkwood: fix pin-muxing of MPP7 on OpenBlocks A7 · 56aeb07c
      Thomas Petazzoni authored
      MPP7 is currently muxed as "gpio", but this function doesn't exist for
      MPP7, only "gpo" is available. This causes the following error:
      
      kirkwood-pinctrl f1010000.pin-controller: unsupported function gpio on pin mpp7
      pinctrl core: failed to register map default (6): invalid type given
      kirkwood-pinctrl f1010000.pin-controller: error claiming hogs: -22
      kirkwood-pinctrl f1010000.pin-controller: could not claim hogs: -22
      kirkwood-pinctrl f1010000.pin-controller: unable to register pinctrl driver
      kirkwood-pinctrl: probe of f1010000.pin-controller failed with error -22
      
      So the pinctrl driver is not probed, all device drivers (including the
      UART driver) do a -EPROBE_DEFER, and therefore the system doesn't
      really boot (well, it boots, but with no UART, and no devices that
      require pin-muxing).
      
      Back when the Device Tree file for this board was introduced, the
      definition was already wrong. The pinctrl driver also always described
      as "gpo" this function for MPP7. However, between Linux 4.10 and 4.11,
      a hog pin failing to be muxed was turned from a simple warning to a
      hard error that caused the entire pinctrl driver probe to bail
      out. This is probably the result of commit 61187142 ("pinctrl:
      core: Fix pinctrl_register_and_init() with pinctrl_enable()").
      
      This commit fixes the Device Tree to use the proper "gpo" function for
      MPP7, which fixes the boot of OpenBlocks A7, which was broken since
      Linux 4.11.
      
      Fixes: f24b56cb
      
       ("ARM: kirkwood: add support for OpenBlocks A7 platform")
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
      56aeb07c
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-for-v4.15-rc7' of git://people.freedesktop.org/~airlied/linux · 5866bec2
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Just collecting some fixes to finish my hoildays :-).
      
        A few fixes for i915 (one documentation build fix), one ttm fix, one
        AMD display fix, one omapdrm fix, and a set of armada fixes from
        Russell.
      
        All seem pretty small, you can now return to your latest security news
        site"
      
      * tag 'drm-fixes-for-v4.15-rc7' of git://people.freedesktop.org/~airlied/linux:
        drm/i915: Apply Display WA #1183 on skl, kbl, and cfl
        drm/ttm: check the return value of kzalloc
        drm/amd/display: call set csc_default if enable adjustment is false
        docs: fix, intel_guc_loader.c has been moved to intel_guc_fw.c
        omapdrm/dss/hdmi4_cec: fix interrupt handling
        documentation/gpu/i915: fix docs build error after file rename
        drm/i915: Put all non-blocking modesets onto an ordered wq
        drm/i915: Disable DC states around GMBUS on GLK
        drm/i915/psr: Fix register name mess up.
        drm/armada: fix YUV planar format framebuffer offsets
        drm/armada: improve efficiency of armada_drm_plane_calc_addrs()
        drm/armada: fix UV swap code
        drm/armada: fix SRAM powerdown
        drm/armada: fix leak of crtc structure
      5866bec2