[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250526115137.2490-1-johan+linaro@kernel.org>
Date: Mon, 26 May 2025 13:51:35 +0200
From: Johan Hovold <johan+linaro@...nel.org>
To: Jeff Johnson <jjohnson@...nel.org>
Cc: Miaoqing Pan <quic_miaoqing@...cinc.com>,
Remi Pommarel <repk@...plefau.lt>,
linux-wireless@...r.kernel.org,
ath12k@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Johan Hovold <johan+linaro@...nel.org>
Subject: [PATCH 0/2] wifi: ath12k: fix dest ring-buffer corruption
As a follow up to commit:
b67d2cf14ea ("wifi: ath12k: fix ring-buffer corruption")
add the remaining missing memory barriers to make sure that destination
ring descriptors are read after the head pointers to avoid using stale
data on weakly ordered architectures like aarch64.
Also switch back to plain accesses for the descriptor fields which is
sufficient after the memory barrier.
Johan
Johan Hovold (2):
wifi: ath12k: fix dest ring-buffer corruption
wifi: ath12k: use plain access for descriptor length
drivers/net/wireless/ath/ath12k/dp_mon.c | 3 +++
drivers/net/wireless/ath/ath12k/dp_rx.c | 12 ++++++++++++
drivers/net/wireless/ath/ath12k/dp_tx.c | 3 +++
drivers/net/wireless/ath/ath12k/hal.c | 2 +-
4 files changed, 19 insertions(+), 1 deletion(-)
--
2.49.0
Powered by blists - more mailing lists