[PATCH AUTOSEL 5.10 19/50] staging: rtl8723bs: remove possible deadlock when disconnect (v2)

2021-11-09 Thread Sasha Levin
From: Fabio Aiuto [ Upstream commit 54659ca026e586bbb33a7e60daa6443a3ac6b5df ] when turning off a connection, lockdep complains with the following warning (a modprobe has been done but the same happens with a disconnection from NetworkManager, it's enough to trigger a cfg80211_disconnect call):

[PATCH AUTOSEL 5.10 06/50] staging: wfx: ensure IRQ is ready before enabling it

2021-11-09 Thread Sasha Levin
From: Jérôme Pouiller [ Upstream commit 5e57c668dc097c6c27c973504706edec53f79281 ] Since commit 5561770f80b1 ("staging: wfx: repair external IRQ for SDIO"), wfx_sdio_irq_subscribe() enforce the device to use IRQs. However, there is currently a race in this code. An IRQ may happen before the IRQ

[PATCH AUTOSEL 5.14 24/75] staging: rtl8723bs: remove a third possible deadlock

2021-11-09 Thread Sasha Levin
From: Hans de Goede [ Upstream commit bdc1bbdbaa92df19a14d4c1902088c8432b46c6f ] The assoc_timer takes the pmlmepriv->lock and various functions which take the pmlmepriv->scanned_queue.lock first take the pmlmepriv->lock, this means that we cannot have code which waits for the timer (timer_del_s

[PATCH AUTOSEL 5.14 23/75] staging: rtl8723bs: remove possible deadlock when disconnect (v2)

2021-11-09 Thread Sasha Levin
From: Fabio Aiuto [ Upstream commit 54659ca026e586bbb33a7e60daa6443a3ac6b5df ] when turning off a connection, lockdep complains with the following warning (a modprobe has been done but the same happens with a disconnection from NetworkManager, it's enough to trigger a cfg80211_disconnect call):

[PATCH AUTOSEL 5.14 07/75] staging: wfx: ensure IRQ is ready before enabling it

2021-11-09 Thread Sasha Levin
From: Jérôme Pouiller [ Upstream commit 5e57c668dc097c6c27c973504706edec53f79281 ] Since commit 5561770f80b1 ("staging: wfx: repair external IRQ for SDIO"), wfx_sdio_irq_subscribe() enforce the device to use IRQs. However, there is currently a race in this code. An IRQ may happen before the IRQ

[PATCH AUTOSEL 5.15 26/82] staging: rtl8723bs: remove a third possible deadlock

2021-11-09 Thread Sasha Levin
From: Hans de Goede [ Upstream commit bdc1bbdbaa92df19a14d4c1902088c8432b46c6f ] The assoc_timer takes the pmlmepriv->lock and various functions which take the pmlmepriv->scanned_queue.lock first take the pmlmepriv->lock, this means that we cannot have code which waits for the timer (timer_del_s

[PATCH AUTOSEL 5.15 25/82] staging: rtl8723bs: remove a second possible deadlock

2021-11-09 Thread Sasha Levin
From: Hans de Goede [ Upstream commit a7ac783c338bafc04d3259600646350dba989043 ] Lockdep complains about rtw_free_assoc_resources() taking the sta_hash_lock followed by it calling rtw_free_stainfo() which takes xmitpriv->lock. While the rtl8723bs_xmit_thread takes the sta_hash_lock while already

[PATCH AUTOSEL 5.15 24/82] staging: rtl8723bs: remove possible deadlock when disconnect (v2)

2021-11-09 Thread Sasha Levin
From: Fabio Aiuto [ Upstream commit 54659ca026e586bbb33a7e60daa6443a3ac6b5df ] when turning off a connection, lockdep complains with the following warning (a modprobe has been done but the same happens with a disconnection from NetworkManager, it's enough to trigger a cfg80211_disconnect call):

[PATCH AUTOSEL 5.15 07/82] staging: wfx: ensure IRQ is ready before enabling it

2021-11-09 Thread Sasha Levin
From: Jérôme Pouiller [ Upstream commit 5e57c668dc097c6c27c973504706edec53f79281 ] Since commit 5561770f80b1 ("staging: wfx: repair external IRQ for SDIO"), wfx_sdio_irq_subscribe() enforce the device to use IRQs. However, there is currently a race in this code. An IRQ may happen before the IRQ