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: Sat, 15 Mar 2025 15:09:39 +0800	[thread overview]
Message-ID: <tencent_8B2EEC8C8567D4C6F652C48644498B2EC206@qq.com> (raw)
In-Reply-To: <67d4651e.050a0220.14e108.0048.GAE@google.com>

#syz test

diff --git a/net/wireless/core.c b/net/wireless/core.c
index 12b780de8779..eed4c06cd40b 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -1477,12 +1477,13 @@ int cfg80211_register_netdevice(struct net_device *dev)
 	lockdep_assert_held(&rdev->wiphy.mtx);
 
 	/* we'll take care of this */
-	wdev->registered = true;
 	wdev->registering = true;
+	wiphy_unlock(&rdev->wiphy);
 	ret = register_netdevice(dev);
 	if (ret)
 		goto out;
 
+	wiphy_lock(&rdev->wiphy);
 	cfg80211_register_wdev(rdev, wdev);
 	ret = 0;
 out:


  parent reply	other threads:[~2025-03-15  7:14 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 [this message]
2025-03-15  7:35   ` syzbot
2025-03-16  1:04 ` Edward Adam Davis
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_8B2EEC8C8567D4C6F652C48644498B2EC206@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®