Skip to content
  1. Jan 05, 2017
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-block · 62f8c405
      Linus Torvalds authored
      Pull block layer fixes from Jens Axboe:
       "A set of fixes for the current series, one fixing a regression with
        block size < page cache size in the alias series from Jan. Outside of
        that, two small cleanups for wbt from Bart, a nvme pull request from
        Christoph, and a few small fixes of documentation updates"
      
      * 'for-linus' of git://git.kernel.dk/linux-block:
        block: fix up io_poll documentation
        block: Avoid that sparse complains about context imbalance in __wbt_wait()
        block: Make wbt_wait() definition consistent with declaration
        clean_bdev_aliases: Prevent cleaning blocks that are not in block range
        genhd: remove dead and duplicated scsi code
        block: add back plugging in __blkdev_direct_IO
        nvmet/fcloop: remove some logically dead code performing redundant ret checks
        nvmet: fix KATO offset in Set Features
        nvme/fc: simplify error handling of nvme_fc_create_hw_io_queues
        nvme/fc: correct some printk information
        nvme/scsi: Remove START STOP emulation
        nvme/pci: Delete misleading queue-wrap comment
        nvme/pci: Fix whitespace problem
        nvme: simplify stripe quirk
        nvme: update maintainers information
      62f8c405
    • Linus Torvalds's avatar
      Merge tag 'fbdev-v4.10-rc2' of git://github.com/bzolnier/linux · 9f744519
      Linus Torvalds authored
      Pull fbdev fixes from Bartlomiej Zolnierkiewicz:
      
       - bring fbdev subsystem back into Maintained mode
      
       - add missing devm_ioremap() error checking to cobalt_lcdfb driver
      
      * tag 'fbdev-v4.10-rc2' of git://github.com/bzolnier/linux:
        video: fbdev: cobalt_lcdfb: Handle return NULL error from devm_ioremap
        MAINTAINERS: add myself as maintainer of fbdev
      9f744519
    • Linus Torvalds's avatar
      Merge tag 'gcc-plugins-v4.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 99b9be77
      Linus Torvalds authored
      Pull gcc-plugins fixes from Kees Cook:
       "Small fixes for gcc-plugins when using certain gcc versions:
      
         - update gcc-common.h for gcc 7 (Emese Revfy)
      
         - fix latent_entropy type for early gcc on ARM (PaX Team)"
      
      * tag 'gcc-plugins-v4.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        gcc-plugins: update gcc-common.h for gcc-7
        latent_entropy: fix ARM build error on earlier gcc
      99b9be77
  2. Jan 04, 2017
  3. Jan 03, 2017
  4. Jan 02, 2017
    • Srinivas Pandruvada's avatar
      HID: sensor-hub: Move the memset to sensor_hub_get_feature() · 143fca77
      Srinivas Pandruvada authored
      While applying patch d443a0aa: "HID: hid-sensor-hub: clear memory to
      avoid random data", there was some issues in applying correct version of
      the patch. This resulted in the breakage of sensor functions as all
      request like power-up will be reset by the memset() in the function
      sensor_hub_set_feature().
      The reset of caller buffer should be in the function
      sensor_hub_get_feature(), not in the sensor_hub_set_feature().
      
      Fixes: d443a0aa
      
       ("HID: hid-sensor-hub: clear memory to avoid random data")
      Cc: Stable <stable@vger.kernel.org> # 4.9+
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      143fca77
    • Marcel Hasler's avatar
      HID: usbhid: Add quirk for Mayflash/Dragonrise DolphinBar. · 8aa2cc7e
      Marcel Hasler authored
      
      
      The DolphinBar by Mayflash (identified as Dragonrise) needs
      HID_QUIRK_MULTI_INPUT to split it up into four input devices. Without this
      quirk the adapter is falsely recognized as a tablet. See also bug 115841
      (https://bugzilla.kernel.org/show_bug.cgi?id=115841).
      
      Signed-off-by: default avatarMarcel Hasler <mahasler@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      8aa2cc7e
    • Alex Wood's avatar
      HID: usbhid: Add quirk for the Futaba TOSD-5711BB VFD · f83f90cf
      Alex Wood authored
      
      
      The Futaba TOSD-5711BB VFD crashes when the initial HID report is requested,
      register the display in hid-ids and tell hid-quirks to not do the init.
      
      Signed-off-by: default avatarAlex Wood <thetewood@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      f83f90cf
    • Stafford Horne's avatar
      openrisc: Add _text symbol to fix ksym build error · 086cc1c3
      Stafford Horne authored
      
      
      The build robot reports:
      
         .tmp_kallsyms1.o: In function `kallsyms_relative_base':
      >> (.rodata+0x8a18): undefined reference to `_text'
      
      This is when using 'make alldefconfig'. Adding this _text symbol to mark
      the start of the kernel as in other architecture fixes this.
      
      Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
      Acked-by: default avatarJonas Bonn <jonas@southpole.se>
      086cc1c3
    • Linus Torvalds's avatar
      Linux 4.10-rc2 · 0c744ea4
      Linus Torvalds authored
      0c744ea4
    • Linus Torvalds's avatar
      Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 4759d386
      Linus Torvalds authored
      Pull DAX updates from Dan Williams:
       "The completion of Jan's DAX work for 4.10.
      
        As I mentioned in the libnvdimm-for-4.10 pull request, these are some
        final fixes for the DAX dirty-cacheline-tracking invalidation work
        that was merged through the -mm, ext4, and xfs trees in -rc1. These
        patches were prepared prior to the merge window, but we waited for
        4.10-rc1 to have a stable merge base after all the prerequisites were
        merged.
      
        Quoting Jan on the overall changes in these patches:
      
           "So I'd like all these 6 patches to go for rc2. The first three
            patches fix invalidation of exceptional DAX entries (a bug which
            is there for a long time) - without these patches data loss can
            occur on power failure even though user called fsync(2). The other
            three patches change locking of DAX faults so that ->iomap_begin()
            is called in a more relaxed locking context and we are safe to
            start a transaction there for ext4"
      
        These have received a build success notification from the kbuild
        robot, and pass the latest libnvdimm unit tests. There have not been
        any -next releases since -rc1, so they have not appeared there"
      
      * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        ext4: Simplify DAX fault path
        dax: Call ->iomap_begin without entry lock during dax fault
        dax: Finish fault completely when loading holes
        dax: Avoid page invalidation races and unnecessary radix tree traversals
        mm: Invalidate DAX radix tree entries only if appropriate
        ext2: Return BH_New buffers for zeroed blocks
      4759d386
  5. Dec 31, 2016
    • Eric Biggers's avatar
      fscrypt: fix renaming and linking special files · 42d97eb0
      Eric Biggers authored
      Attempting to link a device node, named pipe, or socket file into an
      encrypted directory through rename(2) or link(2) always failed with
      EPERM.  This happened because fscrypt_has_permitted_context() saw that
      the file was unencrypted and forbid creating the link.  This behavior
      was unexpected because such files are never encrypted; only regular
      files, directories, and symlinks can be encrypted.
      
      To fix this, make fscrypt_has_permitted_context() always return true on
      special files.
      
      This will be covered by a test in my encryption xfstests patchset.
      
      Fixes: 9bd8212f
      
       ("ext4 crypto: add encryption policy and password salt support")
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Reviewed-by: default avatarRichard Weinberger <richard@nod.at>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      42d97eb0
    • Linus Torvalds's avatar
      Merge tag 'docs-4.10-rc1-fix' of git://git.lwn.net/linux · 238d1d0f
      Linus Torvalds authored
      Pull documentation fixes from Jonathan Corbet:
       "Two small fixes:
      
         - A merge error on my part broke the DocBook build. I've
           requisitioned one of tglx's frozen sharks for appropriate
           disciplinary action and resolved to be more careful about testing
           the DocBook stuff as long as it's still around.
      
         - Fix an error in unaligned-memory-access.txt"
      
      * tag 'docs-4.10-rc1-fix' of git://git.lwn.net/linux:
        Documentation/unaligned-memory-access.txt: fix incorrect comparison operator
        docs: Fix build failure
      238d1d0f
    • Linus Torvalds's avatar
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · f3de082c
      Linus Torvalds authored
      Pull crypto fix from Herbert Xu:
       "This fixes a boot failure on some platforms when crypto self test is
        enabled along with the new acomp interface"
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: testmgr - Use heap buffer for acomp test input
      f3de082c
  6. Dec 30, 2016
    • Olof Johansson's avatar
      mm/filemap: fix parameters to test_bit() · 98473f9f
      Olof Johansson authored
       mm/filemap.c: In function 'clear_bit_unlock_is_negative_byte':
        mm/filemap.c:933:9: error: too few arguments to function 'test_bit'
          return test_bit(PG_waiters);
               ^~~~~~~~
      
      Fixes: b91e1302
      
       ('mm: optimize PageWaiters bit use for unlock_page()')
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Brown-paper-bag-by: default avatarLinus Torvalds <dummy@duh.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      98473f9f
    • Helge Deller's avatar
      parisc: Drop TIF_RESTORE_SIGMASK and switch to generic code · 1fe0a7e0
      Helge Deller authored
      Commit 7e781418
      
       ("signal: consolidate {TS,TLF}_RESTORE_SIGMASK code")
      introduced code with which the "restore sigmask" flag lives in task_struct
      instead of ti->flags. Let's use this optimization on parisc too.
      
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      1fe0a7e0
    • Helge Deller's avatar
      parisc: Mark cr16 clocksource unstable on SMP systems · 41744213
      Helge Deller authored
      
      
      The cr16 interval timer of each CPU is not syncronized to other cr16
      timers in other CPUs in a SMP system. So, delay the registration of the
      cr16 clocksource until all CPUs have been detected and then - if we are
      on a SMP machine - mark the cr16 clocksource as unstable and lower it's
      rating before registering it at the clocksource framework.
      
      This patch fixes the stalled CPU warnings which we have seen since
      introduction of the cr16 clocksource.
      
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: <stable@vger.kernel.org> # v4.8+
      41744213
    • Linus Torvalds's avatar
      mm: optimize PageWaiters bit use for unlock_page() · b91e1302
      Linus Torvalds authored
      In commit 62906027
      
       ("mm: add PageWaiters indicating tasks are
      waiting for a page bit") Nick Piggin made our page locking no longer
      unconditionally touch the hashed page waitqueue, which not only helps
      performance in general, but is particularly helpful on NUMA machines
      where the hashed wait queues can bounce around a lot.
      
      However, the "clear lock bit atomically and then test the waiters bit"
      sequence turns out to be much more expensive than it needs to be,
      because you get a nasty stall when trying to access the same word that
      just got updated atomically.
      
      On architectures where locking is done with LL/SC, this would be trivial
      to fix with a new primitive that clears one bit and tests another
      atomically, but that ends up not working on x86, where the only atomic
      operations that return the result end up being cmpxchg and xadd.  The
      atomic bit operations return the old value of the same bit we changed,
      not the value of an unrelated bit.
      
      On x86, we could put the lock bit in the high bit of the byte, and use
      "xadd" with that bit (where the overflow ends up not touching other
      bits), and look at the other bits of the result.  However, an even
      simpler model is to just use a regular atomic "and" to clear the lock
      bit, and then the sign bit in eflags will indicate the resulting state
      of the unrelated bit #7.
      
      So by moving the PageWaiters bit up to bit #7, we can atomically clear
      the lock bit and test the waiters bit on x86 too.  And architectures
      with LL/SC (which is all the usual RISC suspects), the particular bit
      doesn't matter, so they are fine with this approach too.
      
      This avoids the extra access to the same atomic word, and thus avoids
      the costly stall at page unlock time.
      
      The only downside is that the interface ends up being a bit odd and
      specialized: clear a bit in a byte, and test the sign bit.  Nick doesn't
      love the resulting name of the new primitive, but I'd rather make the
      name be descriptive and very clear about the limitation imposed by
      trying to work across all relevant architectures than make it be some
      generic thing that doesn't make the odd semantics explicit.
      
      So this introduces the new architecture primitive
      
          clear_bit_unlock_is_negative_byte();
      
      and adds the trivial implementation for x86.  We have a generic
      non-optimized fallback (that just does a "clear_bit()"+"test_bit(7)"
      combination) which can be overridden by any architecture that can do
      better.  According to Nick, Power has the same hickup x86 has, for
      example, but some other architectures may not even care.
      
      All these optimizations mean that my page locking stress-test (which is
      just executing a lot of small short-lived shell scripts: "make test" in
      the git source tree) no longer makes our page locking look horribly bad.
      Before all these optimizations, just the unlock_page() costs were just
      over 3% of all CPU overhead on "make test".  After this, it's down to
      0.66%, so just a quarter of the cost it used to be.
      
      (The difference on NUMA is bigger, but there this micro-optimization is
      likely less noticeable, since the big issue on NUMA was not the accesses
      to 'struct page', but the waitqueue accesses that were already removed
      by Nick's earlier commit).
      
      Acked-by: default avatarNick Piggin <npiggin@gmail.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: Bob Peterson <rpeterso@redhat.com>
      Cc: Steven Whitehouse <swhiteho@redhat.com>
      Cc: Andrew Lutomirski <luto@kernel.org>
      Cc: Andreas Gruenbacher <agruenba@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Mel Gorman <mgorman@techsingularity.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b91e1302
  7. Dec 28, 2016