public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* Bluetooth fixes for 2.6.27
@ 2008-09-08 21:53 Marcel Holtmann
  2008-09-09  0:05 ` David Miller
  0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2008-09-08 21:53 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

Hi Dave,

I do have three additional fixes for the Bluetooth subsystem that should
go into the 2.6.27 release. After the heated discussion, I really wanted
not to bother you until the next merge window, but from my perspective
all three patches fall in the regression or security fix category. That
is my personal view on these and feel free to disagree.

The first patch is a clear regression that got introduced with
2.6.27-rc1 when adding Simple Pairing support. I forgot to decrease the
reference count on an incoming ACL link. This patch actually makes the
code simpler.

The second patch fixes the authentication requirements. We do have to
separate between service discovery and actual profile channels. This is
a clear requirement of the Bluetooth Security Mode 4 introduced with the
addition of the Simple Pairing support. Not fixing this will result in
broken behavior when doing service discovery with Simple Pairing enabled
devices.

The third patch rejects insecure incoming connections. This is a clear
security issues since we can't rely on the initiator doing the right
thing and establishing an encrypted link. Malicious devices would just
skip that step and in that case we have to reject connection attempt
without going into the connection phase at all.

I tried to put detailed information into the commit messages to make it
clear why I submitted these patches in the -rc phase.

We do have one suspend/resume regression with the btusb driver that I
like to see fixed, but the fix would require new USB core functionality.
I am not sure if that happens in the 2.6.27 timeframe. I will check with
Oliver if we can come up with a patch that works with the current
kernel.

Regards

Marcel


Please pull from

    git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6.git master

This will update the following files:

 include/net/bluetooth/hci_core.h |    3 ++-
 net/bluetooth/af_bluetooth.c     |    2 +-
 net/bluetooth/hci_conn.c         |   21 ++++++++++++++++++---
 net/bluetooth/hci_event.c        |   11 ++++-------
 net/bluetooth/l2cap.c            |   34 ++++++++++++++++++++++++++++------
 net/bluetooth/sco.c              |    2 +-
 6 files changed, 54 insertions(+), 19 deletions(-)

through these ChangeSets:

Marcel Holtmann (3):
    [Bluetooth] Fix reference counting during ACL config stage
    [Bluetooth] Enforce correct authentication requirements
    [Bluetooth] Reject L2CAP connections on an insecure ACL link



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Bluetooth fixes for 2.6.27
@ 2008-08-19  8:23 Marcel Holtmann
  2008-08-19  8:38 ` David Miller
  0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2008-08-19  8:23 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

Hi Dave,

here are three fixes for the Bluetooth subsystem.

The removal of the /sys/class/bluetooth symlinks broke userspace
assumption. This has been fixed now in a way we should have done it a
long time ago.

For the btusb driver this adds the promised SCO support. The btusb
driver is a new driver and will eventually replace hci_usb. Adding SCO
support was the last missing piece. All distributions are using the
hci_usb driver at the moment and you can only select one of them. So
this can't introduce any regression. With this change the distributions
are now able to select the new driver if they really want to.

I have one pending optimization for this driver, but that depends on the
USB patches. The usb_unlink_anchored_urbs() is currently broken and thus
we can't use it. I will submit this patch once the USB fixes got merged.

In addition, I finally cleaned out the MAINTAINERS file and the
MODULE_AUTHOR tags to reflect maintainer information.

Regards

Marcel


Please pull from

    git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6.git master

This will update the following files:

 MAINTAINERS                   |   87 +---------
 drivers/bluetooth/Kconfig     |   10 +-
 drivers/bluetooth/bt3c_cs.c   |    2 +-
 drivers/bluetooth/btusb.c     |  282 +++++++++++++++++++++++++++++--
 drivers/bluetooth/hci_ldisc.c |    2 +-
 drivers/bluetooth/hci_usb.c   |    2 +-
 drivers/bluetooth/hci_vhci.c  |    2 +-
 net/bluetooth/af_bluetooth.c  |    2 +-
 net/bluetooth/bnep/core.c     |    2 +-
 net/bluetooth/hci_sysfs.c     |  376 +++++++++++++++++++++--------------------
 net/bluetooth/l2cap.c         |    2 +-
 net/bluetooth/rfcomm/core.c   |    2 +-
 net/bluetooth/sco.c           |    2 +-
 13 files changed, 476 insertions(+), 297 deletions(-)

through these ChangeSets:

Marcel Holtmann (3):
    [Bluetooth] Add SCO support to btusb driver
    [Bluetooth] Fix userspace breakage due missing class links
    [Bluetooth] Consolidate maintainers information




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-09-09 10:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-08 21:53 Bluetooth fixes for 2.6.27 Marcel Holtmann
2008-09-09  0:05 ` David Miller
2008-09-09  2:04   ` Marcel Holtmann
2008-09-09  2:42     ` David Miller
2008-09-09  4:28       ` Marcel Holtmann
2008-09-09  4:30         ` David Miller
2008-09-09  4:46           ` Marcel Holtmann
2008-09-09  4:48             ` David Miller
2008-09-09  6:08               ` Marcel Holtmann
2008-09-09 10:02                 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2008-08-19  8:23 Marcel Holtmann
2008-08-19  8:38 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox