Linux USB
 help / color / mirror / Atom feed
From: Michal Pecio <michal.pecio@gmail.com>
To: Mathias Nyman <mathias.nyman@linux.intel.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: xhci: Demote isoch buffer overrun message to debug level
Date: Fri, 27 Nov 2026 11:02:16 +0100	[thread overview]
Message-ID: <20261127110216.16d4db3b.michal.pecio@gmail.com> (raw)
In-Reply-To: <d34713e3-edf0-4e37-bfaf-73ad6e286c32@linux.intel.com>

On Wed, 25 Nov 2026 19:59:41 +0200, Mathias Nyman wrote:
> On 11/23/26 20:31, sashiko-bot@kernel.org wrote:
> > [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.

Hi Mathias,

Severity is vastly overstated. For xhci_halted_host_endpoint() to
return true, we need either a Babble/Transaction/Split Error on an
endpoint whose output context indicates non-isochronous (while being
isochronous and using error_mid_td), or Stall Error on isochronous.
Either case is a severe hardware bug.

Simultaneously, we need another HW bug which generates such events
on an empty ring, or a SW bug which gives back TDs before execution.
I think these cases of unlinking from a still-running endpoint have
mostly been eliminated by now and we don't need to worry about events
on empty rings very much anymore.

That being said, clearing 'td' after error mid TD handling or using
a different temporary variable there would make the code more robust
against potential "oopsies" of this sort, so that makes sense.

Regards,
Michal

  reply	other threads:[~2026-11-27 10:02 UTC|newest]

Thread overview: 5+ 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
2026-11-27 10:02     ` Michal Pecio [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=20261127110216.16d4db3b.michal.pecio@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@linux.intel.com \
    /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