linux/drivers/net/wireless
Luca Coelho 9a233bb802 iwlwifi: mvm: check if mac80211_queue is valid in iwl_mvm_disable_txq
Sometimes iwl_mvm_disable_txq() may be called with mac80211_queue ==
IEEE80211_INVAL_HW_QUEUE, and this would cause us to use BIT(0xFF)
which is way too large for the u16 we used to store it in
hw_queue_to_mac820211.  If this happens the following UBSAN warning
will be generated:

[  167.185167] UBSAN: Undefined behaviour in drivers/net/wireless/intel/iwlwifi/mvm/utils.c:838:5
[  167.185171] shift exponent 255 is too large for 64-bit type 'long unsigned int'

Fix that by checking that it is not IEEE80211_INVAL_HW_QUEUE and,
while at it, add a warning if the queue number is larger than
IEEE80211_MAX_QUEUES.

Fixes: 34e10860ae ("iwlwifi: mvm: remove references to queue_info in new TX path")
Reported-by: Paul Menzel <pmenzel+linux-wireless@molgen.mpg.de>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2018-03-28 12:16:04 +03:00
..
admtek net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
ath wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
atmel net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
broadcom Merge git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git 2018-03-28 11:57:34 +03:00
cisco wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
intel iwlwifi: mvm: check if mac80211_queue is valid in iwl_mvm_disable_txq 2018-03-28 12:16:04 +03:00
intersil wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
marvell mwifiex: remove warnings in mwifiex_cmd_append_11n_tlv() 2018-03-27 11:03:24 +03:00
mediatek mt76x2: fix warning in ieee80211_get_key_rx_seq() 2018-03-27 12:12:35 +03:00
quantenna net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
ralink wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
realtek rtlwifi: rtl8821ae: fix spelling mistake: "Aboslute" -> "Absolute" 2018-03-27 12:03:07 +03:00
rsi rsi: fix kernel panic observed on 64bit machine 2018-03-27 11:53:52 +03:00
st wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
ti wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
zydas net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Kconfig qtnfmac: introduce new FullMAC driver for Quantenna chipsets 2017-05-24 17:04:13 +03:00
mac80211_hwsim.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-23 11:31:58 -04:00
mac80211_hwsim.h mac80211_hwsim: add permanent mac address option for new radios 2018-01-31 12:45:35 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ray_cs.c wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
ray_cs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rayctl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rndis_wlan.c Another set of patches for -next: 2017-04-28 14:41:15 -04:00
wl3501_cs.c wl3501_cs: fix spelling mistake: "Insupported" -> "Unsupported" 2017-07-28 18:06:31 +03:00
wl3501.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00