]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: fix RCU list iterations
authorJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 07:49:40 +0000 (09:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 28 Aug 2024 10:39:29 +0000 (12:39 +0200)
commitac35180032fbc5d80b29af00ba4881815ceefcb6
tree3e46578a45a5fa4c5baa02836e23ad7d8d22eeda
parentd07e1f5c745058d1805e7d8042b9a326b120cb6e
wifi: mac80211: fix RCU list iterations

There are a number of places where RCU list iteration is
used, but that aren't (always) called with RCU held. Use
just list_for_each_entry() in most, and annotate iface
iteration with the required locks.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240827094939.ed8ac0b2f897.I8443c9c3c0f8051841353491dae758021b53115e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c
net/mac80211/mlme.c
net/mac80211/scan.c
net/mac80211/util.c