29 Nov, 2016

6 commits

  • Commit 4fcd1813e640 ("Fix reconnect to not defer smb3 session reconnect
    long after socket reconnect") changes the behaviour of the SMB2 echo
    service and causes it to renegotiate after a socket reconnect. However
    under default settings, the echo service could take up to 120 seconds to
    be scheduled.

    The patch forces the echo service to be called immediately resulting a
    negotiate call being made immediately on reconnect.

    Signed-off-by: Sachin Prabhu
    Reviewed-by: Pavel Shilovsky
    Signed-off-by: Steve French

    Sachin Prabhu
     
  • Andy Lutromirski's new virtually mapped kernel stack allocations moves
    kernel stacks the vmalloc area. This triggers the bug
    kernel BUG at ./include/linux/scatterlist.h:140!
    at calc_seckey()->sg_init()

    Signed-off-by: Sachin Prabhu
    Signed-off-by: Steve French
    Reviewed-by: Jeff Layton

    Sachin Prabhu
     
  • Pull libata fixes from Tejun Heo:
    "The recent changes in ahci MSI handling need one more fix. Hopefully,
    this restores parity with before.

    The other two are minor fixes with both low impact and risk"

    * 'for-4.9-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata:
    ahci: always fall back to single-MSI mode
    libata-scsi: Fixup ata_gen_passthru_sense()
    mvsas: fix error return code in mvs_task_prep()

    Linus Torvalds
     
  • Pull sparc fixes from David Miller:
    "Two ugly build warning fixes"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
    dbri: Fix compiler warning
    qlogicpti: Fix compiler warnings

    Linus Torvalds
     
  • dbri uses 'u32' for dma handle while invoking kernel DMA APIs,
    instead of using dma_addr_t. This hasn't caused any 'incompatible
    pointer type' warning on SPARC because until now dma_addr_t is of
    type u32. However, recent changes in SPARC ATU (iommu) enabled 64bit
    DMA and therefore dma_addr_t became of type u64. This makes
    'incompatible pointer type' warnings inevitable.

    e.g.
    sound/sparc/dbri.c: In function ‘snd_dbri_create’:
    sound/sparc/dbri.c:2538: warning: passing argument 3 of ‘dma_zalloc_coherent’ from incompatible pointer type
    ./include/linux/dma-mapping.h:608: note: expected ‘dma_addr_t *’ but argument is of type ‘u32 *’

    For the record, dbri(sbus) driver never executes on sun4v. Therefore
    even though 64bit DMA is enabled on SPARC, dbri continues to use
    legacy iommu that guarantees DMA address is always in 32bit range.

    This patch resolves above compiler warning.

    Signed-off-by: Tushar Dave
    Reviewed-by: thomas tai
    Signed-off-by: David S. Miller

    Tushar Dave
     
  • qlogicpti uses '__u32' for dma handle while invoking kernel DMA APIs,
    instead of using dma_addr_t. This hasn't caused any 'incompatible
    pointer type' warning on SPARC because until now dma_addr_t is of
    type u32. However, recent changes in SPARC ATU (iommu) enabled 64bit
    DMA and therefore dma_addr_t became of type u64. This makes
    'incompatible pointer type' warnings inevitable.

    e.g.
    drivers/scsi/qlogicpti.c: In function ‘qpti_map_queues’:
    drivers/scsi/qlogicpti.c:813: warning: passing argument 3 of ‘dma_alloc_coherent’ from incompatible pointer type
    ./include/linux/dma-mapping.h:445: note: expected ‘dma_addr_t *’ but argument is of type ‘__u32 *’
    drivers/scsi/qlogicpti.c:822: warning: passing argument 3 of ‘dma_alloc_coherent’ from incompatible pointer type
    ./include/linux/dma-mapping.h:445: note: expected ‘dma_addr_t *’ but argument is of type ‘__u32 *’

    For the record, qlogicpti never executes on sun4v. Therefore even
    though 64bit DMA is enabled on SPARC, qlogicpti continues to use
    legacy iommu that guarantees DMA address is always in 32bit range.

    This patch resolves aforementioned compiler warnings.

    Signed-off-by: Tushar Dave
    Reviewed-by: thomas tai
    Signed-off-by: David S. Miller

    Tushar Dave
     

28 Nov, 2016

3 commits


27 Nov, 2016

8 commits

  • Pull vfs splice fix from Al Viro.

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    fix default_file_splice_read()

    Linus Torvalds
     
  • Botched calculation of number of pages. As the result,
    we were dropping pieces when doing splice to pipe from
    e.g. 9p.

    Reported-by: Alexei Starovoitov
    Tested-by: Alexei Starovoitov
    Signed-off-by: Al Viro

    Al Viro
     
  • Pull i2c fixes from Wolfram Sang:
    "Here is a revert and two bugfixes for the I2C designware driver.

    Please note that we are still hunting down a regression for the
    i2c-octeon driver. While there is a fix pending, we have unclear
    feedback from the testers currently. An rc8 would be quite helpful
    for this case"

    * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
    Revert "i2c: designware: do not disable adapter after transfer"
    i2c: designware: fix rx fifo depth tracking
    i2c: designware: report short transfers

    Linus Torvalds
     
  • Pull ARM fix from Russell King:
    "This resolves the ksyms issues by reverting the commit which
    introduced the breakage"

    There was what I consider to be a better fix, but it's late in the rc
    game, so I'll take the revert.

    * 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm:
    Revert "arm: move exports to definitions"

    Linus Torvalds
     
  • Pull networking fixes from David Miller:

    1) Fix leak in fsl/fman driver, from Dan Carpenter.

    2) Call flow dissector initcall earlier than any networking driver can
    register and start to use it, from Eric Dumazet.

    3) Some dup header fixes from Geliang Tang.

    4) TIPC link monitoring compat fix from Jon Paul Maloy.

    5) Link changes require EEE re-negotiation in bcm_sf2 driver, from
    Florian Fainelli.

    6) Fix bogus handle ID passed into tfilter_notify_chain(), from Roman
    Mashak.

    7) Fix dump size calculation in rtnl_calcit(), from Zhang Shengju.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (26 commits)
    tipc: resolve connection flow control compatibility problem
    mvpp2: use correct size for memset
    net/mlx5: drop duplicate header delay.h
    net: ieee802154: drop duplicate header delay.h
    ibmvnic: drop duplicate header seq_file.h
    fsl/fman: fix a leak in tgec_free()
    net: ethtool: don't require CAP_NET_ADMIN for ETHTOOL_GLINKSETTINGS
    tipc: improve sanity check for received domain records
    tipc: fix compatibility bug in link monitoring
    net: ethernet: mvneta: Remove IFF_UNICAST_FLT which is not implemented
    dwc_eth_qos: drop duplicate headers
    net sched filters: fix filter handle ID in tfilter_notify_chain()
    net: dsa: bcm_sf2: Ensure we re-negotiate EEE during after link change
    bnxt: do not busy-poll when link is down
    udplite: call proper backlog handlers
    ipv6: bump genid when the IFA_F_TENTATIVE flag is clear
    net/mlx4_en: Free netdev resources under state lock
    net: revert "net: l2tp: Treat NET_XMIT_CN as success in l2tp_eth_dev_xmit"
    rtnetlink: fix the wrong minimal dump size getting from rtnl_calcit()
    bnxt_en: Fix a VXLAN vs GENEVE issue
    ...

    Linus Torvalds
     
  • Pull libnvdimm fixes from Dan Williams:

    - Fix a crash that occurs at driver initialization if the memory region
    is already busy (request_mem_region() fails).

    - Fix a vma validation check that mistakenly allows a private device-
    dax mapping to be established. Device-dax explicitly forbids private
    mappings so it can guarantee a given fault granularity and backing
    memory type.

    Both of these fixes have soaked in -next and are tagged for -stable.

    * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
    device-dax: fail all private mapping attempts
    device-dax: check devm_nsio_enable() return value

    Linus Torvalds
     
  • Pull KVM fixes from Radim Krčmář:
    "Four fixes for bugs found by syzkaller on x86, all for stable"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: x86: check for pic and ioapic presence before use
    KVM: x86: fix out-of-bounds accesses of rtc_eoi map
    KVM: x86: drop error recovery in em_jmp_far and em_ret_far
    KVM: x86: fix out-of-bounds access in lapic

    Linus Torvalds
     
  • Pull powerpc fixes from Michael Ellerman:
    "Fixes marked for stable:
    - Set missing wakeup bit in LPCR on POWER9
    - Fix the early OPAL console wrappers
    - Fixup kernel read only mapping

    Fixes for code merged this cycle:
    - Fix missing CRCs, add more asm-prototypes.h declarations"

    * tag 'powerpc-4.9-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
    powerpc/mm: Fixup kernel read only mapping
    powerpc/boot: Fix the early OPAL console wrappers
    powerpc: Fix missing CRCs, add more asm-prototypes.h declarations
    powerpc: Set missing wakeup bit in LPCR on POWER9

    Linus Torvalds
     

