Skip to content
  1. Dec 15, 2017
  2. Dec 14, 2017
    • Linus Torvalds's avatar
      Merge tag 'xfs-4.15-fixes-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 7c5cac1b
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
       "Here are a few more bug fixes & cleanups for 4.15-rc4:
      
         - clean up duplicate includes
      
         - remove ancient 'no-alloc' crap code that occasionally caused hard
           fs shutdowns due to lack of proper space reservations
      
         - fix regression in FIEMAP behavior when reporting xattr extents"
      
      * tag 'xfs-4.15-fixes-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: make iomap_begin functions trim iomaps consistently
        xfs: remove "no-allocation" reservations for file creations
        fs: xfs: remove duplicate includes
      7c5cac1b
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-4.15-rc4-riscv_fixes' of... · 4e746cf4
      Linus Torvalds authored
      Merge tag 'riscv-for-linus-4.15-rc4-riscv_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux
      
      Pull RISC-V fixes from Palmer Dabbelt:
       "This contains three small fixes:
      
         - A fix to a typo in sys_riscv_flush_icache. This only effects error
           handling, but I think it's a small and obvious enough change that
           it's sane outside the merge window.
      
         - The addition of smp_mb__after_spinlock(), which was recently
           removed due to an incorrect comment. This is largly a comment
           change (as there's a big one now), and while it's necessary for
           complience with the RISC-V memory model the lack of this fence
           shouldn't manifest as a bug on current implementations.
           Nonetheless, it still seems saner to have the fence in 4.15.
      
         - The removal of some of the HVC_RISCV_SBI driver that snuck into the
           arch port. This is compile-time dead code in 4.15 (as the driver
           isn't in yet), and during the review process we found a better way
           to implement early printk on RISC-V. While this change doesn't do
           anything, it will make staging our HVC driver easier: without this
           change the HVC driver we hope to upstream won't build on 4.15
           (because the 4.15 arch code would reference a function that no
           longer exists).
      
        I don't think this is the last patch set we'll want for 4.15: I think
        I'll want to remove some of the first-level irqchip driver that snuck
        in as well, which will look a lot like the HVC patch here. This is
        pending some asm-generic cleanup I'm doing that I haven't quite gotten
        clean enough to send out yet, though, but hopefully it'll be ready by
        next week (and still OK for that late)"
      
       * tag 'riscv-for-linus-4.15-rc4-riscv_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux:
        RISC-V: Remove unused CONFIG_HVC_RISCV_SBI code
        RISC-V: Resurrect smp_mb__after_spinlock()
        RISC-V: Logical vs Bitwise typo
      4e746cf4
  3. Dec 13, 2017
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v4.15-3' of git://git.infradead.org/linux-platform-drivers-x86 · d39a01ef
      Linus Torvalds authored
      Pull x86 platform driver fixes from Darren Hart:
      
       - Correct an error in the evdev protocol in asus-wireless which results
         in dropped key events in recent versions of libinput
      
       - Add a quirk for keyboard lighting for a specific Dell laptop
      
       - Silence a static analysis warning regarding unchecked return values
         of small kmalloc() allocations in dell-wmi
      
      * tag 'platform-drivers-x86-v4.15-3' of git://git.infradead.org/linux-platform-drivers-x86:
        platform/x86: dell-wmi: check for kmalloc() errors
        platform/x86: asus-wireless: send an EV_SYN/SYN_REPORT between state changes
        platform/x86: dell-laptop: Fix keyboard max lighting for Dell Latitude E6410
      d39a01ef
  4. Dec 12, 2017
    • Dan Carpenter's avatar
      platform/x86: dell-wmi: check for kmalloc() errors · 532298b9
      Dan Carpenter authored
      
      
      This allocation won't fail in the current kernel because it's small but
      not checking for kmalloc() failures introduces static checker warnings
      so let's fix it.
      
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarMario Limonciello <mario.limonciello@dell.com>
      Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
      532298b9
    • Peter Hutterer's avatar
      platform/x86: asus-wireless: send an EV_SYN/SYN_REPORT between state changes · bff5bf9d
      Peter Hutterer authored
      
      
      Sending the switch state change twice within the same frame is invalid
      evdev protocol and only works if the client handles keys immediately as
      well. Processing events immediately is incorrect, it forces a fake
      order of events that does not exist on the device.
      
      Recent versions of libinput changed to only process the device state and
      SYN_REPORT time, so now the key event is lost.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=104041
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
      bff5bf9d
    • Pali Rohár's avatar
      platform/x86: dell-laptop: Fix keyboard max lighting for Dell Latitude E6410 · 68a213d3
      Pali Rohár authored
      
      
      This machine reports number of keyboard backlight led levels, instead of
      value of the last led level index. Therefore max_brightness properly needs
      to be subtracted by 1 to match led max_brightness API.
      
      Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Reported-by: default avatarGabriel M. Elder <gabriel@tekgnowsys.com>
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=196913
      Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
      68a213d3
    • Linus Torvalds's avatar
      Merge branch 'for-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu · a638349b
      Linus Torvalds authored
      Pull percpu fix from Tejun Heo:
       "Just one patch to work around CRIS boot problem caused by a recent
        change which freed a temporary boot data structure. The root cause is
        on CRIS side but it doesn't seem trivial to fix. For now, work around
        by skipping freeing on CRIS"
      
      * 'for-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
        percpu: hack to let the CRIS architecture to boot until they clean up
      a638349b
    • Linus Torvalds's avatar
      Merge branch 'for-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 085bec85
      Linus Torvalds authored
      Pull cgroup fixes from Tejun Heo:
      
       - Prateek posted a couple patches to fix a deadlock involving cpuset
         and workqueue. It unfortunately caused a different deadlock and the
         recent workqueue hotplug simplification removed the original
         deadlock, so Prateek's two patches are reverted for now.
      
       - The new stat code was missing u64_stats initialization. Fixed.
      
       - Doc and other misc changes
      
      * 'for-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup: add warning about RT not being supported on cgroup2
        Revert "cgroup/cpuset: remove circular dependency deadlock"
        Revert "cpuset: Make cpuset hotplug synchronous"
        cgroup: properly init u64_stats
        debug cgroup: use task_css_set instead of rcu_dereference
        cpuset: Make cpuset hotplug synchronous
        cgroup/cpuset: remove circular dependency deadlock
      085bec85
    • Linus Torvalds's avatar
      Merge branch 'for-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · 72dd379e
      Linus Torvalds authored
      Pull workqueue fixes from Tejun Heo:
      
       - Lai's hotplug simplifications inadvertently fix a possible deadlock
         involving cpuset and workqueue
      
       - CPU isolation fix which was reverted due to the changes in the
         housekeeping code resurrected
      
       - A trivial unused include removal
      
      * 'for-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: remove unneeded kallsyms include
        workqueue/hotplug: remove the workaround in rebind_workers()
        workqueue/hotplug: simplify workqueue_offline_cpu()
        workqueue: respect isolated cpus when queueing an unbound work
        main: kernel_start: move housekeeping_init() before workqueue_init_early()
      72dd379e
    • Linus Torvalds's avatar
      Merge branch 'for-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata · a83cb7e6
      Linus Torvalds authored
      Pull libata fixes from Tejun Heo:
       "Nothing too interesting. David Milburn improved a corner case
        misbehavior during hotplug. Other than that, minor driver-specific
        fixes"
      
      * 'for-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata:
        libata: sata_down_spd_limit should return if driver has not recorded sstatus speed
        ahci: mtk: Change driver name to ahci-mtk
        ahci: qoriq: refine port register configuration
        pata_pdc2027x : make pdc2027x_*_timing structures const
        pata_pdc2027x: Remove unnecessary error check
        ata: mediatek: Fix typo in module description
      a83cb7e6
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.15-2' of git://github.com/cminyard/linux-ipmi · bfb529ee
      Linus Torvalds authored
      Pull IPMI fixes from Corey Minyard.
      
      * tag 'for-linus-4.15-2' of git://github.com/cminyard/linux-ipmi:
        ipmi_si: fix crash on parisc
        ipmi_si: Fix oops with PCI devices
        ipmi: Stop timers before cleaning up the module
      bfb529ee
    • Linus Torvalds's avatar
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 916b20e0
      Linus Torvalds authored
      Pull crypto fixes from Herbert Xu:
       "This push fixes the following issues:
      
         - buffer overread in RSA
      
         - potential use after free in algif_aead.
      
         - error path null pointer dereference in af_alg
      
         - forbid combinations such as hmac(hmac(sha3)) which may crash
      
         - crash in salsa20 due to incorrect API usage"
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: salsa20 - fix blkcipher_walk API usage
        crypto: hmac - require that the underlying hash algorithm is unkeyed
        crypto: af_alg - fix NULL pointer dereference in
        crypto: algif_aead - fix reference counting of null skcipher
        crypto: rsa - fix buffer overread when stripping leading zeroes
      916b20e0
  5. Dec 11, 2017
    • Palmer Dabbelt's avatar
      RISC-V: Remove unused CONFIG_HVC_RISCV_SBI code · 27b01745
      Palmer Dabbelt authored
      
      
      This is code that probably should never have made it into the kernel in
      the first place: it depends on a driver that hadn't been reviewed yet.
      During the HVC_SBI_RISCV review process a better way of doing this was
      suggested, but that means this code is defunct.  It's compile-time
      disabled in 4.15 because the driver isn't in, so I think it's safe to
      just remove this for now.
      
      CC: Greg KH <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      27b01745
    • Palmer Dabbelt's avatar
      RISC-V: Resurrect smp_mb__after_spinlock() · 3cfa5008
      Palmer Dabbelt authored
      I removed this last week because of an incorrect comment:
      smp_mb__after_spinlock() is actually still used, and is necessary on
      RISC-V.  It's been resurrected, with a comment that describes what it
      actually does this time.  Thanks to Andrea for finding the bug!
      
      Fixes: 3343eb68
      
       ("RISC-V: Remove smb_mb__{before,after}_spinlock()")
      CC: Andrea Parri <parri.andrea@gmail.com>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      3cfa5008
    • Dan Carpenter's avatar
      RISC-V: Logical vs Bitwise typo · 86ad5c97
      Dan Carpenter authored
      
      
      In the current code, there is a ! logical NOT where a bitwise ~ NOT was
      intended.  It means that we never return -EINVAL.
      
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      86ad5c97
    • Sergey Senozhatsky's avatar
      workqueue: remove unneeded kallsyms include · 01dfee95
      Sergey Senozhatsky authored
      The filw was converted from print_symbol() to %pf some time
      ago (044c782c
      
       "workqueue: fix checkpatch issues").
      kallsyms does not seem to be needed anymore.
      
      Signed-off-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Lai Jiangshan <jiangshanlai@gmail.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      01dfee95
    • Mikulas Patocka's avatar
      ipmi_si: fix crash on parisc · 51614b26
      Mikulas Patocka authored
      
      
      This patch fixes ipmi crash on parisc introduced in the kernel 4.15-rc.
      The pointer io.io_setup is not initialized and thus it causes crash in
      try_smi_init when attempting to call new_smi->io.io_setup.
      
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      51614b26
    • Corey Minyard's avatar
      ipmi_si: Fix oops with PCI devices · 1ac8aa8d
      Corey Minyard authored
      
      
      When the IPMI PCI code was split out, some code was consolidated for
      setting the io_setup field in the io structure.  The PCI code needed
      this set before registration to probe register spacing, though, so
      restore the old code for that function.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=197999
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      Tested-by: default avatarMeelis Roos <mroos@linux.ee>
      1ac8aa8d
    • Linus Torvalds's avatar
      Linux 4.15-rc3 · 50c4c4e2
      Linus Torvalds authored
      v4.15-rc3
      50c4c4e2
    • Jeff Layton's avatar
      hpfs: don't bother with the i_version counter or f_version · 98087c05
      Jeff Layton authored
      
      
      HPFS does not set SB_I_VERSION and does not use the i_version counter
      internally.
      
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarMikulas Patocka <mikulas@twibright.com>
      Reviewed-by: default avatarMikulas Patocka <mikulas@twibright.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      98087c05
    • Jiri Slaby's avatar
      futex: futex_wake_op, fix sign_extend32 sign bits · d70ef228
      Jiri Slaby authored
      sign_extend32 counts the sign bit parameter from 0, not from 1.  So we
      have to use "11" for 12th bit, not "12".
      
      This mistake means we have not allowed negative op and cmp args since
      commit 30d6e0a4 ("futex: Remove duplicated code and fix undefined
      behaviour") till now.
      
      Fixes: 30d6e0a4
      
       ("futex: Remove duplicated code and fix undefined behaviour")
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Darren Hart <dvhart@infradead.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d70ef228
    • Linus Torvalds's avatar
      Merge tag 'for-4.15-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 51090c5d
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "This contains a few fixes (error handling, quota leak, FUA vs
        nobarrier mount option).
      
        There's one one worth mentioning separately - an off-by-one fix that
        leads to overwriting first byte of an adjacent page with 0, out of
        bounds of the memory allocated by an ioctl. This is under a privileged
        part of the ioctl, can be triggerd in some subvolume layouts"
      
      * tag 'for-4.15-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: Fix possible off-by-one in btrfs_search_path_in_tree
        Btrfs: disable FUA if mounted with nobarrier
        btrfs: fix missing error return in btrfs_drop_snapshot
        btrfs: handle errors while updating refcounts in update_ref_for_cow
        btrfs: Fix quota reservation leak on preallocated files
      51090c5d
    • Linus Torvalds's avatar
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 9c02e060
      Linus Torvalds authored
      Pull ARM SoC fixes from Olof Johansson:
      
       - A revert of all SCPI changes from the 4.15 merge window. They had
         regressions on the Amlogic platforms, and the submaintainer isn't
         around to fix these bugs due to vacation, etc. So we agreed to revert
         and revisit in next release cycle.
      
       - A series fixing a number of bugs for ARM CCN interconnect, around
         module unload, smp_processor_id() in preemptable context, and fixing
         some memory allocation failure checks.
      
       - A handful of devicetree fixes for different platforms, fixing
         warnings and errors that were previously ignored by the compiler.
      
       - The usual set of mostly minor fixes for different platforms.
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (42 commits)
        ARM64: dts: meson-gx: fix UART pclk clock name
        ARM: omap2: hide omap3_save_secure_ram on non-OMAP3 builds
        arm: dts: nspire: Add missing #phy-cells to usb-nop...
      9c02e060
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · c465fc11
      Linus Torvalds authored
      Pull KVM fixes from Radim Krčmář:
       "ARM:
         - A number of issues in the vgic discovered using SMATCH
         - A bit one-off calculation in out stage base address mask (32-bit
           and 64-bit)
         - Fixes to single-step debugging instructions that trap for other
           reasons such as MMMIO aborts
         - Printing unavailable hyp mode as error
         - Potential spinlock deadlock in the vgic
         - Avoid calling vgic vcpu free more than once
         - Broken bit calculation for big endian systems
      
       s390:
         - SPDX tags
         - Fence storage key accesses from problem state
         - Make sure that irq_state.flags is not used in the future
      
        x86:
         - Intercept port 0x80 accesses to prevent host instability (CVE)
         - Use userspace FPU context for guest FPU (mainly an optimization
           that fixes a double use of kernel FPU)
         - Do not leak one page per module load
         - Flush APIC page address cache from MMU invalidation notifiers"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (28 commits)
        KVM: x86: fix APIC page invalidation
        KVM: s390: Fix skey emulation permission check
        KVM: s390: mark irq_state.flags as non-usable
        KVM: s390: Remove redundant license text
        KVM: s390: add SPDX identifiers to the remaining files
        KVM: VMX: fix page leak in hardware_setup()
        KVM: VMX: remove I/O port 0x80 bypass on Intel hosts
        x86,kvm: remove KVM emulator get_fpu / put_fpu
        x86,kvm: move qemu/guest FPU switching out to vcpu_run
        KVM: arm/arm64: Fix broken GICH_ELRSR big endian conversion
        KVM: arm/arm64: kvm_arch_destroy_vm cleanups
        KVM: arm/arm64: Fix spinlock acquisition in vgic_set_owner
        kvm: arm: don't treat unavailable HYP mode as an error
        KVM: arm/arm64: Avoid attempting to load timer vgic state without a vgic
        kvm: arm64: handle single-step of hyp emulated mmio instructions
        kvm: arm64: handle single-step during SError exceptions
        kvm: arm64: handle single-step of userspace mmio instructions
        kvm: arm64: handle single-stepping trapped instructions
        KVM: arm/arm64: debug: Introduce helper for single-step
        arm: KVM: Fix VTTBR_BADDR_MASK BUG_ON off-by-one
        ...
      c465fc11
  6. Dec 10, 2017
    • Olof Johansson's avatar
      Merge branch 'fixes' into for-next · 8be0b988
      Olof Johansson authored
      * fixes:
        ARM64: dts: meson-gx: fix UART pclk clock name
        ARM: dts: Fix dm814x missing phy-cells property
        ARM: dts: Fix elm interrupt compiler warning
        bus: arm-ccn: fix module unloading Error: Removing state 147 which has instances left.
        bus: arm-cci: Fix use of smp_processor_id() in preemptible context
        bus: arm-ccn: Fix use of smp_processor_id() in preemptible context
        bus: arm-ccn: Simplify code
        bus: arm-ccn: Check memory allocation failure
        bus: arm-ccn: constify attribute_group structures.
        meson-gx-socinfo: Fix package id parsing
        ARM: meson: fix spelling mistake: "Couln't" -> "Couldn't"
        ARM: dts: meson: fix the memory region of the GPIO interrupt controller
        ARM: dts: meson: correct the sort order for the the gpio_intc node
      8be0b988