]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: finish link init before RCU publish
authorJohannes Berg <johannes.berg@intel.com>
Tue, 24 Jun 2025 11:07:49 +0000 (13:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:03:13 +0000 (16:03 +0200)
commit6310aafd42674e162b9f996ddd76f6fe0d8bf321
treedc682ad06f9ca7c4ae0b7363aa446f4074050acf
parentebca4264c648dc69f0b5a8deb8d797bca4be33d9
wifi: mac80211: finish link init before RCU publish

[ Upstream commit d87c3ca0f8f1ca4c25f2ed819e954952f4d8d709 ]

Since the link/conf pointers can be accessed without any
protection other than RCU, make sure the data is actually
set up before publishing the structures.

Fixes: b2e8434f1829 ("wifi: mac80211: set up/tear down client vif links properly")
Link: https://patch.msgid.link/20250624130749.9a308b713c74.I4a80f5eead112a38730939ea591d2e275c721256@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/link.c