]> 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)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 9 May 2022 12:00:07 +0000 (14:00 +0200)
commit9e2db50f1ef2238fc2f71c5de1c0418b7a5b0ea2
tree1f2ce63ed6ae69ae238b5cf37615a8e1e6314f58
parenta59d55568d02bbbdf9c0cc15be9580180f855b4f
mac80211_hwsim: call ieee80211_tx_prepare_skb under RCU protection

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: cacfddf82baf ("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>
drivers/net/wireless/mac80211_hwsim.c