From: syzbot <syzbot+c92af8613ad38696ff09@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: [PATCH] INFO: task hung in ieee80211_register_hw (8)
Date: Mon, 14 Sep 2026 22:58:42 -0700 [thread overview]
Message-ID: <6aa8de92.a211d2ce.1a5198.02a6.GAE@google.com> (raw)
In-Reply-To: <6aa52208.f81106d8.2ab401.002a.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] INFO: task hung in ieee80211_register_hw (8)
Author: jchuang26@m.fudan.edu.cn
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git 6f157f39d1812ac5efd113a29bff3799dcb3150c
Reported-by: syzbot+c92af8613ad38696ff09@syzkaller.appspotmail.com
diff --git a/drivers/net/wireless/virtual/mac80211_hwsim_main.c b/drivers/net/wireless/virtual/mac80211_hwsim_main.c
index 02b6d81cc..de3bfeaa3 100644
--- a/drivers/net/wireless/virtual/mac80211_hwsim_main.c
+++ b/drivers/net/wireless/virtual/mac80211_hwsim_main.c
@@ -7156,6 +7156,15 @@ static struct genl_family hwsim_genl_family __ro_after_init = {
.resv_start_op = HWSIM_CMD_REPORT_PMSR + 1, // match with __HWSIM_CMD_MAX
.mcgrps = hwsim_mcgrps,
.n_mcgrps = ARRAY_SIZE(hwsim_mcgrps),
+ /*
+ * HWSIM_CMD_NEW_RADIO goes through ieee80211_register_hw(), which
+ * acquires the RTNL mutex. Without parallel_ops the generic netlink
+ * core serializes all of these handlers with genl_mutex, so a task
+ * would hold genl_mutex while waiting for RTNL and can deadlock with
+ * code that holds RTNL and needs genl_mutex. The radio list is
+ * protected by hwsim_radio_lock, so the handlers can run in parallel.
+ */
+ .parallel_ops = true,
};
static void remove_user_radios(u32 portid, int netgroup)
next prev parent reply other threads:[~2026-09-15 5:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 9:57 [syzbot] [wireless?] INFO: task hung in ieee80211_register_hw (8) syzbot
2026-09-14 11:23 ` Forwarded: [PATCH] " syzbot
2026-09-15 1:38 ` syzbot
2026-09-15 5:58 ` syzbot [this message]
2026-09-17 1:22 ` syzbot
2026-09-17 1:44 ` 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=6aa8de92.a211d2ce.1a5198.02a6.GAE@google.com \
--to=syzbot+c92af8613ad38696ff09@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.