Skip to contentSkip to conversation

recursive locking in l2cap_sock_accept/bt_accept_dequeue

Bluetooth Pekka Pietikainen 2 participants 3 messages Sep 17, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hiya!

Got this from a 2.6.18rc7-based fedora-devel kernel:

=============================================
[ INFO: possible recursive locking detected ]
2.6.17-1.2647.fc6 #1
---------------------------------------------
sdpd/4955 is trying to acquire lock:
(sk_lock-AF_BLUETOOTH){--..}, at: [<f0cea241>] bt_accept_dequeue+0x26/0xc6 [bluetooth]

but task is already holding lock:
(sk_lock-AF_BLUETOOTH){--..}, at: [<f0b90088>] l2cap_sock_accept+0x41/0x11e [l2cap]

other info that might help us debug this:
1 lock held by sdpd/4955:
#0: (sk_lock-AF_BLUETOOTH){--..}, at: [<f0b90088>] l2cap_sock_accept+0x41/0x11e [l2cap]

stack backtrace:
 [<c04051ee>] show_trace_log_lvl+0x58/0x171
 [<c0405802>] show_trace+0xd/0x10
 [<c040591b>] dump_stack+0x19/0x1b
 [<c043b9e1>] __lock_acquire+0x778/0x99c
 [<c043c176>] lock_acquire+0x4b/0x6d
 [<c05b27e3>] lock_sock+0xac/0xbc
 [<f0cea241>] bt_accept_dequeue+0x26/0xc6 [bluetooth]
 [<f0b90129>] l2cap_sock_accept+0xe2/0x11e [l2cap]
 [<c05b1bd7>] sys_accept+0xd8/0x179
 [<c05b1d1f>] sys_socketcall+0xa7/0x186
 [<c0403faf>] syscall_call+0x7/0xb
DWARF2 unwinder stuck at syscall_call+0x7/0xb
Leftover inexact backtrace:
 [<c0405802>] show_trace+0xd/0x10
 [<c040591b>] dump_stack+0x19/0x1b
 [<c043b9e1>] __lock_acquire+0x778/0x99c
 [<c043c176>] lock_acquire+0x4b/0x6d
 [<c05b27e3>] lock_sock+0xac/0xbc
 [<f0cea241>] bt_accept_dequeue+0x26/0xc6 [bluetooth]
 [<f0b90129>] l2cap_sock_accept+0xe2/0x11e [l2cap]
 [<c05b1bd7>] sys_accept+0xd8/0x179
 [<c05b1d1f>] sys_socketcall+0xa7/0x186
 [<c0403faf>] syscall_call+0x7/0xb
#1 lore raw

Hi Pekka,

Quoted 32 lines

Got this from a 2.6.18rc7-based fedora-devel kernel:

=============================================
[ INFO: possible recursive locking detected ]
2.6.17-1.2647.fc6 #1
---------------------------------------------
sdpd/4955 is trying to acquire lock:
(sk_lock-AF_BLUETOOTH){--..}, at: [<f0cea241>] bt_accept_dequeue+0x26/0xc6 [bluetooth]

but task is already holding lock:
(sk_lock-AF_BLUETOOTH){--..}, at: [<f0b90088>] l2cap_sock_accept+0x41/0x11e [l2cap]

other info that might help us debug this:
1 lock held by sdpd/4955:
#0: (sk_lock-AF_BLUETOOTH){--..}, at: [<f0b90088>] l2cap_sock_accept+0x41/0x11e [l2cap]

stack backtrace:
 [<c04051ee>] show_trace_log_lvl+0x58/0x171
 [<c0405802>] show_trace+0xd/0x10
 [<c040591b>] dump_stack+0x19/0x1b
 [<c043b9e1>] __lock_acquire+0x778/0x99c
 [<c043c176>] lock_acquire+0x4b/0x6d
 [<c05b27e3>] lock_sock+0xac/0xbc
 [<f0cea241>] bt_accept_dequeue+0x26/0xc6 [bluetooth]
 [<f0b90129>] l2cap_sock_accept+0xe2/0x11e [l2cap]
 [<c05b1bd7>] sys_accept+0xd8/0x179
 [<c05b1d1f>] sys_socketcall+0xa7/0x186
 [<c0403faf>] syscall_call+0x7/0xb
DWARF2 unwinder stuck at syscall_call+0x7/0xb
Leftover inexact backtrace:
 [<c0405802>] show_trace+0xd/0x10
 [<c040591b>] dump_stack+0x19/0x1b
Quoted 8 lines
 [<c043b9e1>] __lock_acquire+0x778/0x99c
 [<c043c176>] lock_acquire+0x4b/0x6d
 [<c05b27e3>] lock_sock+0xac/0xbc
 [<f0cea241>] bt_accept_dequeue+0x26/0xc6 [bluetooth]
 [<f0b90129>] l2cap_sock_accept+0xe2/0x11e [l2cap]
 [<c05b1bd7>] sys_accept+0xd8/0x179
 [<c05b1d1f>] sys_socketcall+0xa7/0x186
 [<c0403faf>] syscall_call+0x7/0xb

what where you doing when this happened?

Regards

Marcel

#2 lore raw
Quoted 4 lines · Marcel Holtmann

Hi Pekka,

Quoted 2 lines

Got this from a 2.6.18rc7-based fedora-devel kernel:

Quoted 8 lines
Quoted 6 lines

=============================================
[ INFO: possible recursive locking detected ]
2.6.17-1.2647.fc6 #1

sdpd/4955 is trying to acquire lock:
(sk_lock-AF_BLUETOOTH){--..}, at: [<f0cea241>] bt_accept_dequeue+0x26/0xc6 [bluetooth]

what where you doing when this happened?

Hiya

Hmn. Plugged my USB BT dongle in, started gnome-obex-server and sent a few pictures from my cellphone to the box, nothing fancy.. Bluetooth daemons running obviously at this time...