linux-stable-rt/net/bluetooth
Satyam Sharma 4ce61d1c7a [BLUETOOTH]: Fix locking in hci_sock_dev_event().
We presently use lock_sock() to acquire a lock on a socket in
hci_sock_dev_event(), but this goes BUG because lock_sock()
can sleep and we're already holding a read-write spinlock at
that point. So, we must use the non-sleeping BH version,
bh_lock_sock().

However, hci_sock_dev_event() is called from user context and
hence using simply bh_lock_sock() will deadlock against a
concurrent softirq that tries to acquire a lock on the same
socket. Hence, disabling BH's before acquiring the socket lock
and enable them afterwards, is the proper solution to fix
socket locking in hci_sock_dev_event().

Signed-off-by: Satyam Sharma <ssatyam@cse.iitk.ac.in>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-05-17 14:20:30 -07:00
..
bnep header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
cmtp
hidp Merge branch 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jikos/hid 2007-05-11 09:56:05 -07:00
rfcomm [Bluetooth] Disconnect L2CAP connection after last RFCOMM DLC 2007-05-05 00:36:13 +02:00
Kconfig [S390] Kconfig: unwanted menus for s390. 2007-05-10 15:46:07 +02:00
Makefile
af_bluetooth.c
hci_conn.c
hci_core.c
hci_event.c
hci_sock.c [BLUETOOTH]: Fix locking in hci_sock_dev_event(). 2007-05-17 14:20:30 -07:00
hci_sysfs.c Fix bluetooth HCI sysfs compile 2007-05-07 17:32:08 -07:00
l2cap.c [Bluetooth] Fix L2CAP and HCI setsockopt() information leaks 2007-05-05 00:35:59 +02:00
lib.c
sco.c