Skip to content
  1. Apr 26, 2016
    • Glenn Ruben Bakke's avatar
      Bluetooth: 6lowpan: Fix memory corruption of ipv6 destination address · 55441070
      Glenn Ruben Bakke authored
      
      
      The memcpy of ipv6 header destination address to the skb control block
      (sbk->cb) in header_create() results in currupted memory when bt_xmit()
      is issued. The skb->cb is "released" in the return of header_create()
      making room for lower layer to minipulate the skb->cb.
      
      The value retrieved in bt_xmit is not persistent across header creation
      and sending, and the lower layer will overwrite portions of skb->cb,
      making the copied destination address wrong.
      
      The memory corruption will lead to non-working multicast as the first 4
      bytes of the copied destination address is replaced by a value that
      resolves into a non-multicast prefix.
      
      This fix removes the dependency on the skb control block between header
      creation and send, by moving the destination address memcpy to the send
      function path (setup_create, which is called from bt_xmit).
      
      Signed-off-by: default avatarGlenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
      Acked-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      Cc: stable@vger.kernel.org # 4.5+
      55441070
  2. Apr 22, 2016
  3. Apr 21, 2016
  4. Apr 20, 2016
    • Takashi Iwai's avatar
      Bluetooth: vhci: Fix race at creating hci device · c7c999cb
      Takashi Iwai authored
      
      
      hci_vhci driver creates a hci device object dynamically upon each
      HCI_VENDOR_PKT write.  Although it checks the already created object
      and returns an error, it's still racy and may build multiple hci_dev
      objects concurrently when parallel writes are performed, as the device
      tracks only a single hci_dev object.
      
      This patch introduces a mutex to protect against the concurrent device
      creations.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      c7c999cb
    • Alexander Aring's avatar
      at86rf230: increase sleep to off timings · 60f5f5d3
      Alexander Aring authored
      
      
      I expierenced when setting channel while sleep mode it didn't changed
      the channel inside the hardware registers. Then I got another report of
      an user which has similar issues.
      
      I increased the sleep to off state change timing, which is according
      at86rf233 at maximum 1000 us. After this change I got no similar effects
      again.
      
      I tried another option to wait on AWAKE_END irq, which can be used to
      wait until the transceiver is awaked. I tested it and the IRQ took 4
      seconds after starting state change. I don't believe it takes 4 seconds
      to go into the TRX_OFF state from SLEEP state. The alternative is to
      increase the timings which seems to work.
      
      Cc: Oleg Hahm <oliver.hahm@inria.fr>
      Signed-off-by: default avatarAlexander Aring <aar@pengutronix.de>
      Reviewed-by: default avatarStefan <Schmidt&lt;stefan@osg.samsung.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      60f5f5d3
  5. Apr 13, 2016
  6. Apr 12, 2016
    • David S. Miller's avatar
      Merge branch 'for-upstream' of... · 69fb7812
      David S. Miller authored
      Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
      
      
      
      Johan Hedberg says:
      
      ====================
      pull request: bluetooth-next 2016-04-12
      
      Here's a set of Bluetooth & 802.15.4 patches intended for the 4.7 kernel:
      
       - Fix for race condition in vhci driver
       - Memory leak fix for ieee802154/adf7242 driver
       - Improvements to deal with single-mode (LE-only) Bluetooth controllers
       - Fix for allowing the BT_SECURITY_FIPS security level
       - New BCM2E71 ACPI ID
       - NULL pointer dereference fix fox hci_ldisc driver
      
      Let me know if there are any issues pulling. Thanks.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      69fb7812
    • Andrew Lunn's avatar
      net: mdio: Fix lockdep falls positive splat · 9a6f2b01
      Andrew Lunn authored
      
      
      MDIO devices can be stacked upon each other. The current code supports
      two levels, which until recently has been enough for a DSA mdio bus on
      top of another bus. Now we have hardware which has an MDIO mux in the
      middle.
      
      Define an MDIO MUTEX class with three levels.
      
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9a6f2b01
    • David S. Miller's avatar
      Merge branch 'rprpc-2nd-rewrite-part-1' · 7c3da7d0
      David S. Miller authored
      
      
      David Howells says:
      
      ====================
      RxRPC: 2nd rewrite part 1
      
      Okay, I'm in the process of rewriting the RxRPC rewrite.  The primary aim of
      this second rewrite is to strictly control the number of active connections we
      know about and to get rid of connections we don't need much more quickly.
      
      On top of this, there are fixes to the protocol handling which will all occur
      in later parts.
      
      Here's the first set of patches from the second go, aimed at net-next.  These
      are all fixes and cleanups preparatory to the main event.
      
      Notable parts of this set include:
      
       (1) A fix for the AFS filesystem to wait for outstanding calls to complete
           before closing the RxRPC socket.
      
       (2) Differentiation of local and remote abort codes.  At a future point
           userspace will get to see this via control message data on recvmsg().
      
       (3) Absorb the rxkad module into the af_rxrpc module to prevent a dependency
           loop.
      
       (4) Create a null security module and unconditionalise calls into the
           security module that's in force (there will always be a security module
           applied to a connection, even if it's just the null one).
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7c3da7d0
    • David Howells's avatar
      rxrpc: Create a null security type and get rid of conditional calls · e0e4d82f
      David Howells authored
      
      
      Create a null security type for security index 0 and get rid of all
      conditional calls to the security operations.  We expect normally to be
      using security, so this should be of little negative impact.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e0e4d82f
    • David Howells's avatar
      rxrpc: Absorb the rxkad security module · 648af7fc
      David Howells authored
      
      
      Absorb the rxkad security module into the af_rxrpc module so that there's
      only one module file.  This avoids a circular dependency whereby rxkad pins
      af_rxrpc and cached connections pin rxkad but can't be manually evicted
      (they will expire eventually and cease pinning).
      
      With this change, af_rxrpc can just be unloaded, despite having cached
      connections.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      648af7fc