From: syzbot <syzbot+f4a0159ce6802a0a4774@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
Date: Mon, 14 Sep 2026 18:38:58 -0700 [thread overview]
Message-ID: <6aa8a1b2.4c28b7d0.c1bba.002b.GAE@google.com> (raw)
In-Reply-To: <6a8cf1e8.dbb3a75c.7844.001a.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
Author: jchuang26@m.fudan.edu.cn
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
Reported-by: syzbot+f4a0159ce6802a0a4774@syzkaller.appspotmail.com
diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c
index 2dae474dc..5b30303ad 100644
--- a/drivers/mmc/host/vub300.c
+++ b/drivers/mmc/host/vub300.c
@@ -2382,10 +2382,25 @@ static void vub300_disconnect(struct usb_interface *interface)
} else {
int ifnum = interface_to_InterfaceNumber(interface);
usb_set_intfdata(interface, NULL);
+ /*
+ * The inactivity timer holds a reference to the host
+ * and can be rearmed by work items. Shut it down
+ * before clearing interface, otherwise its callback
+ * can drop the timer reference while a concurrent
+ * work item is rearming the timer, leaving the host
+ * to be freed while the timer is still active.
+ */
+ timer_shutdown_sync(&vub300->inactivity_timer);
/* prevent more I/O from starting */
vub300->interface = NULL;
mmc_remove_host(mmc);
kref_put(&vub300->kref, vub300_delete);
+ /*
+ * The timer is shut down, so it will no longer drop
+ * the reference that was acquired for it in
+ * vub300_probe(). Drop it here.
+ */
+ kref_put(&vub300->kref, vub300_delete);
pr_info("USB vub300 remote SDIO host controller[%d]"
" now disconnected", ifnum);
return;
prev parent reply other threads:[~2026-09-15 1:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 1:37 [syzbot] [kernel?] " syzbot
2026-09-11 1:36 ` [syzbot] [mmc?] " syzbot
2026-09-14 12:13 ` Forwarded: [PATCH] " syzbot
2026-09-15 1:38 ` syzbot [this message]
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=6aa8a1b2.4c28b7d0.c1bba.002b.GAE@google.com \
--to=syzbot+f4a0159ce6802a0a4774@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 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®