linux/drivers/net/wireless
Ajay Singh 4b0d6ddb64 wifi: wilc1000: use vmm_table as array in wilc struct
commit 05ac1a198a upstream.

Enabling KASAN and running some iperf tests raises some memory issues with
vmm_table:

BUG: KASAN: slab-out-of-bounds in wilc_wlan_handle_txq+0x6ac/0xdb4
Write of size 4 at addr c3a61540 by task wlan0-tx/95

KASAN detects that we are writing data beyond range allocated to vmm_table.
There is indeed a mismatch between the size passed to allocator in
wilc_wlan_init, and the range of possible indexes used later: allocation
size is missing a multiplication by sizeof(u32)

Fixes: 40b717bfce ("wifi: wilc1000: fix DMA on stack objects")
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231017-wilc1000_tx_oops-v3-1-b2155f1f7bee@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 17:07:11 +00:00
..
admtek
ath wifi: ath11k: fix gtk offload status event locking 2023-11-28 17:07:09 +00:00
atmel wifi: atmel: Fix an error handling path in atmel_probe() 2023-07-19 16:21:06 +02:00
broadcom wifi: brcmfmac: Fix field-spanning write in brcmf_scan_params_v2_to_v1() 2023-09-13 09:42:24 +02:00
cisco wifi: airo: avoid uninitialized warning in airo_get_rate() 2023-07-23 13:49:26 +02:00
intel wifi: iwlwifi: Use FW rate for non-data frames 2023-11-28 17:07:03 +00:00
intersil wifi: orinoco: Fix an error handling path in orinoco_cs_probe() 2023-07-19 16:21:06 +02:00
marvell wifi: mwifiex: Sanity check tlv_len and tlv_bitmap_len 2023-10-25 12:03:10 +02:00
mediatek wifi: mt76: mt7915: fix beamforming availability check 2023-11-20 11:51:53 +01:00
microchip wifi: wilc1000: use vmm_table as array in wilc struct 2023-11-28 17:07:11 +00:00
purelifi wifi: plfxlc: fix clang-specific fortify warning 2023-11-28 17:06:55 +00:00
quantenna
ralink
realtek wifi: rtlwifi: fix EDCA limit set by BT coexistence 2023-11-20 11:51:53 +01:00
rsi wifi: rsi: Do not set MMC_PM_KEEP_POWER in shutdown 2023-07-19 16:21:07 +02:00
silabs wifi: wfx: fix case where rates are out of order 2023-11-20 11:51:54 +01:00
st
ti
zydas
Kconfig
mac80211_hwsim.c wifi: mac80211_hwsim: fix clang-specific fortify warning 2023-11-28 17:06:55 +00:00
mac80211_hwsim.h
Makefile
ray_cs.c wifi: ray_cs: Fix an error handling path in ray_probe() 2023-07-19 16:21:06 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c
virt_wifi.c
wl3501_cs.c wifi: wl3501_cs: Fix an error handling path in wl3501_probe() 2023-07-19 16:21:06 +02:00
wl3501.h