public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Wowk <dev@adrianwowk.com>
To: valentina.manea.m@gmail.com, shuah@kernel.org
Cc: i@zenithal.me, gregkh@linuxfoundation.org,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Adrian Wowk <dev@adrianwowk.com>
Subject: [PATCH 0/2] usbip: vhci_hcd: fix NULL deref and NR_HCS upper bound
Date: Mon, 13 Apr 2026 20:00:48 -0500	[thread overview]
Message-ID: <20260414010050.158064-1-dev@adrianwowk.com> (raw)

These two patches fix a NULL pointer dereference in vhci_sysfs.c
triggered when a VHCI host controller fails to probe, and tighten
the Kconfig upper bound for USBIP_VHCI_NR_HCS to reflect the real
maximum imposed by USB_MAXBUS.

Tested on Ubuntu 6.8.0-110-generic (6.8.12) on a Dell PowerEdge R640,
issue is reproducible with CONFIG_USBIP_VHCI_NR_HCS > 32 or potentially
lower if there is already other USB hardware connected.

Adrian Wowk (2):
  usbip: vhci_hcd: fix NULL deref in status_show_vhci
  usbip: vhci_hcd: reduce CONFIG_USBIP_VHCI_NR_HCS upper bound to 32

 drivers/usb/usbip/Kconfig      |  2 +-
 drivers/usb/usbip/vhci_sysfs.c | 52 +++++++++++++++++++---------------
 2 files changed, 30 insertions(+), 24 deletions(-)

-- 
2.53.0


             reply	other threads:[~2026-04-14  1:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-14  1:00 Adrian Wowk [this message]
2026-04-14  1:00 ` [PATCH 1/2] usbip: vhci_hcd: fix NULL deref in status_show_vhci Adrian Wowk
2026-04-14  1:00 ` [PATCH 2/2] usbip: vhci_hcd: reduce CONFIG_USBIP_VHCI_NR_HCS upper bound to 32 Adrian Wowk

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=20260414010050.158064-1-dev@adrianwowk.com \
    --to=dev@adrianwowk.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=i@zenithal.me \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=shuah@kernel.org \
    --cc=valentina.manea.m@gmail.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