mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+30de9d963fdd95d745f8@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [wireless?] possible deadlock in ieee80211_change_mac (3)
Date: Sun, 16 Mar 2025 09:04:45 +0800	[thread overview]
Message-ID: <tencent_FF211B3F4BBA1BCD253BBA0FBB3F33229E08@qq.com> (raw)
In-Reply-To: <67d4651e.050a0220.14e108.0048.GAE@google.com>

#syz test

diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 738de269e13f..87a970c18e96 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -301,7 +301,7 @@ static int ieee80211_change_mac(struct net_device *dev, void *addr)
 	 * active (maybe other cases?) and we must get removed from it.
 	 * But we really don't care anymore if it's not registered now.
 	 */
-	if (!dev->ieee80211_ptr->registered)
+	if (!dev->ieee80211_ptr->registered || dev->ieee80211_ptr->registering)
 		return 0;
 
 	guard(wiphy)(local->hw.wiphy);


  parent reply	other threads:[~2025-03-16  1:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-14 17:19 syzbot
2025-03-15  6:26 ` Edward Adam Davis
2025-03-15  6:52   ` syzbot
2025-03-15  7:09 ` Edward Adam Davis
2025-03-15  7:35   ` syzbot
2025-03-16  1:04 ` Edward Adam Davis [this message]
2025-03-16  1:24   ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_FF211B3F4BBA1BCD253BBA0FBB3F33229E08@qq.com \
    --to=eadavis@qq.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+30de9d963fdd95d745f8@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®