1. 13 Aug, 2015 13 commits
  2. 11 Aug, 2015 3 commits
  3. 10 Aug, 2015 11 commits
  4. 09 Aug, 2015 13 commits
    • Kees Cook's avatar
      ntb: avoid format string in dev_set_name · e15f9409
      Kees Cook authored
      Avoid any chance of format string expansion when calling dev_set_name.
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      e15f9409
    • Allen Hubbe's avatar
      NTB: Fix dereference before check · 30a4bb1e
      Allen Hubbe authored
      Remove early dereference of a pointer that is checked later in the code.
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarAllen Hubbe <Allen.Hubbe@emc.com>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      30a4bb1e
    • Allen Hubbe's avatar
      NTB: Fix zero size or integer overflow in ntb_set_mw · 8c9edf63
      Allen Hubbe authored
      A plain 32 bit integer will overflow for values over 4GiB.
      
      Change the plain integer size to the appropriate size type in
      ntb_set_mw.  Change the type of the size parameter and two local
      variables used for size.
      
      Even if there is no overflow, a size of zero is invalid here.
      Reported-by: default avatarJuyoung Jung <jjung@micron.com>
      Signed-off-by: default avatarAllen Hubbe <Allen.Hubbe@emc.com>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      8c9edf63
    • Allen Hubbe's avatar
      NTB: Schedule to receive on QP link up · 8b5a22d8
      Allen Hubbe authored
      Schedule to receive on QP link up, to make sure that the doorbell is
      properly cleared for interrupts.
      Signed-off-by: default avatarAllen Hubbe <Allen.Hubbe@emc.com>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      8b5a22d8
    • Dave Jiang's avatar
      NTB: Fix oops in debugfs when transport is half-up · 260bee94
      Dave Jiang authored
      When the remote side is not up, we do not have all the context for the
      transport, and that causes NULL ptr access. Have the debugfs reads check
      to see if transport is up before we make access.
      Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      260bee94
    • Dave Jiang's avatar
      NTB: ntb_netdev not covering all receive errors · da4eb27a
      Dave Jiang authored
      ntb_netdev is allowing the link to come up even when -ENOMEM is returned
      from ntb_transport_rx_enqueue.  Fix to cover all possible errors.
      Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      da4eb27a
    • Dave Jiang's avatar
      NTB: Fix transport stats for multiple devices · c8650fd0
      Dave Jiang authored
      Currently the debugfs does not have files for all NTB transport queue
      pairs.  When there are multiple NTBs present in a system, the QP names
      of the last transport clobber the names of previously added transport
      QPs.  Only the last added QPs can be observed via debugfs.
      
      Create a directory per NTB transport to associate the QPs with that
      transport.  Name the directory the same as the PCI device.
      Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      c8650fd0
    • Allen Hubbe's avatar
      NTB: Fix ntb_transport out-of-order RX update · da2e5ae5
      Allen Hubbe authored
      It was possible for a synchronous update of the RX index in the error
      case to get ahead of the asynchronous RX index update in the normal
      case.  Change the RX processing to preserve an RX completion order.
      
      There were two error cases.  First, if a buffer is not present to
      receive data, there would be no queue entry to preserve the RX
      completion order.  Instead of dropping the RX frame, leave the RX frame
      in the ring.  Schedule RX processing when RX entries are enqueued, in
      case there are RX frames waiting in the ring to be received.
      
      Second, if a buffer is too small to receive data, drop the frame in the
      ring, mark the RX entry as done, and indicate the error in the RX entry
      length.  Check for a negative length in the receive callback in
      ntb_netdev, and count occurrences as rx_length_errors.
      Signed-off-by: default avatarAllen Hubbe <Allen.Hubbe@emc.com>
      Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
      da2e5ae5
    • Linus Torvalds's avatar
      Linux 4.2-rc6 · f7644cbf
      Linus Torvalds authored
      f7644cbf
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · a230e95c
      Linus Torvalds authored
      Pull input subsystem fixes from Dmitry Torokhov:
       "Just small ALPS and Elan touchpads, and other driver fixups"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: elantech - add special check for fw_version 0x470f01 touchpad
        Input: twl4030-vibra - fix ERROR: Bad of_node_put() warning
        Input: alps - only Dell laptops have separate button bits for v2 dualpoint sticks
        Input: axp20x-pek - add module alias
        Input: turbografx - fix potential out of bound access
      a230e95c
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 3fbdc379
      Linus Torvalds authored
      Pull MIPS fixes from Ralf Baechle:
       "Another round of MIPS fixes for 4.2.  No area does particularly stand
        out but we have a two unpleasant ones:
      
         - Kernel ptes are marked with a global bit which allows the kernel to
           share kernel TLB entries between all processes.  For this to work
           both entries of an adjacent even/odd pte pair need to have the
           global bit set.  There has been a subtle race in setting the other
           entry's global bit since ~ 2000 but it take particularly
           pathological workloads that essentially do mostly vmalloc/vfree to
           trigger this.
      
           This pull request fixes the 64-bit case but leaves the case of 32
           bit CPUs with 64 bit ptes unsolved for now.  The unfixed cases
           affect hardware that is not available in the field yet.
      
         - Instruction emulation requires loading instructions from user space
           but the current fast but simplistic approach will fail on pages
           that are PROT_EXEC but !PROT_READ.  For this reason we temporarily
           do not permit this permission and will map pages with PROT_EXEC |
           PROT_READ.
      
        The remainder of this pull request is more or less across the field
        and the short log explains them well"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: Make set_pte() SMP safe.
        MIPS: Replace add and sub instructions in relocate_kernel.S with addiu
        MIPS: Flush RPS on kernel entry with EVA
        Revert "MIPS: BCM63xx: Provide a plat_post_dma_flush hook"
        MIPS: BMIPS: Delete unused Kconfig symbol
        MIPS: Export get_c0_perfcount_int()
        MIPS: show_stack: Fix stack trace with EVA
        MIPS: do_mcheck: Fix kernel code dump with EVA
        MIPS: SMP: Don't increment irq_count multiple times for call function IPIs
        MIPS: Partially disable RIXI support.
        MIPS: Handle page faults of executable but unreadable pages correctly.
        MIPS: Malta: Don't reinitialise RTC
        MIPS: unaligned: Fix build error on big endian R6 kernels
        MIPS: Fix sched_getaffinity with MT FPAFF enabled
        MIPS: Fix build with CONFIG_OF=y for non OF-enabled targets
        CPUFREQ: Loongson2: Fix broken build due to incorrect include.
      3fbdc379
    • Linus Torvalds's avatar
      Merge branch 'for-linus-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · af0b3152
      Linus Torvalds authored
      Pull btrfs fix from Chris Mason:
       "We have a btrfs quota regression fix.
      
        I merged this one on Thursday and have run it through tests against
        current master.
      
        Normally I wouldn't have sent this while you were finalizing rc6, but
        I'm feeding mosquitoes in the adirondacks next week, so I wanted to
        get this one out before leaving.  I'll leave longer tests running and
        check on things during the week, but I don't expect any problems"
      
      * 'for-linus-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
        btrfs: qgroup: Fix a regression in qgroup reserved space.
      af0b3152
    • Linus Torvalds's avatar
      Merge branch 'for-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux · bae1577e
      Linus Torvalds authored
      Pull thermal management fixes from Zhang Rui:
       "Specifics:
      
         - fix an error that "weight_attr" sysfs attribute is not removed
           while unbinding.  From: Viresh Kumar.
      
         - fix power allocator governor tracing to return the real request.
           From Javi Merino.
      
         - remove redundant owner assignment of hisi platform thermal driver.
           From Krzysztof Kozlowski.
      
         - a couple of small fixes of Exynos thermal driver.  From Krzysztof
           Kozlowski and Chanwoo Choi"
      
      * 'for-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
        thermal: Drop owner assignment from platform_driver
        thermal: exynos: Remove unused code related to platform_data on probe()
        thermal: exynos: Add the dependency of CONFIG_THERMAL_OF instead of CONFIG_OF
        thermal: exynos: Disable the regulator on probe failure
        thermal: power_allocator: trace the real requested power
        thermal: remove dangling 'weight_attr' device file
      bae1577e