Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Hikey960 upstream rebase #186

Open
wants to merge 10,000 commits into
base: 96b-kernelci
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 22, 2017

  1. net: ethtool: remove error check for legacy setting transceiver type

    Commit 9cab88726929605 ("net: ethtool: Add back transceiver type")
    restores the transceiver type to struct ethtool_link_settings and
    convert_link_ksettings_to_legacy_settings() but forgets to remove the
    error check for the same in convert_legacy_settings_to_link_ksettings().
    This prevents older versions of ethtool to change link settings.
    
        # ethtool --version
        ethtool version 3.16
    
        # ethtool -s eth0 autoneg on speed 100 duplex full
        Cannot set new settings: Invalid argument
          not setting speed
          not setting duplex
          not setting autoneg
    
    While newer versions of ethtool works.
    
        # ethtool --version
        ethtool version 4.10
    
        # ethtool -s eth0 autoneg on speed 100 duplex full
        [   57.703268] sh-eth ee700000.ethernet eth0: Link is Down
        [   59.618227] sh-eth ee700000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    
    Fixes: 19cab88 ("net: ethtool: Add back transceiver type")
    Signed-off-by: Niklas Söderlund <[email protected]>
    Reported-by: Renjith R V <[email protected]>
    Tested-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Niklas Söderlund authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    95491e3 View commit details
    Browse the repository at this point in the history
  2. mlxsw: reg: Add Tunneling IPinIP General Configuration Register

    The TIGCR register is used for setting up the IPinIP Tunnel
    configuration.
    
    Fixes: ee954d1 ("mlxsw: spectrum_router: Support GRE tunnels")
    Signed-off-by: Petr Machata <[email protected]>
    Reviewed-by: Ido Schimmel <[email protected]>
    Signed-off-by: Jiri Pirko <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    pmachata authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    14aefd9 View commit details
    Browse the repository at this point in the history
  3. mlxsw: spectrum_router: Configure TIGCR on init

    Spectrum tunnels do not default to ttl of "inherit" like the Linux ones
    do. Configure TIGCR on router init so that the TTL of tunnel packets is
    copied from the overlay packets.
    
    Fixes: ee954d1 ("mlxsw: spectrum_router: Support GRE tunnels")
    Signed-off-by: Petr Machata <[email protected]>
    Reviewed-by: Ido Schimmel <[email protected]>
    Signed-off-by: Jiri Pirko <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    pmachata authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    dcbda28 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'mlxsw-fixes'

    Jiri Pirko says:
    
    ====================
    mlxsw: spectrum: Configure TTL of "inherit" for offloaded tunnels
    
    Petr says:
    
    Currently mlxsw only offloads tunnels that are configured with TTL of "inherit"
    (which is the default). However, Spectrum defaults to 255 and the driver
    neglects to change the configuration. Thus the tunnel packets from offloaded
    tunnels always have TTL of 255, even though tunnels with explicit TTL of 255 are
    never actually offloaded.
    
    To fix this, introduce support for TIGCR, the register that keeps the related
    bits of global tunnel configuration, and use it on first offload to properly
    configure inheritance of TTL of tunnel packets from overlay packets.
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    0247880 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/viro/vfs
    
    Pull vfs fixes from Al Viro:
     "MS_I_VERSION fixes - Mimi's fix + missing bits picked from Matthew
      (his patch contained a duplicate of the fs/namespace.c fix as well,
      but by that point the original fix had already been applied)"
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
      Convert fs/*/* to SB_I_VERSION
      vfs: fix mounting a filesystem with i_version
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    ec0145e View commit details
    Browse the repository at this point in the history
  6. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/dtor/input
    
    Pull input fixes from Dmitry Torokhov:
    
     - joydev now implements a blacklist to avoid creating joystick nodes
       for accelerometers found in composite devices such as PlaStation
       controllers
    
     - assorted driver fixes
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
      Input: ims-psu - check if CDC union descriptor is sane
      Input: joydev - blacklist ds3/ds4/udraw motion sensors
      Input: allow matching device IDs on property bits
      Input: factor out and export input_device_id matching code
      Input: goodix - poll the 'buffer status' bit before reading data
      Input: axp20x-pek - fix module not auto-loading for axp221 pek
      Input: tca8418 - enable interrupt after it has been requested
      Input: stmfts - fix setting ABS_MT_POSITION_* maximum size
      Input: ti_am335x_tsc - fix incorrect step config for 5 wire touchscreen
      Input: synaptics - disable kernel tracking on SMBus devices
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    e5f468b View commit details
    Browse the repository at this point in the history
  7. net: stmmac: Add missing call to dev_kfree_skb()

    When RX HW timestamp is enabled and a frame is discarded we are
    not freeing the skb but instead only setting to NULL the entry.
    
    Add a call to dev_kfree_skb_any() so that skb entry is correctly
    freed.
    
    Signed-off-by: Jose Abreu <[email protected]>
    Cc: David S. Miller <[email protected]>
    Cc: Joao Pinto <[email protected]>
    Cc: Giuseppe Cavallaro <[email protected]>
    Cc: Alexandre Torgue <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    joabreu authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    9c8080d View commit details
    Browse the repository at this point in the history
  8. net: stmmac: Fix stmmac_get_rx_hwtstamp()

    When using GMAC4 the valid timestamp is from CTX next desc but
    we are passing the previous desc to get_rx_timestamp_status()
    callback.
    
    Fix this and while at it rework a little bit the function logic.
    
    Signed-off-by: Jose Abreu <[email protected]>
    Cc: David S. Miller <[email protected]>
    Cc: Joao Pinto <[email protected]>
    Cc: Giuseppe Cavallaro <[email protected]>
    Cc: Alexandre Torgue <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    joabreu authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    9887094 View commit details
    Browse the repository at this point in the history
  9. net: stmmac: Prevent infinite loop in get_rx_timestamp_status()

    Prevent infinite loop by correctly setting the loop condition to
    break when i == 10.
    
    Signed-off-by: Jose Abreu <[email protected]>
    Cc: David S. Miller <[email protected]>
    Cc: Joao Pinto <[email protected]>
    Cc: Giuseppe Cavallaro <[email protected]>
    Cc: Alexandre Torgue <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    joabreu authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    9454360 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'stmmac-hw-tstamp-fixes'

    Jose Abreu says:
    
    ====================
    net: stmmac: Fix HW timestamping
    
    Three fixes for HW timestamping feature, all of them for RX side.
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    748759d View commit details
    Browse the repository at this point in the history
  11. rxrpc: Don't release call mutex on error pointer

    Don't release call mutex at the end of rxrpc_kernel_begin_call() if the
    call pointer actually holds an error value.
    
    Fixes: 540b1c4 ("rxrpc: Fix deadlock between call creation and sendmsg/recvmsg")
    Reported-by: Marc Dionne <[email protected]>
    Signed-off-by: David Howells <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    dhowells authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    6cb3ece View commit details
    Browse the repository at this point in the history
  12. textsearch: fix typos in library helpers

    Fix spellos (typos) in textsearch library helpers.
    
    Signed-off-by: Randy Dunlap <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    rddunlap authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    7433a8d View commit details
    Browse the repository at this point in the history
  13. of_mdio: Fix broken PHY IRQ in case of probe deferral

    If an Ethernet PHY is initialized before the interrupt controller it is
    connected to, a message like the following is printed:
    
        irq: no irq domain found for /interrupt-controller@e61c0000 !
    
    However, the actual error is ignored, leading to a non-functional (POLL)
    PHY interrupt later:
    
        Micrel KSZ8041RNLI ee700000.ethernet-ffffffff:01: attached PHY driver [Micrel KSZ8041RNLI] (mii_bus:phy_addr=ee700000.ethernet-ffffffff:01, irq=POLL)
    
    Depending on whether the PHY driver will fall back to polling, Ethernet
    may or may not work.
    
    To fix this:
      1. Switch of_mdiobus_register_phy() from irq_of_parse_and_map() to
         of_irq_get().
         Unlike the former, the latter returns -EPROBE_DEFER if the
         interrupt controller is not yet available, so this condition can be
         detected.
         Other errors are handled the same as before, i.e. use the passed
         mdio->irq[addr] as interrupt.
      2. Propagate and handle errors from of_mdiobus_register_phy() and
         of_mdiobus_register_device().
    
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    geertu authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    66bdede View commit details
    Browse the repository at this point in the history
  14. ipv6: flowlabel: do not leave opt->tot_len with garbage

    When syzkaller team brought us a C repro for the crash [1] that
    had been reported many times in the past, I finally could find
    the root cause.
    
    If FlowLabel info is merged by fl6_merge_options(), we leave
    part of the opt_space storage provided by udp/raw/l2tp with random value
    in opt_space.tot_len, unless a control message was provided at sendmsg()
    time.
    
    Then ip6_setup_cork() would use this random value to perform a kzalloc()
    call. Undefined behavior and crashes.
    
    Fix is to properly set tot_len in fl6_merge_options()
    
    At the same time, we can also avoid consuming memory and cpu cycles
    to clear it, if every option is copied via a kmemdup(). This is the
    change in ip6_setup_cork().
    
    [1]
    kasan: CONFIG_KASAN_INLINE enabled
    kasan: GPF could be caused by NULL-ptr deref or user memory access
    general protection fault: 0000 [#1] SMP KASAN
    Dumping ftrace buffer:
       (ftrace buffer empty)
    Modules linked in:
    CPU: 0 PID: 6613 Comm: syz-executor0 Not tainted 4.14.0-rc4+ 96boards#127
    Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
    task: ffff8801cb64a100 task.stack: ffff8801cc350000
    RIP: 0010:ip6_setup_cork+0x274/0x15c0 net/ipv6/ip6_output.c:1168
    RSP: 0018:ffff8801cc357550 EFLAGS: 00010203
    RAX: dffffc0000000000 RBX: ffff8801cc357748 RCX: 0000000000000010
    RDX: 0000000000000002 RSI: ffffffff842bd1d9 RDI: 0000000000000014
    RBP: ffff8801cc357620 R08: ffff8801cb17f380 R09: ffff8801cc357b10
    R10: ffff8801cb64a100 R11: 0000000000000000 R12: ffff8801cc357ab0
    R13: ffff8801cc357b10 R14: 0000000000000000 R15: ffff8801c3bbf0c0
    FS:  00007f9c5c459700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    CR2: 0000000020324000 CR3: 00000001d1cf2000 CR4: 00000000001406f0
    DR0: 0000000020001010 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
    Call Trace:
     ip6_make_skb+0x282/0x530 net/ipv6/ip6_output.c:1729
     udpv6_sendmsg+0x2769/0x3380 net/ipv6/udp.c:1340
     inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:762
     sock_sendmsg_nosec net/socket.c:633 [inline]
     sock_sendmsg+0xca/0x110 net/socket.c:643
     SYSC_sendto+0x358/0x5a0 net/socket.c:1750
     SyS_sendto+0x40/0x50 net/socket.c:1718
     entry_SYSCALL_64_fastpath+0x1f/0xbe
    RIP: 0033:0x4520a9
    RSP: 002b:00007f9c5c458c08 EFLAGS: 00000216 ORIG_RAX: 000000000000002c
    RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9
    RDX: 0000000000000001 RSI: 0000000020fd1000 RDI: 0000000000000016
    RBP: 0000000000000086 R08: 0000000020e0afe4 R09: 000000000000001c
    R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004bb1ee
    R13: 00000000ffffffff R14: 0000000000000016 R15: 0000000000000029
    Code: e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 ea 0f 00 00 48 8d 79 04 48 b8 00 00 00 00 00 fc ff df 45 8b 74 24 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85
    RIP: ip6_setup_cork+0x274/0x15c0 net/ipv6/ip6_output.c:1168 RSP: ffff8801cc357550
    
    Signed-off-by: Eric Dumazet <[email protected]>
    Reported-by: Dmitry Vyukov <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Eric Dumazet authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    864e2a1 View commit details
    Browse the repository at this point in the history
  15. stmmac: Don't access tx_q->dirty_tx before netif_tx_lock

    This is the possible reason for different hard to reproduce
    problems on my ARMv7-SMP test system.
    
    The symptoms are in recent kernels imprecise external aborts,
    and in older kernels various kinds of network stalls and
    unexpected page allocation failures.
    
    My testing indicates that the trouble started between v4.5 and v4.6
    and prevails up to v4.14.
    
    Using the dirty_tx before acquiring the spin lock is clearly
    wrong and was first introduced with v4.6.
    
    Fixes: e3ad57c ("stmmac: review RX/TX ring management")
    
    Signed-off-by: Bernd Edlinger <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    bernd-edlinger authored and davem330 committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    8d5f4b0 View commit details
    Browse the repository at this point in the history
  16. Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net

    Pull networking fixes from David Miller:
     "A little more than usual this time around. Been travelling, so that is
      part of it.
    
      Anyways, here are the highlights:
    
       1) Deal with memcontrol races wrt. listener dismantle, from Eric
          Dumazet.
    
       2) Handle page allocation failures properly in nfp driver, from Jaku
          Kicinski.
    
       3) Fix memory leaks in macsec, from Sabrina Dubroca.
    
       4) Fix crashes in pppol2tp_session_ioctl(), from Guillaume Nault.
    
       5) Several fixes in bnxt_en driver, including preventing potential
          NVRAM parameter corruption from Michael Chan.
    
       6) Fix for KRACK attacks in wireless, from Johannes Berg.
    
       7) rtnetlink event generation fixes from Xin Long.
    
       8) Deadlock in mlxsw driver, from Ido Schimmel.
    
       9) Disallow arithmetic operations on context pointers in bpf, from
          Jakub Kicinski.
    
      10) Missing sock_owned_by_user() check in sctp_icmp_redirect(), from
          Xin Long.
    
      11) Only TCP is supported for sockmap, make that explicit with a
          check, from John Fastabend.
    
      12) Fix IP options state races in DCCP and TCP, from Eric Dumazet.
    
      13) Fix panic in packet_getsockopt(), also from Eric Dumazet.
    
      14) Add missing locked in hv_sock layer, from Dexuan Cui.
    
      15) Various aquantia bug fixes, including several statistics handling
          cures. From Igor Russkikh et al.
    
      16) Fix arithmetic overflow in devmap code, from John Fastabend.
    
      17) Fix busted socket memory accounting when we get a fault in the tcp
          zero copy paths. From Willem de Bruijn.
    
      18) Don't leave opt->tot_len uninitialized in ipv6, from Eric Dumazet"
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (106 commits)
      stmmac: Don't access tx_q->dirty_tx before netif_tx_lock
      ipv6: flowlabel: do not leave opt->tot_len with garbage
      of_mdio: Fix broken PHY IRQ in case of probe deferral
      textsearch: fix typos in library helpers
      rxrpc: Don't release call mutex on error pointer
      net: stmmac: Prevent infinite loop in get_rx_timestamp_status()
      net: stmmac: Fix stmmac_get_rx_hwtstamp()
      net: stmmac: Add missing call to dev_kfree_skb()
      mlxsw: spectrum_router: Configure TIGCR on init
      mlxsw: reg: Add Tunneling IPinIP General Configuration Register
      net: ethtool: remove error check for legacy setting transceiver type
      soreuseport: fix initialization race
      net: bridge: fix returning of vlan range op errors
      sock: correct sk_wmem_queued accounting on efault in tcp zerocopy
      bpf: add test cases to bpf selftests to cover all access tests
      bpf: fix pattern matches for direct packet access
      bpf: fix off by one for range markings with L{T, E} patterns
      bpf: devmap fix arithmetic overflow in bitmap_size calculation
      net: aquantia: Bad udp rate on default interrupt coalescing
      net: aquantia: Enable coalescing management via ethtool interface
      ...
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    b5ac3be View commit details
    Browse the repository at this point in the history
  17. Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull objtool fix from Thomas Gleixner:
     "Plug a memory leak in the instruction decoder"
    
    * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      objtool: Fix memory leak in decode_instructions()
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    b8d389e View commit details
    Browse the repository at this point in the history
  18. Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull irq fixes from Thomas Gleixner:
     "A set of small fixes mostly in the irq drivers area:
    
       - Make the tango irq chip work correctly, which requires a new
         function in the generiq irq chip implementation
    
       - A set of updates to the GIC-V3 ITS driver removing a bogus BUG_ON()
         and parsing the VCPU table size correctly"
    
    * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      genirq: generic chip: remove irq_gc_mask_disable_reg_and_ack()
      irqchip/tango: Use irq_gc_mask_disable_and_ack_set
      genirq: generic chip: Add irq_gc_mask_disable_and_ack_set()
      irqchip/gic-v3-its: Add missing changes to support 52bit physical address
      irqchip/gic-v3-its: Fix the incorrect parsing of VCPU table size
      irqchip/gic-v3-its: Fix the incorrect BUG_ON in its_init_vpe_domain()
      DT: arm,gic-v3: Update the ITS size in the examples
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    4f184d7 View commit details
    Browse the repository at this point in the history
  19. Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull perf fixes from Thomas Gleixner:
     "A series of fixes for perf tooling:
    
       - Make xyarray return the X/Y size correctly which fixes a crash in
         the exit code.
    
       - Fix the libc path in test so it works not only on Debian/Ubuntu
         correctly
    
       - Check for eBPF file existance and output a useful error message
         instead of failing to compile a non existant file
    
       - Make sure perf_hpp_fmt is not longer references before freeing it
    
       - Use list_del_init() in the histogram code to prevent a crash when
         the already deleted element is deleted again
    
       - Remove the leftovers of the removed '-l' option
    
       - Add reviewer entries to the MAINTAINERS file"
    
    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      perf test shell trace+probe_libc_inet_pton.sh: Be compatible with Debian/Ubuntu
      perf xyarray: Fix wrong processing when closing evsel fd
      perf buildid-list: Fix crash when processing PERF_RECORD_NAMESPACE
      perf record: Fix documentation for a inexistent option '-l'
      perf tools: Add long time reviewers to MAINTAINERS
      perf tools: Check wether the eBPF file exists in event parsing
      perf hists: Add extra integrity checks to fmt_free()
      perf hists: Fix crash in perf_hpp__reset_output_field()
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    085cf9b View commit details
    Browse the repository at this point in the history
  20. Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull smp/hotplug fix from Thomas Gleixner:
     "The recent rework of the callback invocation missed to cleanup the
      leftovers of the operation, so under certain circumstances a
      subsequent CPU hotplug operation accesses stale data and crashes.
      Clean it up."
    
    * 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      cpu/hotplug: Reset node state after operation
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    5670a84 View commit details
    Browse the repository at this point in the history
  21. Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/sc…

    …m/linux/kernel/git/tip/tip
    
    Pull timer fix from Thomas Gleixner:
     "A single fix to make the cs5535 clock event driver robust agaist
      spurious interrupts"
    
    * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      clockevents/drivers/cs5535: Improve resilience to spurious interrupts
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    9e415a8 View commit details
    Browse the repository at this point in the history
  22. Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull x86 fixes from Thomas Gleixner:
     "A couple of fixes addressing the following issues:
    
       - The last polishing for the TLB code, removing the last BUG_ON() and
         the debug file along with tidying up the lazy TLB code.
    
       - Prevent triple fault on 1st Gen. 486 caused by stupidly calling the
         early IDT setup after the first function which causes a fault which
         should be caught by the exception table.
    
       - Limit the mmap of /dev/mem to valid addresses
    
       - Prevent late microcode loading on Broadwell X
    
       - Remove a redundant assignment in the cache info code"
    
    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/mm: Limit mmap() of /dev/mem to valid physical addresses
      x86/mm: Remove debug/x86/tlb_defer_switch_to_init_mm
      x86/mm: Tidy up "x86/mm: Flush more aggressively in lazy TLB mode"
      x86/mm/64: Remove the last VM_BUG_ON() from the TLB code
      x86/microcode/intel: Disable late loading on model 79
      x86/idt: Initialize early IDT before cr4_init_shadow()
      x86/cpu/intel_cacheinfo: Remove redundant assignment to 'this_leaf'
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    936fd00 View commit details
    Browse the repository at this point in the history
  23. x86/cpu/AMD: Apply the Erratum 688 fix when the BIOS doesn't

    Some F14h machines have an erratum which, "under a highly specific
    and detailed set of internal timing conditions" can lead to skipping
    instructions and RIP corruption.
    
    Add the fix for those machines when their BIOS doesn't apply it or
    there simply isn't BIOS update for them.
    
    Tested-by: <[email protected]>
    Signed-off-by: Borislav Petkov <[email protected]>
    Cc: <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Sherry Hurwitz <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Cc: Yazen Ghannam <[email protected]>
    Link: http://lkml.kernel.org/r/[email protected]
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=197285
    [ Added pr_info() that we activated the workaround. ]
    Signed-off-by: Ingo Molnar <[email protected]>
    suryasaimadhu authored and Ingo Molnar committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    bfc1168 View commit details
    Browse the repository at this point in the history
  24. Input: do not use property bits when generating module alias

    The commit 8724ecb ("Input: allow matching device IDs on property
    bits") started using property bits when generating module aliases for input
    handlers, but did not adjust the generation of MODALIAS attribute on input
    device uevents, breaking automatic module loading. Given that no handler
    currently uses property bits in their module tables, let's revert this part
    of the commit for now.
    
    Reported-by: Damien Wyart <[email protected]>
    Tested-by: Damien Wyart <[email protected]>
    Fixes: 8724ecb ("Input: allow matching device IDs on property bits")
    Signed-off-by: Dmitry Torokhov <[email protected]>
    dtor committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    09c3e01 View commit details
    Browse the repository at this point in the history
  25. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/dtor/input
    
    Pull input fix from Dmitry Torokhov:
     "A fix for a broken commit in the previous pull breaking automatic
      module loading of input handlers, such ad evdev"
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
      Input: do not use property bits when generating module alias
    torvalds committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    02982f8 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2017

  1. tcp: do tcp_mstamp_refresh before retransmits on TSQ handler

    When retransmission on TSQ handler was introduced in the commit
    f9616c3 ("tcp: implement TSQ for retransmits"), the retransmitted
    skbs' timestamps were updated on the actual transmission. In the later
    commit 385e207 ("tcp: use tp->tcp_mstamp in output path"), it stops
    being done so. In the commit, the comment says "We try to refresh
    tp->tcp_mstamp only when necessary", and at present tcp_tsq_handler and
    tcp_v4_mtu_reduced applies to this. About the latter, it's okay since
    it's rare enough.
    
    About the former, even though possible retransmissions on the tasklet
    comes just after the destructor run in NET_RX softirq handling, the time
    between them could be nonnegligibly large to the extent that
    tcp_rack_advance or rto rearming be affected if other (remaining) RX,
    BLOCK and (preceding) TASKLET sofirq handlings are unexpectedly heavy.
    
    So in the same way as tcp_write_timer_handler does, doing tcp_mstamp_refresh
    ensures the accuracy of algorithms relying on it.
    
    Fixes: 385e207 ("tcp: use tp->tcp_mstamp in output path")
    Signed-off-by: Koichiro Den <[email protected]>
    Reviewed-by: Eric Dumazet <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Koichiro Den authored and davem330 committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    3a91d29 View commit details
    Browse the repository at this point in the history
  2. tcp/dccp: fix lockdep splat in inet_csk_route_req()

    This patch fixes the following lockdep splat in inet_csk_route_req()
    
      lockdep_rcu_suspicious
      inet_csk_route_req
      tcp_v4_send_synack
      tcp_rtx_synack
      inet_rtx_syn_ack
      tcp_fastopen_synack_time
      tcp_retransmit_timer
      tcp_write_timer_handler
      tcp_write_timer
      call_timer_fn
    
    Thread running inet_csk_route_req() owns a reference on the request
    socket, so we have the guarantee ireq->ireq_opt wont be changed or
    freed.
    
    lockdep can enforce this invariant for us.
    
    Fixes: c92e8c0 ("tcp/dccp: fix ireq->opt races")
    Signed-off-by: Eric Dumazet <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Eric Dumazet authored and davem330 committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    a6ca7ab View commit details
    Browse the repository at this point in the history
  3. ipsec: Fix aborted xfrm policy dump crash

    An independent security researcher, Mohamed Ghannam, has reported
    this vulnerability to Beyond Security's SecuriTeam Secure Disclosure
    program.
    
    The xfrm_dump_policy_done function expects xfrm_dump_policy to
    have been called at least once or it will crash.  This can be
    triggered if a dump fails because the target socket's receive
    buffer is full.
    
    This patch fixes it by using the cb->start mechanism to ensure that
    the initialisation is always done regardless of the buffer situation.
    
    Fixes: 12a169e ("ipsec: Put dumpers on the dump list")
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Steffen Klassert <[email protected]>
    herbertx authored and klassert committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    1137b5e View commit details
    Browse the repository at this point in the history
  4. scsi: Suppress a kernel warning in case the prep function returns BLK…

    …PREP_DEFER
    
    The legacy block layer handles requests as follows:
    - If the prep function returns BLKPREP_OK, let blk_peek_request()
      return the pointer to that request.
    - If the prep function returns BLKPREP_DEFER, keep the RQF_STARTED
      flag and retry calling the prep function later.
    - If the prep function returns BLKPREP_KILL or BLKPREP_INVALID, end
      the request.
    
    In none of these cases it is correct to clear the SCMD_INITIALIZED
    flag from inside scsi_prep_fn(). Since scsi_prep_fn() already
    guarantees that scsi_init_command() will be called once even if
    scsi_prep_fn() is called multiple times, remove the code that clears
    SCMD_INITIALIZED from scsi_prep_fn().
    
    The scsi-mq code handles requests as follows:
    - If scsi_mq_prep_fn() returns BLKPREP_OK, set the RQF_DONTPREP flag
      and submit the request to the SCSI LLD.
    - If scsi_mq_prep_fn() returns BLKPREP_DEFER, call
      blk_mq_delay_run_hw_queue() and return BLK_STS_RESOURCE.
    - If the prep function returns BLKPREP_KILL or BLKPREP_INVALID, call
      scsi_mq_uninit_cmd() and let the blk-mq core end the request.
    
    In none of these cases scsi_mq_prep_fn() should clear the
    SCMD_INITIALIZED flag. Hence remove the code from scsi_mq_prep_fn()
    function that clears that flag.
    
    This patch avoids that the following warning is triggered when using
    the legacy block layer:
    
    ------------[ cut here ]------------
    WARNING: CPU: 1 PID: 4198 at drivers/scsi/scsi_lib.c:654 scsi_end_request+0x1de/0x220
    CPU: 1 PID: 4198 Comm: mkfs.f2fs Not tainted 4.14.0-rc5+ #1
    task: ffff91c147a4b800 task.stack: ffffb282c37b8000
    RIP: 0010:scsi_end_request+0x1de/0x220
    Call Trace:
    <IRQ>
    scsi_io_completion+0x204/0x5e0
    scsi_finish_command+0xce/0xe0
    scsi_softirq_done+0x126/0x130
    blk_done_softirq+0x6e/0x80
    __do_softirq+0xcf/0x2a8
    irq_exit+0xab/0xb0
    do_IRQ+0x7b/0xc0
    common_interrupt+0x90/0x90
    </IRQ>
    RIP: 0010:_raw_spin_unlock_irqrestore+0x9/0x10
    __test_set_page_writeback+0xc7/0x2c0
    __block_write_full_page+0x158/0x3b0
    block_write_full_page+0xc4/0xd0
    blkdev_writepage+0x13/0x20
    __writepage+0x12/0x40
    write_cache_pages+0x204/0x500
    generic_writepages+0x48/0x70
    blkdev_writepages+0x9/0x10
    do_writepages+0x34/0xc0
    __filemap_fdatawrite_range+0x6c/0x90
    file_write_and_wait_range+0x31/0x90
    blkdev_fsync+0x16/0x40
    vfs_fsync_range+0x44/0xa0
    do_fsync+0x38/0x60
    SyS_fsync+0xb/0x10
    entry_SYSCALL_64_fastpath+0x13/0x94
    ---[ end trace 86e8ef85a4a6c1d1 ]---
    
    Fixes: commit 64104f7 ("scsi: Call scsi_initialize_rq() for filesystem requests")
    Signed-off-by: Bart Van Assche <[email protected]>
    Cc: Damien Le Moal <[email protected]>
    Cc: Christoph Hellwig <[email protected]>
    Cc: Hannes Reinecke <[email protected]>
    Cc: Johannes Thumshirn <[email protected]>
    Reviewed-by: Damien Le Moal <[email protected]>
    Reviewed-by: Johannes Thumshirn <[email protected]>
    Signed-off-by: Martin K. Petersen <[email protected]>
    KAGA-KOKO authored and martinkpetersen committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    8fe8ffb View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branches 'regulator/fix/axp20x' and 'regulator/…

    …fix/rn5t618' into regulator-linus
    broonie committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    2ab19d5 View commit details
    Browse the repository at this point in the history
  6. Merge tag 'usb-4.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/usb
    
    Pull USB/PHY fixes from Greg KH:
     "Here are a small number of USB and PHY driver fixes for 4.14-rc6
    
      There is the usual musb and xhci fixes in here, as well as some needed
      phy patches. Also is a nasty regression fix for usbfs that has started
      to hit a lot of people using virtual machines.
    
      All of these have been in linux-next with no reported problems"
    
    * tag 'usb-4.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (26 commits)
      usb: hub: Allow reset retry for USB2 devices on connect bounce
      USB: core: fix out-of-bounds access bug in usb_get_bos_descriptor()
      MAINTAINERS: fix git tree url for musb module
      usb: quirks: add quirk for WORLDE MINI MIDI keyboard
      usb: musb: sunxi: Explicitly release USB PHY on exit
      usb: musb: Check for host-mode using is_host_active() on reset interrupt
      usb: musb: musb_cppi41: Configure the number of channels for DA8xx
      usb: musb: musb_cppi41: Fix cppi41_set_dma_mode() for DA8xx
      usb: musb: musb_cppi41: Fix the address of teardown and autoreq registers
      USB: musb: fix late external abort on suspend
      USB: musb: fix session-bit runtime-PM quirk
      usb: cdc_acm: Add quirk for Elatec TWN3
      USB: devio: Revert "USB: devio: Don't corrupt user memory"
      usb: xhci: Handle error condition in xhci_stop_device()
      usb: xhci: Reset halted endpoint if trb is noop
      xhci: Cleanup current_cmd in xhci_cleanup_command_queue()
      xhci: Identify USB 3.1 capable hosts by their port protocol capability
      USB: serial: metro-usb: add MS7820 device id
      phy: rockchip-typec: Check for errors from tcphy_phy_init()
      phy: rockchip-typec: Don't set the aux voltage swing to 400 mV
      ...
    torvalds committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    5805992 View commit details
    Browse the repository at this point in the history
  7. Merge tag 'char-misc-4.14-rc6' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/gregkh/char-misc
    
    Pull char/misc driver fixes from Greg KH:
     "Here are four small fixes for 4.14-rc6.
    
      Three of them are binder driver fixes for reported issues, and the
      last one is a hyperv driver bugfix. Nothing major, but good fixes to
      get into 4.14-final.
    
      All of these have been in linux-next with no reported issues"
    
    * tag 'char-misc-4.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
      android: binder: Fix null ptr dereference in debug msg
      android: binder: Don't get mm from task
      vmbus: hvsock: add proper sync for vmbus_hvsock_device_unregister()
      binder: call poll_wait() unconditionally.
    torvalds committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    17e7637 View commit details
    Browse the repository at this point in the history
  8. Merge tag 'staging-4.14-rc6' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/gregkh/staging
    
    Pull staging and IIO fixes from Greg KH:
     "Here are a small number of patches to resolve some reported IIO and a
      staging driver problem. Nothing major here, full details are in the
      shortlog below.
    
      All have been in linux-next with no reported issues"
    
    * tag 'staging-4.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
      staging: bcm2835-audio: Fix memory corruption
      iio: adc: at91-sama5d2_adc: fix probe error on missing trigger property
      iio: adc: dln2-adc: fix build error
      iio: dummy: events: Add missing break
      staging: iio: ade7759: fix signed extension bug on shift of a u8
      iio: pressure: zpa2326: Remove always-true check which confuses gcc
      iio: proximity: as3935: noise detection + threshold changes
    torvalds committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    dd9d064 View commit details
    Browse the repository at this point in the history
  9. Linux 4.14-rc6

    torvalds committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    bb176f6 View commit details
    Browse the repository at this point in the history
  10. x86/entry: Fix idtentry unwind hint

    This fixes the following ORC warning in the 'int3' entry code:
    
      WARNING: can't dereference iret registers at ffff8801c5f17fe0 for ip ffffffff95f0d94b
    
    The ORC metadata had the wrong stack offset for the iret registers.
    
    Their location on the stack is dependent on whether the exception has an
    error code.
    
    Reported-and-tested-by: Andrei Vagin <[email protected]>
    Signed-off-by: Josh Poimboeuf <[email protected]>
    Cc: Andy Lutomirski <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Fixes: 8c1f755 ("x86/entry/64: Add unwind hint annotations")
    Link: http://lkml.kernel.org/r/931d57f0551ed7979d5e7e05370d445c8e5137f8.1508516398.git.jpoimboe@redhat.com
    Signed-off-by: Ingo Molnar <[email protected]>
    jpoimboe authored and Ingo Molnar committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    98990a3 View commit details
    Browse the repository at this point in the history
  11. x86/unwind: Show function name+offset in ORC error messages

    Improve the warning messages to show the relevant function name+offset.
    This makes it much easier to diagnose problems with the ORC metadata.
    
    Before:
    
      WARNING: can't dereference iret registers at ffff8801c5f17fe0 for ip ffffffff95f0d94b
    
    After:
    
      WARNING: can't dereference iret registers at ffff880178f5ffe0 for ip int3+0x5b/0x60
    
    Reported-by: Andrei Vagin <[email protected]>
    Signed-off-by: Josh Poimboeuf <[email protected]>
    Cc: Andy Lutomirski <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Fixes: ee9f8fc ("x86/unwind: Add the ORC unwinder")
    Link: http://lkml.kernel.org/r/6bada6b9eac86017e16bd79e1e77877935cb50bb.1508516398.git.jpoimboe@redhat.com
    Signed-off-by: Ingo Molnar <[email protected]>
    jpoimboe authored and Ingo Molnar committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    58c3862 View commit details
    Browse the repository at this point in the history
  12. sched/swait: Document it clearly that the swait facilities are specia…

    …l and shouldn't be used
    
    We currently welcome using swait over wait whenever possible because
    it is a slimmer data structure. However, Linus has made it very clear
    that he does not want this used, unless under very specific RT scenarios
    (such as current users).
    
    Update the comments before kernel hipsters start thinking swait is the
    cool thing to do.
    
    Signed-off-by: Davidlohr Bueso <[email protected]>
    Acked-by: Luis R. Rodriguez <[email protected]>
    Cc: Andrew Morton <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Paul E. McKenney <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Cc: [email protected]
    Cc: [email protected]
    Link: http://lkml.kernel.org/r/[email protected]
    Signed-off-by: Ingo Molnar <[email protected]>
    Davidlohr Bueso authored and Ingo Molnar committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    88796e7 View commit details
    Browse the repository at this point in the history
  13. Merge tag 'regulator-fix-v4.14-rc5' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/broonie/regulator
    
    Pull regulator fixes from Mark Brown:
     "A couple of small driver specific bug fixes that have been collected
      since the merge window"
    
    * tag 'regulator-fix-v4.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
      regulator: rn5t618: Do not index regulator_desc arrays by id
      regulator: axp20x: Fix poly-phase bit offset for AXP803 DCDC5/6
    torvalds committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    468b0e0 View commit details
    Browse the repository at this point in the history
  14. Merge tag 'pinctrl-v4.14-4' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/linusw/linux-pinctrl
    
    Pull pin control fixes from Linus Walleij:
     "Two last minute fixes for pin controllers, both regressions in
      specific drivers:
    
       - Fix a touchpad pin control issue on the AMD affecting Asus laptops
    
       - Fix an interrupt handling regression on the MCP23s08"
    
    * tag 'pinctrl-v4.14-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
      pinctrl: mcp23s08: fix interrupt handling regression
      pinctrl/amd: fix masking of GPIO interrupts
    torvalds committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    2f1b11c View commit details
    Browse the repository at this point in the history
  15. Merge branch 'for-4.14-fixes' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/tj/wq
    
    Pull workqueue fix from Tejun Heo:
     "This is a fix for an old bug in workqueue. Workqueue used a mutex to
      arbitrate who gets to be the manager of a pool. When the manager role
      gets released, the mutex gets unlocked while holding the pool's
      irqsafe spinlock. This can lead to deadlocks as mutex's internal
      spinlock isn't irqsafe. This got discovered by recent fixes to mutex
      lockdep annotations.
    
      The fix is a bit invasive for rc6 but if anything were wrong with the
      fix it would likely have already blown up in -next, and we want the
      fix in -stable anyway"
    
    * 'for-4.14-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
      workqueue: replace pool->manager_arb mutex with a flag
    torvalds committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    06987da View commit details
    Browse the repository at this point in the history
  16. platform/x86: intel_pmc_ipc: Use devm_* calls in driver probe function

    This patch cleans up unnecessary free/alloc calls in ipc_plat_probe(),
    ipc_pci_probe() and ipc_plat_get_res() functions by using devm_*
    calls.
    
    This patch also adds proper error handling for failure cases in
    ipc_pci_probe() function.
    
    Signed-off-by: Kuppuswamy Sathyanarayanan <[email protected]>
    [andy: fixed style issues, missed devm_free_irq(), removed unnecessary log message]
    Signed-off-by: Andy Shevchenko <[email protected]>
    Kuppuswamy Sathyanarayanan authored and andy-shev committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    83beee5 View commit details
    Browse the repository at this point in the history
  17. platform/x86: intel_pmc_ipc: Use spin_lock to protect GCR updates

    Currently, update_no_reboot_bit() function implemented in this driver
    uses mutex_lock() to protect its register updates. But this function is
    called with in atomic context in iTCO_wdt_start() and iTCO_wdt_stop()
    functions in iTCO_wdt.c driver, which in turn causes "sleeping into
    atomic context" issue. This patch fixes this issue by replacing the
    mutex_lock() with spin_lock() to protect the GCR read/write/update APIs.
    
    Fixes: 9d855d4 ("platform/x86: intel_pmc_ipc: Fix iTCO_wdt GCS memory mapping failure")
    Signed-off-by: Kuppuswamy Sathyanarayanan <[email protected]>
    Signed-off-by: Andy Shevchenko <[email protected]>
    Kuppuswamy Sathyanarayanan authored and andy-shev committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    6687aeb View commit details
    Browse the repository at this point in the history
  18. Merge tag 'platform-drivers-x86-v4.14-3' of git://git.infradead.org/l…

    …inux-platform-drivers-x86
    
    Pull x86 platform driver fixes from Darren Hart:
     "Use a spin_lock instead of mutex in atomic context. The devm_ fix is a
      dependency. Summary:
    
      intel_pmc_ipc:
       - Use spin_lock to protect GCR updates
       - Use devm_* calls in driver probe function"
    
    * tag 'platform-drivers-x86-v4.14-3' of git://git.infradead.org/linux-platform-drivers-x86:
      platform/x86: intel_pmc_ipc: Use spin_lock to protect GCR updates
      platform/x86: intel_pmc_ipc: Use devm_* calls in driver probe function
    torvalds committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    6cff0a1 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2017

  1. kbuild doc: a bundle of fixes on makefiles.txt

    It does several fixes:
    1. move the displaced ld example to its reasonable place.
    2. add new example for command gzip.
    3. fix 2 number errors.
    4. fix format of chapter 7.x, make it looks the same as other chapters.
    
    Signed-off-by: Cao jin <[email protected]>
    Signed-off-by: Masahiro Yamada <[email protected]>
    Cao jin authored and masahir0y committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    d87e47e View commit details
    Browse the repository at this point in the history
  2. kbuild: clang: fix build failures with sparse check

    We should avoid using the space character when passing arguments to
    clang, because static code analysis check tool such as sparse may
    misinterpret the arguments followed by spaces as build targets hence
    cause the build to fail.
    
    Signed-off-by: David Lin <[email protected]>
    Signed-off-by: Masahiro Yamada <[email protected]>
    dtwlin authored and masahir0y committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    bb3f38c View commit details
    Browse the repository at this point in the history
  3. xfs: fix AIM7 regression

    Apparently our current rwsem code doesn't like doing the trylock, then
    lock for real scheme.  So change our read/write methods to just do the
    trylock for the RWF_NOWAIT case.  This fixes a ~25% regression in
    AIM7.
    
    Fixes: 91f9943 ("fs: support RWF_NOWAIT for buffered reads")
    Reported-by: kernel test robot <[email protected]>
    Signed-off-by: Christoph Hellwig <[email protected]>
    Reviewed-by: Darrick J. Wong <[email protected]>
    Signed-off-by: Darrick J. Wong <[email protected]>
    Christoph Hellwig authored and djwong committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    942491c View commit details
    Browse the repository at this point in the history
  4. drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet

    This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network
    Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with
    driver drivers/net/usb/r8152.c
    
    Signed-off-by: Ran Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    RanWang1 authored and davem330 committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    9d11b06 View commit details
    Browse the repository at this point in the history
  5. cdc_ether: flag the Huawei ME906/ME909 as WWAN

    The Huawei ME906 (12d1:15c1) comes with a standard ECM interface that
    requires management via AT commands sent over one of the control TTYs
    (e.g. connected with AT^NDISDUP).
    
    Signed-off-by: Aleksander Morgado <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    aleksander0m authored and davem330 committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    07f37ef View commit details
    Browse the repository at this point in the history
  6. net: mvpp2: fix TSO headers allocation and management

    TSO headers are managed with txq index and therefore should be aligned
    with the txq size, not with the aggregated txq size.
    
    Fixes: 186cd4d ("net: mvpp2: software tso support")
    Reported-by: Marc Zyngier <[email protected]>
    Signed-off-by: Yan Markman <[email protected]>
    Signed-off-by: Antoine Tenart <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    yanmarkman authored and davem330 committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    822eaf7 View commit details
    Browse the repository at this point in the history
  7. net: mvpp2: do not unmap TSO headers buffers

    The TSO header buffers are coming from a per cpu pool and should not
    be unmapped as they are reused. The PPv2 driver was unmapping all
    descriptors buffers unconditionally. This patch fixes this by checking
    the buffers dma addresses before unmapping them, and by not unmapping
    those who are located in the TSO header pool.
    
    Fixes: 186cd4d ("net: mvpp2: software tso support")
    Signed-off-by: Antoine Tenart <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    atenart authored and davem330 committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    2092026 View commit details
    Browse the repository at this point in the history
  8. net: mvpp2: do not call txq_done from the Tx path when Tx irqs are used

    When Tx IRQs are used, txq_bufs_free() can be called from both the Tx
    path and from NAPI poll(). This led to CPU stalls as if these two tasks
    (Tx and Poll) are scheduled on two CPUs at the same time, DMA unmapping
    operations are done on the same txq buffers.
    
    This patch adds a check not to call txq_done() from the Tx path if Tx
    interrupts are used as it does not make sense to do so.
    
    Fixes: edc660f ("net: mvpp2: replace TX coalescing interrupts with hrtimer")
    Signed-off-by: Antoine Tenart <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    atenart authored and davem330 committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    082297e View commit details
    Browse the repository at this point in the history
  9. sctp: full support for ipv6 ip_nonlocal_bind & IP_FREEBIND

    Commit 9b97420 ("sctp: support ipv6 nonlocal bind")
    introduced support for the above options as v4 sctp did,
    so patched sctp_v6_available().
    
    In the v4 implementation it's enough, because
    sctp_inet_bind_verify() just returns with sctp_v4_available().
    However sctp_inet6_bind_verify() has an extra check before that
    for link-local scope_id, which won't respect the above options.
    
    Added the checks before calling ipv6_chk_addr(), but
    not before the validation of scope_id.
    
    before (w/ both options):
     ./v6test fe80::10 sctp
     bind failed, errno: 99 (Cannot assign requested address)
     ./v6test fe80::10 tcp
     bind success, errno: 0 (Success)
    
    after (w/ both options):
     ./v6test fe80::10 sctp
     bind success, errno: 0 (Success)
    
    Signed-off-by: Laszlo Toth <[email protected]>
    Reviewed-by: Xin Long <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    laszloth authored and davem330 committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    b71d21c View commit details
    Browse the repository at this point in the history
  10. can: sun4i: fix loopback mode

    Fix loopback mode by setting the right flag and remove presume mode.
    
    Signed-off-by: Gerhard Bertelsmann <[email protected]>
    Cc: linux-stable <[email protected]>
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    GBert authored and marckleinebudde committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    3a379f5 View commit details
    Browse the repository at this point in the history
  11. can: kvaser_usb: Correct return value in printout

    If the return value from kvaser_usb_send_simple_msg() was non-zero, the
    return value from kvaser_usb_flush_queue() was printed in the kernel
    warning.
    
    Signed-off-by: Jimmy Assarsson <[email protected]>
    Cc: linux-stable <[email protected]>
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    jassarsson authored and marckleinebudde committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    8f65a92 View commit details
    Browse the repository at this point in the history
  12. can: kvaser_usb: Ignore CMD_FLUSH_QUEUE_REPLY messages

    To avoid kernel warning "Unhandled message (68)", ignore the
    CMD_FLUSH_QUEUE_REPLY message for now.
    
    As of Leaf v2 firmware version v4.1.844 (2017-02-15), flush tx queue is
    synchronous. There is a capability bit indicating whether flushing tx
    queue is synchronous or asynchronous.
    
    A proper solution would be to query the device for capabilities. If the
    synchronous tx flush capability bit is set, we should wait for
    CMD_FLUSH_QUEUE_REPLY message, while flushing the tx queue.
    
    Signed-off-by: Jimmy Assarsson <[email protected]>
    Cc: linux-stable <[email protected]>
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    jassarsson authored and marckleinebudde committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    e1d2d13 View commit details
    Browse the repository at this point in the history
  13. Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/klassert/ipsec
    
    Steffen Klassert says:
    
    ====================
    pull request (net): ipsec 2017-10-24
    
    1) Fix a memleak when we don't find a inner_mode
       during bundle creation. From David Miller.
    
    2) Fix a xfrm policy dump crash. We may crash
       on error when dumping policies via netlink.
       Fix this by initializing the policy walk
       with the cb->start method. This fix is a
       serious stable candidate. From Herbert Xu.
    
    Please pull or let me know if there are problems.
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    864f5af View commit details
    Browse the repository at this point in the history
  14. perf/x86/intel/bts: Fix exclusive event reference leak

    Commit:
    
      d2878d6 ("perf/x86/intel/bts: Disallow use by unprivileged users on paranoid systems")
    
    ... adds a privilege check in the exactly wrong place in the event init path:
    after the 'LBR exclusive' reference has been taken, and doesn't release it
    in the case of insufficient privileges. After this, nobody in the system
    gets to use PT or LBR afterwards.
    
    This patch moves the privilege check to where it should have been in the
    first place.
    
    Signed-off-by: Alexander Shishkin <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Fixes: d2878d6 ("perf/x86/intel/bts: Disallow use by unprivileged users on paranoid systems")
    Link: http://lkml.kernel.org/r/[email protected]
    Signed-off-by: Ingo Molnar <[email protected]>
    virtuoso authored and Ingo Molnar committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    2eece39 View commit details
    Browse the repository at this point in the history
  15. ALSA: hda - fix headset mic problem for Dell machines with alc236

    We have several Dell laptops which use the codec alc236, the headset
    mic can't work on these machines. Following the commit 736f20a, we
    add the pin cfg table to make the headset mic work.
    
    Cc: <[email protected]>
    Signed-off-by: Hui Wang <[email protected]>
    Signed-off-by: Takashi Iwai <[email protected]>
    jason77-wang authored and tiwai committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    f265788 View commit details
    Browse the repository at this point in the history
  16. hwmon: (tmp102) Fix first temperature reading

    Commit 3d8f7a8 ("hwmon: (tmp102) Improve handling of initial read
    delay") reduced the initial temperature read delay and made it dependent
    on the chip's shutdown mode. If the chip was not in shutdown mode at probe,
    the read delay no longer applies.
    
    This ignores the fact that the chip initialization changes the temperature
    sensor resolution, and that the temperature register values change when
    the resolution is changed. As a result, the reported temperature is twice
    as high as the real temperature until the first temperature conversion
    after the configuration change is complete. This can result in unexpected
    behavior and, worst case, in a system shutdown. To fix the problem,
    let's just always wait for a conversion to complete before reporting
    a temperature.
    
    Fixes: 3d8f7a8 ("hwmon: (tmp102) Improve handling of initial read delay")
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=197167
    Reported-by: Ralf Goebel <[email protected]>
    Cc: Ralf Goebel <[email protected]>
    Reviewed-by: Jean Delvare <[email protected]>
    Signed-off-by: Guenter Roeck <[email protected]>
    groeck committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    d072543 View commit details
    Browse the repository at this point in the history
  17. PM / QoS: Fix device resume latency PM QoS

    The special value of 0 for device resume latency PM QoS means
    "no restriction", but there are two problems with that.
    
    First, device resume latency PM QoS requests with 0 as the
    value are always put in front of requests with positive
    values in the priority lists used internally by the PM QoS
    framework, causing 0 to be chosen as an effective constraint
    value.  However, that 0 is then interpreted as "no restriction"
    effectively overriding the other requests with specific
    restrictions which is incorrect.
    
    Second, the users of device resume latency PM QoS have no
    way to specify that *any* resume latency at all should be
    avoided, which is an artificial limitation in general.
    
    To address these issues, modify device resume latency PM QoS to
    use S32_MAX as the "no constraint" value and 0 as the "no
    latency at all" one and rework its users (the cpuidle menu
    governor, the genpd QoS governor and the runtime PM framework)
    to follow these changes.
    
    Also add a special "n/a" value to the corresponding user space I/F
    to allow user space to indicate that it cannot accept any resume
    latencies at all for the given device.
    
    Fixes: 85dc0b8 (PM / QoS: Make it possible to expose PM QoS latency constraints)
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=197323
    Reported-by: Reinette Chatre <[email protected]>
    Tested-by: Reinette Chatre <[email protected]>
    Signed-off-by: Rafael J. Wysocki <[email protected]>
    Acked-by: Alex Shi <[email protected]>
    Cc: All applicable <[email protected]>
    rafaeljw committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    0cc2b4e View commit details
    Browse the repository at this point in the history
  18. ovl: fix EIO from lookup of non-indexed upper

    Commit fbaf94e ("ovl: don't set origin on broken lower hardlink")
    attempt to avoid the condition of non-indexed upper inode with lower
    hardlink as origin. If this condition is found, lookup returns EIO.
    
    The protection of commit mentioned above does not cover the case of lower
    that is not a hardlink when it is copied up (with either index=off/on)
    and then lower is hardlinked while overlay is offline.
    
    Changes to lower layer while overlayfs is offline should not result in
    unexpected behavior, so a permanent EIO error after creating a link in
    lower layer should not be considered as correct behavior.
    
    This fix replaces EIO error with success in cases where upper has origin
    but no index is found, or index is found that does not match upper
    inode. In those cases, lookup will not fail and the returned overlay inode
    will be hashed by upper inode instead of by lower origin inode.
    
    Fixes: 359f392 ("ovl: lookup index entry for copy up origin")
    Cc: <[email protected]> # v4.13
    Signed-off-by: Amir Goldstein <[email protected]>
    Signed-off-by: Miklos Szeredi <[email protected]>
    amir73il authored and Miklos Szeredi committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    6eaf011 View commit details
    Browse the repository at this point in the history
  19. ovl: handle ENOENT on index lookup

    Treat ENOENT from index entry lookup the same way as treating a returned
    negative dentry. Apparently, either could be returned if file is not
    found, depending on the underlying file system.
    
    Fixes: 359f392 ("ovl: lookup index entry for copy up origin")
    Cc: <[email protected]> # v4.13
    Signed-off-by: Amir Goldstein <[email protected]>
    amir73il authored and Miklos Szeredi committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    7937a56 View commit details
    Browse the repository at this point in the history
  20. ovl: do not cleanup unsupported index entries

    With index=on, ovl_indexdir_cleanup() tries to cleanup invalid index
    entries (e.g. bad index name). This behavior could result in cleaning of
    entries created by newer kernels and is therefore undesirable.
    Instead, abort mount if such entries are encountered. We still cleanup
    'stale' entries and 'orphan' entries, both those cases can be a result
    of offline changes to lower and upper dirs.
    
    When encoutering an index entry of type directory or whiteout, kernel
    was supposed to fallback to read-only mount, but the fill_super()
    operation returns EROFS in this case instead of returning success with
    read-only mount flag, so mount fails when encoutering directory or
    whiteout index entries. Bless this behavior by returning -EINVAL on
    directory and whiteout index entries as we do for all unsupported index
    entries.
    
    Fixes: 61b6747 ("ovl: do not cleanup directory and whiteout index..")
    Cc: <[email protected]> # v4.13
    Signed-off-by: Amir Goldstein <[email protected]>
    amir73il authored and Miklos Szeredi committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    fa0096e View commit details
    Browse the repository at this point in the history
  21. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

    Pull KVM fixes from Radim Krčmář:
     "PPC fixes for potential host oops and hangs"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
      KVM: PPC: Book3S HV: Add more barriers in XIVE load/unload code
      KVM: PPC: Book3S: Protect kvmppc_gpa_to_ua() with SRCU
      KVM: PPC: Book3S HV: POWER9 more doorbell fixes
      KVM: PPC: Fix oops when checking KVM_CAP_PPC_HTM
    torvalds committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    ae59df0 View commit details
    Browse the repository at this point in the history
  22. Input: elan_i2c - add ELAN0611 to the ACPI table

    ELAN0611 touchpad uses elan_i2c as its driver. It can be found
    on Lenovo ideapad 320-15IKB.
    
    So add it to ACPI table to enable the touchpad.
    
    [Ido Adiv <[email protected]> reports that the same ACPI ID is used for
    Elan touchpad in ideapad 520].
    
    BugLink: https://bugs.launchpad.net/bugs/1723736
    Signed-off-by: Kai-Heng Feng <[email protected]>
    Cc: [email protected]
    Signed-off-by: Dmitry Torokhov <[email protected]>
    khfeng authored and dtor committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    57a95b4 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2017

  1. nbd: handle interrupted sendmsg with a sndtimeo set

    If you do not set sk_sndtimeo you will get -ERESTARTSYS if there is a
    pending signal when you enter sendmsg, which we handle properly.
    However if you set a timeout for your commands we'll set sk_sndtimeo to
    that timeout, which means that sendmsg will start returning -EINTR
    instead of -ERESTARTSYS.  Fix this by checking either cases and doing
    the correct thing.
    
    Cc: [email protected]
    Fixes: dc88e34 ("nbd: set sk->sk_sndtimeo for our sockets")
    Reported-and-tested-by: Daniel Xu <[email protected]>
    Signed-off-by: Josef Bacik <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Josef Bacik authored and axboe committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    32e67a3 View commit details
    Browse the repository at this point in the history
  2. strparser: Use delayed work instead of timer for msg timeout

    Sock lock may be taken in the message timer function which is a
    problem since timers run in BH. Instead of timers use delayed_work.
    
    Reported-by: Eric Dumazet <[email protected]>
    Fixes: bbb0302 ("strparser: Generalize strparser")
    Signed-off-by: Tom Herbert <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Tom Herbert authored and davem330 committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    829385f View commit details
    Browse the repository at this point in the history
  3. net: dsa: check master device before put

    In the case of pdata, the dsa_cpu_parse function calls dev_put() before
    making sure it isn't NULL. Fix this.
    
    Fixes: 71e0bbd ("net: dsa: Add support for platform data")
    Signed-off-by: Vivien Didelot <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    vivien authored and davem330 committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    3eb8fee View commit details
    Browse the repository at this point in the history
  4. Merge tag 'nfs-for-4.14-4' of git://git.linux-nfs.org/projects/trondm…

    …y/linux-nfs
    
    Pull NFS client bugfixes from Trond Myklebust:
    
     - Fix a list corruption in xprt_release()
    
     - Fix a workqueue lockdep warning due to unsafe use of
       cancel_work_sync()
    
    * tag 'nfs-for-4.14-4' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
      SUNRPC: Destroy transport from the system workqueue
      SUNRPC: fix a list corruption issue in xprt_release()
    torvalds committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    f341578 View commit details
    Browse the repository at this point in the history
  5. s390/kvm: fix detection of guest machine checks

    The new detection code for guest machine checks added a check based
    on %r11 to .Lcleanup_sie to distinguish between normal asynchronous
    interrupts and machine checks. But the funtion is called from the
    program check handler as well with an undefined value in %r11.
    
    The effect is that all program exceptions pointing to the SIE instruction
    will set the CIF_MCCK_GUEST bit. The bit stays set for the CPU until the
     next machine check comes in which will incorrectly be interpreted as a
    guest machine check.
    
    The simplest fix is to stop using .Lcleanup_sie in the program check
    handler and duplicate a few instructions.
    
    Fixes: c929500 ("s390/nmi: s390: New low level handling for machine check happening in guest")
    Cc: <[email protected]> # v4.13+
    Reviewed-by: Christian Borntraeger <[email protected]>
    Signed-off-by: Martin Schwidefsky <[email protected]>
    Martin Schwidefsky committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    0a5e2ec View commit details
    Browse the repository at this point in the history
  6. ceph: unlock dangling spinlock in try_flush_caps()

    sparse warns:
    
      fs/ceph/caps.c:2042:9: warning: context imbalance in 'try_flush_caps' - wrong count at exit
    
    We need to exit this function with the lock unlocked, but a couple of
    cases leave it locked.
    
    Cc: [email protected]
    Signed-off-by: Jeff Layton <[email protected]>
    Reviewed-by: "Yan, Zheng" <[email protected]>
    Reviewed-by: Ilya Dryomov <[email protected]>
    Signed-off-by: Ilya Dryomov <[email protected]>
    jtlayton authored and idryomov committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    6c2838f View commit details
    Browse the repository at this point in the history
  7. mac80211: don't compare TKIP TX MIC key in reinstall prevention

    For the reinstall prevention, the code I had added compares the
    whole key. It turns out though that iwlwifi firmware doesn't
    provide the TKIP TX MIC key as it's not needed in client mode,
    and thus the comparison will always return false.
    
    For client mode, thus always zero out the TX MIC key part before
    doing the comparison in order to avoid accepting the reinstall
    of the key with identical encryption and RX MIC key, but not the
    same TX MIC key (since the supplicant provides the real one.)
    
    Fixes: fdf7cb4 ("mac80211: accept key reinstall without changing anything")
    Signed-off-by: Johannes Berg <[email protected]>
    jmberg-intel committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    cfbb0d9 View commit details
    Browse the repository at this point in the history
  8. efi/efi_test: Prevent an Oops in efi_runtime_query_capsulecaps()

    If "qcaps.capsule_count" is ULONG_MAX then "qcaps.capsule_count + 1"
    will overflow to zero and kcalloc() will return the ZERO_SIZE_PTR.  We
    try to dereference it inside the loop and crash.
    
    Signed-off-by: Dan Carpenter <[email protected]>
    Signed-off-by: Matt Fleming <[email protected]>
    Signed-off-by: Ard Biesheuvel <[email protected]>
    Acked-by: Ivan Hu <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Cc: [email protected]
    Fixes: ff6301d ("efi: Add efi_test driver for exporting UEFI runtime service interfaces")
    Link: http://lkml.kernel.org/r/[email protected]
    Signed-off-by: Ingo Molnar <[email protected]>
    Dan Carpenter authored and Ingo Molnar committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    092e72c View commit details
    Browse the repository at this point in the history
  9. efi/libstub/arm: Don't randomize runtime regions when CONFIG_HIBERNAT…

    …ION=y
    
    Commit:
    
      e69176d ("ef/libstub/arm/arm64: Randomize the base of the UEFI rt services region")
    
    implemented randomization of the virtual mapping that the OS chooses for
    the UEFI runtime services. This was motivated by the fact that UEFI usually
    does not bother to specify any permission restrictions for those regions,
    making them prime real estate for exploitation now that the OS is getting
    more and more careful not to leave any R+W+X mapped regions lying around.
    
    However, this randomization breaks assumptions in the resume from
    hibernation code, which expects all memory regions populated by UEFI to
    remain in the same place, including their virtual mapping into the OS
    memory space. While this assumption may not be entirely reasonable in the
    first place, breaking it deliberately does not make a lot of sense either.
    So let's refrain from this randomization pass if CONFIG_HIBERNATION=y.
    
    Signed-off-by: Ard Biesheuvel <[email protected]>
    Cc: James Morse <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Matt Fleming <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Cc: [email protected]
    Link: http://lkml.kernel.org/r/[email protected]
    Signed-off-by: Ingo Molnar <[email protected]>
    Ard Biesheuvel authored and Ingo Molnar committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    38fb665 View commit details
    Browse the repository at this point in the history
  10. Merge remote-tracking branches 'spi/fix/armada', 'spi/fix/idr', 'spi/…

    …fix/qspi', 'spi/fix/stm32' and 'spi/fix/uapi' into spi-linus
    broonie committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    7555aa7 View commit details
    Browse the repository at this point in the history
  11. drm/amd/amdgpu: Remove workaround check for UVD6 on APUs

    On APUs the uvd6 driver was skipping proper suspend/resume routines resulting
    in a broken state upon resume.
    
    Signed-off-by: Tom St Denis <[email protected]>
    Acked-by: Alex Deucher <[email protected]>
    Reviewed-by: Leo Liu <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    Tom St Denis authored and alexdeucher committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    d3daa2c View commit details
    Browse the repository at this point in the history
  12. fuse: fix READDIRPLUS skipping an entry

    Marios Titas running a Haskell program noticed a problem with fuse's
    readdirplus: when it is interrupted by a signal, it skips one directory
    entry.
    
    The reason is that fuse erronously updates ctx->pos after a failed
    dir_emit().
    
    The issue originates from the patch adding readdirplus support.
    
    Reported-by: Jakob Unterwurzacher <[email protected]>
    Tested-by: Marios Titas <[email protected]> 
    Signed-off-by: Miklos Szeredi <[email protected]>
    Fixes: 0b05b18 ("fuse: implement NFS-like readdirplus support")
    Cc: <[email protected]> # v3.9
    Miklos Szeredi committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    c6cdd51 View commit details
    Browse the repository at this point in the history
  13. drm/i915/perf: fix perf enable/disable ioctls with 32bits userspace

    The compat callback was missing and triggered failures in 32bits
    userspace when enabling/disable the perf stream. We don't require any
    particular processing here as these ioctls don't take any argument.
    
    Signed-off-by: Lionel Landwerlin <[email protected]>
    Fixes: eec688e ("drm/i915: Add i915 perf infrastructure")
    Cc: linux-stable <[email protected]>
    Reviewed-by: Chris Wilson <[email protected]>
    Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
    (cherry picked from commit 191f896)
    Signed-off-by: Rodrigo Vivi <[email protected]>
    llandwerlin-intel authored and rodrigovivi committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    7277f75 View commit details
    Browse the repository at this point in the history
  14. xen/gntdev: avoid out of bounds access in case of partial gntdev_mmap()

    In case gntdev_mmap() succeeds only partially in mapping grant pages
    it will leave some vital information uninitialized needed later for
    cleanup. This will lead to an out of bounds array access when unmapping
    the already mapped pages.
    
    So just initialize the data needed for unmapping the pages a little bit
    earlier.
    
    Cc: <[email protected]>
    Reported-by: Arthur Borsboom <[email protected]>
    Signed-off-by: Juergen Gross <[email protected]>
    Reviewed-by: Boris Ostrovsky <[email protected]>
    Signed-off-by: Boris Ostrovsky <[email protected]>
    jgross1 authored and Boris Ostrovsky committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    298d275 View commit details
    Browse the repository at this point in the history
  15. cifs: Select all required crypto modules

    Some dependencies were lost when CIFS_SMB2 was merged into CIFS.
    
    Fixes: 2a38e12 ("[SMB3] Remove ifdef since SMB3 (and later) now STRONGLY preferred")
    Signed-off-by: Benjamin Gilbert <[email protected]>
    Reviewed-by: Aurelien Aptel <[email protected]>
    CC: Stable <[email protected]>
    Signed-off-by: Steve French <[email protected]>
    bgilbert authored and smfrench committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    5b454a6 View commit details
    Browse the repository at this point in the history
  16. CIFS: do not send invalid input buffer on QUERY_INFO requests

    query_info() doesn't use the InputBuffer field of the QUERY_INFO
    request, therefore according to [MS-SMB2] it must:
    
    a) set the InputBufferOffset to 0
    b) send a zero-length InputBuffer
    
    Doing a) is trivial but b) is a bit more tricky.
    
    The packet is allocated according to it's StructureSize, which takes
    into account an extra 1 byte buffer which we don't need
    here. StructureSize fields must have constant values no matter the
    actual length of the whole packet so we can't just edit that constant.
    
    Both the NetBIOS-over-TCP message length ("rfc1002 length") L and the
    iovec length L' have to be updated. Since L' is computed from L we
    just update L by decrementing it by one.
    
    Signed-off-by: Aurelien Aptel <[email protected]>
    Signed-off-by: Steve French <[email protected]>
    aaptel authored and smfrench committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    48923d2 View commit details
    Browse the repository at this point in the history
  17. CIFS: Fix NULL pointer deref on SMB2_tcon() failure

    If SendReceive2() fails rsp is set to NULL but is dereferenced in the
    error handling code.
    
    Cc: [email protected]
    Signed-off-by: Aurelien Aptel <[email protected]>
    Reviewed-by: Pavel Shilovsky <[email protected]>
    Signed-off-by: Steve French <[email protected]>
    aaptel authored and smfrench committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    db3b547 View commit details
    Browse the repository at this point in the history
  18. SMB: fix leak of validate negotiate info response buffer

    Fixes: ff1c038 ("Check SMB3 dialects against downgrade attacks")
    Signed-off-by: David Disseldorp <[email protected]>
    Signed-off-by: Steve French <[email protected]>
    ddiss authored and smfrench committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    fe83beb View commit details
    Browse the repository at this point in the history
  19. SMB: fix validate negotiate info uninitialised memory use

    An undersize validate negotiate info server response causes the client
    to use uninitialised memory for struct validate_negotiate_info_rsp
    comparisons of Dialect, SecurityMode and/or Capabilities members.
    
    Link: https://bugzilla.samba.org/show_bug.cgi?id=13092
    Fixes: 7db0a6e ("SMB3: Work around mount failure when using SMB3 dialect to Macs")
    Signed-off-by: David Disseldorp <[email protected]>
    Reviewed-by: Pavel Shilovsky <[email protected]>
    Signed-off-by: Steve French <[email protected]>
    ddiss authored and smfrench committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    a2d9daa View commit details
    Browse the repository at this point in the history
  20. RDMA/netlink: OOPs in rdma_nl_rcv_msg() from misinterpreted flag

    rdma_nl_rcv_msg() checks to see if it should use the .dump() callback
    or the .doit() callback.  The check is done with this check:
    
    if (flags & NLM_F_DUMP) ...
    
    The NLM_F_DUMP flag is two bits (NLM_F_ROOT | NLM_F_MATCH).
    
    When an RDMA_NL_LS message (response) is received, the bit used for
    indicating an error is the same bit as NLM_F_ROOT.
    
    NLM_F_ROOT == (0x100) == RDMA_NL_LS_F_ERR.
    
    ibacm sends a response with the RDMA_NL_LS_F_ERR bit set if an error
    occurs in the service.  The current code then misinterprets the
    NLM_F_DUMP bit and trys to call the .dump() callback.
    
    If the .dump() callback for the specified request is not available
    (which is true for the RDMA_NL_LS messages) the following Oops occurs:
    
    [ 4555.960256] BUG: unable to handle kernel NULL pointer dereference at
       (null)
    [ 4555.969046] IP:           (null)
    [ 4555.972664] PGD 10543f1067 P4D 10543f1067 PUD 1033f93067 PMD 0
    [ 4555.979287] Oops: 0010 [#1] SMP
    [ 4555.982809] Modules linked in: rpcrdma ib_isert iscsi_target_mod
    target_core_mod ib_iser libiscsi scsi_transport_iscsi ib_ipoib rdma_ucm ib_ucm
    ib_uverbs ib_umad rdma_cm ib_cm iw_cm dm_mirror dm_region_hash dm_log dm_mod
    dax sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm irqbypass
    crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel crypto_simd
    glue_helper cryptd hfi1 rdmavt iTCO_wdt iTCO_vendor_support ib_core mei_me
    lpc_ich pcspkr mei ioatdma sg shpchp i2c_i801 mfd_core wmi ipmi_si ipmi_devintf
    ipmi_msghandler acpi_power_meter acpi_pad nfsd auth_rpcgss nfs_acl lockd grace
    sunrpc ip_tables ext4 mbcache jbd2 sd_mod mgag200 drm_kms_helper syscopyarea
    sysfillrect sysimgblt fb_sys_fops ttm igb ahci crc32c_intel ptp libahci
    pps_core drm dca libata i2c_algo_bit i2c_core
    [ 4556.061190] CPU: 54 PID: 9841 Comm: ibacm Tainted: G          I
    4.14.0-rc2+ #6
    [ 4556.069667] Hardware name: Intel Corporation S2600WT2/S2600WT2, BIOS
    SE5C610.86B.01.01.0008.021120151325 02/11/2015
    [ 4556.081339] task: ffff880855f42d00 task.stack: ffffc900246b4000
    [ 4556.087967] RIP: 0010:          (null)
    [ 4556.092166] RSP: 0018:ffffc900246b7bc8 EFLAGS: 00010246
    [ 4556.098018] RAX: ffffffff81dbe9e0 RBX: ffff881058bb1000 RCX:
    0000000000000000
    [ 4556.105997] RDX: 0000000000001100 RSI: ffff881058bb1320 RDI:
    ffff881056362000
    [ 4556.113984] RBP: ffffc900246b7bf8 R08: 0000000000000ec0 R09:
    0000000000001100
    [ 4556.121971] R10: ffff8810573a5000 R11: 0000000000000000 R12:
    ffff881056362000
    [ 4556.129957] R13: 0000000000000ec0 R14: ffff881058bb1320 R15:
    0000000000000ec0
    [ 4556.137945] FS:  00007fe0ba5a38c0(0000) GS:ffff88105f080000(0000)
    knlGS:0000000000000000
    [ 4556.147000] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [ 4556.153433] CR2: 0000000000000000 CR3: 0000001056f5d003 CR4:
    00000000001606e0
    [ 4556.161419] Call Trace:
    [ 4556.164167]  ? netlink_dump+0x12c/0x290
    [ 4556.168468]  __netlink_dump_start+0x186/0x1f0
    [ 4556.173357]  rdma_nl_rcv_msg+0x193/0x1b0 [ib_core]
    [ 4556.178724]  rdma_nl_rcv+0xdc/0x130 [ib_core]
    [ 4556.183604]  netlink_unicast+0x181/0x240
    [ 4556.187998]  netlink_sendmsg+0x2c2/0x3b0
    [ 4556.192392]  sock_sendmsg+0x38/0x50
    [ 4556.196299]  SYSC_sendto+0x102/0x190
    [ 4556.200308]  ? __audit_syscall_entry+0xaf/0x100
    [ 4556.205387]  ? syscall_trace_enter+0x1d0/0x2b0
    [ 4556.210366]  ? __audit_syscall_exit+0x209/0x290
    [ 4556.215442]  SyS_sendto+0xe/0x10
    [ 4556.219060]  do_syscall_64+0x67/0x1b0
    [ 4556.223165]  entry_SYSCALL64_slow_path+0x25/0x25
    [ 4556.228328] RIP: 0033:0x7fe0b9db2a63
    [ 4556.232333] RSP: 002b:00007ffc55edc260 EFLAGS: 00000293 ORIG_RAX:
    000000000000002c
    [ 4556.240808] RAX: ffffffffffffffda RBX: 0000000000000010 RCX:
    00007fe0b9db2a63
    [ 4556.248796] RDX: 0000000000000010 RSI: 00007ffc55edc280 RDI:
    000000000000000d
    [ 4556.256782] RBP: 00007ffc55edc670 R08: 00007ffc55edc270 R09:
    000000000000000c
    [ 4556.265321] R10: 0000000000000000 R11: 0000000000000293 R12:
    00007ffc55edc280
    [ 4556.273846] R13: 000000000260b400 R14: 000000000000000d R15:
    0000000000000001
    [ 4556.282368] Code:  Bad RIP value.
    [ 4556.286629] RIP:           (null) RSP: ffffc900246b7bc8
    [ 4556.293013] CR2: 0000000000000000
    [ 4556.297292] ---[ end trace 8d67abcfd10ec209 ]---
    [ 4556.305465] Kernel panic - not syncing: Fatal exception
    [ 4556.313786] Kernel Offset: disabled
    [ 4556.321563] ---[ end Kernel panic - not syncing: Fatal exception
    [ 4556.328960] ------------[ cut here ]------------
    
    Special case RDMA_NL_LS response messages to call the appropriate
    callback.
    
    Additionally, make sure that the .dump() callback is not NULL
    before calling it.
    
    Fixes: 647c75a ("RDMA/netlink: Convert LS to doit callback")
    Reviewed-by: Mike Marciniszyn <[email protected]>
    Reviewed-by: Kaike Wan <[email protected]>
    Reviewed-by: Alex Estrin <[email protected]>
    Signed-off-by: Michael J. Ruhl <[email protected]>
    Reviewed-by: Shiraz Saleem <[email protected]>
    Signed-off-by: Doug Ledford <[email protected]>
    mjruhl authored and dledford committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    b4d91ae View commit details
    Browse the repository at this point in the history
  21. Merge branch 'drm-fixes-4.14' of git://people.freedesktop.org/~agd5f/…

    …linux into drm-fixes
    
    two suspend/resume regression fixes.
    
    * 'drm-fixes-4.14' of git://people.freedesktop.org/~agd5f/linux:
      drm/amd/amdgpu: Remove workaround check for UVD6 on APUs
      drm/amd/powerplay: fix uninitialized variable
    airlied committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    5a28747 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2017

  1. Merge tag 'drm-intel-fixes-2017-10-25' of git://anongit.freedesktop.o…

    …rg/drm/drm-intel into drm-fixes
    
    drm-intel-fixes-2017-10-25:
    
    only 1 fix for stable:
    
    - fix perf enable/disable ioctls for 32bits (lionel)
    
    * tag 'drm-intel-fixes-2017-10-25' of git://anongit.freedesktop.org/drm/drm-intel:
      drm/i915/perf: fix perf enable/disable ioctls with 32bits userspace
    airlied committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    522dbb3 View commit details
    Browse the repository at this point in the history
  2. net/unix: don't show information about sockets from other namespaces

    socket_diag shows information only about sockets from a namespace where
    a diag socket lives.
    
    But if we request information about one unix socket, the kernel don't
    check that its netns is matched with a diag socket namespace, so any
    user can get information about any unix socket in a system. This looks
    like a bug.
    
    v2: add a Fixes tag
    
    Fixes: 51d7ccc ("net: make sock diag per-namespace")
    Signed-off-by: Andrei Vagin <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    avagin authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    0f5da65 View commit details
    Browse the repository at this point in the history
  3. nfp: refuse offloading filters that redirects to upper devices

    Previously we did not ensure that a netdev is a representative netdev
    before dereferencing its private data. This can occur when an upper netdev
    is created on a representative netdev. This patch corrects this by first
    ensuring that the netdev is a representative netdev before using it.
    Checking only switchdev_port_same_parent_id is not sufficient to ensure
    that we can safely use the netdev. Failing to check that the netdev is also
    a representative netdev would result in incorrect dereferencing.
    
    Fixes: 1a1e586 ("nfp: add basic action capabilities to flower offloads")
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Pieter Jansen van Vuuren <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    pjvuuren authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    d309ae5 View commit details
    Browse the repository at this point in the history
  4. tun: allow positive return values on dev_get_valid_name() call

    If the name argument of dev_get_valid_name() contains "%d", it will try
    to assign it a unit number in __dev__alloc_name() and return either the
    unit number (>= 0) or an error code (< 0).
    Considering positive values as error values prevent tun device creations
    relying this mechanism, therefor we should only consider negative values
    as errors here.
    
    Signed-off-by: Julien Gomes <[email protected]>
    Acked-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    gomesj authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    5c25f65 View commit details
    Browse the repository at this point in the history
  5. Merge tag 'sound-4.14-rc7' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "Just two HD-audio fixups for a recent Realtek codec model. It's pretty
      safe to apply (and unsurprisingly boring)"
    
    * tag 'sound-4.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
      ALSA: hda - fix headset mic problem for Dell machines with alc236
      ALSA: hda/realtek - Add support for ALC236/ALC3204
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    ecda3d9 View commit details
    Browse the repository at this point in the history
  6. Merge tag 'hwmon-for-linus-v4.14-rc7' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/groeck/linux-staging
    
    Pull hwmon fixes from Guenter Roeck:
    
     - Fix initial temperature readings for TMP102
    
     - Fix timeouts in DA9052 driver by increasing its sampling rate
    
    * tag 'hwmon-for-linus-v4.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
      hwmon: (tmp102) Fix first temperature reading
      hwmon: (da9052) Increase sample rate when using TSI
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    035bcf8 View commit details
    Browse the repository at this point in the history
  7. Merge tag 'xfs-4.14-fixes-7' of git://git.kernel.org/pub/scm/fs/xfs/x…

    …fs-linux
    
    Pull xfs fix from Darrick Wong:
     "Here's (hopefully) the last bugfix for 4.14:
    
       - Rework nowait locking code to reduce locking overhead penalty"
    
    * tag 'xfs-4.14-fixes-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
      xfs: fix AIM7 regression
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    4ed5902 View commit details
    Browse the repository at this point in the history
  8. net/mlx5: Fix health work queue spin lock to IRQ safe

    spin_lock/unlock of health->wq_lock should be IRQ safe.
    It was changed to spin_lock_irqsave since adding commit 0179720
    ("net/mlx5: Introduce trigger_health_work function") which uses
    spin_lock from asynchronous event (IRQ) context.
    Thus, all spin_lock/unlock of health->wq_lock should have been moved
    to IRQ safe mode.
    However, one occurrence on new code using this lock missed that
    change, resulting in possible deadlock:
      kernel: Possible unsafe locking scenario:
      kernel:       CPU0
      kernel:       ----
      kernel:  lock(&(&health->wq_lock)->rlock);
      kernel:  <Interrupt>
      kernel:    lock(&(&health->wq_lock)->rlock);
      kernel: #12 *** DEADLOCK ***
    
    Fixes: 2a0165a ("net/mlx5: Cancel delayed recovery work when unloading the driver")
    Signed-off-by: Moshe Shemesh <[email protected]>
    Signed-off-by: Saeed Mahameed <[email protected]>
    Moshe Shemesh authored and Saeed Mahameed committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    6377ed0 View commit details
    Browse the repository at this point in the history
  9. net/mlx5: Delay events till mlx5 interface's add complete for pci resume

    mlx5_ib_add is called during mlx5_pci_resume after a pci error.
    Before mlx5_ib_add completes, there are multiple events which trigger
    function mlx5_ib_event. This cause kernel panic because mlx5_ib_event
    accesses unitialized resources.
    
    The fix is to extend Erez Shitrit's patch <97834eba7c19>
    ("net/mlx5: Delay events till ib registration ends") to cover
    the pci resume code path.
    
    Trace:
    mlx5_core 0001:01:00.6: mlx5_pci_resume was called
    mlx5_core 0001:01:00.6: firmware version: 16.20.1011
    mlx5_core 0001:01:00.6: mlx5_attach_interface:164:(pid 779):
    mlx5_ib_event:2996:(pid 34777): warning: event on port 1
    mlx5_ib_event:2996:(pid 34782): warning: event on port 1
    Unable to handle kernel paging request for data at address 0x0001c104
    Faulting instruction address: 0xd000000008f411fc
    Oops: Kernel access of bad area, sig: 11 [#1]
    ...
    ...
    Call Trace:
    [c000000fff77bb70] [d000000008f4119c] mlx5_ib_event+0x64/0x470 [mlx5_ib] (unreliable)
    [c000000fff77bc60] [d000000008e67130] mlx5_core_event+0xb8/0x210 [mlx5_core]
    [c000000fff77bd10] [d000000008e4bd00] mlx5_eq_int+0x528/0x860[mlx5_core]
    
    Fixes: 97834eb ("net/mlx5: Delay events till ib registration ends")
    Signed-off-by: Huy Nguyen <[email protected]>
    Reviewed-by: Saeed Mahameed <[email protected]>
    Signed-off-by: Saeed Mahameed <[email protected]>
    Huy Nguyen authored and Saeed Mahameed committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    4ca637a View commit details
    Browse the repository at this point in the history
  10. net/mlx5e: Properly deal with encap flows add/del under neigh update

    Currently, the encap action offload is handled in the actions parse
    function and not in mlx5e_tc_add_fdb_flow() where we deal with all
    the other aspects of offloading actions (vlan, modify header) and
    the rule itself.
    
    When the neigh update code (mlx5e_tc_encap_flows_add()) recreates the
    encap entry and offloads the related flows, we wrongly call again into
    mlx5e_tc_add_fdb_flow(), this for itself would cause us to handle
    again the offloading of vlans and header re-write which puts things
    in non consistent state and step on freed memory (e.g the modify
    header parse buffer which is already freed).
    
    Since on error, mlx5e_tc_add_fdb_flow() detaches and may release the
    encap entry, it causes a corruption at the neigh update code which goes
    over the list of flows associated with this encap entry, or double free
    when the tc flow is later deleted by user-space.
    
    When neigh update (mlx5e_tc_encap_flows_del()) unoffloads the flows related
    to an encap entry which is now invalid, we do a partial repeat of the eswitch
    flow removal code which is wrong too.
    
    To fix things up we do the following:
    
    (1) handle the encap action offload in the eswitch flow add function
        mlx5e_tc_add_fdb_flow() as done for the other actions and the rule itself.
    
    (2) modify the neigh update code (mlx5e_tc_encap_flows_add/del) to only
        deal with the encap entry and rules delete/add and not with any of
        the other offloaded actions.
    
    Fixes: 232c001 ('net/mlx5e: Add support to neighbour update flow')
    Signed-off-by: Or Gerlitz <[email protected]>
    Reviewed-by: Paul Blakey <[email protected]>
    Signed-off-by: Saeed Mahameed <[email protected]>
    ogerlitz authored and Saeed Mahameed committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    3c37745 View commit details
    Browse the repository at this point in the history
  11. net/mlx5e: DCBNL, Implement tc with ets type and zero bandwidth

    Previously, tc with ets type and zero bandwidth is not accepted
    by driver. This behavior does not follow the IEEE802.1qaz spec.
    
    If there are tcs with ets type and zero bandwidth, these tcs are
    assigned to the lowest priority tc_group #0. We equally distribute
    100% bw of the tc_group #0 to these zero bandwidth ets tcs.
    Also, the non zero bandwidth ets tcs are assigned to tc_group #1.
    
    If there is no zero bandwidth ets tc, the non zero bandwidth ets tcs
    are assigned to tc_group #0.
    
    Fixes: cdcf112 ("net/mlx5e: Validate BW weight values of ETS")
    Signed-off-by: Huy Nguyen <[email protected]>
    Reviewed-by: Parav Pandit <[email protected]>
    Signed-off-by: Saeed Mahameed <[email protected]>
    Huy Nguyen authored and Saeed Mahameed committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    be0f161 View commit details
    Browse the repository at this point in the history
  12. net: mvpp2: fix typo in the tcam setup

    This patch fixes a typo in the mvpp2_prs_tcam_data_cmp() function, as
    the shift value is inverted with the data.
    
    Fixes: 3f51850 ("ethernet: Add new driver for Marvell Armada 375 network unit")
    Signed-off-by: Antoine Tenart <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    atenart authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    ef4816f View commit details
    Browse the repository at this point in the history
  13. net: mvpp2: fix invalid parameters order when calling the tcam init

    When calling mvpp2_prs_mac_multi_set() from mvpp2_prs_mac_init(), two
    parameters (the port index and the table index) are inverted. Fixes
    this.
    
    Fixes: 3f51850 ("ethernet: Add new driver for Marvell Armada 375 network unit")
    Signed-off-by: Antoine Tenart <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    atenart authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    20746d7 View commit details
    Browse the repository at this point in the history
  14. net: mvpp2: do not sleep in set_rx_mode

    This patch replaces GFP_KERNEL by GFP_ATOMIC to avoid sleeping in the
    ndo_set_rx_mode() call which is called with BH disabled.
    
    Fixes: 3f51850 ("ethernet: Add new driver for Marvell Armada 375 network unit")
    Signed-off-by: Antoine Tenart <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    atenart authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    239dd4e View commit details
    Browse the repository at this point in the history
  15. Merge tag 'linux-can-fixes-for-4.14-20171024' of git://git.kernel.org…

    …/pub/scm/linux/kernel/git/mkl/linux-can
    
    Marc Kleine-Budde says:
    
    ====================
    pull-request: can 2017-10-24
    
    here's another pull request for net/master.
    
    The patch by Gerhard Bertelsmann fixes the CAN_CTRLMODE_LOOPBACK in the
    sun4i driver. Two patches by Jimmy Assarsson for the kvaser_usb driver
    fix a print in the error path of the kvaser_usb_close() and remove a
    wrong warning message with the Leaf v2 firmware version v4.1.844.
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    d2c2490 View commit details
    Browse the repository at this point in the history
  16. rds: ib: Fix uninitialized variable

    send_flags needs to be initialized before calling
    rds_ib_set_wr_signal_state().
    
    Signed-off-by: Håkon Bugge <[email protected]>
    Acked-by: Santosh Shilimkar <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Hakon-Bugge authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    e9a0b99 View commit details
    Browse the repository at this point in the history
  17. rds: Fix inaccurate accounting of unsignaled wrs

    The number of unsignaled work-requests posted to the IB send queue is
    tracked by a counter in the rds_ib_connection struct. When it reaches
    zero, or the caller explicitly asks for it, the send-signaled bit is
    set in send_flags and the counter is reset. This is performed by the
    rds_ib_set_wr_signal_state() function.
    
    However, this function is not always used which yields inaccurate
    accounting. This commit fixes this, re-factors a code bloat related to
    the matter, and makes the actual parameter type to the function
    consistent.
    
    Signed-off-by: Håkon Bugge <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Hakon-Bugge authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    a0c0865 View commit details
    Browse the repository at this point in the history
  18. tcp/dccp: fix other lockdep splats accessing ireq_opt

    In my first attempt to fix the lockdep splat, I forgot we could
    enter inet_csk_route_req() with a freshly allocated request socket,
    for which refcount has not yet been elevated, due to complex
    SLAB_TYPESAFE_BY_RCU rules.
    
    We either are in rcu_read_lock() section _or_ we own a refcount on the
    request.
    
    Correct RCU verb to use here is rcu_dereference_check(), although it is
    not possible to prove we actually own a reference on a shared
    refcount :/
    
    In v2, I added ireq_opt_deref() helper and use in three places, to fix other
    possible splats.
    
    [   49.844590]  lockdep_rcu_suspicious+0xea/0xf3
    [   49.846487]  inet_csk_route_req+0x53/0x14d
    [   49.848334]  tcp_v4_route_req+0xe/0x10
    [   49.850174]  tcp_conn_request+0x31c/0x6a0
    [   49.851992]  ? __lock_acquire+0x614/0x822
    [   49.854015]  tcp_v4_conn_request+0x5a/0x79
    [   49.855957]  ? tcp_v4_conn_request+0x5a/0x79
    [   49.858052]  tcp_rcv_state_process+0x98/0xdcc
    [   49.859990]  ? sk_filter_trim_cap+0x2f6/0x307
    [   49.862085]  tcp_v4_do_rcv+0xfc/0x145
    [   49.864055]  ? tcp_v4_do_rcv+0xfc/0x145
    [   49.866173]  tcp_v4_rcv+0x5ab/0xaf9
    [   49.868029]  ip_local_deliver_finish+0x1af/0x2e7
    [   49.870064]  ip_local_deliver+0x1b2/0x1c5
    [   49.871775]  ? inet_del_offload+0x45/0x45
    [   49.873916]  ip_rcv_finish+0x3f7/0x471
    [   49.875476]  ip_rcv+0x3f1/0x42f
    [   49.876991]  ? ip_local_deliver_finish+0x2e7/0x2e7
    [   49.878791]  __netif_receive_skb_core+0x6d3/0x950
    [   49.880701]  ? process_backlog+0x7e/0x216
    [   49.882589]  __netif_receive_skb+0x1d/0x5e
    [   49.884122]  process_backlog+0x10c/0x216
    [   49.885812]  net_rx_action+0x147/0x3df
    
    Fixes: a6ca7ab ("tcp/dccp: fix lockdep splat in inet_csk_route_req()")
    Fixes: c92e8c0 ("tcp/dccp: fix ireq->opt races")
    Signed-off-by: Eric Dumazet <[email protected]>
    Reported-by: kernel test robot <[email protected]>
    Reported-by: Maciej Żenczykowski <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Eric Dumazet authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    06f877d View commit details
    Browse the repository at this point in the history
  19. tcp: call tcp_rate_skb_sent() when retransmit with unaligned skb->data

    Current implementation calls tcp_rate_skb_sent() when tcp_transmit_skb()
    is called when it clones skb only. Not calling tcp_rate_skb_sent() is OK
    for all such code paths except from __tcp_retransmit_skb() which happens
    when skb->data address is not aligned. This may rarely happen e.g. when
    small amount of data is sent initially and the receiver partially acks
    odd number of bytes for some reason, possibly malicious.
    
    Signed-off-by: Yousuk Seung <[email protected]>
    Signed-off-by: Neal Cardwell <[email protected]>
    Signed-off-by: Soheil Hassas Yeganeh <[email protected]>
    Acked-by: Eric Dumazet <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    yousukseung authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    5889e2c View commit details
    Browse the repository at this point in the history
  20. tap: double-free in error path in tap_open()

    Double free of skb_array in tap module is causing kernel panic. When
    tap_set_queue() fails we free skb_array right away by calling
    skb_array_cleanup(). However, later on skb_array_cleanup() is called
    again by tap_sock_destruct through sock_put(). This patch fixes that
    issue.
    
    Fixes: 362899b (macvtap: switch to use skb array)
    Signed-off-by: Girish Moodalbail <[email protected]>
    Acked-by: Jason Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Girish Moodalbail authored and davem330 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    78e0ea6 View commit details
    Browse the repository at this point in the history
  21. xen: fix booting ballooned down hvm guest

    Commit 96edd61 ("xen/balloon: don't
    online new memory initially") introduced a regression when booting a
    HVM domain with memory less than mem-max: instead of ballooning down
    immediately the system would try to use the memory up to mem-max
    resulting in Xen crashing the domain.
    
    For HVM domains the current size will be reflected in Xenstore node
    memory/static-max instead of memory/target.
    
    Additionally we have to trigger the ballooning process at once.
    
    Cc: <[email protected]> # 4.13
    Fixes: 96edd61 ("xen/balloon: don't
           online new memory initially")
    
    Reported-by: Simon Gaiser <[email protected]>
    Suggested-by: Boris Ostrovsky <[email protected]>
    Signed-off-by: Juergen Gross <[email protected]>
    Reviewed-by: Boris Ostrovsky <[email protected]>
    Signed-off-by: Boris Ostrovsky <[email protected]>
    jgross1 authored and Boris Ostrovsky committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    5266b8e View commit details
    Browse the repository at this point in the history
  22. e1000: fix race condition between e1000_down() and e1000_watchdog

    This patch fixes a race condition that can result into the interface being
    up and carrier on, but with transmits disabled in the hardware.
    The bug may show up by repeatedly IFF_DOWN+IFF_UP the interface, which
    allows e1000_watchdog() interleave with e1000_down().
    
        CPU x                           CPU y
        --------------------------------------------------------------------
        e1000_down():
            netif_carrier_off()
                                        e1000_watchdog():
                                            if (carrier == off) {
                                                netif_carrier_on();
                                                enable_hw_transmit();
                                            }
            disable_hw_transmit();
                                        e1000_watchdog():
                                            /* carrier on, do nothing */
    
    Signed-off-by: Vincenzo Maffione <[email protected]>
    Tested-by: Aaron Brown <[email protected]>
    Signed-off-by: Jeff Kirsher <[email protected]>
    vmaffione authored and Jeff Kirsher committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    44c445c View commit details
    Browse the repository at this point in the history
  23. e1000: avoid null pointer dereference on invalid stat type

    Currently if the stat type is invalid then data[i] is being set
    either by dereferencing a null pointer p, or it is reading from
    an incorrect previous location if we had a valid stat type
    previously.  Fix this by skipping over the read of p on an invalid
    stat type.
    
    Detected by CoverityScan, CID#113385 ("Explicit null dereferenced")
    
    Signed-off-by: Colin Ian King <[email protected]>
    Reviewed-by: Alexander Duyck <[email protected]>
    Tested-by: Aaron Brown <[email protected]>
    Signed-off-by: Jeff Kirsher <[email protected]>
    Colin Ian King authored and Jeff Kirsher committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    5983587 View commit details
    Browse the repository at this point in the history
  24. igb: Fix TX map failure path

    When the driver cannot map a TX buffer, instead of rolling back
    gracefully and retrying later, we currently get a panic:
    
    [  159.885994] igb 0000:00:00.0: TX DMA map failed
    [  159.886588] Unable to handle kernel paging request at virtual address ffff00000a08c7a8
                   ...
    [  159.897031] PC is at igb_xmit_frame_ring+0x9c8/0xcb8
    
    Fix the erroneous test that leads to this situation.
    
    Signed-off-by: Jean-Philippe Brucker <[email protected]>
    Tested-by: Andrew Bowers <[email protected]>
    Signed-off-by: Jeff Kirsher <[email protected]>
    Jean-Philippe Brucker authored and Jeff Kirsher committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    104ba83 View commit details
    Browse the repository at this point in the history
  25. ixgbe: Fix Tx map failure path

    This patch is a partial revert of "ixgbe: Don't bother clearing buffer
    memory for descriptor rings". Specifically I messed up the exception
    handling path a bit and this resulted in us incorrectly adding the count
    back in when we didn't need to.
    
    In order to make this simpler I am reverting most of the exception handling
    path change and instead just replacing the bit that was handled by the
    unmap_and_free call.
    
    Fixes: ffed21b ("ixgbe: Don't bother clearing buffer memory for descriptor rings")
    Signed-off-by: Alexander Duyck <[email protected]>
    Tested-by: Andrew Bowers <[email protected]>
    Signed-off-by: Jeff Kirsher <[email protected]>
    Alexander Duyck authored and Jeff Kirsher committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    069db9c View commit details
    Browse the repository at this point in the history
  26. i40e: Fix incorrect use of tx_itr_setting when checking for Rx ITR setup

    It looks like there was either a copy/paste error or just a typo that
    resulted in the Tx ITR setting being used to determine if we were using
    adaptive Rx interrupt moderation or not.
    
    This patch fixes the typo.
    
    Fixes: 65e87c0 ("i40evf: support queue-specific settings for interrupt moderation")
    Signed-off-by: Alexander Duyck <[email protected]>
    Tested-by: Andrew Bowers <[email protected]>
    Signed-off-by: Jeff Kirsher <[email protected]>
    Alexander Duyck authored and Jeff Kirsher committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    1078134 View commit details
    Browse the repository at this point in the history
  27. i40e: Add programming descriptors to cleaned_count

    This patch updates the i40e driver to include programming descriptors in
    the cleaned_count. Without this change it becomes possible for us to leak
    memory as we don't trigger a large enough allocation when the time comes to
    allocate new buffers and we end up overwriting a number of rx_buffers equal
    to the number of programming descriptors we encountered.
    
    Fixes: 0e626ff ("i40e: Fix support for flow director programming status")
    Signed-off-by: Alexander Duyck <[email protected]>
    Tested-by: Anders K. Pedersen <[email protected]>
    Signed-off-by: Jeff Kirsher <[email protected]>
    Alexander Duyck authored and Jeff Kirsher committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    62b4c66 View commit details
    Browse the repository at this point in the history
  28. Merge tag 'ceph-for-4.14-rc7' of git://github.com/ceph/ceph-client

    Pull ceph fix from Ilya Dryomov:
     "A small lock imbalance fix, marked for stable"
    
    * tag 'ceph-for-4.14-rc7' of git://github.com/ceph/ceph-client:
      ceph: unlock dangling spinlock in try_flush_caps()
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    601c5c2 View commit details
    Browse the repository at this point in the history
  29. Merge tag 'spi-fix-v4.14-rc5' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/broonie/spi
    
    Pull spi fixes from Mark Brown:
     "There are a bunch of device specific fixes (more than I'd like, I've
      been lax sending these) plus one important core fix for the conversion
      to use an IDR for bus number allocation which avoids issues with
      collisions when some but not all of the buses in the system have a
      fixed bus number specified.
    
      The Armada changes are rather large, specificially "spi: armada-3700:
      Fix padding when sending not 4-byte aligned data", but it's a storage
      corruption issue and there's things like indentation changes which
      make it look bigger than it really is. It's been cooking in -next for
      quite a while now and is part of the reason for the delay"
    
    * tag 'spi-fix-v4.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
      spi: fix IDR collision on systems with both fixed and dynamic SPI bus numbers
      spi: bcm-qspi: Fix use after free in bcm_qspi_probe() in error path
      spi: a3700: Return correct value on timeout detection
      spi: uapi: spidev: add missing ioctl header
      spi: stm32: Fix logical error in stm32_spi_prepare_mbr()
      spi: armada-3700: Fix padding when sending not 4-byte aligned data
      spi: armada-3700: Fix failing commands with quad-SPI
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    832c6b1 View commit details
    Browse the repository at this point in the history
  30. Merge branch 'for-linus' of git://git.kernel.dk/linux-block

    Pull block fixes from Jens Axboe:
     "A few select fixes that should go into this series. Mainly for NVMe,
      but also a single stable fix for nbd from Josef"
    
    * 'for-linus' of git://git.kernel.dk/linux-block:
      nbd: handle interrupted sendmsg with a sndtimeo set
      nvme-rdma: Fix error status return in tagset allocation failure
      nvme-rdma: Fix possible double free in reconnect flow
      nvmet: synchronize sqhd update
      nvme-fc: retry initial controller connections 3 times
      nvme-fc: fix iowait hang
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    3b5a9a8 View commit details
    Browse the repository at this point in the history
  31. alpha/PCI: Move pci_map_irq()/pci_swizzle() out of initdata

    The introduction of {map/swizzle}_irq() hooks in the struct pci_host_bridge
    allowed to replace the pci_fixup_irqs() PCI IRQ allocation in alpha arch
    PCI code with per-bridge map/swizzle functions with commit 0e4c2ee
    ("alpha/PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping
    hooks").
    
    As a side effect of converting PCI IRQ allocation to the struct
    pci_host_bridge {map/swizzle}_irq() hooks mechanism, the actual PCI IRQ
    allocation function (ie pci_assign_irq()) is carried out per-device in
    pci_device_probe() that is called when a PCI device driver is about to be
    probed.
    
    This means that, for drivers compiled as loadable modules, the actual PCI
    device IRQ allocation can now happen after the system has booted so the
    struct pci_host_bridge {map/swizzle}_irq() hooks pci_assign_irq() relies on
    must stay valid after the system has booted so that PCI core can carry out
    PCI IRQ allocation correctly.
    
    Most of the alpha board structures pci_map_irq() and pci_swizzle() hooks
    (that are used to initialize their struct pci_host_bridge equivalent
    through the alpha_mv global variable - that represents the struct
    alpha_machine_vector of the running kernel) are marked as
    __init/__initdata; this causes freed memory dereferences when PCI IRQ
    allocation is carried out after the kernel has booted (ie when loading PCI
    drivers as loadable module) because when the kernel tries to bind the PCI
    device to its (module) driver, the function pci_assign_irq() is called,
    that in turn retrieves the struct pci_host_bridge {map/swizzle}_irq() hooks
    to carry out PCI IRQ allocation; if those hooks are marked as __init
    code/__initdata they point at freed/invalid memory.
    
    Fix the issue by removing the __init/__initdata markers from all subarch
    struct alpha_machine_vector.pci_map_irq()/pci_swizzle() functions (and
    data).
    
    Fixes: 0e4c2ee ("alpha/PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping hooks")
    Link: http://lkml.kernel.org/r/[email protected]
    Reported-by: Meelis Roos <[email protected]>
    Signed-off-by: Lorenzo Pieralisi <[email protected]>
    Signed-off-by: Bjorn Helgaas <[email protected]>
    Cc: Richard Henderson <[email protected]>
    Cc: Ivan Kokshaysky <[email protected]>
    Cc: Meelis Roos <[email protected]>
    Cc: Matt Turner <[email protected]>
    Lorenzo Pieralisi authored and bjorn-helgaas committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    814eae5 View commit details
    Browse the repository at this point in the history
  32. Merge tag 'pm-4.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/rafael/linux-pm
    
    Pull power management fix from Rafael Wysocki:
     "This fixes a device power management quality of service (PM QoS)
      framework implementation issue causing 'no restriction' requests for
      device resume latency, including 'no restriction' set by user space,
      to effectively override requests with specific device resume latency
      requirements.
    
      It is late in the cycle, but the bug in question is in the 'user space
      can trigger unexpected behavior' category and the fix is
      stable-candidate, so here it goes"
    
    * tag 'pm-4.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      PM / QoS: Fix device resume latency PM QoS
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    5678255 View commit details
    Browse the repository at this point in the history
  33. SMB3: Validate negotiate request must always be signed

    According to MS-SMB2 3.2.55 validate_negotiate request must
    always be signed. Some Windows can fail the request if you send it unsigned
    
    See kernel bugzilla bug 197311
    
    CC: Stable <[email protected]>
    Acked-by: Ronnie Sahlberg <lsahlber.redhat.com>
    Signed-off-by: Steve French <[email protected]>
    smfrench committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    4587eee View commit details
    Browse the repository at this point in the history
  34. Revert "apparmor: add base infastructure for socket mediation"

    This reverts commit 651e28c.
    
    This caused a regression:
     "The specific problem is that dnsmasq refuses to start on openSUSE Leap
      42.2.  The specific cause is that and attempt to open a PF_LOCAL socket
      gets EACCES.  This means that networking doesn't function on a system
      with a 4.14-rc2 system."
    
    Sadly, the developers involved seemed to be in denial for several weeks
    about this, delaying the revert.  This has not been a good release for
    the security subsystem, and this area needs to change development
    practices.
    
    Reported-and-bisected-by: James Bottomley <[email protected]>
    Tracked-by: Thorsten Leemhuis <[email protected]>
    Cc: John Johansen <[email protected]>
    Cc: Vlastimil Babka <[email protected]>
    Cc: Seth Arnold <[email protected]>
    Signed-off-by: Linus Torvalds <[email protected]>
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    80c094a View commit details
    Browse the repository at this point in the history
  35. drm/i915/gvt: properly check per_ctx bb valid state

    Need to check valid state for per_ctx bb and bypass batch buffer
    combine for scan if necessary. Otherwise adding invalid MI batch
    buffer start cmd for per_ctx bb will cause scan failure, which is
    taken as -EFAULT now so vGPU would be put in failsafe. This trys
    to fix that by checking per_ctx bb valid state. Also remove old
    invalid WARNING that indirect ctx bb shouldn't depend on valid
    per_ctx bb.
    
    Signed-off-by: Zhenyu Wang <[email protected]>
    Signed-off-by: Zhi Wang <[email protected]>
    zhenyw authored and zhiwang1 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    8f63fc2 View commit details
    Browse the repository at this point in the history
  36. drm/i915/gvt: Refine MMIO_RING_F()

    Inspect if the host has VCS2 ring by host i915 macro in MMIO_RING_F().
    Also this helps on reducing some LOCs.
    
    Signed-off-by: Zhi Wang <[email protected]>
    zhiwang1 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    edee7ec View commit details
    Browse the repository at this point in the history
  37. drm/i915/gvt: Extract mmio_read_from_hw() common function

    The mmio read handler for ring timestmap / instdone register are same
    as reading hw value directly.
    
    Extract it as common function to reduce code duplications.
    
    Signed-off-by: Xiong Zhang <[email protected]>
    Signed-off-by: Zhi Wang <[email protected]>
    xiongzha authored and zhiwang1 committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    20a2bcd View commit details
    Browse the repository at this point in the history
  38. drm/i915/gvt: Adding ACTHD mmio read handler

    When a workload is too heavy to finish it in gpu hang check timer
    intervals(1.5), gpu hang check function will check ACTHD register
    value to decide whether gpu is real dead or not. On real hw,
    ACTHD is updated by HW when workload is running, then host kernel
    won't think it is gpu hang. while guest kernel always read a constant
    ACTHD value as GVT doesn't supply ACTHD emulate handler, then
    guest kernel detects a fake gpu hang.
    
    To remove such guest fake gpu hang, this patch supply ACTHD
    mmio read handler which read real HW ACTHD register directly.
    
    Signed-off-by: Xiong Zhang <[email protected]>
    Signed-off-by: Zhi Wang <[email protected]>
    Signed-off-by: Rodrigo Vivi <[email protected]>
    Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
    xiongzha authored and rodrigovivi committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    894e287 View commit details
    Browse the repository at this point in the history
  39. arm/xen: don't inclide rwlock.h directly.

    rwlock.h should not be included directly. Instead linux/splinlock.h
    should be included. One thing it does is to break the RT build.
    
    Cc: Stefano Stabellini <[email protected]>
    Cc: [email protected]
    Cc: [email protected]
    Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
    Reviewed-by: Stefano Stabellini <[email protected]>
    Signed-off-by: Boris Ostrovsky <[email protected]>
    Sebastian Andrzej Siewior authored and Boris Ostrovsky committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    a494ee6 View commit details
    Browse the repository at this point in the history
  40. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/dledford/rdma
    
    Pull rdma fix from Doug Ledford:
     "Fix an oops issue in the new RDMA netlink code"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma:
      RDMA/netlink: OOPs in rdma_nl_rcv_msg() from misinterpreted flag
    torvalds committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    15f859a View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2017

  1. Merge tag 'drm-intel-fixes-2017-10-26' of git://anongit.freedesktop.o…

    …rg/drm/drm-intel into drm-fixes
    
    One fix for stable:
    
    - fix perf enable/disable ioctls for 32bits (Lionel)
    
    Plus GVT fixes:
    
    - Fix per_ctx_bb check (Zhenyu)
    - Fix GPU hang of Linux guest (Xion)
    - Refine MMIO_RING_F to check for presence of VCS2 ring (Zhi)
    
    * tag 'drm-intel-fixes-2017-10-26' of git://anongit.freedesktop.org/drm/drm-intel:
      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
    airlied committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    ce485df View commit details
    Browse the repository at this point in the history
  2. Merge tag 'mac80211-for-davem-2017-10-25' of git://git.kernel.org/pub…

    …/scm/linux/kernel/git/jberg/mac80211
    
    Johannes Berg says:
    
    ====================
    pull-request: mac80211 2017-10-25
    
    Here are:
     * follow-up fixes for the WoWLAN security issue, to fix a
       partial TKIP key material problem and to use crypto_memneq()
     * a change for better enforcement of FQ's memory limit
     * a disconnect/connect handling fix, and
     * a user rate mask validation fix
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    9618aec View commit details
    Browse the repository at this point in the history
  3. maintainers: drop Chris Wright from pvops

    Mails to [email protected] are not deliverable since several months.
    Drop him as PARAVIRT_OPS maintainer.
    
    Signed-off-by: Juergen Gross <[email protected]>
    Acked-by: Chris Wright <[email protected]>
    Signed-off-by: Juergen Gross <[email protected]>
    jgross1 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    8fc669e View commit details
    Browse the repository at this point in the history
  4. Revert "x86/mm: Limit mmap() of /dev/mem to valid physical addresses"

    This reverts commit ce56a86.
    
    There's unanticipated interaction with some boot parameters like 'mem=',
    which now cause the new checks via valid_mmap_phys_addr_range() to be too
    restrictive, crashing a Qemu bootup in fact, as reported by Fengguang Wu.
    
    So while the motivation of the change is still entirely valid, we
    need a few more rounds of testing to get it right - it's way too late
    after -rc6, so revert it for now.
    
    Reported-by: Fengguang Wu <[email protected]>
    Signed-off-by: Ingo Molnar <[email protected]>
    Acked-by: Craig Bergstrom <[email protected]>
    Cc: Andrew Morton <[email protected]>
    Cc: Andy Lutomirski <[email protected]>
    Cc: Borislav Petkov <[email protected]>
    Cc: Brian Gerst <[email protected]>
    Cc: Denys Vlasenko <[email protected]>
    Cc: H. Peter Anvin <[email protected]>
    Cc: Josh Poimboeuf <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Luis R. Rodriguez <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Cc: Toshi Kani <[email protected]>
    Cc: [email protected]
    Cc: [email protected]
    Cc: [email protected]
    Cc: [email protected]
    Cc: [email protected]
    Signed-off-by: Ingo Molnar <[email protected]>
    Ingo Molnar committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    90edaac View commit details
    Browse the repository at this point in the history
  5. Merge tag 'mlx5-fixes-2017-10-26' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/saeed/linux
    
    Saeed Mahameed says:
    
    ====================
    Mellanox, mlx5 fixes 2017-10-26
    
    The series includes some misc fixes for mlx5 core and etherent driver.
    Please pull and let me know if there's any problem.
    
    For -Stable:
    net/mlx5e: Properly deal with encap flows add/del under neigh update (kernels >= 4.12)
    net/mlx5: Fix health work queue spin lock to IRQ safe  (kernels >= 4.13)
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    5be9541 View commit details
    Browse the repository at this point in the history
  6. net: stmmac: dwc-qos-eth: Fix typo in DT bindings parsing

    According to DT bindings documentation we are expecting a
    property called "snps,read-requests" but we are parsing
    instead a property called "read,read-requests".
    
    This is clearly a typo. Fix it.
    
    Signed-off-by: Jose Abreu <[email protected]>
    Cc: Joao Pinto <[email protected]>
    Cc: David S. Miller <[email protected]>
    Cc: Giuseppe Cavallaro <[email protected]>
    Cc: Alexandre Torgue <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    joabreu authored and davem330 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    4894ac6 View commit details
    Browse the repository at this point in the history
  7. net: stmmac: First Queue must always be in DCB mode

    According to DWMAC databook the first queue operating mode
    must always be in DCB.
    
    As MTL_QUEUE_DCB = 1, we need to always set the first queue
    operating mode to DCB otherwise driver will think that queue
    is in AVB mode (because MTL_QUEUE_AVB = 0).
    
    Signed-off-by: Jose Abreu <[email protected]>
    Cc: Joao Pinto <[email protected]>
    Cc: David S. Miller <[email protected]>
    Cc: Giuseppe Cavallaro <[email protected]>
    Cc: Alexandre Torgue <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    joabreu authored and davem330 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    6d9f079 View commit details
    Browse the repository at this point in the history
  8. ipip: only increase err_count for some certain type icmp in ipip_err

    t->err_count is used to count the link failure on tunnel and an err
    will be reported to user socket in tx path if t->err_count is not 0.
    udp socket could even return EHOSTUNREACH to users.
    
    Since commit fd58156 ("IPIP: Use ip-tunneling code.") removed
    the 'switch check' for icmp type in ipip_err(), err_count would be
    increased by the icmp packet with ICMP_EXC_FRAGTIME code. an link
    failure would be reported out due to this.
    
    In Jianlin's case, when receiving ICMP_EXC_FRAGTIME a icmp packet,
    udp netperf failed with the err:
      send_data: data send error: No route to host (errno 113)
    
    We expect this error reported from tunnel to socket when receiving
    some certain type icmp, but not ICMP_EXC_FRAGTIME, ICMP_SR_FAILED
    or ICMP_PARAMETERPROB ones.
    
    This patch is to bring 'switch check' for icmp type back to ipip_err
    so that it only reports link failure for the right type icmp, just as
    in ipgre_err() and ipip6_err().
    
    Fixes: fd58156 ("IPIP: Use ip-tunneling code.")
    Reported-by: Jianlin Shi <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    lxin authored and davem330 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    f3594f0 View commit details
    Browse the repository at this point in the history
  9. ip6_gre: only increase err_count for some certain type icmpv6 in ip6g…

    …re_err
    
    The similar fix in patch 'ipip: only increase err_count for some
    certain type icmp in ipip_err' is needed for ip6gre_err.
    
    In Jianlin's case, udp netperf broke even when receiving a TooBig
    icmpv6 packet.
    
    Fixes: c12b395 ("gre: Support GRE over IPv6")
    Reported-by: Jianlin Shi <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    lxin authored and davem330 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    f8d20b4 View commit details
    Browse the repository at this point in the history
  10. ip6_gre: update dst pmtu if dev mtu has been updated by toobig in __g…

    …re6_xmit
    
    When receiving a Toobig icmpv6 packet, ip6gre_err would just set
    tunnel dev's mtu, that's not enough. For skb_dst(skb)'s pmtu may
    still be using the old value, it has no chance to be updated with
    tunnel dev's mtu.
    
    Jianlin found this issue by reducing route's mtu while running
    netperf, the performance went to 0.
    
    ip6ip6 and ip4ip6 tunnel can work well with this, as they lookup
    the upper dst and update_pmtu it's pmtu or icmpv6_send a Toobig
    to upper socket after setting tunnel dev's mtu.
    
    We couldn't do that for ip6_gre, as gre's inner packet could be
    any protocol, it's difficult to handle them (like lookup upper
    dst) in a good way.
    
    So this patch is to fix it by updating skb_dst(skb)'s pmtu when
    dev->mtu < skb_dst(skb)'s pmtu in tx path. It's safe to do this
    update there, as usually dev->mtu <= skb_dst(skb)'s pmtu and no
    performance regression can be caused by this.
    
    Fixes: c12b395 ("gre: Support GRE over IPv6")
    Reported-by: Jianlin Shi <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    lxin authored and davem330 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    8aec495 View commit details
    Browse the repository at this point in the history
  11. Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/jkirsher/net-queue
    
    Jeff Kirsher says:
    
    ====================
    Intel Wired LAN Driver Updates 2017-10-26
    
    This series contains fixes to e1000, igb, ixgbe and i40e.
    
    Vincenzo Maffione fixes a potential race condition which would result in
    the interface being up but transmits are disabled in the hardware.
    
    Colin Ian King fixes a possible NULL pointer dereference in e1000, which
    was found by Coverity.
    
    Jean-Philippe Brucker fixes a possible kernel panic when a driver cannot
    map a transmit buffer, which is caused by an erroneous test.
    
    Alex provides a fix for ixgbe, which is a partial revert of the commit
    ffed21b ("ixgbe: Don't bother clearing buffer memory for descriptor rings")
    because the previous commit messed up the exception handling path by
    adding the count back in when we did not need to.  Also fixed a typo,
    where the transmit ITR setting was being used to determine if we were
    using adaptive receive interrupt moderation or not.  Lastly, fixed a
    memory leak by including programming descriptors in the cleaned count.
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    8ab190f View commit details
    Browse the repository at this point in the history
  12. Input: gtco - fix potential out-of-bound access

    parse_hid_report_descriptor() has a while (i < length) loop, which
    only guarantees that there's at least 1 byte in the buffer, but the
    loop body can read multiple bytes which causes out-of-bounds access.
    
    Reported-by: Andrey Konovalov <[email protected]>
    Reviewed-by: Andrey Konovalov <[email protected]>
    Cc: [email protected]
    Signed-off-by: Dmitry Torokhov <[email protected]>
    dtor committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    a508294 View commit details
    Browse the repository at this point in the history
  13. Input: synaptics-rmi4 - limit the range of what GPIOs are buttons

    By convention the first 6 bits of F30 Ctrl 2 and 3 are used to signify
    GPIOs which are connected to buttons. Additional GPIOs may be used as
    input GPIOs to signal the touch controller of some event
    (ie disable touchpad). These additional GPIOs may meet the criteria of
    a button in rmi_f30_is_valid_button() but should not be considered
    buttons. This patch limits the GPIOs which are mapped to buttons to just
    the first 6.
    
    Signed-off-by: Andrew Duggan <[email protected]>
    Reported-by: Daniel Martin <[email protected]>
    Tested-by: Daniel Martin <[email protected]>
    Acked-By: Benjamin Tissoires <[email protected]>
    Signed-off-by: Dmitry Torokhov <[email protected]>
    aduggan-syna authored and dtor committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    3e64fcb View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2017

  1. Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull EFI fixes from Ingo Molnar:
     "Two fixes: an ARM fix for KASLR interaction with hibernation, plus an
      efi_test crash fix"
    
    * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      efi/libstub/arm: Don't randomize runtime regions when CONFIG_HIBERNATION=y
      efi/efi_test: Prevent an Oops in efi_runtime_query_capsulecaps()
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    5cefb4e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull perf fix from Ingo Molnar:
     "A fix for a misplaced permission check that can leave perf PT or LBR
      disabled (on Intel CPUs) permanently until the next reboot"
    
    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      perf/x86/intel/bts: Fix exclusive event reference leak
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    02c7dfc View commit details
    Browse the repository at this point in the history
  3. Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/tip/tip
    
    Pull scheduler fix from Ingo Molnar:
     "Update the <linux/swait.h> documentation to discourage their use"
    
    * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      sched/swait: Document it clearly that the swait facilities are special and shouldn't be used
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    11dc76f View commit details
    Browse the repository at this point in the history
  4. Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull x86 fixes from Ingo Molnar:
     "Misc fixes:
    
       - revert a /dev/mem restriction change that crashes with certain boot
         parameters
    
       - an AMD erratum fix for cases where the BIOS doesn't apply it
    
       - fix unwinder debuginfo
    
       - improve ORC unwinder warning printouts"
    
    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      Revert "x86/mm: Limit mmap() of /dev/mem to valid physical addresses"
      x86/unwind: Show function name+offset in ORC error messages
      x86/entry: Fix idtentry unwind hint
      x86/cpu/AMD: Apply the Erratum 688 fix when the BIOS doesn't
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    d3eab75 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/s390/linux
    
    Pull s390 fix from Martin Schwidefsky:
     "A fix for a regression in regard to machine check handling in KVM.
    
      Keeping my fingers crossed that this is the last s390 fix for v4.14"
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
      s390/kvm: fix detection of guest machine checks
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    fe23429 View commit details
    Browse the repository at this point in the history
  6. Fix tracing sample code warning.

    Commit 6575257 ("tracing/samples: Fix creation and deletion of
    simple_thread_fn creation") introduced a new warning due to using a
    boolean as a counter.
    
    Just make it "int".
    
    Fixes: 6575257 ("tracing/samples: Fix creation and deletion of simple_thread_fn creation")
    Cc: Steven Rostedt <[email protected]>
    Signed-off-by: Linus Torvalds <[email protected]>
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    a0cb2b5 View commit details
    Browse the repository at this point in the history
  7. Merge tag 'arc-4.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/vgupta/arc
    
    Pull ARC fixes from Vineet Gupta:
    
     - Fixes for HSDK platform
    
     - module build error for !LLSC config
    
    * tag 'arc-4.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
      ARC: unbork module link errors with !CONFIG_ARC_HAS_LLSC
      ARC: [plat-hsdk] Increase SDIO CIU frequency to 50000000Hz
      ARC: [plat-hsdk] select CONFIG_RESET_HSDK from Kconfig
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    90e6872 View commit details
    Browse the repository at this point in the history
  8. Merge tag 'for-linus-4.14c-rc7-tag' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/xen/tip
    
    Pull xen fixes from Juergen Gross:
    
     - a fix for the Xen gntdev device repairing an issue in case of partial
       failure of mapping multiple pages of another domain
    
     - a fix of a regression in the Xen balloon driver introduced in 4.13
    
     - a build fix for Xen on ARM which will trigger e.g. for Linux RT
    
     - a maintainers update for pvops (not really Xen, but carrying through
       this tree just for convenience)
    
    * tag 'for-linus-4.14c-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
      maintainers: drop Chris Wright from pvops
      arm/xen: don't inclide rwlock.h directly.
      xen: fix booting ballooned down hvm guest
      xen/gntdev: avoid out of bounds access in case of partial gntdev_mmap()
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    11224e1 View commit details
    Browse the repository at this point in the history
  9. tuntap: properly align skb->head before building skb

    An unaligned alloc_frag->offset caused by previous allocation will
    result an unaligned skb->head. This will lead unaligned
    skb_shared_info and then unaligned dataref which requires to be
    aligned for accessing on some architecture. Fix this by aligning
    alloc_frag->offset before the frag refilling.
    
    Fixes: 0bbd7da ("tun: make tun_build_skb() thread safe")
    Cc: Eric Dumazet <[email protected]>
    Cc: Willem de Bruijn <[email protected]>
    Cc: Wei Wei <[email protected]>
    Cc: Dmitry Vyukov <[email protected]>
    Cc: Mark Rutland <[email protected]>
    Reported-by: Wei Wei <[email protected]>
    Signed-off-by: Jason Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    jasowang authored and davem330 committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    63b9ab6 View commit details
    Browse the repository at this point in the history
  10. tcp: refresh tp timestamp before tcp_mtu_probe()

    In the unlikely event tcp_mtu_probe() is sending a packet, we
    want tp->tcp_mstamp being as accurate as possible.
    
    This means we need to call tcp_mstamp_refresh() a bit earlier in
    tcp_write_xmit().
    
    Fixes: 385e207 ("tcp: use tp->tcp_mstamp in output path")
    Signed-off-by: Eric Dumazet <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Eric Dumazet authored and davem330 committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    ee1836a View commit details
    Browse the repository at this point in the history
  11. tap: reference to KVA of an unloaded module causes kernel panic

    The commit 9a393b5 ("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: 9a393b5 (tap: tap as an independent module)
    Signed-off-by: Girish Moodalbail <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Girish Moodalbail authored and davem330 committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    dea6e19 View commit details
    Browse the repository at this point in the history
  12. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/mszeredi/fuse
    
    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
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    a9af983 View commit details
    Browse the repository at this point in the history
  13. Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/mszeredi/vfs
    
    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
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    c9f27f9 View commit details
    Browse the repository at this point in the history
  14. Merge tag '4.14-smb3-fixes-for-stable' of git://git.samba.org/sfrench…

    …/cifs-2.6
    
    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
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    7814023 View commit details
    Browse the repository at this point in the history
  15. assoc_array: Fix a buggy node-splitting case

    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: 3cb9895 ("Add a generic associative array implementation.")
    Reported-and-tested-by: WU Fan <[email protected]>
    Signed-off-by: David Howells <[email protected]>
    Cc: [email protected] [v3.13-rc1+]
    Signed-off-by: Linus Torvalds <[email protected]>
    dhowells authored and torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    ea67899 View commit details
    Browse the repository at this point in the history
  16. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    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
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    5345da8 View commit details
    Browse the repository at this point in the history
  17. Merge tag 'drm-fixes-for-v4.14-rc7' of git://people.freedesktop.org/~…

    …airlied/linux
    
    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
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    b35f0ca View commit details
    Browse the repository at this point in the history
  18. Merge tag 'pci-v4.14-fixes-6' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/helgaas/pci
    
    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
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    22450e0 View commit details
    Browse the repository at this point in the history
  19. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/dtor/input
    
    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
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    a7d3e63 View commit details
    Browse the repository at this point in the history
  20. Merge tag 'kbuild-fixes-v4.14-2' of git://git.kernel.org/pub/scm/linu…

    …x/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)
    torvalds committed Oct 28, 2017
    Configuration menu
    Copy the full SHA
    25a5d23 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2017

  1. bpf: bpf_compute_data uses incorrect cb structure

    SK_SKB program types use bpf_compute_data to store the end of the
    packet data. However, bpf_compute_data assumes the cb is stored in the
    qdisc layer format. But, for SK_SKB this is the wrong layer of the
    stack for this type.
    
    It happens to work (sort of!) because in most cases nothing happens
    to be overwritten today. This is very fragile and error prone.
    Fortunately, we have another hole in tcp_skb_cb we can use so lets
    put the data_end value there.
    
    Note, SK_SKB program types do not use data_meta, they are failed by
    sk_skb_is_valid_access().
    
    Signed-off-by: John Fastabend <[email protected]>
    Acked-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    jrfastab authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    8108a77 View commit details
    Browse the repository at this point in the history
  2. bpf: rename sk_actions to align with bpf infrastructure

    Recent additions to support multiple programs in cgroups impose
    a strict requirement, "all yes is yes, any no is no". To enforce
    this the infrastructure requires the 'no' return code, SK_DROP in
    this case, to be 0.
    
    To apply these rules to SK_SKB program types the sk_actions return
    codes need to be adjusted.
    
    This fix adds SK_PASS and makes 'SK_DROP = 0'. Finally, remove
    SK_ABORTED to remove any chance that the API may allow aborted
    program flows to be passed up the stack. This would be incorrect
    behavior and allow programs to break existing policies.
    
    Signed-off-by: John Fastabend <[email protected]>
    Acked-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    jrfastab authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    bfa6407 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'sockmap-fixes'

    John Fastabend says:
    
    ====================
    net: sockmap fixes
    
    Last two fixes (as far as I know) for sockmap code this round.
    
    First, we are using the qdisc cb structure when making the data end
    calculation. This is really just wrong so, store it with the other
    metadata in the correct tcp_skb_cb sturct to avoid breaking things.
    
    Next, with recent work to attach multiple programs to a cgroup a
    specific enumeration of return codes was agreed upon. However,
    I wrote the sk_skb program types before seeing this work and used
    a different convention. Patch 2 in the series aligns the return
    codes to avoid breaking with this infrastructure and also aligns
    with other programming conventions to avoid being the odd duck out
    forcing programs to remember SK_SKB programs are different. Pusing
    to net because its a user visible change. With this SK_SKB program
    return codes are the same as other cgroup program types.
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    151516f View commit details
    Browse the repository at this point in the history
  4. sctp: reset owner sk for data chunks on out queues when migrating a sock

    Now when migrating sock to another one in sctp_sock_migrate(), it only
    resets owner sk for the data in receive queues, not the chunks on out
    queues.
    
    It would cause that data chunks length on the sock is not consistent
    with sk sk_wmem_alloc. When closing the sock or freeing these chunks,
    the old sk would never be freed, and the new sock may crash due to
    the overflow sk_wmem_alloc.
    
    syzbot found this issue with this series:
    
      r0 = socket$inet_sctp()
      sendto$inet(r0)
      listen(r0)
      accept4(r0)
      close(r0)
    
    Although listen() should have returned error when one TCP-style socket
    is in connecting (I may fix this one in another patch), it could also
    be reproduced by peeling off an assoc.
    
    This issue is there since very beginning.
    
    This patch is to reset owner sk for the chunks on out queues so that
    sk sk_wmem_alloc has correct value after accept one sock or peeloff
    an assoc to one sock.
    
    Note that when resetting owner sk for chunks on outqueue, it has to
    sctp_clear_owner_w/skb_orphan chunks before changing assoc->base.sk
    first and then sctp_set_owner_w them after changing assoc->base.sk,
    due to that sctp_wfree and it's callees are using assoc->base.sk.
    
    Reported-by: Dmitry Vyukov <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Acked-by: Marcelo Ricardo Leitner <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    lxin authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    d04adf1 View commit details
    Browse the repository at this point in the history
  5. net_sched: avoid matching qdisc with zero handle

    Davide found the following script triggers a NULL pointer
    dereference:
    
    ip l a name eth0 type dummy
    tc q a dev eth0 parent :1 handle 1: htb
    
    This is because for a freshly created netdevice noop_qdisc
    is attached and when passing 'parent :1', kernel actually
    tries to match the major handle which is 0 and noop_qdisc
    has handle 0 so is matched by mistake. Commit 69012ae
    tries to fix a similar bug but still misses this case.
    
    Handle 0 is not a valid one, should be just skipped. In
    fact, kernel uses it as TC_H_UNSPEC.
    
    Fixes: 69012ae ("net: sched: fix handling of singleton qdiscs with qdisc_hash")
    Fixes: 59cc1f6 ("net: sched:convert qdisc linked list to hashtable")
    Reported-by: Davide Caratti <[email protected]>
    Cc: Jiri Kosina <[email protected]>
    Cc: Eric Dumazet <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    50317fc View commit details
    Browse the repository at this point in the history
  6. sctp: fix some type cast warnings introduced by stream reconf

    These warnings were found by running 'make C=2 M=net/sctp/'.
    
    They are introduced by not aware of Endian when coding stream
    reconf patches.
    
    Since commit c0d8bab ("sctp: add get and set sockopt for
    reconf_enable") enabled stream reconf feature for users, the
    Fixes tag below would use it.
    
    Fixes: c0d8bab ("sctp: add get and set sockopt for reconf_enable")
    Reported-by: Eric Dumazet <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    lxin authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    1da4fc9 View commit details
    Browse the repository at this point in the history
  7. sctp: fix some type cast warnings introduced by transport rhashtable

    These warnings were found by running 'make C=2 M=net/sctp/'.
    
    They are introduced by not aware of Endian for the port when
    coding transport rhashtable patches.
    
    Fixes: 7fda702 ("sctp: use new rhlist interface on sctp transport rhashtable")
    Reported-by: Eric Dumazet <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    lxin authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    8d32503 View commit details
    Browse the repository at this point in the history
  8. sctp: fix a type cast warnings that causes a_rwnd gets the wrong value

    These warnings were found by running 'make C=2 M=net/sctp/'.
    
    Commit d4d6fb5 ("sctp: Try not to change a_rwnd when faking a
    SACK from SHUTDOWN.") expected to use the peers old rwnd and add
    our flight size to the a_rwnd. But with the wrong Endian, it may
    not work as well as expected.
    
    So fix it by converting to the right value.
    
    Fixes: d4d6fb5 ("sctp: Try not to change a_rwnd when faking a SACK from SHUTDOWN.")
    Reported-by: Eric Dumazet <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    lxin authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    f6fc6bc View commit details
    Browse the repository at this point in the history
  9. sctp: fix some type cast warnings introduced since very beginning

    These warnings were found by running 'make C=2 M=net/sctp/'.
    They are there since very beginning.
    
    Note after this patch, there still one warning left in
    sctp_outq_flush():
      sctp_chunk_fail(chunk, SCTP_ERROR_INV_STRM)
    
    Since it has been moved to sctp_stream_outq_migrate on net-next,
    to avoid the extra job when merging net-next to net, I will post
    the fix for it after the merging is done.
    
    Reported-by: Eric Dumazet <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    lxin authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    978aa04 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'sctp-endianness-fixes'

    Xin Long says:
    
    ====================
    sctp: a bunch of fixes for some sparse warnings
    
    As Eric noticed, when running 'make C=2 M=net/sctp/', a plenty of
    warnings or errors checked by sparse appear. They are all problems
    about Endian and type cast.
    
    Most of them are just warnings by which no issues could be caused
    while some might be bugs.
    
    This patchset fixes them with four patches basically according to
    how they are introduced.
    ====================
    
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    8c83c88 View commit details
    Browse the repository at this point in the history
  11. net_sched: introduce a workqueue for RCU callbacks of tc filter

    This patch introduces a dedicated workqueue for tc filters
    so that each tc filter's RCU callback could defer their
    action destroy work to this workqueue. The helper
    tcf_queue_work() is introduced for them to use.
    
    Because we hold RTNL lock when calling tcf_block_put(), we
    can not simply flush works inside it, therefore we have to
    defer it again to this workqueue and make sure all flying RCU
    callbacks have already queued their work before this one, in
    other words, to ensure this is the last one to execute to
    prevent any use-after-free.
    
    On the other hand, this makes tcf_block_put() ugly and
    harder to understand. Since David and Eric strongly dislike
    adding synchronize_rcu(), this is probably the only
    solution that could make everyone happy.
    
    Please also see the code comments below.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    7aa0045 View commit details
    Browse the repository at this point in the history
  12. net_sched: use tcf_queue_work() in basic filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    c96a483 View commit details
    Browse the repository at this point in the history
  13. net_sched: use tcf_queue_work() in bpf filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    e910af6 View commit details
    Browse the repository at this point in the history
  14. net_sched: use tcf_queue_work() in cgroup filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    b1b5b04 View commit details
    Browse the repository at this point in the history
  15. net_sched: use tcf_queue_work() in flow filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    94cdb47 View commit details
    Browse the repository at this point in the history
  16. net_sched: use tcf_queue_work() in flower filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    0552c8a View commit details
    Browse the repository at this point in the history
  17. net_sched: use tcf_queue_work() in fw filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    e071dff View commit details
    Browse the repository at this point in the history
  18. net_sched: use tcf_queue_work() in matchall filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    df2735e View commit details
    Browse the repository at this point in the history
  19. net_sched: use tcf_queue_work() in u32 filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    c0d378e View commit details
    Browse the repository at this point in the history
  20. net_sched: use tcf_queue_work() in route filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    c2f3f31 View commit details
    Browse the repository at this point in the history
  21. net_sched: use tcf_queue_work() in rsvp filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    d4f84a4 View commit details
    Browse the repository at this point in the history
  22. net_sched: use tcf_queue_work() in tcindex filter

    Defer the tcf_exts_destroy() in RCU callback to
    tc filter workqueue and get RTNL lock.
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    27ce4f0 View commit details
    Browse the repository at this point in the history
  23. net_sched: add rtnl assertion to tcf_exts_destroy()

    After previous patches, it is now safe to claim that
    tcf_exts_destroy() is always called with RTNL lock.
    
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    2d132eb View commit details
    Browse the repository at this point in the history
  24. net_sched: fix call_rcu() race on act_sample module removal

    Similar to commit c78e174
    ("net: sched: fix call_rcu() race on classifier module unloads"),
    we need to wait for flying RCU callback tcf_sample_cleanup_rcu().
    
    Cc: Yotam Gigi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    congwang authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    46e235c View commit details
    Browse the repository at this point in the history
  25. selftests: Introduce a new script to generate tc batch file

      # ./tdc_batch.py -h
      usage: tdc_batch.py [-h] [-n NUMBER] [-o] [-s] [-p] device file
    
      TC batch file generator
    
      positional arguments:
        device                device name
        file                  batch file name
    
      optional arguments:
        -h, --help            show this help message and exit
        -n NUMBER, --number NUMBER
                              how many lines in batch file
        -o, --skip_sw         skip_sw (offload), by default skip_hw
        -s, --share_action    all filters share the same action
        -p, --prio            all filters have different prio
    
    Acked-by: Jamal Hadi Salim <[email protected]>
    Acked-by: Lucas Bates <[email protected]>
    Signed-off-by: Chris Mi <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    mishuang2017 authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    7f07199 View commit details
    Browse the repository at this point in the history
  26. selftests: Introduce a new test case to tc testsuite

    In this patchset, we fixed a tc bug. This patch adds the test case
    that reproduces the bug. To run this test case, user should specify
    an existing NIC device:
      # sudo ./tdc.py -d enp4s0f0
    
    This test case belongs to category "flower". If user doesn't specify
    a NIC device, the test cases belong to "flower" will not be run.
    
    In this test case, we create 1M filters and all filters share the same
    action. When destroying all filters, kernel should not panic. It takes
    about 18s to run it.
    
    Acked-by: Jamal Hadi Salim <[email protected]>
    Acked-by: Lucas Bates <[email protected]>
    Signed-off-by: Chris Mi <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    mishuang2017 authored and davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    31c2611 View commit details
    Browse the repository at this point in the history
  27. Merge branch 'net_sched-fix-races-with-RCU-callbacks'

    Cong Wang says:
    
    ====================
    net_sched: fix races with RCU callbacks
    
    Recently, the RCU callbacks used in TC filters and TC actions keep
    drawing my attention, they introduce at least 4 race condition bugs:
    
    1. A simple one fixed by Daniel:
    
    commit c78e174
    Author: Daniel Borkmann <[email protected]>
    Date:   Wed May 20 17:13:33 2015 +0200
    
        net: sched: fix call_rcu() race on classifier module unloads
    
    2. A very nasty one fixed by me:
    
    commit 1697c4b
    Author: Cong Wang <[email protected]>
    Date:   Mon Sep 11 16:33:32 2017 -0700
    
        net_sched: carefully handle tcf_block_put()
    
    3. Two more bugs found by Chris:
    https://patchwork.ozlabs.org/patch/826696/
    https://patchwork.ozlabs.org/patch/826695/
    
    Usually RCU callbacks are simple, however for TC filters and actions,
    they are complex because at least TC actions could be destroyed
    together with the TC filter in one callback. And RCU callbacks are
    invoked in BH context, without locking they are parallel too. All of
    these contribute to the cause of these nasty bugs.
    
    Alternatively, we could also:
    
    a) Introduce a spinlock to serialize these RCU callbacks. But as I
    said in commit 1697c4b ("net_sched: carefully handle
    tcf_block_put()"), it is very hard to do because of tcf_chain_dump().
    Potentially we need to do a lot of work to make it possible (if not
    impossible).
    
    b) Just get rid of these RCU callbacks, because they are not
    necessary at all, callers of these call_rcu() are all on slow paths
    and holding RTNL lock, so blocking is allowed in their contexts.
    However, David and Eric dislike adding synchronize_rcu() here.
    
    As suggested by Paul, we could defer the work to a workqueue and
    gain the permission of holding RTNL again without any performance
    impact, however, in tcf_block_put() we could have a deadlock when
    flushing workqueue while hodling RTNL lock, the trick here is to
    defer the work itself in workqueue and make it queued after all
    other works so that we keep the same ordering to avoid any
    use-after-free. Please see the first patch for details.
    
    Patch 1 introduces the infrastructure, patch 2~12 move each
    tc filter to the new tc filter workqueue, patch 13 adds
    an assertion to catch potential bugs like this, patch 14
    closes another rcu callback race, patch 15 and patch 16 add
    new test cases.
    ====================
    
    Reported-by: Chris Mi <[email protected]>
    Cc: Daniel Borkmann <[email protected]>
    Cc: Jiri Pirko <[email protected]>
    Cc: John Fastabend <[email protected]>
    Cc: Jamal Hadi Salim <[email protected]>
    Cc: "Paul E. McKenney" <[email protected]>
    Signed-off-by: Cong Wang <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    davem330 committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    6c325f4 View commit details
    Browse the repository at this point in the history
  28. Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net

    Pull networking fixes from David Miller:
    
     1) Fix route leak in xfrm_bundle_create().
    
     2) In mac80211, validate user rate mask before configuring it. From
        Johannes Berg.
    
     3) Properly enforce memory limits in fair queueing code, from Toke
        Hoiland-Jorgensen.
    
     4) Fix lockdep splat in inet_csk_route_req(), from Eric Dumazet.
    
     5) Fix TSO header allocation and management in mvpp2 driver, from Yan
        Markman.
    
     6) Don't take socket lock in BH handler in strparser code, from Tom
        Herbert.
    
     7) Don't show sockets from other namespaces in AF_UNIX code, from
        Andrei Vagin.
    
     8) Fix double free in error path of tap_open(), from Girish Moodalbail.
    
     9) Fix TX map failure path in igb and ixgbe, from Jean-Philippe Brucker
        and Alexander Duyck.
    
    10) Fix DCB mode programming in stmmac driver, from Jose Abreu.
    
    11) Fix err_count handling in various tunnels (ipip, ip6_gre). From Xin
        Long.
    
    12) Properly align SKB head before building SKB in tuntap, from Jason
        Wang.
    
    13) Avoid matching qdiscs with a zero handle during lookups, from Cong
        Wang.
    
    14) Fix various endianness bugs in sctp, from Xin Long.
    
    15) Fix tc filter callback races and add selftests which trigger the
        problem, from Cong Wang.
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (73 commits)
      selftests: Introduce a new test case to tc testsuite
      selftests: Introduce a new script to generate tc batch file
      net_sched: fix call_rcu() race on act_sample module removal
      net_sched: add rtnl assertion to tcf_exts_destroy()
      net_sched: use tcf_queue_work() in tcindex filter
      net_sched: use tcf_queue_work() in rsvp filter
      net_sched: use tcf_queue_work() in route filter
      net_sched: use tcf_queue_work() in u32 filter
      net_sched: use tcf_queue_work() in matchall filter
      net_sched: use tcf_queue_work() in fw filter
      net_sched: use tcf_queue_work() in flower filter
      net_sched: use tcf_queue_work() in flow filter
      net_sched: use tcf_queue_work() in cgroup filter
      net_sched: use tcf_queue_work() in bpf filter
      net_sched: use tcf_queue_work() in basic filter
      net_sched: introduce a workqueue for RCU callbacks of tc filter
      sctp: fix some type cast warnings introduced since very beginning
      sctp: fix a type cast warnings that causes a_rwnd gets the wrong value
      sctp: fix some type cast warnings introduced by transport rhashtable
      sctp: fix some type cast warnings introduced by stream reconf
      ...
    torvalds committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    19e1219 View commit details
    Browse the repository at this point in the history
  29. Linux 4.14-rc7

    torvalds committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    0b07194 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2017

  1. dt-bindings: Document the hi3660 thermal sensor bindings

    This adds documentation of device tree bindings for the
    thermal sensor controller of hi3660 SoC.
    
    Signed-off-by: Tao Wang <[email protected]>
    Kevin-WangTao authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    571a961 View commit details
    Browse the repository at this point in the history
  2. arm64: dts: register Hi3660's thermal sensor

    Bind thermal sensor driver for Hi3660.
    
    Signed-off-by: Tao Wang <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Kevin-WangTao authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    dc41059 View commit details
    Browse the repository at this point in the history
  3. dt-bindings: scsi: ufs: add document for hi3660-ufs

    add ufs node document for hi3660
    
    Signed-off-by: Bu Tao <[email protected]>
    butaohisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    b2b6225 View commit details
    Browse the repository at this point in the history
  4. arm64: dts: Add ufs dts node

    arm64: dts: add ufs node for hi3660
    
    Signed-off-by: Bu Tao <[email protected]>
    butaohisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    0239145 View commit details
    Browse the repository at this point in the history
  5. TODO: arm64: dts: hi3660: add usb nodes for hikey960

    TODO: need to separate between hi3660.dtsi and hi3660-hikey960.dts
    
    Signed-off-by: Fan Ning <[email protected]>
    fanninghisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    d81dfcd View commit details
    Browse the repository at this point in the history
  6. FIX: arm64: dts: hi3660: usb update

    Signed-off-by: Fan Ning <[email protected]>
    Signed-off-by: Guodong Xu <[email protected]>
    fanninghisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    8a6efe9 View commit details
    Browse the repository at this point in the history
  7. FIX: arm64: dts: hi3660: enable gpio_hubv2 by default for usb

    This patch fixes the problem of when using UEFI, USB host doesn't work.
    
    This patch removes gpio_hubv1. gpio_hubv1 is only useful to revision 1
    (v1) of hikey960. But revision 1 is experimental, and is not available in
    the market any more.
    
    This patch enables gpio_hubv2 by default by deleting status = "disabled".
    gpio_hubv2 is used by USB host/client switching. Corresponding driver code
    is in drivers/misc/microchip/hub/hub_usb5734.c
    
    Previously, HiSilicon bootloader reads board's id. According boardid
    (v1 or v2), it modifies DTB node. Eg. when it reads a v2 board, it changes
    node gpio_hubv2 status to: status = "ok".
    
    But when we use UEFI, UEFI doesn't do the boardid detection, and it doesn't
    change DTB. So, without this patch, both gpio_hubv2 and gpio_hubv1 are
    "disabled", and switching from USB OTG to host always fails.
    
    Signed-off-by: Guodong Xu <[email protected]>
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    5dee277 View commit details
    Browse the repository at this point in the history
  8. arm64: dts: enable gpu

    enable gpu and set gpu defconfig
    
    Signed-off-by: Shihui Zhao <[email protected]>
    Shihui Zhao authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    65f19ab View commit details
    Browse the repository at this point in the history
  9. dts: arm64: add mailbox binding for hi3660

    Add binding for mailbox driver.
    
    Signed-off-by: Leo Yan <[email protected]>
    Leo Yan authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    e2b68ca View commit details
    Browse the repository at this point in the history
  10. dt-bindings: clk: hi3660-clock: add bindings for stub clock

    Add bindings for stub clock for Hi3660.
    
    Signed-off-by: Leo Yan <[email protected]>
    Leo Yan authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    180a0e3 View commit details
    Browse the repository at this point in the history
  11. dts: arm64: bind stub clock driver for Hi3660

    Add binding to stub clock driver.
    
    Signed-off-by: Leo Yan <[email protected]>
    Leo Yan authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    f86b994 View commit details
    Browse the repository at this point in the history
  12. dts: arm64: bind CPUs OPP table for Hi3660

    Add OPP table for CPU nodes.
    
    Signed-off-by: Leo Yan <[email protected]>
    Leo Yan authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    8195ac3 View commit details
    Browse the repository at this point in the history
  13. dts: arm64: add thermal zone for Hi3660

    This patch adds thermal zone to bind thermal sensor with CPU cooling
    device, for supporting thermal IPA governor this patch adds
    'sustainable-power', 'dynamic coefficient' and 'weight' parameters.
    
    Signed-off-by: Tao Wang <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Leo Yan authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    3386c5c View commit details
    Browse the repository at this point in the history
  14. arm64: dts: hi3660: add display driver dts

    Signed-off-by: Liwei Cai <[email protected]>
    Signed-off-by: Xiubin Zhang <[email protected]>
    cailiwei authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    282254c View commit details
    Browse the repository at this point in the history
  15. dts: arm64: Add CoreSight trace support for hi3660

    This patch adds devicetree entries for the CoreSight trace components on
    the hi3660.
    
    Signed-off-by: Shi Wanglai <[email protected]>
    Signed-off-by: Robert Walker <[email protected]>
    Shi Wanglai authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    fc29d0c View commit details
    Browse the repository at this point in the history
  16. clk: hi3660: fix incorrect uart3 clock freqency

    UART3 clock rate is doubled in previous commit.
    
    This error is not detected until recently a mezzanine board which makes
    real use of uart3 port (through LS connector of 96boards) was setup
    and tested on hi3660-hikey960 board.
    
    This patch changes clock source rate of clk_factor_uart3 to 100000000.
    
    Signed-off-by: Zhong Kaihua <[email protected]>
    Signed-off-by: Guodong Xu <[email protected]>
    zhongkaihua authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    d7292b1 View commit details
    Browse the repository at this point in the history
  17. scsi: ufs: add hi3660 ufs driver code

    add hi3660 ufs driver code
    
    Signed-off-by: Geng Jianfeng <[email protected]>
    Signed-off-by: Bu Tao <[email protected]>
    Signed-off-by: Zang Leigang <[email protected]>
    Signed-off-by: Yu Jianfeng <[email protected]>
    butaohisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    ad69f55 View commit details
    Browse the repository at this point in the history
  18. reset: hisi-reboot: adb reboot bootloader

    Signed-off-by: Chen Feng <[email protected]>
    Chen Feng authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    120b2cc View commit details
    Browse the repository at this point in the history
  19. usb: add hub_usb5734 driver for hikey960

    Signed-off-by: Fan Ning <[email protected]>
    fanninghisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    107a504 View commit details
    Browse the repository at this point in the history
  20. usb: add dwc3 driver for hikey960

    Signed-off-by: Fan Ning <[email protected]>
    fanninghisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    a4cc45a View commit details
    Browse the repository at this point in the history
  21. usb: add pd support for hikey960

    Signed-off-by: Fan Ning <[email protected]>
    fanninghisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    1cd362a View commit details
    Browse the repository at this point in the history
  22. usb: support usb gadget for hikey960

    Signed-off-by: Fan Ning <[email protected]>
    fanninghisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    036f79a View commit details
    Browse the repository at this point in the history
  23. Usb-host:xhci fix usb panic when usb disconnect

    Check tt_list_head->next to avoid panic when it is null.
    [    9.261347] [<ffffff800884a390>] xhci_free_virt_devices_depth_first+0x58/0x108
    [    9.261352] [<ffffff800884a814>] xhci_mem_cleanup+0x1bc/0x570
    [    9.261355] [<ffffff8008842de8>] xhci_stop+0x140/0x1c8
    [    9.261365] [<ffffff80087ed304>] usb_remove_hcd+0xfc/0x1d0
    [    9.261369] [<ffffff80088551c4>] xhci_plat_remove+0x6c/0xa8
    [    9.261377] [<ffffff80086e928c>] platform_drv_remove+0x2c/0x70
    [    9.261384] [<ffffff80086e6ea0>] __device_release_driver+0x80/0x108
    [    9.261387] [<ffffff80086e7a1c>] device_release_driver+0x2c/0x40
    [    9.261392] [<ffffff80086e5f28>] bus_remove_device+0xe0/0x120
    [    9.261396] [<ffffff80086e2e34>] device_del+0x114/0x210
    [    9.261399] [<ffffff80086e9e00>] platform_device_del+0x30/0xa0
    [    9.261403] [<ffffff8008810bdc>] dwc3_otg_work+0x204/0x488
    [    9.261407] [<ffffff80088133fc>] event_work+0x304/0x5b8
    [    9.261414] [<ffffff80080e31b0>] process_one_work+0x148/0x490
    [    9.261417] [<ffffff80080e3548>] worker_thread+0x50/0x4a0
    [    9.261421] [<ffffff80080e9ea0>] kthread+0xe8/0x100
    [    9.261427] [<ffffff8008083680>] ret_from_fork+0x10/0x50
    This is for https://bugs.96boards.org/show_bug.cgi?id=535
    
    Change-Id: I5004193863108bdc19a93d442a7210b4d5713c2f
    
    Signed-off-by: Fan Ning <[email protected]>
    Signed-off-by: Fan Ning <[email protected]>
    Signed-off-by: Li Rui <[email protected]>
    Signed-off-by: yangdi <[email protected]>
    Fan Ning authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    5b6f7c4 View commit details
    Browse the repository at this point in the history
  24. cpuidle: Fix NULL driver checking

    Signed-off-by: Daniel Lezcano <[email protected]>
    dlezcano authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    127243d View commit details
    Browse the repository at this point in the history
  25. driver: mailbox: add support for Hi3660

    Add mailbox driver for Hi3660.
    
    Signed-off-by: Leo Yan <[email protected]>
    Leo Yan authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    7f325bb View commit details
    Browse the repository at this point in the history
  26. clk: hisilicon: add stub clock driver for Hi3660

    Add stub clock driver for Hi3660, this patch registers clock node for
    big and LITTLE clusters and GPU clock. For DDR clock, it's should
    partially supported but has not been verified yet.
    
    Signed-off-by: Leo Yan <[email protected]>
    Leo Yan authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    91c824b View commit details
    Browse the repository at this point in the history
  27. thermal: hisilicon: add thermal sensor driver for Hi3660

    This patch adds the support for thermal sensor of Hi3660 SoC.
    this will register sensors for thermal framework and use device
    tree to bind cooling device.
    
    Signed-off-by: Tao Wang <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Kevin-WangTao authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    5cb0511 View commit details
    Browse the repository at this point in the history
  28. thermal/drivers/step_wise: Fix temperature regulation misbehavior

    There is a particular situation when the cooling device is cpufreq and the heat
    dissipation is not efficient enough where the temperature increases little by
    little until reaching the critical threshold and leading to a SoC reset.
    
    The behavior is reproducible on a hikey6220 with bad heat dissipation (eg.
    stacked with other boards).
    
    Running a simple C program doing while(1); for each CPU of the SoC makes the
    temperature to reach the passive regulation trip point and ends up to the
    maximum allowed temperature followed by a reset.
    
    This issue has been also reported by running the libhugetlbfs test suite.
    
    What is observed is a ping pong between two cpu frequencies, 1.2GHz and 900MHz
    while the temperature continues to grow.
    
    It appears the step wise governor calls get_target_state() the first time with
    the throttle set to true and the trend to 'raising'. The code selects logically
    the next state, so the cpu frequency decreases from 1.2GHz to 900MHz, so far so
    good. The temperature decreases immediately but still stays greater than the
    trip point, then get_target_state() is called again, this time with the
    throttle set to true *and* the trend to 'dropping'. From there the algorithm
    assumes we have to step down the state and the cpu frequency jumps back to
    1.2GHz. But the temperature is still higher than the trip point, so
    get_target_state() is called with throttle=1 and trend='raising' again, we jump
    to 900MHz, then get_target_state() is called with throttle=1 and
    trend='dropping', we jump to 1.2GHz, etc ... but the temperature does not
    stabilizes and continues to increase.
    
    [  237.922654] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=1,throttle=1
    [  237.922678] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=1,throttle=1
    [  237.922690] thermal cooling_device0: cur_state=0
    [  237.922701] thermal cooling_device0: old_target=0, target=1
    [  238.026656] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=2,throttle=1
    [  238.026680] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=2,throttle=1
    [  238.026694] thermal cooling_device0: cur_state=1
    [  238.026707] thermal cooling_device0: old_target=1, target=0
    [  238.134647] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=1,throttle=1
    [  238.134667] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=1,throttle=1
    [  238.134679] thermal cooling_device0: cur_state=0
    [  238.134690] thermal cooling_device0: old_target=0, target=1
    
    In this situation the temperature continues to increase while the trend is
    oscillating between 'dropping' and 'raising'. We need to keep the current state
    untouched if the throttle is set, so the temperature can decrease or a higher
    state could be selected, thus preventing this oscillation.
    
    Keeping the next_target untouched when 'throttle' is true at 'dropping' time
    fixes the issue.
    
    The following traces show the governor does not change the next state if
    trend==2 (dropping) and throttle==1.
    
    [ 2306.127987] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=1,throttle=1
    [ 2306.128009] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=1,throttle=1
    [ 2306.128021] thermal cooling_device0: cur_state=0
    [ 2306.128031] thermal cooling_device0: old_target=0, target=1
    [ 2306.231991] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=2,throttle=1
    [ 2306.232016] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=2,throttle=1
    [ 2306.232030] thermal cooling_device0: cur_state=1
    [ 2306.232042] thermal cooling_device0: old_target=1, target=1
    [ 2306.335982] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=0,throttle=1
    [ 2306.336006] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=0,throttle=1
    [ 2306.336021] thermal cooling_device0: cur_state=1
    [ 2306.336034] thermal cooling_device0: old_target=1, target=1
    [ 2306.439984] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=2,throttle=1
    [ 2306.440008] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=2,throttle=0
    [ 2306.440022] thermal cooling_device0: cur_state=1
    [ 2306.440034] thermal cooling_device0: old_target=1, target=0
    
    [ ... ]
    
    After a while, if the temperature continues to increase, the next state becomes
    2 which is 720MHz on the hikey. That results in the temperature stabilizing
    around the trip point.
    
    [ 2455.831982] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=1,throttle=1
    [ 2455.832006] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=1,throttle=0
    [ 2455.832019] thermal cooling_device0: cur_state=1
    [ 2455.832032] thermal cooling_device0: old_target=1, target=1
    [ 2455.935985] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=0,throttle=1
    [ 2455.936013] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=0,throttle=0
    [ 2455.936027] thermal cooling_device0: cur_state=1
    [ 2455.936040] thermal cooling_device0: old_target=1, target=1
    [ 2456.043984] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=0,throttle=1
    [ 2456.044009] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=0,throttle=0
    [ 2456.044023] thermal cooling_device0: cur_state=1
    [ 2456.044036] thermal cooling_device0: old_target=1, target=1
    [ 2456.148001] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=1,throttle=1
    [ 2456.148028] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=1,throttle=1
    [ 2456.148042] thermal cooling_device0: cur_state=1
    [ 2456.148055] thermal cooling_device0: old_target=1, target=2
    [ 2456.252009] thermal thermal_zone0: Trip0[type=1,temp=65000]:trend=2,throttle=1
    [ 2456.252041] thermal thermal_zone0: Trip1[type=1,temp=75000]:trend=2,throttle=0
    [ 2456.252058] thermal cooling_device0: cur_state=2
    [ 2456.252075] thermal cooling_device0: old_target=2, target=1
    
    IOW, this change is needed to keep the state for a cooling device if the
    temperature trend is oscillating while the temperature increases slightly.
    
    Without this change, the situation above leads to a catastrophic crash by a
    hardware reset on hikey. This issue has been reported to happen on an OMAP
    dra7xx also.
    
    Signed-off-by: Daniel Lezcano <[email protected]>
    Cc: Keerthy <[email protected]>
    Cc: John Stultz <[email protected]>
    Cc: Leo Yan <[email protected]>
    dlezcano authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    6ef72a8 View commit details
    Browse the repository at this point in the history
  29. drm: hikey960: Add hikey960 display driver code

    Signed-off-by: Liwei Cai <[email protected]>
    Signed-off-by: Xiubin Zhang <[email protected]>
    cailiwei authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    d1bce13 View commit details
    Browse the repository at this point in the history
  30. drm: kirin960: Set prefered color modes

    Set the dsi pixel format back to HISI_FB_PIXEL_FORMAT_RGBX_8888
    which previous kernels were using.
    
    Signed-off-by: John Stultz <[email protected]>
    johnstultz-work authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    35157cb View commit details
    Browse the repository at this point in the history
  31. drm: kirin960: Build fixups for 4.14

    Signed-off-by: John Stultz <[email protected]>
    johnstultz-work authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    b04054f View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    511b51c View commit details
    Browse the repository at this point in the history
  33. MALI: drm/cma-helper: Add multi buffer support for cma fbdev

    This patch add a config to support to create multi buffer for cma fbdev.
    Such as double buffer and triple buffer.
    
    Cma fbdev is convient to add a legency fbdev. And still many Android
    devices use fbdev now and at least double buffer is needed for these
    Android devices, so that a buffer flip can be operated. It will need some
    time for Android device vendors to abondon legency fbdev. So multi buffer
    for fbdev is needed.
    
    NOT FOR UPSTREAM:
    This is needed only because of the mali driver.
    Per Daniel Stone: "... fbdev is deprecated: no new drivers, and no new
    features." https://www.spinics.net/lists/dri-devel/msg132518.html
    
    Signed-off-by: Xinliang Liu <[email protected]>
    [jstultz: Added context in commit message]
    Signed-off-by: John Stultz <[email protected]>
    xin3liang authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    9814cbf View commit details
    Browse the repository at this point in the history
  34. MALI: Add mali bifrost code from android-hikey-linaro-4.9 branch

    Just a simple import of the arm_gpu directory from the
    android-hikey-linaro-4.9 branch.
    
    Signed-off-by: John Stultz <[email protected]>
    johnstultz-work authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    ab0a402 View commit details
    Browse the repository at this point in the history
  35. MALI: Build fixups for 4.13

    Simple build fixups for migrating to 4.13 kernel
    
    Signed-off-by: John Stultz <[email protected]>
    johnstultz-work authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    61bb501 View commit details
    Browse the repository at this point in the history
  36. MALI: fixup for make distclean

    Without this patch, when run 'make distclean O=${OUT_DIR}', this error happens:
    
    /home/docularxu/Huawei/hikey960/kernel-2/scripts/Makefile.clean:14: /home/docularxu/Huawei/hikey960/kernel-2/drivers/gpu/arm_gpu/tests/Makefile: No such file or directory
    make[5]: *** No rule to make target '/home/docularxu/Huawei/hikey960/kernel-2/drivers/gpu/arm_gpu/tests/Makefile'.  Stop.
    /home/docularxu/Huawei/hikey960/kernel-2/scripts/Makefile.clean:88: recipe for target 'drivers/gpu/arm_gpu/tests' failed
    make[4]: *** [drivers/gpu/arm_gpu/tests] Error 2
    /home/docularxu/Huawei/hikey960/kernel-2/scripts/Makefile.clean:88: recipe for target 'drivers/gpu/arm_gpu' failed
    make[3]: *** [drivers/gpu/arm_gpu] Error 2
    /home/docularxu/Huawei/hikey960/kernel-2/scripts/Makefile.clean:88: recipe for target 'drivers/gpu' failed
    make[2]: *** [drivers/gpu] Error 2
    /home/docularxu/Huawei/hikey960/kernel-2/Makefile:1299: recipe for target '_clean_drivers' failed
    make[1]: *** [_clean_drivers] Error 2
    make[1]: Leaving directory '/home/docularxu/Huawei/hikey960/kernel-2-out'
    Makefile:145: recipe for target 'sub-make' failed
    make: *** [sub-make] Error 2
    
    Signed-off-by: Guodong Xu <[email protected]>
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    a445dfd View commit details
    Browse the repository at this point in the history
  37. HACK: ion: Revert ION to 4.11 era code to avoid ABI break

    The ION abi has been changed to allow it to be upstreamed,
    but this unfortunately breaks userspace gralloc/libion code
    in AOSP. So until that code can be updated to support 4.12+
    kernels, revert the ION code back to 4.11.
    
    Signed-off-by: John Stultz <[email protected]>
    johnstultz-work authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    dd5cb1f View commit details
    Browse the repository at this point in the history
  38. arm64: defconfig: enable configs for hi3660 ufs

    This enable configs for Hi3660 UFS driver.
    
    Reviewed-by: Chen Feng <[email protected]>
    Signed-off-by: Zhangfei Gao <[email protected]>
    Signed-off-by: Chen Jun <[email protected]>
    Signed-off-by: Guodong Xu <[email protected]>
    zhangfeigao authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    33f7c1d View commit details
    Browse the repository at this point in the history
  39. arm64: defconfig: enable f2fs and squashfs

    Partitions in HiKey960 are formatted as f2fs and squashfs.
    f2fs is for userdata; squashfs is for system. Both partitions are required
    by Android.
    
    Signed-off-by: Zhangfei Gao <[email protected]>
    Signed-off-by: Chen Jun <[email protected]>
    Signed-off-by: Guodong Xu <[email protected]>
    zhangfeigao authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    912e050 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    6fdadfe View commit details
    Browse the repository at this point in the history
  41. arm64: defconfig: enable usb for hikey960

    Signed-off-by: Fan Ning <[email protected]>
    fanninghisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    6d4ca6a View commit details
    Browse the repository at this point in the history
  42. FIX: arm64: defconfig: update for USB

    Signed-off-by: Fan Ning <[email protected]>
    Signed-off-by: Guodong Xu <[email protected]>
    fanninghisi authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    beabc80 View commit details
    Browse the repository at this point in the history
  43. arm64: defconfig: add configs for power management on Hi3660

    Signed-off-by: Leo Yan <[email protected]>
    Leo Yan authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    e6dad00 View commit details
    Browse the repository at this point in the history
  44. arm64: defconfig: enable DRM and hikey960 display driver

    Signed-off-by: Liwei Cai <[email protected]>
    Signed-off-by: Xiubin Zhang <[email protected]>
    cailiwei authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    f94e79d View commit details
    Browse the repository at this point in the history
  45. arm64: defconfig: enable ondemand cpufreq governor and set as default

    +CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
    
    Signed-off-by: Guodong Xu <[email protected]>
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    7f93228 View commit details
    Browse the repository at this point in the history
  46. hikey960_defconfig: Initial hikey960_defconfig

    Add a hikey960_defconfig for targeting AOSP.
    
    Signed-off-by: John Stultz <[email protected]>
    johnstultz-work authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    29cbb8e View commit details
    Browse the repository at this point in the history
  47. FIX: arm64: defconfig: set CONFIG_DRM_CMA_FBDEV_BUFFER_NUM to default

    Defaults CONFIG_DRM_CMA_FBDEV_BUFFER_NUM to 1.
    
    Previously, CONFIG_DRM_CMA_FBDEV_BUFFER_NUM is set to 2, which is useful
    to AOSP. But it broke other linux distributions, such as OpenEmbedded.
    So, remove and restore it to default value.
    
    Signed-off-by: Guodong Xu <[email protected]>
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    2ab90f0 View commit details
    Browse the repository at this point in the history
  48. coresight: ETM: Add support for ARM Cortex-A73

    Add ARM Cortex A-73 ETM PIDs to the known ETM ips. While at it
    also add description of the CPU to which the ETM belongs, to make
    it easier to identify the ETM devices.
    
    Cc: Mathieu Poirier <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Suzuki K Poulose authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    a22bfb3 View commit details
    Browse the repository at this point in the history
  49. Merge branch 'working-hikey960-upstream-dts' into working-hikey960-up…

    …stream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-dts:
      dts: arm64: Add CoreSight trace support for hi3660
      arm64: dts: hi3660: add display driver dts
      dts: arm64: add thermal zone for Hi3660
      dts: arm64: bind CPUs OPP table for Hi3660
      dts: arm64: bind stub clock driver for Hi3660
      dt-bindings: clk: hi3660-clock: add bindings for stub clock
      dts: arm64: add mailbox binding for hi3660
      arm64: dts: enable gpu
      FIX: arm64: dts: hi3660: enable gpio_hubv2 by default for usb
      FIX: arm64: dts: hi3660: usb update
      TODO: arm64: dts: hi3660: add usb nodes for hikey960
      arm64: dts: Add ufs dts node
      dt-bindings: scsi: ufs: add document for hi3660-ufs
      arm64: dts: register Hi3660's thermal sensor
      dt-bindings: Document the hi3660 thermal sensor bindings
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    e9a9319 View commit details
    Browse the repository at this point in the history
  50. coresight: Fix disabling of CoreSight TPIU

    The CoreSight TPIU should be disabled when tracing to other sinks to allow
    them to operate at full bandwidth.
    
    This patch fixes tpiu_disable_hw() to correctly disable the TPIU by
    configuring the TPIU to stop on flush, initiating a manual flush, waiting
    for the flush to complete and then waits for the TPIU to indicate it has
    stopped.
    
    Signed-off-by: Robert Walker <[email protected]>
    rwalkr authored and docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    c4f8eaf View commit details
    Browse the repository at this point in the history
  51. Merge branch 'working-hikey960-upstream-clk' into working-hikey960-up…

    …stream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-clk:
      clk: hi3660: fix incorrect uart3 clock freqency
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    fcd3f3d View commit details
    Browse the repository at this point in the history
  52. Merge branch 'working-hikey960-upstream-ufs' into working-hikey960-up…

    …stream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-ufs:
      scsi: ufs: add hi3660 ufs driver code
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    9bb4e08 View commit details
    Browse the repository at this point in the history
  53. Merge branch 'working-hikey960-upstream-reboot' into working-hikey960…

    …-upstream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-reboot:
      reset: hisi-reboot: adb reboot bootloader
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    920e455 View commit details
    Browse the repository at this point in the history
  54. Merge branch 'working-hikey960-upstream-usb' into working-hikey960-up…

    …stream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-usb:
      Usb-host:xhci fix usb panic when usb disconnect
      usb: support usb gadget for hikey960
      usb: add pd support for hikey960
      usb: add dwc3 driver for hikey960
      usb: add hub_usb5734 driver for hikey960
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    36636a7 View commit details
    Browse the repository at this point in the history
  55. Merge branch 'working-hikey960-upstream-cpuidle' into working-hikey96…

    …0-upstream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-cpuidle:
      cpuidle: Fix NULL driver checking
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    f64bde0 View commit details
    Browse the repository at this point in the history
  56. Merge branch 'working-hikey960-upstream-pm' into working-hikey960-ups…

    …tream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-pm:
      thermal/drivers/step_wise: Fix temperature regulation misbehavior
      thermal: hisilicon: add thermal sensor driver for Hi3660
      clk: hisilicon: add stub clock driver for Hi3660
      driver: mailbox: add support for Hi3660
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    604786f View commit details
    Browse the repository at this point in the history
  57. Merge branch 'working-hikey960-upstream-drm' into working-hikey960-up…

    …stream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-drm:
      HACK: Readd adv7511 mode limiting (this needs to go into drm driver)
      drm: kirin960: Build fixups for 4.14
      drm: kirin960: Set prefered color modes
      drm: hikey960: Add hikey960 display driver code
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    f02c98d View commit details
    Browse the repository at this point in the history
  58. Merge branch 'working-hikey960-upstream-mali' into working-hikey960-u…

    …pstream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-mali:
      MALI: fixup for make distclean
      MALI: Build fixups for 4.13
      MALI: Add mali bifrost code from android-hikey-linaro-4.9 branch
      MALI: drm/cma-helper: Add multi buffer support for cma fbdev
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    772e60d View commit details
    Browse the repository at this point in the history
  59. Merge branch 'working-hikey960-upstream-ion' into working-hikey960-up…

    …stream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-ion:
      HACK: ion: Revert ION to 4.11 era code to avoid ABI break
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    ed16484 View commit details
    Browse the repository at this point in the history
  60. Merge branch 'working-hikey960-upstream-defconfig' into working-hikey…

    …960-upstream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-defconfig:
      FIX: arm64: defconfig: set CONFIG_DRM_CMA_FBDEV_BUFFER_NUM to default
      hikey960_defconfig: Initial hikey960_defconfig
      arm64: defconfig: enable ondemand cpufreq governor and set as default
      arm64: defconfig: enable DRM and hikey960 display driver
      arm64: defconfig: add configs for power management on Hi3660
      FIX: arm64: defconfig: update for USB
      arm64: defconfig: enable usb for hikey960
      HACK: arm64: defconfig: setting localversion to linaro-hikey960
      arm64: defconfig: enable f2fs and squashfs
      arm64: defconfig: enable configs for hi3660 ufs
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    11c8ab0 View commit details
    Browse the repository at this point in the history
  61. Merge branch 'working-hikey960-upstream-coresight' into working-hikey…

    …960-upstream-rebase-v4.14-rc7-2017-11-03-18-10-36
    
    * working-hikey960-upstream-coresight:
      coresight: Fix disabling of CoreSight TPIU
      coresight: ETM: Add support for ARM Cortex-A73
    docularxu committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    2932b25 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2018

  1. arm64: dts: hisi: Update pcie node

    As a correction, in this commit:
     - Update the property name from "reset-gpios" to "reset-gpio".
    
    Change-Id: I978bd06e1a06c591ad52a5f0af044294dab8b9bd
    Cc: Guodong Xu <[email protected]>
    Signed-off-by: Loic Poulain <[email protected]>
    Signed-off-by: Xiaowei Song <[email protected]>
    Xiaowei-Song authored and docularxu committed Aug 15, 2018
    Configuration menu
    Copy the full SHA
    e2e79b4 View commit details
    Browse the repository at this point in the history