]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: ath11k: fix dest ring-buffer corruption when ring is full
authorJohan Hovold <johan+linaro@kernel.org>
Wed, 4 Jun 2025 14:34:57 +0000 (16:34 +0200)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Thu, 26 Jun 2025 23:10:48 +0000 (16:10 -0700)
commitaa6956150f820e6a6deba44be325ddfcb5b10f88
tree8c9f0f5a3d981c7404b7c769dd3cf21adfd28036
parent6efa0df54022c6c9fd4d294b87622c7fcdc418c8
wifi: ath11k: fix dest ring-buffer corruption when ring is full

Add the missing memory barriers to make sure that destination ring
descriptors are read before updating the tail pointer (and passing
ownership to the device) to avoid memory corruption on weakly ordered
architectures like aarch64 when the ring is full.

Tested-on: WCN6855 hw2.1 WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.41

Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Cc: stable@vger.kernel.org # 5.6
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Baochen Qiang <quic_bqiang@quicinc.com>
Link: https://patch.msgid.link/20250604143457.26032-6-johan+linaro@kernel.org
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath11k/hal.c