mbox series

[0/2] wifi: ath10k: Fixed locking bug when setting bitrates.

Message ID 20240806004024.2014080-1-rory@candelatech.com
Headers show
Series wifi: ath10k: Fixed locking bug when setting bitrates. | expand

Message

Rory Little Aug. 6, 2024, 12:40 a.m. UTC
We have noticed our kernel locking up when attempting to set bitrates in the
ath10k. The fault appears to be the sleep calls from sending a wmi command
while an RCU read lock is held. The RCU lock seems unnecessary in this case, as
we are already holding the wiphy mutex at that point.

We have introduced an iterator for this event - when the wiphy mutex is held and
an RCU lock is unnecessary - and used this iterator in the bitrate mask clearing
logic.

Rory Little (2):
  wifi: mac80211: Add non-atomic station iterator.
  wifi: ath10k: Removed atomic iteration in bitrate mask clear.

 drivers/net/wireless/ath/ath10k/mac.c |  6 +++---
 include/net/mac80211.h                | 18 ++++++++++++++++
 net/mac80211/util.c                   | 30 +++++++++++++++++++++++++++
 3 files changed, 51 insertions(+), 3 deletions(-)