rtl8188eu/core
Larry Finger 24b960c5c0 rtl8188eu: Change some locking around rtw_get_sec_ie()
Routine rtw_get_sec_ie() appears to suffer from a bug triggered under
unusual circumstances. This bug is exposed by first sending a deauthentication
frame and at the same time sending a much larger frame. After doing some debugging
the cause of the lockup of the CPU was that while rtw_get_sec_ie() attempts to
read the beacon frame sent by the router/AP, the size of the beacon is changed
since it is a reference and not a copy. By having a "rogue" beacon frame being
very large which isn't normal and not considered in the design, the computer
was stuck in an endless CPU lockup.

Routine translate_scan(), which calls rtw_get_sec_ie() is protected by a
spinlock. Add that spinlock around other calls of the routine.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-07-21 08:52:58 -05:00
..
rtw_ap.c rtl8188eu: Replace rtw_ieee80211_ht_cap with standard kernel version 2015-04-08 14:02:06 -05:00
rtw_br_ext.c rtl8188eu: Fix builds for kernel 5.15 2021-10-28 11:44:11 -05:00
rtw_cmd.c rtl8188eu: Fix scheduling while atomic splat 2018-03-14 11:02:54 -05:00
rtw_debug.c rtlwifi: Remove list-handling macros 2014-12-13 15:06:22 -06:00
rtw_efuse.c rtl8188eu: Remove wrapper for memset() 2014-12-12 22:43:35 -06:00
rtw_ieee80211.c rtl8188eu: Change some locking around rtw_get_sec_ie() 2022-07-21 08:52:58 -05:00
rtw_io.c rtl8188eu: Remove cases of two or more blank lines 2014-12-01 18:00:05 -06:00
rtw_ioctl_set.c rtl8188eu: Replace rtw_ieee80211_ht_cap with standard kernel version 2015-04-08 14:02:06 -05:00
rtw_iol.c rtl8188eu: Backport kernel version 2013-10-19 12:45:47 -05:00
rtw_led.c rtl8188eu: Add rtw_led_enable module parameter 2020-01-06 21:30:05 +01:00
rtw_mlme.c rtl8188eu: Replace rtw_ieee80211_ht_cap with standard kernel version 2015-04-08 14:02:06 -05:00
rtw_mlme_ext.c rtl8188eu: Change some locking around rtw_get_sec_ie() 2022-07-21 08:52:58 -05:00
rtw_mp.c rtl8188eu: Fix gcc 10 warnings 2020-05-16 14:20:37 -05:00
rtw_mp_ioctl.c rtl8188eu: Remove symbol MAX_RF_PATH_NUMS 2016-02-13 15:36:13 -06:00
rtw_p2p.c rtl8188eu: Updates for timer changes in kernel 4.15 2017-12-05 16:03:03 -06:00
rtw_pwrctrl.c rtl8188eu: Updates for timer changes in kernel 4.15 2017-12-05 16:03:03 -06:00
rtw_recv.c rtl8188eu: Updates for timer changes in kernel 4.15 2017-12-05 16:03:03 -06:00
rtw_rf.c rtl8188eu: Remove cases of two or more blank lines 2014-12-01 18:00:05 -06:00
rtw_security.c rtl8188eu: Change union recv_frame to struct 2014-12-13 10:35:48 -06:00
rtw_sreset.c rtl8188eu: Backport kernel version 2013-10-19 12:45:47 -05:00
rtw_sta_mgt.c rtlwifi: Remove list-handling macros 2014-12-13 15:06:22 -06:00
rtw_wlan_util.c rtl8188eu: Change some locking around rtw_get_sec_ie() 2022-07-21 08:52:58 -05:00
rtw_xmit.c rtl8188eu: Change some locking around rtw_get_sec_ie() 2022-07-21 08:52:58 -05:00