linux/drivers/net/wireless/intel/iwlwifi/mvm
Luca Coelho 3d71c3f1f5 iwlwifi: mvm: check return value of rs_rate_from_ucode_rate()
The rs_rate_from_ucode_rate() function may return -EINVAL if the rate
is invalid, but none of the callsites check for the error, potentially
making us access arrays with index IWL_RATE_INVALID, which is larger
than the arrays, causing an out-of-bounds access.  This will trigger
KASAN warnings, such as the one reported in the bugzilla issue
mentioned below.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=200659

Cc: stable@vger.kernel.org
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-10-13 14:48:44 +03:00
..
binding.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
coex.c iwlwifi: mvm: TLC support for Coex Schema 2 2018-09-28 08:57:27 +03:00
constants.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
d3.c iwlwifi: mvm: move rt status check to the start of the resume flow 2018-10-08 10:46:03 +03:00
debugfs-vif.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
debugfs.c iwlwifi: mvm: use match_string() helper 2018-10-06 10:25:54 +03:00
debugfs.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
fw-api.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
fw.c iwlwifi: mvm: remove per-queue hw refcount 2018-10-08 10:47:32 +03:00
led.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
mac80211.c iwlwifi: mvm: clear HW_RESTART_REQUESTED when stopping the interface 2018-10-06 10:25:45 +03:00
mac-ctxt.c iwlwifi: dbg: group trigger condition to helper function 2018-10-06 10:25:44 +03:00
Makefile iwlwifi: mvm: rs: add ops for the new rate scaling in the FW 2017-12-05 21:01:41 +02:00
mvm.h iwlwifi: mvm: kill INACTIVE queue state 2018-10-08 10:49:22 +03:00
nvm.c iwlwifi: mvm Support new MCC update response 2018-10-06 10:25:51 +03:00
offloading.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
ops.c iwlwifi: dbg: make trigger functions type agnostic 2018-10-06 10:25:55 +03:00
phy-ctxt.c iwlwifi: mvm: Move unused phy's to a default channel 2018-03-19 10:50:38 +02:00
power.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
quota.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
rs-fw.c iwlwifi: rs-fw: support dcm 2018-08-31 11:38:40 +03:00
rs.c iwlwifi: mvm: check return value of rs_rate_from_ucode_rate() 2018-10-13 14:48:44 +03:00
rs.h iwlwifi: mvm: always init rs_fw with 20MHz bandwidth rates 2018-08-31 11:38:38 +03:00
rx.c iwlwifi: dbg: group trigger condition to helper function 2018-10-06 10:25:44 +03:00
rxmq.c iwlwifi: mvm: show more HE radiotap data for TB PPDUs 2018-10-06 10:25:53 +03:00
scan.c iwlwifi: mvm: use fast balance scan in case of DCM mode with P2P GO 2018-10-08 10:36:18 +03:00
sf.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
sta.c iwlwifi: mvm: kill INACTIVE queue state 2018-10-08 10:49:22 +03:00
sta.h iwlwifi: mvm: kill INACTIVE queue state 2018-10-08 10:49:22 +03:00
tdls.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
testmode.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
time-event.c iwlwifi: dbg: group trigger condition to helper function 2018-10-06 10:25:44 +03:00
time-event.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
tof.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
tof.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
tt.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
tx.c iwlwifi: mvm: kill INACTIVE queue state 2018-10-08 10:49:22 +03:00
utils.c iwlwifi: mvm: remove per-queue hw refcount 2018-10-08 10:47:32 +03:00