Patch "wifi: mac80211: remove debugfs dir for virtual monitor" has been added to the 6.13-stable tree
Quoted 7 lines · Sasha Levin
This is a note to let you know that I've just added the patch titled
wifi: mac80211: remove debugfs dir for virtual monitor
to the 6.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
Quoted 7 lines
The filename of the patch is:
wifi-mac80211-remove-debugfs-dir-for-virtual-monitor.patch
and it can be found in the queue-6.13 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
The commit here is causing a sparse warning. Please always add commit 861d0445e72e ("wifi: mac80211: Fix sparse warning for monitor_sdata") when you backport this patch to avoid that. (So far I got the backport notification for 6.12 and 6.13.)
It's also no big deal when you decide to not backport this patch.
Quoted 72 lines
commit
193bafe31a2a08b5631a98ecf148fa0d18e94b0dAuthor: Alexander Wetzel <[email protected]> Date: Tue Feb 4 17:42:40 2025 +0100wifi: mac80211: remove debugfs dir for virtual monitor
[ Upstream commit
646262c71aca87bb66945933abe4e620796d6c5a]Don't call
ieee80211_debugfs_recreate_netdev()for virtual monitor interface when deleting it.The virtual monitor interface shouldn't have debugfs entries and trying to update them will *create* them on deletion.
And when the virtual monitor interface is created/destroyed multiple times we'll get warnings about debugfs name conflicts.
Signed-off-by Alexander Wetzel <[email protected]>Signed-off-by Johannes Berg <[email protected]>Signed-off-by Sasha Levin <[email protected]>net/mac80211/driver-ops.c +8
-2@@ -116,8 +116,14 @@ void drv_remove_interface(struct ieee80211_local *local, sdata->flags &= ~IEEE80211_SDATA_IN_DRIVER ; -/* Remove driver debugfs entries */ -ieee80211_debugfs_recreate_netdev (sdata, sdata->vif.valid_links); +/* +* Remove driver debugfs entries. +* The virtual monitor interface doesn't get a debugfs +* entry, so it's exempt here. +*/ +if (sdata != local->monitor_sdata) +ieee80211_debugfs_recreate_netdev (sdata, + sdata->vif.valid_links);trace_drv_remove_interface (local, sdata); local->ops->remove_interface (&local->hw, &sdata->vif);net/mac80211/iface.c +6
-5@@ -1212,16 +1212,17 @@ void ieee80211_del_virtual_monitor(struct ieee80211_local *local)return ; } -RCU_INIT_POINTER (local->monitor_sdata,NULL ); -mutex_unlock (&local->iflist_mtx); - -synchronize_net (); - +clear_bit (SDATA_STATE_RUNNING , &sdata->state);ieee80211_link_release_channel (&sdata->deflink);if (ieee80211_hw_check (&local->hw,WANT_MONITOR_VIF ))drv_remove_interface (local, sdata); +RCU_INIT_POINTER (local->monitor_sdata,NULL ); +mutex_unlock (&local->iflist_mtx); + +synchronize_net (); +kfree (sdata); }
Greg KH
maintainerQuoted 16 lines · Alexander Wetzel
Quoted 7 lines · Sasha Levin
This is a note to let you know that I've just added the patch titled
wifi: mac80211: remove debugfs dir for virtual monitor
to the 6.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryQuoted 7 lines
The filename of the patch is:
wifi-mac80211-remove-debugfs-dir-for-virtual-monitor.patch
and it can be found in the queue-6.13 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 6 lines
The commit here is causing a sparse warning. Please always add commit
861d0445e72e("wifi: mac80211: Fix sparse warning formonitor_sdata") when you backport this patch to avoid that. (So far I got the backport notification for 6.12 and 6.13.)It's also no big deal when you decide to not backport this patch.
Now queued up, thanks.
greg k-h