public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] usbip: vhci_hcd: fix NULL deref and NR_HCS upper bound
@ 2026-04-14  1:00 Adrian Wowk
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Adrian Wowk @ 2026-04-14  1:00 UTC (permalink / raw)
  To: valentina.manea.m, shuah; +Cc: i, gregkh, linux-usb, linux-kernel, Adrian Wowk

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-14  1:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14  1:00 [PATCH 0/2] usbip: vhci_hcd: fix NULL deref and NR_HCS upper bound Adrian Wowk
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox