[PATCH 0/2] wifi: ath12k: fix dest ring-buffer corruption

Johan Hovold posted 2 patches 8 months, 2 weeks ago
There is a newer version of this series
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(-)
[PATCH 0/2] wifi: ath12k: fix dest ring-buffer corruption
Posted by Johan Hovold 8 months, 2 weeks ago
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