mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi
Ariel Malamud a8938bc881 wifi: iwlwifi: mvm: Add locking to the rate read flow
The rs_drv_get_rate flow reads the lq_sta to return the optimal rate
for tx frames. This read flow is not protected thereby leaving
a small window, a few instructions wide, open to contention by an
asynchronous rate update. Indeed this race condition was hit and the
update occurred in the middle of the read.

Fix this by locking the lq_sta struct during read.

Signed-off-by: Ariel Malamud <ariel.malamud@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230514120631.b52c9ed5c379.I15290b78e0d966c1b68278263776ca9de841d5fe@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2023-05-16 10:27:05 -07:00
..
cfg wifi: iwlwifi: Update support for b0 version 2023-04-20 11:45:54 +02:00
dvm wifi: iwlwifi: dvm: Fix memcpy: detected field-spanning write backtrace 2023-04-19 09:42:28 +02:00
fw wifi: iwlwifi: fix OEM's name in the ppag approved list 2023-05-16 10:27:05 -07:00
mei wifi: iwlwifi: mvm: fix RFKILL report when driver is going down 2023-04-20 11:45:55 +02:00
mvm wifi: iwlwifi: mvm: Add locking to the rate read flow 2023-05-16 10:27:05 -07:00
pcie wifi: iwlwifi: Update support for b0 version 2023-04-20 11:45:54 +02:00
queue wifi: iwlwifi: add a validity check of queue_id in iwl_txq_reclaim 2023-04-13 16:29:59 +02:00
iwl-agn-hw.h
iwl-config.h wifi: iwlwifi: Update support for b0 version 2023-04-20 11:45:54 +02:00
iwl-context-info-gen3.h wifi: iwlwifi: mvm: Support STEP equalizer settings from BIOS. 2023-01-30 13:00:19 +02:00
iwl-context-info.h
iwl-csr.h wifi: iwlwifi: Add RF Step Type for BZ device 2023-04-14 13:15:26 +02:00
iwl-dbg-tlv.c wifi: iwlwifi: move debug buffer allocation failure to info verbosity 2023-04-17 09:53:25 +02:00
iwl-dbg-tlv.h
iwl-debug.c wifi: iwlwifi: debug: fix crash in __iwl_err() 2023-04-13 16:29:58 +02:00
iwl-debug.h
iwl-devtrace-data.h
iwl-devtrace-io.h
iwl-devtrace-iwlwifi.h
iwl-devtrace-msg.h
iwl-devtrace-ucode.h
iwl-devtrace.c wifi: iwlwifi: Avoid disabling GCC specific flag with clang 2023-03-16 08:51:56 +01:00
iwl-devtrace.h
iwl-drv.c wifi: iwlwifi: mvm: allow number of beacons from FW 2023-04-17 09:53:25 +02:00
iwl-drv.h
iwl-eeprom-parse.c
iwl-eeprom-parse.h wifi: iwlwifi: nvm: Update HE capabilities on 6GHz band for EHT device 2023-04-13 16:30:00 +02:00
iwl-eeprom-read.c
iwl-eeprom-read.h
iwl-fh.h
iwl-io.c
iwl-io.h
iwl-modparams.h wifi: iwlwifi: mvm: Advertise EHT capabilities 2022-11-28 17:52:51 +02:00
iwl-nvm-parse.c wifi: iwlwifi: nvm-parse: add full BW UL MU-MIMO support 2023-04-17 09:53:23 +02:00
iwl-nvm-parse.h
iwl-op-mode.h
iwl-phy-db.c
iwl-phy-db.h
iwl-prph.h wifi: iwlwifi: Add RF Step Type for BZ device 2023-04-14 13:15:26 +02:00
iwl-scd.h
iwl-trans.c
iwl-trans.h wifi: iwlwifi: Add RF Step Type for BZ device 2023-04-14 13:15:26 +02:00
Kconfig wifi: iwlwifi: Mark IWLMEI as broken 2022-09-12 14:22:55 +03:00
Makefile