Skip to content
  1. Oct 31, 2017
  2. Oct 29, 2017
  3. Oct 28, 2017
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v4.14-2' of... · 25a5d23b
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v4.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - fix O= building on dash
      
       - remove unused dependency in Makefile
      
       - fix default of a choice in Kconfig
      
       - fix typos and documentation style
      
       - fix command options unrecognized by sparse
      
      * tag 'kbuild-fixes-v4.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: clang: fix build failures with sparse check
        kbuild doc: a bundle of fixes on makefiles.txt
        Makefile: kselftest: fix grammar typo
        kbuild: Fix optimization level choice default
        kbuild: drop unused symverfile in Makefile.modpost
        kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)
      25a5d23b
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · a7d3e63f
      Linus Torvalds authored
      Pull input fixes from Dmitry Torokhov:
      
       - fix gtco tablet driver, tightening parsing of HID descriptors
      
       - add ACPI ID added to Elan driver to be able to handle touchpads found
         in Lenovo Ideapad 320/520
      
       - fix the Symaptics RMI4 driver to adjust handling of buttons
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: synaptics-rmi4 - limit the range of what GPIOs are buttons
        Input: gtco - fix potential out-of-bound access
        Input: elan_i2c - add ELAN0611 to the ACPI table
      a7d3e63f
    • Linus Torvalds's avatar
      Merge tag 'pci-v4.14-fixes-6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · 22450e03
      Linus Torvalds authored
      Pull PCI fix from Bjorn Helgaas:
       "Move alpha PCI IRQ map/swizzle functions out of initdata to fix
        regression from PCI core IRQ mapping changes (Lorenzo Pieralisi)"
      
      * tag 'pci-v4.14-fixes-6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        alpha/PCI: Move pci_map_irq()/pci_swizzle() out of initdata
      22450e03
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-for-v4.14-rc7' of git://people.freedesktop.org/~airlied/linux · b35f0ca7
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Two amd fixes, one i915 core and a few i915 GVT fixes, things seem
        fairly quiet"
      
      * tag 'drm-fixes-for-v4.14-rc7' of git://people.freedesktop.org/~airlied/linux:
        drm/i915/gvt: Adding ACTHD mmio read handler
        drm/i915/gvt: Extract mmio_read_from_hw() common function
        drm/i915/gvt: Refine MMIO_RING_F()
        drm/i915/gvt: properly check per_ctx bb valid state
        drm/i915/perf: fix perf enable/disable ioctls with 32bits userspace
        drm/amd/amdgpu: Remove workaround check for UVD6 on APUs
        drm/amd/powerplay: fix uninitialized variable
      b35f0ca7
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 5345da89
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Six fixes for mostly minor issues, most of which have small race
        windows for occurring"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: Suppress a kernel warning in case the prep function returns BLKPREP_DEFER
        scsi: sg: Re-fix off by one in sg_fill_request_table()
        scsi: aacraid: Fix controller initialization failure
        scsi: hpsa: Fix configured_logical_drive_count·check
        scsi: qla2xxx: Initialize Work element before requesting IRQs
        scsi: zfcp: fix erp_action use-before-initialize in REC action trace
      5345da89
    • David Howells's avatar
      assoc_array: Fix a buggy node-splitting case · ea678998
      David Howells authored
      
      
      This fixes CVE-2017-12193.
      
      Fix a case in the assoc_array implementation in which a new leaf is
      added that needs to go into a node that happens to be full, where the
      existing leaves in that node cluster together at that level to the
      exclusion of new leaf.
      
      What needs to happen is that the existing leaves get moved out to a new
      node, N1, at level + 1 and the existing node needs replacing with one,
      N0, that has pointers to the new leaf and to N1.
      
      The code that tries to do this gets this wrong in two ways:
      
       (1) The pointer that should've pointed from N0 to N1 is set to point
           recursively to N0 instead.
      
       (2) The backpointer from N0 needs to be set correctly in the case N0 is
           either the root node or reached through a shortcut.
      
      Fix this by removing this path and using the split_node path instead,
      which achieves the same end, but in a more general way (thanks to Eric
      Biggers for spotting the redundancy).
      
      The problem manifests itself as:
      
        BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
        IP: assoc_array_apply_edit+0x59/0xe5
      
      Fixes: 3cb98950 ("Add a generic associative array implementation.")
      Reported-and-tested-by: default avatarWU Fan <u3536072@connect.hku.hk>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Cc: stable@vger.kernel.org [v3.13-rc1+]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ea678998
    • Linus Torvalds's avatar
      Merge tag '4.14-smb3-fixes-for-stable' of git://git.samba.org/sfrench/cifs-2.6 · 78140234
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Various SMB3 fixes for 4.14 and stable"
      
      * tag '4.14-smb3-fixes-for-stable' of git://git.samba.org/sfrench/cifs-2.6:
        SMB3: Validate negotiate request must always be signed
        SMB: fix validate negotiate info uninitialised memory use
        SMB: fix leak of validate negotiate info response buffer
        CIFS: Fix NULL pointer deref on SMB2_tcon() failure
        CIFS: do not send invalid input buffer on QUERY_INFO requests
        cifs: Select all required crypto modules
        CIFS: SMBD: Fix the definition for SMB2_CHANNEL_RDMA_V1_INVALIDATE
        cifs: handle large EA requests more gracefully in smb2+
        Fix encryption labels and lengths for SMB3.1.1
      78140234
    • Linus Torvalds's avatar
      Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs · c9f27f9f
      Linus Torvalds authored
      Pull overlayfs fixes from Miklos Szeredi:
       "Fix several issues, most of them introduced in the last release"
      
      * 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
        ovl: do not cleanup unsupported index entries
        ovl: handle ENOENT on index lookup
        ovl: fix EIO from lookup of non-indexed upper
        ovl: Return -ENOMEM if an allocation fails ovl_lookup()
        ovl: add NULL check in ovl_alloc_inode
      c9f27f9f
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · a9af9835
      Linus Torvalds authored
      Pull fuse fix from Miklos Szeredi:
       "This fixes a longstanding bug, which can be triggered by interrupting
        a directory reading syscall"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        fuse: fix READDIRPLUS skipping an entry
      a9af9835
    • Girish Moodalbail's avatar
      tap: reference to KVA of an unloaded module causes kernel panic · dea6e19f
      Girish Moodalbail authored
      
      
      The commit 9a393b5d ("tap: tap as an independent module") created a
      separate tap module that implements tap functionality and exports
      interfaces that will be used by macvtap and ipvtap modules to create
      create respective tap devices.
      
      However, that patch introduced a regression wherein the modules macvtap
      and ipvtap can be removed (through modprobe -r) while there are
      applications using the respective /dev/tapX devices. These applications
      cause kernel to hold reference to /dev/tapX through 'struct cdev
      macvtap_cdev' and 'struct cdev ipvtap_dev' defined in macvtap and ipvtap
      modules respectively. So,  when the application is later closed the
      kernel panics because we are referencing KVA that is present in the
      unloaded modules.
      
      ----------8<------- Example ----------8<----------
      $ sudo ip li add name mv0 link enp7s0 type macvtap
      $ sudo ip li show mv0 |grep mv0| awk -e '{print $1 $2}'
        14:mv0@enp7s0:
      $ cat /dev/tap14 &
      $ lsmod |egrep -i 'tap|vlan'
      macvtap                16384  0
      macvlan                24576  1 macvtap
      tap                    24576  3 macvtap
      $ sudo modprobe -r macvtap
      $ fg
      cat /dev/tap14
      ^C
      
      <...system panics...>
      BUG: unable to handle kernel paging request at ffffffffa038c500
      IP: cdev_put+0xf/0x30
      ----------8<-----------------8<----------
      
      The fix is to set cdev.owner to the module that creates the tap device
      (either macvtap or ipvtap). With this set, the operations (in
      fs/char_dev.c) on char device holds and releases the module through
      cdev_get() and cdev_put() and will not allow the module to unload
      prematurely.
      
      Fixes: 9a393b5d (tap: tap as an independent module)
      Signed-off-by: default avatarGirish Moodalbail <girish.moodalbail@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      dea6e19f
Loading