kernel_samsung_a53x/drivers/net/wireless/ath/ath11k
Karthikeyan Periyasamy dab9dcbe29 wifi: ath11k: fix array out-of-bound access in SoC stats
[ Upstream commit 69f253e46af98af17e3efa3e5dfa72fcb7d1983d ]

Currently, the ath11k_soc_dp_stats::hal_reo_error array is defined with a
maximum size of DP_REO_DST_RING_MAX. However, the ath11k_dp_process_rx()
function access ath11k_soc_dp_stats::hal_reo_error using the REO
destination SRNG ring ID, which is incorrect. SRNG ring ID differ from
normal ring ID, and this usage leads to out-of-bounds array access. To fix
this issue, modify ath11k_dp_process_rx() to use the normal ring ID
directly instead of the SRNG ring ID to avoid out-of-bounds array access.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20240704070811.4186543-3-quic_periyasa@quicinc.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:38 +01:00
..
ahb.c wifi: ath11k: Defer on rproc_get failure 2024-11-18 12:12:28 +01:00
ahb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ce.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ce.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbring.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbring.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs_htt_stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs_htt_stats.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs_sta.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs_sta.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp.h ath11k: dp: stop rx pktlog before suspend 2024-11-23 23:20:07 +01:00
dp_rx.c wifi: ath11k: fix array out-of-bound access in SoC stats 2024-11-23 23:21:38 +01:00
dp_rx.h wifi: ath11k: fix wrong handling of CCMP256 and GCMP ciphers 2024-11-23 23:20:07 +01:00
dp_tx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_tx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hal_desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hal_rx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hal_rx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hal_tx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hal_tx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hif.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
htc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
htc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac.c wifi: ath11k: fix wrong handling of CCMP256 and GCMP ciphers 2024-11-23 23:20:07 +01:00
mac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mhi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mhi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
peer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
peer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rx_desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectral.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectral.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
testmode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
testmode.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
testmode_i.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wmi.c wifi: ath11k: fix dfs radar event locking 2024-11-18 11:43:25 +01:00
wmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00