From: Oliver Neukum <oneukum@suse.com>
To: Timo Joannin <timo.joannin@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Oliver Neukum" <oneukum@suse.com>, "Bjørn Mork" <bjorn@mork.no>,
"Greg Suarez" <gpsuarez2512@gmail.com>,
"Gui-Dong Han" <hanguidong02@gmail.com>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+eb8f169da355a394fe04@syzkaller.appspotmail.com
Subject: Re: [PATCH] usb: cdc-wdm: fix double submission of URB
Date: Thu, 3 Dec 2026 09:44:44 +0100 [thread overview]
Message-ID: <73cba3ca-f937-4588-9a00-28d178b4f76f@suse.com> (raw)
In-Reply-To: <20261202210431.242596-1-timo.joannin@gmail.com>
On 02.12.26 22:04, Timo Joannin wrote:
> Syzbot found a bug where "URB submitted while active".
> This is because service_outstanding_interrupt() doesn't check whether
> WDM_RESPONDING is already set and allows it to resubmit an already
> active URB triggering the warning.
Hi,
thank you for looking into this.
> @@ -491,6 +490,10 @@ static int service_outstanding_interrupt(struct wdm_device *desc)
> {
> int rv = 0;
>
> + /* don't submit or consume interrupt if URB already active */
> + if (test_bit(WDM_RESPONDING, &desc->flags))
> + goto out;
Are you sure we can divorce testing and setting the bit?
It seems to me that this leaves the race open the open way
round.
Regards
Oliver
next prev parent reply other threads:[~2026-12-03 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 21:04 Timo Joannin
2026-12-03 8:44 ` Oliver Neukum [this message]
2026-12-03 9:21 ` Timo Joannin
2026-12-03 10:02 ` Oliver Neukum
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=73cba3ca-f937-4588-9a00-28d178b4f76f@suse.com \
--to=oneukum@suse.com \
--cc=bjorn@mork.no \
--cc=gpsuarez2512@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hanguidong02@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=syzbot+eb8f169da355a394fe04@syzkaller.appspotmail.com \
--cc=timo.joannin@gmail.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®