summaryrefslogtreecommitdiff
path: root/lib/Kconfig.kmsan
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-03-29 10:05:30 +0300
committerJohannes Berg <johannes.berg@intel.com>2023-03-30 13:08:42 +0300
commit881d054896f700ca80b3bb2e5ad0b93631bf0113 (patch)
tree39eb2658a974da21011f8c2ff46eb7c82a2feb0d /lib/Kconfig.kmsan
parent24dc33cc54e61a7a97049d6f663c5ac92e097d68 (diff)
downloadlinux-881d054896f700ca80b3bb2e5ad0b93631bf0113.tar.xz
wifi: iwlwifi: mvm: fix station link data leak
When we remove the station, we call iwl_mvm_sta_del() which returns true if we cannot remove it from the firmware yet, which happens if this is the station ID for the AP station that's still used because the MAC is still associated. However, we still must free the link data as the station is only kept alive in the firmware, in mac80211 and driver the data structures are destroyed. To fix that, we need to make iwl_mvm_mld_free_sta_link() track whether or not the station is still alive in FW, as otherwise we might reuse the station ID in the meantime and iwl_mvm_mld_rm_sta_from_fw() would reject the later delete from the firmware. Add an argument to it for that. Then we can use the return value of iwl_mvm_sta_del() for that to fix the issue, and call iwl_mvm_mld_rm_sta_from_fw() only if we need to not keep the station in FW. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Link: https://lore.kernel.org/r/20230329100039.1d81d4c71f35.I8fc60ac28ffc1147e9b1250e5e6237b3cb5516ac@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'lib/Kconfig.kmsan')
0 files changed, 0 insertions, 0 deletions