kernel_samsung_a53x/drivers/net/wireless/realtek
Dmitry Antipov 5dbdf4c053 wifi: rtw88: always wait for both firmware loading attempts
[ Upstream commit 0e735a4c6137262bcefe45bb52fde7b1f5fc6c4d ]

In 'rtw_wait_firmware_completion()', always wait for both (regular and
wowlan) firmware loading attempts. Otherwise if 'rtw_usb_intf_init()'
has failed in 'rtw_usb_probe()', 'rtw_usb_disconnect()' may issue
'ieee80211_free_hw()' when one of 'rtw_load_firmware_cb()' (usually
the wowlan one) is still in progress, causing UAF detected by KASAN.

Fixes: c8e5695eae99 ("rtw88: load wowlan firmware if wowlan is supported")
Reported-by: syzbot+6c6c08700f9480c41fe3@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=6c6c08700f9480c41fe3
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240726114657.25396-1-dmantipov@yandex.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:16 +01:00
..
rtl8xxxu wifi: rtl8xxxu: Fix the TX power of RTL8192CU, RTL8723AU 2024-11-19 12:27:16 +01:00
rtl818x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8821au drivers: rtl8821au: Changed from #elseif to #elif 2024-11-17 20:46:26 +01:00
rtlwifi wifi: rtlwifi: rtl8192de: Fix 5 GHz TX power 2024-11-19 14:19:10 +01:00
rtw88 wifi: rtw88: always wait for both firmware loading attempts 2024-11-23 23:21:16 +01:00
Kconfig Add rtl8821au drivers 2024-06-15 16:29:05 -03:00
Makefile Add rtl8821au drivers 2024-06-15 16:29:05 -03:00