This is a note to let you know that I've just added the patch titled mac80211: fix 'reset' debugfs locking to the 5.12-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mac80211-fix-reset-debugfs-locking.patch and it can be found in the queue-5.12 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From adaed1b9daf5a045be71e923e04b5069d2bee664 Mon Sep 17 00:00:00 2001 From: Johannes Berg <johannes.berg@xxxxxxxxx> Date: Tue, 8 Jun 2021 11:32:27 +0200 Subject: mac80211: fix 'reset' debugfs locking From: Johannes Berg <johannes.berg@xxxxxxxxx> commit adaed1b9daf5a045be71e923e04b5069d2bee664 upstream. cfg80211 now calls suspend/resume with the wiphy lock held, and while there's a problem with that needing to be fixed, we should do the same in debugfs. Cc: stable@xxxxxxxxxxxxxxx Fixes: a05829a7222e ("cfg80211: avoid holding the RTNL when calling the driver") Link: https://lore.kernel.org/r/20210608113226.14020430e449.I78e19db0a55a8295a376e15ac4cf77dbb4c6fb51@changeid Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- net/mac80211/debugfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -4,7 +4,7 @@ * * Copyright 2007 Johannes Berg <johannes@xxxxxxxxxxxxxxxx> * Copyright 2013-2014 Intel Mobile Communications GmbH - * Copyright (C) 2018 - 2019 Intel Corporation + * Copyright (C) 2018 - 2019, 2021 Intel Corporation */ #include <linux/debugfs.h> @@ -389,8 +389,10 @@ static ssize_t reset_write(struct file * struct ieee80211_local *local = file->private_data; rtnl_lock(); + wiphy_lock(local->hw.wiphy); __ieee80211_suspend(&local->hw, NULL); __ieee80211_resume(&local->hw); + wiphy_unlock(local->hw.wiphy); rtnl_unlock(); return count; Patches currently in stable-queue which might be from johannes.berg@xxxxxxxxx are queue-5.12/mac80211-fix-null-ptr-deref-for-injected-rate-info.patch queue-5.12/cfg80211-avoid-double-free-of-pmsr-request.patch queue-5.12/cfg80211-shut-down-interfaces-on-failed-resume.patch queue-5.12/cfg80211-fix-phy80211-symlink-creation.patch queue-5.12/mac80211-minstrel_ht-fix-sample-time-check.patch queue-5.12/mac80211-fix-deadlock-in-ap-vlan-handling.patch queue-5.12/cfg80211-make-certificate-generation-more-robust.patch queue-5.12/staging-rtl8723bs-fix-monitor-netdev-register-unregi.patch queue-5.12/mac80211-move-interface-shutdown-out-of-wiphy-lock.patch queue-5.12/mac80211-fix-reset-debugfs-locking.patch queue-5.12/mac80211-fix-skb-length-check-in-ieee80211_scan_rx.patch