Re: [PATCH] usb: core: prevent double URB enqueue causing list corruption

From: Alan Stern

Date: Fri Oct 31 2025 - 10:13:49 EST


On Fri, Oct 31, 2025 at 02:59:07PM +0100, Greg KH wrote:
> On Fri, Oct 31, 2025 at 07:17:39PM +0530, vsshingne wrote:
> > Prevents the same URB from being enqueued twice on the same endpoint,
> > which could lead to list corruption detected by list_debug.c.
> >
> > This was observed in syzbot reports where URBs were re-submitted
> > before completion, triggering 'list_add double add' errors.
> >
> > Adding a check to return -EEXIST if the URB is already on a queue
> > prevents this corruption.
>
> This text makes no sense at all, it does not describe what this patch
> does in any way. Please do not use AI to generate patches.

In fact, the patch doesn't do _anything_ (except maybe change some
whitespace). And it does not apply to any recent kernel source.

Alan Stern