linux_dsm_epyc7002/drivers/net/wireless/intel/iwlwifi/dvm
Emmanuel Grumbach 0b0f934e92 iwlwifi: dvm: prevent an out of bounds access
iwlagn_check_ratid_empty takes the tid as a parameter, but
it doesn't check that it is not IWL_TID_NON_QOS.
Since IWL_TID_NON_QOS = 8 and iwl_priv::tid_data is an array
with 8 entries, accessing iwl_priv::tid_data[IWL_TID_NON_QOS]
is a bad idea.
This happened in iwlagn_rx_reply_tx. Since
iwlagn_check_ratid_empty is relevant only to check whether
we can open A-MPDU, this flow is irrelevant if tid is
IWL_TID_NON_QOS. Call iwlagn_check_ratid_empty only inside
the
	if (tid != IWL_TID_NON_QOS)

a few lines earlier in the function.

Cc: <stable@vger.kernel.org>
Reported-by: Seraphime Kirkovski <kirkseraph@gmail.com>
Tested-by: Seraphime Kirkovski <kirkseraph@gmail.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2017-07-21 12:26:36 +03:00
..
agn.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
calib.c drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression 2016-12-14 16:04:08 -08:00
calib.h iwlwifi: change the Intel Wireless email address 2015-12-01 21:17:55 +02:00
commands.h iwlwifi: change the Intel Wireless email address 2015-12-01 21:17:55 +02:00
debugfs.c iwlwifi: unify external & internal modparam names 2017-06-29 13:26:25 +03:00
dev.h iwlwifi: move notification wait into fw/ 2017-06-29 13:26:27 +03:00
devices.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
led.c iwlwifi: dvm: handle zero brightness for wifi LED 2016-02-01 16:40:18 +02:00
led.h iwlwifi: change the Intel Wireless email address 2015-12-20 14:48:22 +02:00
lib.c iwlwifi: unify external & internal modparam names 2017-06-29 13:26:25 +03:00
mac80211.c iwlwifi: unify external & internal modparam names 2017-06-29 13:26:25 +03:00
main.c iwlwifi: unify external & internal modparam names 2017-06-29 13:26:25 +03:00
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
power.c iwlwifi: change the Intel Wireless email address 2015-12-01 21:17:55 +02:00
power.h iwlwifi: change the Intel Wireless email address 2015-12-01 21:17:55 +02:00
rs.c iwlwifi: dvm: remove usage of txrc->max_rate_idx 2017-03-07 09:42:11 +01:00
rs.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
rx.c iwlwifi: unify external & internal modparam names 2017-06-29 13:26:25 +03:00
rxon.c iwlwifi: unify external & internal modparam names 2017-06-29 13:26:25 +03:00
scan.c mac80211: Add support for beacon report radio measurement 2016-07-06 14:53:19 +02:00
sta.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
tt.c iwlwifi: remove unused parameter from grab_nic_access 2015-12-21 10:11:39 +02:00
tt.h iwlwifi: change the Intel Wireless email address 2015-12-20 14:48:22 +02:00
tx.c iwlwifi: dvm: prevent an out of bounds access 2017-07-21 12:26:36 +03:00
ucode.c iwlwifi: enlarge number of ucode sections 2017-01-26 09:38:57 +02:00