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
ce.c
ce.h
core.c
core.h
dbring.c
dbring.h
debug.c
debug.h
debugfs.c
debugfs.h
debugfs_htt_stats.c
debugfs_htt_stats.h
debugfs_sta.c
debugfs_sta.h
dp.c
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
dp_tx.h
hal.c
hal.h
hal_desc.h
hal_rx.c
hal_rx.h
hal_tx.c
hal_tx.h
hif.h
htc.c
htc.h
hw.c
hw.h
Kconfig
mac.c wifi: ath11k: fix wrong handling of CCMP256 and GCMP ciphers 2024-11-23 23:20:07 +01:00
mac.h
Makefile
mhi.c
mhi.h
pci.c
pci.h
peer.c
peer.h
qmi.c
qmi.h
reg.c
reg.h
rx_desc.h
spectral.c
spectral.h
testmode.c
testmode.h
testmode_i.h
thermal.c
thermal.h
trace.c
trace.h
wmi.c
wmi.h