]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mwifiex: cfg80211: do not change virtual interface during scan processing
authorLimin Zhu <liminzhu@marvell.com>
Thu, 30 Nov 2017 06:22:34 +0000 (14:22 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 19 Mar 2018 23:41:50 +0000 (20:41 -0300)
commitb9ba9b53053d60267f88af933a020b526dd62194
treeb096d8efaf77766247e3773ef9b2533ce0cf9e34
parent1dfb3e7927f45a506302a09e284352f6ca20d176
mwifiex: cfg80211: do not change virtual interface during scan processing

BugLink: http://bugs.launchpad.net/bugs/1756978
[ Upstream commit c61cfe49f0f0f0d1f8b56d0b045838d597e8c3a3 ]

(1) Change virtual interface operation in cfg80211 process reset and
reinitilize private data structure.
(2) Scan result event processed in main process will dereference private
data structure concurrently, ocassionly crash the kernel.

The cornel case could be trigger by below steps:
(1) wpa_cli mlan0 scan
(2) ./hostapd mlan0.conf

Cfg80211 asynchronous scan procedure is not all the time operated
under rtnl lock, here we add the protect to serialize the cfg80211
scan and change_virtual interface operation.

Signed-off-by: Limin Zhu <liminzhu@marvell.com>
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/wireless/marvell/mwifiex/cfg80211.c