Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Timo Joannin" <timo.joannin@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: cdc-wdm: fix double submission of URB
Date: Wed, 02 Dec 2026 21:19:35 +0000	[thread overview]
Message-ID: <sashiko-outbox-246637@kernel.org> (raw)
In-Reply-To: <20261202210431.242596-1-timo.joannin@gmail.com>

> 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.
> 
> An earlier attempt to check responding in service_outstanding_interrupt()
> was reverted in commit 1607830dadee
> ("Revert "usb: cdc-wdm: close race between read and workqueue""),
> because wdm_int_callback() left WDM_RESPONDING stuck at 1 while
> the driver wasn't responding,
> and service_outstanding_interrupt() decremented desc->resp_count
> before checking the WDM_RESPONDING bit.
> 
> In wdm_int_callback check the desc->resp_count before setting
> the WDM_RESPONDING bit so that when desc->resp_count >= 1,
> we leave WDM_RESPONDING unchanged.
> In service_outstanding_interrupt() bail if WDM_RESPONDING is set
> before decrementing desc->resp_count.
> 
> Reported-by: syzbot+eb8f169da355a394fe04@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=eb8f169da355a394fe04
> Fixes: 73e06865ead1 ("USB: cdc-wdm: support back-to-back USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications")
> Signed-off-by: Timo Joannin <timo.joannin@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202210431.242596-1-timo.joannin@gmail.com?part=1

      reply	other threads:[~2026-12-02 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 21:04 [PATCH] usb: cdc-wdm: fix double submission of URB Timo Joannin
2026-12-02 21:19 ` sashiko-bot [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=sashiko-outbox-246637@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --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