]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: ensure sdata->work is canceled before initialized.
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 5 Feb 2025 09:39:26 +0000 (11:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:17 +0000 (10:15 +0200)
commit4ae2c7c7d36976b381352b34eab6bf501afe0f1a
tree26737a0264ac0537a0396bf81cffa8bae9130487
parentcca16fbd17b0aa1709be2373f362931c9f847108
wifi: mac80211: ensure sdata->work is canceled before initialized.

[ Upstream commit 6c93fd502023dd919b5987ccbe990735410edd49 ]

This wiphy work is canceled when the iface is stopped,
and shouldn't be queued for a non-running iface.
If it happens to be queued for a non-running iface (due to a bug)
it can cause a corruption of wiphy_work_list when ieee80211_setup_sdata
is called. Make sure to cancel it in this case and warn on.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20250205110958.99204c767c10.I84ce27a239059f6009cee197b252549a11426046@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/iface.c