From: syzbot <syzbot+e91dc13b1b37759b3d9f@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: Re: [syzbot] [wireless?] KASAN: slab-use-after-free Read in tasklet_action_common
Date: Wed, 21 Oct 2026 01:41:45 -0700 [thread overview]
Message-ID: <6ad87ac9.e74039fe.1cb511.0001.GAE@google.com> (raw)
In-Reply-To: <6abfe679.b50370da.302ea9.000d.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: [syzbot] [wireless?] KASAN: slab-use-after-free Read in tasklet_action_common
Author: toke@toke.dk
#syz test
diff --git i/drivers/net/wireless/ath/ath9k/wmi.c w/drivers/net/wireless/ath/ath9k/wmi.c
index 4a08babb6d9d..a7cdb6b29cdc 100644
--- i/drivers/net/wireless/ath/ath9k/wmi.c
+++ w/drivers/net/wireless/ath/ath9k/wmi.c
@@ -111,20 +111,6 @@ struct wmi *ath9k_init_wmi(struct ath9k_htc_priv *priv)
return wmi;
}
-void ath9k_stop_wmi(struct ath9k_htc_priv *priv)
-{
- struct wmi *wmi = priv->wmi;
-
- mutex_lock(&wmi->op_mutex);
- wmi->stopped = true;
- mutex_unlock(&wmi->op_mutex);
-}
-
-void ath9k_destroy_wmi(struct ath9k_htc_priv *priv)
-{
- kfree(priv->wmi);
-}
-
void ath9k_wmi_event_drain(struct ath9k_htc_priv *priv)
{
unsigned long flags;
@@ -135,6 +121,22 @@ void ath9k_wmi_event_drain(struct ath9k_htc_priv *priv)
spin_unlock_irqrestore(&priv->wmi->wmi_lock, flags);
}
+void ath9k_stop_wmi(struct ath9k_htc_priv *priv)
+{
+ struct wmi *wmi = priv->wmi;
+
+ mutex_lock(&wmi->op_mutex);
+ wmi->stopped = true;
+ mutex_unlock(&wmi->op_mutex);
+
+ ath9k_wmi_event_drain(priv);
+}
+
+void ath9k_destroy_wmi(struct ath9k_htc_priv *priv)
+{
+ kfree(priv->wmi);
+}
+
void ath9k_wmi_event_tasklet(struct tasklet_struct *t)
{
struct wmi *wmi = from_tasklet(wmi, t, wmi_event_tasklet);
@@ -148,7 +150,8 @@ void ath9k_wmi_event_tasklet(struct tasklet_struct *t)
/* Check if ath9k_init_device() completed. */
if (!smp_load_acquire(&priv->initialized)) {
- tasklet_schedule(t);
+ if (!READ_ONCE(wmi->stopped))
+ tasklet_schedule(t);
return;
}
next prev parent reply other threads:[~2026-10-21 8:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 17:14 syzbot
2026-10-02 23:03 ` Forwarded: [PATCH] wifi: ath9k: kill WMI event tasklet before freeing wmi syzbot
2026-10-02 23:09 ` Forwarded: [PATCH] wifi: ath9k: stop WMI event tasklet from rescheduling itself on probe failure syzbot
2026-10-21 8:41 ` Forwarded: Re: [syzbot] [wireless?] KASAN: slab-use-after-free Read in tasklet_action_common syzbot
2026-10-21 8:41 ` syzbot [this message]
2026-10-21 11:25 ` syzbot
2026-10-21 12:02 ` 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=6ad87ac9.e74039fe.1cb511.0001.GAE@google.com \
--to=syzbot+e91dc13b1b37759b3d9f@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
--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®