[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2025103113-unbutton-harmful-e569@gregkh>
Date: Fri, 31 Oct 2025 14:59:25 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: vsshingne <vaibhavshingne66@...il.com>
Cc: skhan@...uxfoundation.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] usb: core: prevent double URB enqueue causing list
corruption
On Fri, Oct 31, 2025 at 07:20:32PM +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 if the URB is already on a queue
> prevents this corruption.
>
> Signed-off-by: vsshingne <vaibhavshingne66@...il.com>
> ---
> drivers/usb/core/hcd.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
Please do not send patches multiple times, in invalid formats.
Powered by blists - more mailing lists