kernel_samsung_a53x/drivers/net/wireless/ath
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
..
ar5523 wifi: ar5523: enable proper endpoint verification 2024-11-19 12:26:56 +01:00
ath5k
ath6kl
ath9k wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit 2024-11-23 23:21:37 +01:00
ath10k wifi: ath10k: populate board data for WCN3990 2024-11-19 12:26:55 +01:00
ath11k wifi: ath11k: fix array out-of-bound access in SoC stats 2024-11-23 23:21:38 +01:00
carl9170 wifi: carl9170: add a proper sanity check for endpoints 2024-11-19 12:26:55 +01:00
wcn36xx
wil6210
ath.h wifi: ath9k: work around memset overflow warning 2024-11-19 14:19:06 +01:00
debug.c
dfs_pattern_detector.c
dfs_pattern_detector.h
dfs_pri_detector.c
dfs_pri_detector.h
hw.c
Kconfig
key.c
main.c
Makefile
reg.h
regd.c
regd.h
regd_common.h
spectral_common.h
trace.c
trace.h