From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: xhci: Demote isoch buffer overrun message to debug level
Date: Wed, 25 Nov 2026 19:59:41 +0200 [thread overview]
Message-ID: <d34713e3-edf0-4e37-bfaf-73ad6e286c32@linux.intel.com> (raw)
In-Reply-To: <sashiko-outbox-229825@kernel.org>
On 11/23/26 20:31, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found no new issues
> in this patch, but noticed 1 related pre-existing issue it does not
> introduce:
> - [Critical] usb: xhci: use-after-free in handle_tx_event() [1]
> --
>
> commit a6e2659078b35c8ca15718bbecaa3c3d7eb80931
> Author: Alex Kononov <alex@albefly.com>
>
> usb: xhci: Demote isoch buffer overrun message to debug level
>
> This commit changes the logging of COMP_ISOCH_BUFFER_OVERRUN events in
> handle_tx_event() from xhci_warn() to xhci_dbg() to avoid flooding the
> kernel log on device-triggered overruns.
>
>> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
>> index a1fa188680f58..39d214e8a0289 100644
>> --- a/drivers/usb/host/xhci-ring.c
>> +++ b/drivers/usb/host/xhci-ring.c
>> @@ -2815,7 +2815,7 @@ static int handle_tx_event(struct xhci_hcd *xhci,
>> slot_id, ep_index);
>> break;
>> case COMP_ISOCH_BUFFER_OVERRUN:
>> - xhci_warn(xhci,
>> + xhci_dbg(xhci,
>> "WARN: buffer overrun event for slot %u ep %u on endpoint",
>> slot_id, ep_index);
>> break;
>
> [Severity: Critical]
> This problem wasn't introduced by this patch, but can handle_tx_event()
> pass a freed td pointer to xhci_handle_halted_endpoint() [1]?
Adding the patch, and writing a separate fix for this sashiko reported issue.
Thanks
Mathias
next prev parent reply other threads:[~2026-11-25 17:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 18:26 [PATCH] usb: xhci: Demote isoch buffer overrun message to debug level Alex Kononov via B4 Relay
2026-11-23 18:31 ` sashiko-bot
2026-11-25 17:59 ` Mathias Nyman [this message]
2026-11-23 19:56 ` Michal Pecio
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=d34713e3-edf0-4e37-bfaf-73ad6e286c32@linux.intel.com \
--to=mathias.nyman@linux.intel.com \
--cc=linux-usb@vger.kernel.org \
/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