From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: quic_wcheng@quicinc.com, hulianqin@vivo.com, selvarasu.g@samsung.com
Cc: <linux-usb@vger.kernel.org>,
Mathias Nyman <mathias.nyman@linux.intel.com>
Subject: [RFT PATCH 0/2] xhci: sideband: fix use-after-free of stale virt device pointer
Date: Wed, 18 Nov 2026 14:51:07 +0200 [thread overview]
Message-ID: <20261118125109.1429538-1-mathias.nyman@linux.intel.com> (raw)
Hi
These two patches attempt to handle the disappearing vdev issue
while sideband stays active.
I don't have real harware to test this on so all review comments and
feedback from testing is welcome.
There are still some gaps in how xhci driver uses locks when
disabling slots and freeing vdev that is not part of this series
Thanks
Mathias
Mathias Nyman (2):
xhci: sideband: avoid use-after-free of stale virt device pointer
xhci: sideband: check virt device under xhci lock when stopping
endpoints
drivers/usb/host/xhci-sideband.c | 141 +++++++++++++++++++++---------
drivers/usb/host/xhci.c | 55 ------------
drivers/usb/host/xhci.h | 2 -
include/linux/usb/xhci-sideband.h | 4 +-
4 files changed, 101 insertions(+), 101 deletions(-)
--
2.43.0
next reply other threads:[~2026-11-18 12:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 12:51 Mathias Nyman [this message]
2026-11-18 12:51 ` [RFT PATCH 1/2] xhci: sideband: avoid use-after-free of stale virt device pointer Mathias Nyman
2026-11-18 12:51 ` [RFT PATCH 2/2] xhci: sideband: check virt device under xhci lock when stopping endpoints Mathias Nyman
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=20261118125109.1429538-1-mathias.nyman@linux.intel.com \
--to=mathias.nyman@linux.intel.com \
--cc=hulianqin@vivo.com \
--cc=linux-usb@vger.kernel.org \
--cc=quic_wcheng@quicinc.com \
--cc=selvarasu.g@samsung.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