From nobody Sat Jul 20 09:39:20 2024 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WR1hp2j0kz5RKvh for ; Sat, 20 Jul 2024 09:39:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WR1hn52FKz4nBQ for ; Sat, 20 Jul 2024 09:39:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721468361; a=rsa-sha256; cv=none; b=uTB8l7G2mVJTAbeKqCVQEbXNWpb3yY5U5rSlyHHXx5hi/JPLltvh86E498odWwk5uh7Kir Znq11gh3s8Wfi0jNNmFwiUtQ+jPefdtWAisNHaH03SMSL6aBw8sZPtXol2XLVR3+iJjsVl v2yr/RuHlncO22cVMjw4jFCghvL5o1iWvXsjKTCA7fgETrbIDw5UEjkCAy/kJMhlL4bly7 FCe1JOe737ltSSgzNxErp/pjx+c7HchrvEwZgcypB/WKM7RhLyZiGxlec6DEkTjw2Ufjps zCpmiB6QJKRQMEmxDz96pNk1Zrw1Omh9JF/yl5LBPt7a1+ZAFE87vsXCOaDmBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721468361; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yr95zY/T9DCrjRXc+CNqM58K+NnXeyq8cnZxNd3rv/c=; b=CyLzKJfaK8WtVp7q389gXfBlcFbYSDAwZW5HHJWrxFDmmpaMQM1TdzYtEEv5/+TiWd4f2f L7xrfCD3gPdFdVe3CkwX+lLbYylgvr0vzSHszSmXd80YK+PlZ/l9KDHGcM+Qd+xmVaPdBR 5+mTl7yOwDObqJNb1PODSnZ8Gi5tLic8/dKp8+jaBbwUh4hu2pF4DqxVftjul8T3RCyC79 jlDOc9Idlv83zpj5sU/B4TiTh+toXU0BJsDAgY5xoiRBmW2Da1XQ99XIxHttwJiA4aNbEM FplaZMFSk5tEyd+YBGKEDlj00mLvGm0JRqv7e6uWa3jSgXefRZSmB8iN3mMa5w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WR1hn332xz19sZ for ; Sat, 20 Jul 2024 09:39:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46K9dLK9051562 for ; Sat, 20 Jul 2024 09:39:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46K9dLRM051560 for usb@FreeBSD.org; Sat, 20 Jul 2024 09:39:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 270900] emulators/virtualbox-ose USB passthrough fails with Failed to create a proxy device for the USB device. (Error: VERR_INVALID_PARAMETER) Date: Sat, 20 Jul 2024 09:39:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vvd@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-usb@freebsd.org Sender: owner-freebsd-usb@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270900 --- Comment #18 from commit-hook@FreeBSD.org --- A commit in branch 2024Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D873b08a9cff17f72029df8a6464855b= 631f16316 commit 873b08a9cff17f72029df8a6464855b631f16316 Author: Igor Malyshev AuthorDate: 2024-07-20 09:31:14 +0000 Commit: Vladimir Druzenko CommitDate: 2024-07-20 09:38:47 +0000 emulators/virtualbox-ose{,-nox11}-legacy: fix USB passthrough fails wit= h: Failed to create a proxy device for the USB device Failed to create a proxy device for the USB device. (Error: VERR_INVALID_PARAMETER) 00:00:24.961804 usbProxyConstruct: Failed to open '/dev/ugen0.6', rc=3DVERR_INVALID_PARAMETER 00:00:24.961881 ERROR [COM]: aRC=3DNS_ERROR_FAILURE (0x80004005) aIID=3D{872da645-4a9b-1727-bee2-5585105b9eed} aComponent=3D{ConsoleWrap} aText=3D{Failed to create a proxy device for the USB device. (Error: VERR_INVALID_PARAMETER)}, preserve=3Dfalse aResultDetail=3D-2 In commit https://cgit.freebsd.org/src/commit/?id=3D9b077d72bcc313baea2b9283afc7f5687= 39eaadc +#define USB_FS_XFER_MAX 126 - if (fs_ep_ptr =3D=3D NULL || ep_index_max > 127) + if (fs_ep_ptr =3D=3D NULL || ep_index_max > USB_FS_XFER_MAX) To fix VirtualBox decrease USBFBSD_MAXENDPOINTS from 127 to 126: -#define USBFBSD_MAXENDPOINTS 127 +#define USBFBSD_MAXENDPOINTS 126 PR: 270900 Tested by: groenveld@acm.org, russo@bogodyn.org Approved by: with hat of vbox (maintainer) MFH: 2024Q3 (cherry picked from commit 4b9b21dfcdc6a213b8b9842dbc7ea8dd8fcd48e3) emulators/virtualbox-ose-legacy/Makefile | 2 +- ...atch-src_VBox_Devices_USB_USBProxyDevice-freebsd.cpp (new) | 11 +++++++= ++++ emulators/virtualbox-ose-nox11-legacy/Makefile | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=