Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #883241

Bug#891036: The problem is related to the number of ports created in vhci_hcd.0

From "wzabolot@elektron.elka.pw.edu.pl" <wzabolot@elektron.elka.pw.edu.pl>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#891036: The problem is related to the number of ports created in vhci_hcd.0
Date 2018-02-22 23:20 +0100
Message-ID <vm7nA-2DF-23@gated-at.bofh.it> (permalink)
References <vlZgm-5tv-5@gated-at.bofh.it> <vlH06-1O8-3@gated-at.bofh.it> <vlZgm-5tv-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On the system where I have installed the 4.15.xxx kernel and usbip from
Debian/sid, I get the following results from "usbip --debug port":

[...]
usbip: debug: names.c:428:[parse] line 18068 subclass fe:02 IRDA Bridge
usbip: debug: names.c:428:[parse] line 18069 subclass fe:03 Test and
Measurement
usbip: debug: names.c:461:[parse] line 18070 protocol fe:03:01 TMC
usbip: debug: names.c:461:[parse] line 18071 protocol fe:03:02 USB488
usbip: debug: names.c:374:[parse] line 18072 class ff Vendor Specific Class
usbip: debug: names.c:428:[parse] line 18073 subclass ff:ff Vendor
Specific Subclass
usbip: debug: names.c:461:[parse] line 18074 protocol ff:ff:ff Vendor
Specific Protocol
libusbip: debug: vhci_driver.c:264:[usbip_vhci_driver_open] available
ports: 240
libusbip: error: port number exceeds 128
usbip: error: open vhci_driver
usbip: error: list imported devices

The line where the condition is checked is
https://elixir.bootlin.com/linux/v4.15.4/source/tools/usb/usbip/libsrc/vhci_driver.c#L263

vhci_driver
<https://elixir.bootlin.com/linux/v4.15.4/ident/vhci_driver>->nports = get_nports <https://elixir.bootlin.com/linux/v4.15.4/ident/get_nports>();
	dbg <https://elixir.bootlin.com/linux/v4.15.4/ident/dbg>("available
ports: %d", vhci_driver
<https://elixir.bootlin.com/linux/v4.15.4/ident/vhci_driver>->nports);

	if (vhci_driver
<https://elixir.bootlin.com/linux/v4.15.4/ident/vhci_driver>->nports <= 0) {
		err("no available ports");
		goto err;
	} else if (vhci_driver
<https://elixir.bootlin.com/linux/v4.15.4/ident/vhci_driver>->nports > MAXNPORT <https://elixir.bootlin.com/linux/v4.15.4/ident/MAXNPORT>) {
		err("port number exceeds %d", MAXNPORT <https://elixir.bootlin.com/linux/v4.15.4/ident/MAXNPORT>);
		goto err;
	}

Maybe the viable workaround would be just to increase the MAXNPORT number?

-- 

Wojciech M Zabolotny, PhD
Institute of Electronic Systems
Faculty of Electronics and Information Technology
Warsaw University of Technology

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#891036: libusbip: error: port number exceeds 128 wzab <wzab@ise.pw.edu.pl> - 2018-02-21 19:10 +0100
  Bug#891036: More details - the problem is associated with the vhci-hcd driver. wzab <wzab@ise.pw.edu.pl> - 2018-02-21 20:00 +0100
  Bug#891036: Problem occurs in 4.13 and 4.14, but not in 4.12 "wzabolot@elektron.elka.pw.edu.pl" <wzabolot@elektron.elka.pw.edu.pl> - 2018-02-21 20:30 +0100
  Bug#891036: Problem still persists in kernel 4.15 "wzabolot@elektron.elka.pw.edu.pl" <wzabolot@elektron.elka.pw.edu.pl> - 2018-02-21 21:10 +0100
  Bug#891036: Even after updating "usbip" to usbip_2.0+4.15.4-1_amd64.deb problem remains "wzabolot@elektron.elka.pw.edu.pl" <wzabolot@elektron.elka.pw.edu.pl> - 2018-02-21 21:20 +0100
  Bug#891036: The problem is related to the number of ports created in vhci_hcd.0 Wojtek Zabolotny <W.Zabolotny@elka.pw.edu.pl> - 2018-02-22 14:40 +0100
    Bug#891036: The problem is related to the number of ports created in vhci_hcd.0 "wzabolot@elektron.elka.pw.edu.pl" <wzabolot@elektron.elka.pw.edu.pl> - 2018-02-22 23:20 +0100
      Bug#891036: The problem is related to the number of ports created in vhci_hcd.0 "wzabolot@elektron.elka.pw.edu.pl" <wzabolot@elektron.elka.pw.edu.pl> - 2018-02-22 23:50 +0100
        Bug#891036: Workaround found, the problem is with Debian configuration of kernel "wzabolot@elektron.elka.pw.edu.pl" <wzabolot@elektron.elka.pw.edu.pl> - 2018-02-23 01:10 +0100
        Bug#891036: Proposal - how to make usbip more resistant to misconfiguration "wzabolot@elektron.elka.pw.edu.pl" <wzabolot@elektron.elka.pw.edu.pl> - 2018-02-23 02:10 +0100

csiph-web