]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: call ieee80211_tx_prepare_skb under RCU protection
authorJohannes Berg <johannes.berg@intel.com>
Thu, 5 May 2022 21:04:22 +0000 (23:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 May 2022 08:26:49 +0000 (10:26 +0200)
commita75d2e22b3a159197357b00f2919eddd4df3872f
tree3debc54430645e92330d5ea34ba74c890388d5f5
parent361faf7c86c96fac8e6927a0e02a17b9b5ccb6e8
mac80211_hwsim: call ieee80211_tx_prepare_skb under RCU protection

[ Upstream commit 21224c63d8ac7f8de937d1ce3772cf4b155dffcc ]

This is needed since it might use (and pass out) pointers to
e.g. keys protected by RCU. Can't really happen here as the
frames aren't encrypted, but we need to still adhere to the
rules.

Fixes: e6db54e2d608 ("mac80211_hwsim: initialize ieee80211_tx_info at hw_scan_work")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20220505230421.5f139f9de173.I77ae111a28f7c0e9fd1ebcee7f39dbec5c606770@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mac80211_hwsim.c