1. 29 Jun, 2017 4 commits
    • Ian Molton's avatar
      Bluetooth: btbcm: Add entry for BCM43430 UART bluetooth · feb16722
      Ian Molton authored
      This patch adds the device ID for the bluetooth chip used in the
      Broadcom BCM43430 SDIO WiFi / UART BT chip.
      
      Successfully tested using Firmware version 0x0182
      Signed-off-by: default avatarIan Molton <ian@mnementh.co.uk>
      Reported-by: default avatarLoic Poulain <loic.poulain@intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      feb16722
    • Mateusz Jurczyk's avatar
      Bluetooth: Add sockaddr length checks before accessing sa_family in bind and connect handlers · d2ecfa76
      Mateusz Jurczyk authored
      Verify that the caller-provided sockaddr structure is large enough to
      contain the sa_family field, before accessing it in bind() and connect()
      handlers of the Bluetooth sockets. Since neither syscall enforces a minimum
      size of the corresponding memory region, very short sockaddrs (zero or one
      byte long) result in operating on uninitialized memory while referencing
      sa_family.
      Signed-off-by: default avatarMateusz Jurczyk <mjurczyk@google.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      d2ecfa76
    • Tejun Heo's avatar
      bluetooth: remove WQ_MEM_RECLAIM from hci workqueues · 29e2dd0d
      Tejun Heo authored
      Bluetooth hci uses ordered HIGHPRI, MEM_RECLAIM workqueues.  It's
      likely that the flags came from mechanical conversion from
      create_singlethread_workqueue().  Bluetooth shouldn't be depended upon
      for memory reclaim and the spurious MEM_RECLAIM flag can trigger the
      following warning.  Remove WQ_MEM_RECLAIM and convert to
      alloc_ordered_workqueue() while at it.
      
        workqueue: WQ_MEM_RECLAIM hci0:hci_power_off is flushing !WQ_MEM_RECLAIM events:btusb_work
        ------------[ cut here ]------------
        WARNING: CPU: 2 PID: 14231 at /home/brodo/local/kernel/git/linux/kernel/workqueue.c:2423 check_flush_dependency+0xb3/0x100
        Modules linked in:
        CPU: 2 PID: 14231 Comm: kworker/u9:4 Not tainted 4.12.0-rc6+ #3
        Hardware name: Dell Inc. XPS 13 9343/0TM99H, BIOS A11 12/08/2016
        Workqueue: hci0 hci_power_off
        task: ffff9432dad58000 task.stack: ffff986d43790000
        RIP: 0010:check_flush_dependency+0xb3/0x100
        RSP: 0018:ffff986d43793c90 EFLAGS: 00010086
        RAX: 000000000000005a RBX: ffff943316810820 RCX: 0000000000000000
        RDX: 0000000000000000 RSI: 0000000000000096 RDI: 0000000000000001
        RBP: ffff986d43793cb0 R08: 0000000000000775 R09: ffffffff85bdd5c0
        R10: 0000000000000040 R11: 0000000000000000 R12: ffffffff84d596e0
        R13: ffff9432dad58000 R14: ffff94321c640320 R15: ffff9432dad58000
        FS:  0000000000000000(0000) GS:ffff94331f500000(0000) knlGS:0000000000000000
        CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
        CR2: 00007b8bca242000 CR3: 000000014f60a000 CR4: 00000000003406e0
        Call Trace:
         flush_work+0x8a/0x1c0
         ? flush_work+0x184/0x1c0
         ? skb_free_head+0x21/0x30
         __cancel_work_timer+0x124/0x1b0
         ? hci_dev_do_close+0x2a4/0x4d0
         cancel_work_sync+0x10/0x20
         btusb_close+0x23/0x100
         hci_dev_do_close+0x2ca/0x4d0
         hci_power_off+0x1e/0x50
         process_one_work+0x184/0x3e0
         worker_thread+0x4a/0x3a0
         ? preempt_count_sub+0x9b/0x100
         ? preempt_count_sub+0x9b/0x100
         kthread+0x125/0x140
         ? process_one_work+0x3e0/0x3e0
         ? __kthread_create_on_node+0x1a0/0x1a0
         ? do_syscall_64+0x58/0xd0
         ret_from_fork+0x27/0x40
        Code: 00 75 bf 49 8b 56 18 48 8d 8b b0 00 00 00 48 81 c6 b0 00 00 00 4d 89 e0 48 c7 c7 20 23 6b 85 c6 05 83 cd 31 01 01 e8 bf c4 0c 00 <0f> ff eb 93 80 3d 74 cd 31 01 00 75 a5 65 48 8b 04 25 00 c5 00
        ---[ end trace b88fd2f77754bfec ]---
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Reported-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      29e2dd0d
    • Hans de Goede's avatar
      Bluetooth: hci_bcm: Add active_low irq polarity quirk for Asus T100CHI · c4c285da
      Hans de Goede authored
      Just like the T100TA the host-wake irq on the Asus T100CHI is
      active low. Having a quirk for this is actually extra important on the
      T100CHI as it ships with a bluetooth keyboard dock, which does not
      work properly without this quirk.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      c4c285da
  2. 27 Jun, 2017 4 commits
  3. 23 Jun, 2017 1 commit
  4. 22 Jun, 2017 25 commits
  5. 21 Jun, 2017 6 commits
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 3d091982
      David S. Miller authored
      Two entries being added at the same time to the IFLA
      policy table, whilst parallel bug fixes to decnet
      routing dst handling overlapping with the dst gc removal
      in net-next.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3d091982
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 48b6bbef
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Fix refcounting wrt timers which hold onto inet6 address objects,
          from Xin Long.
      
       2) Fix an ancient bug in wireless wext ioctls, from Johannes Berg.
      
       3) Firmware handling fixes in brcm80211 driver, from Arend Van Spriel.
      
       4) Several mlx5 driver fixes (firmware readiness, timestamp cap
          reporting, devlink command validity checking, tc offloading, etc.)
          From Eli Cohen, Maor Dickman, Chris Mi, and Or Gerlitz.
      
       5) Fix dst leak in IP/IP6 tunnels, from Haishuang Yan.
      
       6) Fix dst refcount bug in decnet, from Wei Wang.
      
       7) Netdev can be double freed in register_vlan_device(). Fix from Gao
          Feng.
      
       8) Don't allow object to be destroyed while it is being dumped in SCTP,
          from Xin Long.
      
       9) Fix dpaa_eth build when modular, from Madalin Bucur.
      
      10) Fix throw route leaks, from Serhey Popovych.
      
      11) IFLA_GROUP missing from if_nlmsg_size() and ifla_policy[] table,
          also from Serhey Popovych.
      
      12) Fix premature TX SKB free in stmmac, from Niklas Cassel.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (36 commits)
        igmp: add a missing spin_lock_init()
        net: stmmac: free an skb first when there are no longer any descriptors using it
        sfc: remove duplicate up_write on VF filter_sem
        rtnetlink: add IFLA_GROUP to ifla_policy
        ipv6: Do not leak throw route references
        dt-bindings: net: sms911x: Add missing optional VDD regulators
        dpaa_eth: reuse the dma_ops provided by the FMan MAC device
        fsl/fman: propagate dma_ops
        net/core: remove explicit do_softirq() from busy_poll_stop()
        fib_rules: Resolve goto rules target on delete
        sctp: ensure ep is not destroyed before doing the dump
        net/hns:bugfix of ethtool -t phy self_test
        net: 8021q: Fix one possible panic caused by BUG_ON in free_netdev
        cxgb4: notify uP to route ctrlq compl to rdma rspq
        ip6_tunnel: Correct tos value in collect_md mode
        decnet: always not take dst->__refcnt when inserting dst into hash table
        ip6_tunnel: fix potential issue in __ip6_tnl_rcv
        ip_tunnel: fix potential issue in ip_tunnel_rcv
        brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()
        net/mlx5e: Avoid doing a cleanup call if the profile doesn't have it
        ...
      48b6bbef
    • David S. Miller's avatar
      Merge branch 'qed-File-split-and-rename-towards-iWARP-support' · 52f80dca
      David S. Miller authored
      Michal Kalderon says:
      
      ====================
      qed*: File split and rename towards iWARP support
      
      This patch series makes a few more infrastructure changes towards adding
      iWARP support. Hopefully this is the last infrastructure change
      prior to the iWARP RFC.
      
      Patch #1-3 take care of taking all the common iWARP/RoCE code out of
      qed_roce.[ch] and placing it in qed_rdma.[ch]
      Patch #4 renames the roce interface file as it is common for
      RoCE and iWARP. This patch touches qedr as well.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      52f80dca
    • Kalderon, Michal's avatar
      qed*: Rename qed_roce_if.h to qed_rdma_if.h · 7003cdd6
      Kalderon, Michal authored
      Rename the qed_roce_if file to qed_rdma_if as it
      represents a common interface for RoCE and iWARP.
      
      this commit affects RDMA/qedr as well.
      Signed-off-by: default avatarMichal Kalderon <Michal.Kalderon@cavium.com>
      Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@cavium.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7003cdd6
    • Kalderon, Michal's avatar
      qed: Split rdma content between qed_rdma and qed_roce · b71b9afd
      Kalderon, Michal authored
      This patch places common iWARP / RoCE code in qed_rdma
      and roce specific code in qed_roce
      
      There is one new function ( qed_roce_setup ) added, the rest
      of the patch removes content from the files and removes some
      static definitions.
      Signed-off-by: default avatarMichal Kalderon <Michal.Kalderon@cavium.com>
      Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@cavium.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b71b9afd
    • Kalderon, Michal's avatar
      qed: Duplicate qed_roce.[ch] to qed_rdma.[ch] · f1372ee1
      Kalderon, Michal authored
      This patch adds files that will contain common code for RoCE/iWARP.
      The files are currently identical to qed_roce.c / qed_roce.h and
      intentionally not added to the makefile. The next patch in the series
      will modify the files so that roce specific code is left in qed_roce
      and common roce/iwarp code will be placed in qed_rdma
      
      This patch is the result of a simple
      cp qed_rdma.c qed_roce.c
      cp qed_rdma.h qed_roce.h
      Signed-off-by: default avatarMichal Kalderon <Michal.Kalderon@cavium.com>
      Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@cavium.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f1372ee1