From: Oliver Neukum <oneukum@suse.com>
To: Timo Joannin <timo.joannin@gmail.com>
Cc: bjorn@mork.no, gpsuarez2512@gmail.com,
gregkh@linuxfoundation.org, hanguidong02@gmail.com,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
syzbot+eb8f169da355a394fe04@syzkaller.appspotmail.com
Subject: Re: [PATCH] usb: cdc-wdm: fix double submission of URB
Date: Thu, 3 Dec 2026 11:02:21 +0100 [thread overview]
Message-ID: <a0cfd8a7-e937-4156-9ba4-1f8365a23ef6@suse.com> (raw)
In-Reply-To: <20261203092136.247497-1-timo.joannin@gmail.com>
On 03.12.26 10:21, Timo Joannin wrote:
> Yes I believe we can divorce testing and setting the bit
> in service_outstanding_interrupt(). I verified and every
> path entering service_outstanding_interrupt() holds
> the desc->iuspin lock throughout the test_bit(),
> desc->resp_count decrement and the set_bit() sequence.
> And every other path that sets WDM_RESPONDING (wdm_int_callback()
> and wdm_rxwork()) also holds desc->iuspin.
>
> Does that seem valid to you, or did you refer to another path?
Hi,
OK, that is valid. But it is not obvious to a casual reader.
Could you add a comment stating that we are protected by
the spinlock and resubmit?
Regards
Oliver
prev parent reply other threads:[~2026-12-03 10:02 UTC|newest]
Thread overview: 5+ 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
2026-12-03 8:44 ` Oliver Neukum
2026-12-03 9:21 ` Timo Joannin
2026-12-03 10:02 ` Oliver Neukum [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=a0cfd8a7-e937-4156-9ba4-1f8365a23ef6@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