Re: [PATCH] fix: sound/usb/usx2y: capture_urb_complete: redundant usb_anchor_urb corrupts anchor list on each resubmission
From: Takashi Iwai
Date: Mon Jun 29 2026 - 06:20:55 EST
On Sat, 27 Jun 2026 06:29:49 +0200,
WenTao Liang wrote:
>
> In capture_urb_complete(), usb_anchor_urb() is called on every
> completion callback, but the URB is already anchored from the
> initial submission in tascam_trigger_start(). Each redundant call
> corrupts the anchor's doubly-linked list and inflates the URB
> refcount. When usb_kill_anchored_urbs() traverses the list during
> stream stop / suspend / disconnect, the corrupted list leads to
> use-after-free.
>
> Remove the redundant usb_anchor_urb() from the resubmit path.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: c1bb0c13e430 ("ALSA: usb-audio: us144mkii: Implement audio capture and decoding")
> Signed-off-by: WenTao Liang <vulab@xxxxxxxxxxx>
Applied now. But, at the next time, please try to adjust the subject
prefix; for sound/usb, it's "ALSA:"
thanks,
Takashi