1. 19 12月, 2011 2 次提交
  2. 21 9月, 2011 1 次提交
    • A
      Bluetooth: Add mgmt events for blacklisting · 5e762444
      Antti Julku 提交于
      Add management interface events for blocking/unblocking a device.
      Sender of the block device command gets cmd complete and other
      mgmt sockets get the event. Event is also sent to mgmt sockets when
      blocking is done with ioctl, e.g when blocking a device with
      hciconfig. This makes it possible for bluetoothd to track status
      of blocked devices when a third party block or unblocks a device.
      
      Event sending is handled in mgmt_device_blocked function which gets
      called from hci_blacklist_add in hci_core.c. A pending command is
      added in mgmt_block_device, so that it can found when sending the
      event - the event is not sent to the socket from which the pending
      command came. Locks were moved out from hci_core.c to hci_sock.c
      and mgmt.c, because locking is needed also for mgmt_pending_add in
      mgmt.c.
      Signed-off-by: NAntti Julku <antti.julku@nokia.com>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      5e762444
  3. 17 6月, 2011 1 次提交
  4. 22 2月, 2011 1 次提交
    • A
      Bluetooth: fix build break on hci_sock.c · b7440a14
      Anand Gadiyar 提交于
      Linux-next as of 20110217 complains when building for OMAP1.
      
        LD      vmlinux
      `hci_sock_cleanup' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o
      `hci_sock_cleanup' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o
      make: *** [vmlinux] Error 1
      
      A recent patch by Gustavo (Bluetooth: Merge L2CAP and SCO modules
      into bluetooth.ko) introduced this by calling the hci_sock_cleanup
      function in the error path of bt_init.
      
      Fix this by dropping the __exit marking for hci_sock_cleanup.
      Signed-off-by: NAnand Gadiyar <gadiyar@ti.com>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      b7440a14
  5. 08 2月, 2011 1 次提交
  6. 23 12月, 2010 1 次提交
  7. 08 12月, 2010 2 次提交
  8. 02 12月, 2010 1 次提交
  9. 01 8月, 2010 1 次提交
  10. 22 7月, 2010 1 次提交
  11. 28 2月, 2010 1 次提交
  12. 04 12月, 2009 2 次提交
  13. 06 11月, 2009 1 次提交
  14. 07 10月, 2009 1 次提交
  15. 01 10月, 2009 1 次提交
  16. 30 11月, 2008 1 次提交
  17. 15 7月, 2008 1 次提交
    • M
      [Bluetooth] Export details about authentication requirements · 40be492f
      Marcel Holtmann 提交于
      With the Simple Pairing support, the authentication requirements are
      an explicit setting during the bonding process. Track and enforce the
      requirements and allow higher layers like L2CAP and RFCOMM to increase
      them if needed.
      
      This patch introduces a new IOCTL that allows to query the current
      authentication requirements. It is also possible to detect Simple
      Pairing support in the kernel this way.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      40be492f
  18. 03 5月, 2008 1 次提交
  19. 29 3月, 2008 1 次提交
  20. 06 3月, 2008 1 次提交
  21. 01 11月, 2007 1 次提交
  22. 22 10月, 2007 1 次提交
    • M
      [Bluetooth] Switch from OGF+OCF to using only opcodes · a9de9248
      Marcel Holtmann 提交于
      The Bluetooth HCI commands are divided into logical OGF groups for
      easier identification of their purposes. While this still makes sense
      for the written specification, its makes the code only more complex
      and harder to read. So instead of using separate OGF and OCF values
      to identify the commands, use a common 16-bit opcode that combines
      both values. As a side effect this also reduces the complexity of
      OGF and OCF calculations during command header parsing.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      a9de9248
  23. 11 10月, 2007 1 次提交
    • E
      [NET]: Make socket creation namespace safe. · 1b8d7ae4
      Eric W. Biederman 提交于
      This patch passes in the namespace a new socket should be created in
      and has the socket code do the appropriate reference counting.  By
      virtue of this all socket create methods are touched.  In addition
      the socket create methods are modified so that they will fail if
      you attempt to create a socket in a non-default network namespace.
      
      Failing if we attempt to create a socket outside of the default
      network namespace ensures that as we incrementally make the network stack
      network namespace aware we will not export functionality that someone
      has not audited and made certain is network namespace safe.
      Allowing us to partially enable network namespaces before all of the
      exotic protocols are supported.
      
      Any protocol layers I have missed will fail to compile because I now
      pass an extra parameter into the socket creation code.
      
      [ Integrated AF_IUCV build fixes from Andrew Morton... -DaveM ]
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b8d7ae4
  24. 12 9月, 2007 1 次提交
  25. 09 9月, 2007 2 次提交
  26. 18 5月, 2007 1 次提交
  27. 05 5月, 2007 1 次提交
    • M
      [Bluetooth] Fix L2CAP and HCI setsockopt() information leaks · 0878b666
      Marcel Holtmann 提交于
      The L2CAP and HCI setsockopt() implementations have a small information
      leak that makes it possible to leak kernel stack memory to userspace.
      
      If the optlen parameter is 0, no data will be copied by copy_from_user(),
      but the uninitialized stack buffer will be read and stored later. A call
      to getsockopt() can now retrieve the leaked information.
      
      To fix this problem the stack buffer given to copy_from_user() must be
      initialized with the current settings.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      0878b666
  28. 26 4月, 2007 1 次提交
  29. 08 3月, 2007 1 次提交
    • J
      [PATCH] bluetooth: fix socket locking in hci_sock_dev_event() · b40df574
      Jiri Kosina 提交于
      [Bluetooth] Fix socket locking in hci_sock_dev_event()
      
      hci_sock_dev_event() uses bh_lock_sock() to lock the socket lock.
      This is not deadlock-safe against locking of the same socket lock in
      l2cap_connect_cfm() from softirq context. In addition to that,
      hci_sock_dev_event() doesn't seem to be called from softirq context,
      so it is safe to use lock_sock()/release_sock() instead.
      
      The lockdep warning can be triggered on my T42p simply by switching
      the Bluetooth off by the keyboard button.
      
        =================================
        [ INFO: inconsistent lock state ]
        2.6.21-rc2 #4
        ---------------------------------
        inconsistent {in-softirq-W} -> {softirq-on-W} usage.
        khubd/156 [HC0[0]:SC0[0]:HE1:SE1] takes:
         (slock-AF_BLUETOOTH){-+..}, at: [<e0ca5520>] hci_sock_dev_event+0xa8/0xc5 [bluetooth]
        {in-softirq-W} state was registered at:
          [<c012d1db>] mark_lock+0x59/0x414
          [<e0cef688>] l2cap_connect_cfm+0x4e/0x11f [l2cap]
          [<c012dfd7>] __lock_acquire+0x3e5/0xb99
          [<e0cef688>] l2cap_connect_cfm+0x4e/0x11f [l2cap]
          [<c012e7f2>] lock_acquire+0x67/0x81
          [<e0cef688>] l2cap_connect_cfm+0x4e/0x11f [l2cap]
          [<c036ee72>] _spin_lock+0x29/0x34
          [<e0cef688>] l2cap_connect_cfm+0x4e/0x11f [l2cap]
          [<e0cef688>] l2cap_connect_cfm+0x4e/0x11f [l2cap]
          [<e0ca17c3>] hci_send_cmd+0x126/0x14f [bluetooth]
          [<e0ca4ce4>] hci_event_packet+0x729/0xebd [bluetooth]
          [<e0ca205b>] hci_rx_task+0x2a/0x20f [bluetooth]
          [<e0ca209d>] hci_rx_task+0x6c/0x20f [bluetooth]
          [<c012d7be>] trace_hardirqs_on+0x10d/0x14e
          [<c011ac85>] tasklet_action+0x3d/0x68
          [<c011abba>] __do_softirq+0x41/0x92
          [<c011ac32>] do_softirq+0x27/0x3d
          [<c0105134>] do_IRQ+0x7b/0x8f
          [<c0103dec>] common_interrupt+0x24/0x34
          [<c0103df6>] common_interrupt+0x2e/0x34
          [<c0248e65>] acpi_processor_idle+0x1b3/0x34a
          [<c0248e68>] acpi_processor_idle+0x1b6/0x34a
          [<c010232b>] cpu_idle+0x39/0x4e
          [<c04bab0c>] start_kernel+0x372/0x37a
          [<c04ba42b>] unknown_bootoption+0x0/0x202
          [<ffffffff>] 0xffffffff
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      Acked-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b40df574
  30. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  31. 11 2月, 2007 1 次提交
  32. 14 12月, 2006 1 次提交
  33. 22 11月, 2006 1 次提交
  34. 16 10月, 2006 1 次提交
  35. 01 7月, 2006 1 次提交
  36. 13 2月, 2006 1 次提交