Re: [PATCH] usb: cdc-wdm: fix double submission of URB

From: Timo Joannin

Date: Thu Dec 03 2026 - 04:21:49 EST


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