dab9dcbe29
[ 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> |
||
---|---|---|
.. | ||
ahb.c | ||
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 | ||
dp_rx.c | ||
dp_rx.h | ||
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 | ||
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 |