]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:34:22 +0000 (16:34 +0200)
commit6fc2589aae91818dd1183a589ab97d8e5c25364e
tree93c04f869ff9367cd66dc27b647f498be435367c
parenteed5fcf4a3d20fdbd9af2e602eab2b581264822f
wifi: ath11k: fix dest ring-buffer corruption when ring is full

commit aa6956150f820e6a6deba44be325ddfcb5b10f88 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath11k/hal.c