Re: [PATCH v2] Bluetooth: Fix locking in bt_accept_enqueue() for BH context

2019-01-18 Thread Marcel Holtmann
Hi Matthias, > With commit e16337622016 ("Bluetooth: Handle bt_accept_enqueue() socket > atomically") lock_sock[_nested]() is used to acquire the socket lock > before manipulating the socket. lock_sock[_nested]() may block, which > is problematic since bt_accept_enqueue() can be called in bottom h

Re: [PATCH v2] Bluetooth: Fix locking in bt_accept_enqueue() for BH context

2019-01-07 Thread Doug Anderson
Hi, On Wed, Jan 2, 2019 at 4:11 PM Matthias Kaehlcke wrote: > > With commit e16337622016 ("Bluetooth: Handle bt_accept_enqueue() socket > atomically") lock_sock[_nested]() is used to acquire the socket lock > before manipulating the socket. lock_sock[_nested]() may block, which > is problematic s

[PATCH v2] Bluetooth: Fix locking in bt_accept_enqueue() for BH context

2019-01-02 Thread Matthias Kaehlcke
With commit e16337622016 ("Bluetooth: Handle bt_accept_enqueue() socket atomically") lock_sock[_nested]() is used to acquire the socket lock before manipulating the socket. lock_sock[_nested]() may block, which is problematic since bt_accept_enqueue() can be called in bottom half context (e.g. from