OpenCloudOS-Kernel/drivers/net/wireless/ath
Karthikeyan Periyasamy 7a552bc2f3 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-10-10 11:57:25 +02:00
..
ar5523 wifi: ar5523: enable proper endpoint verification 2024-06-12 11:11:47 +02:00
ath5k wifi: ath5k: ath5k_hw_get_median_noise_floor(): use swap() 2023-08-23 17:16:14 +03:00
ath6kl wireless-next patches for v6.6 2023-08-04 18:34:25 -07:00
ath9k wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit 2024-10-10 11:57:21 +02:00
ath10k wifi: ath10k: fix QCOM_RPROC_COMMON dependency 2024-06-16 13:47:43 +02:00
ath11k wifi: ath11k: fix array out-of-bound access in SoC stats 2024-10-10 11:57:25 +02:00
ath12k wifi: ath12k: fix array out-of-bound access in SoC stats 2024-10-10 11:57:24 +02:00
carl9170 wifi: carl9170: add a proper sanity check for endpoints 2024-06-12 11:11:47 +02:00
wcn36xx wifi: drivers: Explicitly include correct DT includes 2023-08-01 17:48:38 +03:00
wil6210 wifi: wil6210: fix fortify warnings 2023-07-27 19:12:49 +03:00
Kconfig wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices 2022-11-29 12:49:06 +02:00
Makefile wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices 2022-11-29 12:49:06 +02:00
ath.h wifi: ath9k: work around memset overflow warning 2024-06-27 13:49:01 +02:00
debug.c
dfs_pattern_detector.c wifi: ath: dfs_pattern_detector: Fix a memory initialization issue 2023-11-20 11:58:59 +01:00
dfs_pattern_detector.h
dfs_pri_detector.c
dfs_pri_detector.h
hw.c
key.c wifi: ath: Use is_multicast_ether_addr() to check multicast Ether address 2023-08-25 10:39:28 +03:00
main.c
reg.h
regd.c
regd.h
regd_common.h
spectral_common.h
trace.c
trace.h