26 Nov, 2016

22 commits

  • In commit 10724cc7bb78 ("tipc: redesign connection-level flow control")
    we replaced the previous message based flow control with one based on
    1k blocks. In order to ensure backwards compatibility the mechanism
    falls back to using message as base unit when it senses that the peer
    doesn't support the new algorithm. The default flow control window,
    i.e., how many units can be sent before the sender blocks and waits
    for an acknowledge (aka advertisement) is 512. This was tested against
    the previous version, which uses an acknowledge frequency of on ack per
    256 received message, and found to work fine.

    However, we missed the fact that versions older than Linux 3.15 use an
    acknowledge frequency of 512, which is exactly the limit where a 4.6+
    sender will stop and wait for acknowledge. This would also work fine if
    it weren't for the fact that if the first sent message on a 4.6+ server
    side is an empty SYNACK, this one is also is counted as a sent message,
    while it is not counted as a received message on a legacy 3.15-receiver.
    This leads to the sender always being one step ahead of the receiver, a
    scenario causing the sender to block after 512 sent messages, while the
    receiver only has registered 511 read messages. Hence, the legacy
    receiver is not trigged to send an acknowledge, with a permanently
    blocked sender as result.

    We solve this deadlock by simply allowing the sender to send one more
    message before it blocks, i.e., by a making minimal change to the
    condition used for determining connection congestion.

    Signed-off-by: Jon Maloy
    Signed-off-by: David S. Miller

    Jon Paul Maloy
     
  • gcc-7 detects a short memset in mvpp2, introduced in the original
    merge of the driver:

    drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_cls_init':
    drivers/net/ethernet/marvell/mvpp2.c:3296:2: error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]

    The result seems to be that we write uninitialized data into the
    flow table registers, although we did not get any warning about
    that uninitialized data usage.

    Using sizeof() lets us initialize then entire array instead.

    Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
    Signed-off-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Arnd Bergmann
     
  • Drop duplicate header delay.h from mlx5/core/main.c.

    Signed-off-by: Geliang Tang
    Acked-by: Matan Barak
    Acked-by: Saeed Mahameed
    Signed-off-by: David S. Miller

    Geliang Tang
     
  • Drop duplicate header delay.h from adf7242.c.

    Signed-off-by: Geliang Tang
    Acked-by: Stefan Schmidt
    Signed-off-by: David S. Miller

    Geliang Tang
     
  • Drop duplicate header seq_file.h from ibmvnic.c.

    Signed-off-by: Geliang Tang
    Signed-off-by: David S. Miller

    Geliang Tang
     
  • We set "tgec->cfg" to NULL before passing it to kfree(). There is no
    need to set it to NULL at all. Let's just delete it.

    Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support")
    Signed-off-by: Dan Carpenter
    Signed-off-by: David S. Miller

    Dan Carpenter
     
  • The ETHTOOL_GLINKSETTINGS command is deprecating the ETHTOOL_GSET
    command and likewise it shouldn't require the CAP_NET_ADMIN capability.

    Signed-off-by: Miroslav Lichvar
    Signed-off-by: David S. Miller

    Miroslav Lichvar
     
  • In commit 35c55c9877f8 ("tipc: add neighbor monitoring framework") we
    added a data area to the link monitor STATE messages under the
    assumption that previous versions did not use any such data area.

    For versions older than Linux 4.3 this assumption is not correct. In
    those version, all STATE messages sent out from a node inadvertently
    contain a 16 byte data area containing a string; -a leftover from
    previous RESET messages which were using this during the setup phase.
    This string serves no purpose in STATE messages, and should no be there.

    Unfortunately, this data area is delivered to the link monitor
    framework, where a sanity check catches that it is not a correct domain
    record, and drops it. It also issues a rate limited warning about the
    event.

    Since such events occur much more frequently than anticipated, we now
    choose to remove the warning in order to not fill the kernel log with
    useless contents. We also make the sanity check stricter, to further
    reduce the risk that such data is inavertently admitted.

    Signed-off-by: Jon Maloy
    Signed-off-by: David S. Miller

    Jon Paul Maloy
     
  • commit 817298102b0b ("tipc: fix link priority propagation") introduced a
    compatibility problem between TIPC versions newer than Linux 4.6 and
    those older than Linux 4.4. In versions later than 4.4, link STATE
    messages only contain a non-zero link priority value when the sender
    wants the receiver to change its priority. This has the effect that the
    receiver resets itself in order to apply the new priority. This works
    well, and is consistent with the said commit.

    However, in versions older than 4.4 a valid link priority is present in
    all sent link STATE messages, leading to cyclic link establishment and
    reset on the 4.6+ node.

    We fix this by adding a test that the received value should not only
    be valid, but also differ from the current value in order to cause the
    receiving link endpoint to reset.

    Reported-by: Amar Nv
    Signed-off-by: Jon Maloy
    Signed-off-by: David S. Miller

    Jon Paul Maloy
     
  • The mvneta driver advertises it supports IFF_UNICAST_FLT. However, it
    actually does not. The hardware probably does support it, but there is
    no code to configure the filter. As a quick and simple fix, remove the
    flag. This will cause the core to fall back to promiscuous mode.

    Signed-off-by: Andrew Lunn
    Fixes: b50b72de2f2f ("net: mvneta: enable features before registering the driver")
    Signed-off-by: David S. Miller

    Andrew Lunn
     
  • Pull parisc fixes from Helge Deller:
    "On parisc we were still seeing occasional random segmentation faults
    and memory corruption on SMP machines. Dave Anglin then looked again
    at the TLB related code and found two issues in the PCI DMA and
    generic TLB flush functions.

    Then, in our startup code we had some timing of the cache and TLB
    functions to calculate a threshold when to use a complete TLB/cache
    flush or just to flush a specific range. This code produced a race
    with newly started CPUs and thus lead to occasional kernel crashes
    (due to stale TLB/cache entries). The patch by Dave fixes this issue
    by flushing the local caches before starting secondary CPUs and by
    removing the race.

    The last problem fixed by this series is that we quite often suffered
    from hung tasks and self-detected stalls on the CPUs. It was somehow
    clear that this was related to the (in v4.7) newly introduced cr16
    clocksource and the own implementation of sched_clock(). I replaced
    the open-coded sched_clock() function and switched to the generic
    sched_clock() implementation which seems to have fixed this isse as
    well.

    All patches have been sucessfully tested on a variety of machines,
    including our debian buildd servers.

    All patches (beside the small pr_cont fix) are tagged for stable
    releases"

    * 'parisc-4.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
    parisc: Also flush data TLB in flush_icache_page_asm
    parisc: Fix race in pci-dma.c
    parisc: Switch to generic sched_clock implementation
    parisc: Fix races in parisc_setup_cache_timing()
    parisc: Fix printk continuations in system detection

    Linus Torvalds
     
  • Pull keys fixes from James Morris:
    "From David:

    - Fix mpi_powm()'s handling of a number with a zero exponent
    [CVE-2016-8650].

    Integrate my and Andrey's patches for mpi_powm() and use
    mpi_resize() instead of RESIZE_IF_NEEDED() - the latter adds a
    duplicate check into the execution path of a trivial case we
    don't normally expect to be taken.

    - Fix double free in X.509 error handling"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
    mpi: Fix NULL ptr dereference in mpi_powm() [ver #3]
    X.509: Fix double free in x509_cert_parse() [ver #3]

    Linus Torvalds
     
  • CONFIG_MODVERSIONS has been broken for pretty much the whole 4.9 series,
    and quite frankly, nobody has cared very deeply. We absolutely know how
    to fix it, and it's not _complicated_, but it's not exactly pretty
    either.

    This oneliner fixes it without the ugliness, and allows for further
    future cleanups.

    "We've secretly replaced their regular MODVERSIONS with nothing at
    all, let's see if they notice"

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Pull ACPI fixes from Rafael Wysocki:
    "Two ACPI fixes for 4.9-rc7.

    One of them reverts a recent ACPI commit that attempted to improve
    reboot/power-off on some systems, but introduced problems elsewhere,
    and the other one fixes kernel builds with the new WDAT watchdog
    driver enabled in some configurations.

    Specifics:

    - Revert the recent commit that caused the ACPI _PTS method to be
    executed in the power-off/reboot code path (as per the
    specification) in an attempt to improve things on some systems
    (apparently expecting _PTS to be executed in that code path), but
    broke power-off/reboot on at least one other machine (Rafael
    Wysocki).

    - Fix kernel builds with the new WDAT watchdog driver enabled in some
    configurations by explicitly selecting WATCHDOG_CORE when enabling
    the WDAT watchdog driver (Mika Westerberg)"

    * tag 'acpi-4.9-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    watchdog: wdat_wdt: Select WATCHDOG_CORE
    Revert "ACPI: Execute _PTS before system reboot"

    Linus Torvalds
     
  • Following the kernel Bugzilla discussion during the Kernel Summit
    (https://lwn.net/Articles/705245/), add bug tracking system location
    entry type (B) to MAINTAINERS and populate it for several subsystems
    known to be using the kernel BZ actively (and add the upstream BZ for
    ACPICA too).

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • This reverts commit 0317e6c0f1dc1ba86b8d9dccc010c5e77b8355fa.

    Srinivas reported recently touchscreen and touchpad stopped working in
    Haswell based machine in Linux 4.9-rc series with timeout errors from
    i2c_designware:

    [ 16.508013] i2c_designware INT33C3:00: controller timed out
    [ 16.508302] i2c_hid i2c-MSFT0001:02: failed to change power setting.
    [ 17.532016] i2c_designware INT33C3:00: controller timed out
    [ 18.556022] i2c_designware INT33C3:00: controller timed out
    [ 18.556315] i2c_hid i2c-ATML1000:00: failed to retrieve report from device.

    I managed to reproduce similar errors on another Haswell based machine
    where touchscreen initialization fails maybe in every 1/5 - 1/2 boots.
    Since root cause for these errors is not clear yet and debugging is
    ongoing it's better to revert this commit as we are near to release.

    Reported-by: Srinivas Pandruvada
    Signed-off-by: Jarkko Nikula
    Signed-off-by: Wolfram Sang

    Jarkko Nikula
     
  • * acpi-sleep-fixes:
    Revert "ACPI: Execute _PTS before system reboot"

    * acpi-wdat-fixes:
    watchdog: wdat_wdt: Select WATCHDOG_CORE

    Rafael J. Wysocki
     
  • …ux/kernel/git/mkl/linux-can

    Marc Kleine-Budde says:

    ====================
    pull-request: can 2016-11-23

    this is a pull request for net/master.

    The patch by Oliver Hartkopp for the broadcast manager (bcm) fixes the
    CAN-FD support, which may cause an out-of-bounds access otherwise.
    ====================

    Signed-off-by: David S. Miller <davem@davemloft.net>

    David S. Miller
     
  • Drop duplicate headers types.h and delay.h from dwc_eth_qos.c.

    Signed-off-by: Geliang Tang
    Signed-off-by: David S. Miller

    Geliang Tang
     
  • Pull MFD fixes from Lee Jones:
    "Received a copule of last minute fixes for v4.9.

    The patches from Viresh are fixing issues displayed in KernelCI"

    * tag 'mfd-fixes-4.9.1' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
    mfd: wm8994-core: Don't use managed regulator bulk get API
    mfd: wm8994-core: Disable regulators before removing them
    mfd: syscon: Support native-endian regmaps

    Linus Torvalds
     
  • Pull media fix from Mauro Carvalho Chehab:
    "Fix for the firmware load logic of the tuner-xc2028 driver"

    * tag 'media/v4.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    xc2028: Fix use-after-free bug properly

    Linus Torvalds
     
  • Pull drm fixes from Dave Airlie:
    "Seems to be quietening down nicely, a few mediatek, one exynos and one
    hdlcd fix, along with two amd fixes"

    * tag 'drm-fixes-for-v4.9-rc7' of git://people.freedesktop.org/~airlied/linux:
    gpu/drm/exynos/exynos_hdmi - Unmap region obtained by of_iomap
    drm/mediatek: fix null pointer dereference
    drm/mediatek: fixed the calc method of data rate per lane
    drm/mediatek: fix a typo of DISP_OD_CFG to OD_RELAYMODE
    drm/radeon: fix power state when port pm is unavailable (v2)
    drm/amdgpu: fix power state when port pm is unavailable
    drm/arm: hdlcd: fix plane base address update
    drm/amd/powerplay: avoid out of bounds access on array ps.

    Linus Torvalds
     

25 Nov, 2016

1 commit

  • This is the second issue I noticed in reviewing the parisc TLB code.

    The fic instruction may use either the instruction or data TLB in
    flushing the instruction cache. Thus, on machines with a split TLB, we
    should also flush the data TLB after setting up the temporary alias
    registers.

    Although this has no functional impact, I changed the pdtlb and pitlb
    instructions to consistently use the index register %r0. These
    instructions do not support integer displacements.

    Tested on rp3440 and c8000.

    Signed-off-by: John David Anglin
    Cc: # v3.16+
    Signed-off-by: Helge Deller

    John David Anglin