wifi: mac80211: ethtool: always hold wiphy mutex
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 Sep 2023 06:40:52 +0000 (08:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Sep 2023 07:00:39 +0000 (09:00 +0200)
commit6b348f6e34ce7dc5eb68066377d5e38780ce4095
tree47613ba385c2a2fcfd787ca8925b2108cfbe2303
parent5b43bd71f4942afa79b0683f4f41b1d47a21a9c7
wifi: mac80211: ethtool: always hold wiphy mutex

Drivers should really be able to rely on the wiphy mutex
being held all the time, unless otherwise documented. For
ethtool, that wasn't quite right. Fix and clarify this in
both code and documentation.

Reported-by: syzbot+c12a771b218dcbba32e1@syzkaller.appspotmail.com
Fixes: 0e8185ce1dde ("wifi: mac80211: check wiphy mutex in ops")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/ethtool.c