1. Apr 24, 2018
  2. Apr 23, 2018
  3. Apr 22, 2018
  4. Apr 21, 2018
  5. Apr 20, 2018
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid · 4d189053
      Linus Torvalds authored
      Pull HID updates from Jiri Kosina:
      
       - suspend/resume handling fix for Raydium I2C-connected touchscreen
         from Aaron Ma
      
       - protocol fixup for certain BT-connected Wacoms from Aaron Armstrong
         Skomra
      
       - battery level reporting fix on BT-connected mice from Dmitry Torokhov
      
       - hidraw race condition fix from Rodrigo Rivas Costa
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
        HID: i2c-hid: fix inverted return value from i2c_hid_command()
        HID: i2c-hid: Fix resume issue on Raydium touchscreen device
        HID: wacom: bluetooth: send exit report for recent Bluetooth devices
        HID: hidraw: Fix crash on HIDIOCGFEATURE with a destroyed device
        HID: input: fix battery level reporting on BT mice
      4d189053
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching · 41e3bef5
      Linus Torvalds authored
      Pull livepatching fix from Jiri Kosina:
       "Shadow variable API list_head initialization fix from Petr Mladek"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching:
        livepatch: Allow to call a custom callback when freeing shadow variables
        livepatch: Initialize shadow variables safely by a custom callback
      41e3bef5
    • Paolo Abeni's avatar
      tun: do not compute the rxhash, if not needed · cf1a1e07
      Paolo Abeni authored
      
      
      Currently, the tun driver, in absence of an eBPF steering program,
      always compute the rxhash in its rx path, even when such value
      is later unused due to additional checks (
      
      This changeset moves the all the related checks just before the
      __skb_get_hash_symmetric(), so that the latter is no more computed
      when unneeded.
      
      Also replace an unneeded RCU section with rcu_access_pointer().
      
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      Acked-by: default avatarJason Wang <jasowang@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cf1a1e07
    • Raghuram Chary J's avatar
      lan78xx: Add support to dump lan78xx registers · 49621865
      Raghuram Chary J authored
      
      
      In order to dump lan78xx family registers using ethtool, add
      support at lan78xx driver level.
      
      Signed-off-by: default avatarRaghuram Chary J <raghuramchary.jallipalli@microchip.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      49621865
    • David S. Miller's avatar
      Merge branch 'lan78xx-Read-configuration-from-Device-Tree' · 0a8b275d
      David S. Miller authored
      
      
      Phil Elwell says:
      
      ====================
      lan78xx: Read configuration from Device Tree
      
      The Microchip LAN78XX family of devices are Ethernet controllers with
      a USB interface. Despite being discoverable devices it can be useful to
      be able to configure them from Device Tree, particularly in low-cost
      applications without an EEPROM or programmed OTP.
      
      This patch set adds support for reading the MAC address and LED modes from
      Device Tree.
      
      v4:
      - Rename nodes in bindings doc.
      
      v3:
      - Move LED setting into PHY driver.
      
      v2:
      - Use eth_platform_get_mac_address.
      - Support up to 4 LEDs, and move LED mode constants into dt-bindings header.
      - Improve bindings document.
      - Remove EEE support.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0a8b275d
    • Phil Elwell's avatar
      dt-bindings: Document the DT bindings for lan78xx · 01d26589
      Phil Elwell authored
      
      
      The Microchip LAN78XX family of devices are Ethernet controllers with
      a USB interface. Despite being discoverable devices it can be useful to
      be able to configure them from Device Tree, particularly in low-cost
      applications without an EEPROM or programmed OTP.
      
      Document the supported properties in a bindings file.
      
      Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      01d26589
    • Phil Elwell's avatar
      lan78xx: Read LED states from Device Tree · 1827b067
      Phil Elwell authored
      
      
      Add support for DT property "microchip,led-modes", a vector of zero
      to four cells (u32s) in the range 0-15, each of which sets the mode
      for one of the LEDs. Some possible values are:
      
          0=link/activity          1=link1000/activity
          2=link100/activity       3=link10/activity
          4=link100/1000/activity  5=link10/1000/activity
          6=link10/100/activity    14=off    15=on
      
      These values are given symbolic constants in a dt-bindings header.
      
      Also use the presence of the DT property to indicate that the
      LEDs should be enabled - necessary in the event that no valid OTP
      or EEPROM is available.
      
      Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1827b067
    • Phil Elwell's avatar
      lan78xx: Read MAC address from DT if present · 760db29b
      Phil Elwell authored
      
      
      There is a standard mechanism for locating and using a MAC address from
      the Device Tree. Use this facility in the lan78xx driver to support
      applications without programmed EEPROM or OTP. At the same time,
      regularise the handling of the different address sources.
      
      Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      760db29b
    • Bert Kenward's avatar
      sfc: set and clear interrupt affinity hints · a83762d9
      Bert Kenward authored
      
      
      Use cpumask_local_spread to provide interrupt affinity hints
      for each queue. This will spread interrupts across NUMA local
      CPUs first, extending to remote nodes if needed.
      
      Signed-off-by: default avatarBert Kenward <bkenward@solarflare.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a83762d9
    • Eric Dumazet's avatar
      net/ipv6: Fix ip6_convert_metrics() bug · 263243d6
      Eric Dumazet authored
      If ip6_convert_metrics() fails to allocate memory, it should not
      overwrite rt->fib6_metrics or we risk a crash later as syzbot found.
      
      BUG: KASAN: null-ptr-deref in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline]
      BUG: KASAN: null-ptr-deref in refcount_sub_and_test+0x92/0x330 lib/refcount.c:179
      Read of size 4 at addr 0000000000000044 by task syzkaller832429/4487
      
      CPU: 1 PID: 4487 Comm: syzkaller832429 Not tainted 4.16.0+ #6
      Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
      Call Trace:
       __dump_stack lib/dump_stack.c:77 [inline]
       dump_stack+0x1b9/0x294 lib/dump_stack.c:113
       kasan_report_error mm/kasan/report.c:352 [inline]
       kasan_report.cold.7+0x6d/0x2fe mm/kasan/report.c:412
       check_memory_region_inline mm/kasan/kasan.c:260 [inline]
       check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267
       kasan_check_read+0x11/0x20 mm/kasan/kasan.c:272
       atomic_read include/asm-generic/atomic-instrumented.h:21 [inline]
       refcount_sub_and_test+0x92/0x330 lib/refcount.c:179
       refcount_dec_and_test+0x1a/0x20 lib/refcount.c:212
       fib6_info_destroy+0x2d0/0x3c0 net/ipv6/ip6_fib.c:206
       fib6_info_release include/net/ip6_fib.h:304 [inline]
       ip6_route_info_create+0x677/0x3240 net/ipv6/route.c:3020
       ip6_route_add+0x23/0xb0 net/ipv6/route.c:3030
       inet6_rtm_newroute+0x142/0x160 net/ipv6/route.c:4406
       rtnetlink_rcv_msg+0x466/0xc10 net/core/rtnetlink.c:4648
       netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2448
       rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4666
       netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
       netlink_unicast+0x58b/0x740 net/netlink/af_netlink.c:1336
       netlink_sendmsg+0x9f0/0xfa0 net/netlink/af_netlink.c:1901
       sock_sendmsg_nosec net/socket.c:629 [inline]
       sock_sendmsg+0xd5/0x120 net/socket.c:639
       ___sys_sendmsg+0x805/0x940 net/socket.c:2117
       __sys_sendmsg+0x115/0x270 net/socket.c:2155
       SYSC_sendmsg net/socket.c:2164 [inline]
       SyS_sendmsg+0x29/0x30 net/socket.c:2162
       do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287
       entry_SYSCALL_64_after_hwframe+0x42/0xb7
      
      Fixes: d4ead6b3
      
       ("net/ipv6: move metrics from dst to rt6_info")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: David Ahern <dsa@cumulusnetworks.com>
      Reported-by: default avatarsyzbot <syzkaller@googlegroups.com>
      Acked-by: default avatarDavid Ahern <dsa@cumulusnetworks.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      263243d6
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.17-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 36e584de
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - some fixes of kmalloc() flags
      
       - one fix of the xenbus driver
      
       - an update of the pv sound driver interface needed for a driver which
         will go through the sound tree
      
      * tag 'for-linus-4.17-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: xenbus_dev_frontend: Really return response string
        xen/sndif: Sync up with the canonical definition in Xen
        xen: xen-pciback: Replace GFP_ATOMIC with GFP_KERNEL in pcistub_reg_add
        xen: xen-pciback: Replace GFP_ATOMIC with GFP_KERNEL in xen_pcibk_config_quirks_init
        xen: xen-pciback: Replace GFP_ATOMIC with GFP_KERNEL in pcistub_device_alloc
        xen: xen-pciback: Replace GFP_ATOMIC with GFP_KERNEL in pcistub_init_device
        xen: xen-pciback: Replace GFP_ATOMIC with GFP_KERNEL in pcistub_probe
      36e584de