Path: csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: "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: Thu, 22 Feb 2018 23:20:02 +0100 Message-ID: References: X-Original-To: 891036@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Feb 22 22:12:13 2018 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.96 Reply-To: "wzabolot@elektron.elka.pw.edu.pl" , 891036@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian Kernel Team X-Debian-Pr-Message: followup 891036 X-Debian-Pr-Package: usbip X-Debian-Pr-Source: linux, linux-grsec, linux-tools, usbip X-Spam-Bayes: score:0.0000 Tokens: new, 41; hammy, 150; neutral, 52; spammy, 0. spammytokens: hammytokens:0.000-+--H*UA:52.6.0, 0.000-+--H*u:52.6.0, 0.000-+--H*u:x86_64, 0.000-+--H*u:52.0, 0.000-+--H*UA:x86_64 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: pl-PL X-Debian-Message: from BTS X-Mailing-List: archive/latest/1443244 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 47 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 22 Feb 2018 23:09:06 +0100 X-Original-Message-ID: <6d54befc-2fbb-b1ca-cc93-00eefb5c867f@elektron.elka.pw.edu.pl> X-Original-References: Xref: csiph.com linux.debian.bugs.dist:883241 linux.debian.kernel:60316 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 ->nports = get_nports (); dbg ("available ports: %d", vhci_driver ->nports); if (vhci_driver ->nports <= 0) { err("no available ports"); goto err; } else if (vhci_driver ->nports > MAXNPORT ) { err("port number exceeds %d", 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