From: Timo Joannin <timo.joannin@gmail.com>
To: oneukum@suse.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,
timo.joannin@gmail.com
Subject: Re: [PATCH] usb: cdc-wdm: fix double submission of URB
Date: Thu, 3 Dec 2026 10:21:36 +0100 [thread overview]
Message-ID: <20261203092136.247497-1-timo.joannin@gmail.com> (raw)
In-Reply-To: <73cba3ca-f937-4588-9a00-28d178b4f76f@suse.com>
Hi Oliver,
Thanks for your reply.
> 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.
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?
Thanks,
Timo Joannin
next prev parent reply other threads:[~2026-12-03 9:21 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 [this message]
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=20261203092136.247497-1-timo.joannin@gmail.com \
--to=timo.joannin@gmail.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=oneukum@suse.com \
--cc=syzbot+eb8f169da355a394fe04@syzkaller.appspotmail.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