Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp7957lqs; Mon, 4 Mar 2024 13:07:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVeu1FNGEHEbImP7yxUhh/DlR4ad06+gN02ZwlQsEmRZbVKtjKTPecxT8cdPd0FkWwVf30EjRvi6CFLJFREIalUZPUk5euV2FbQ7Lxrgw== X-Google-Smtp-Source: AGHT+IFSBwfavAU+ln+qilwLFI/NQrx7J0jbVfuK5a9i9imPK9CubQBi9sTpHZ92M7IMhORZoeEd X-Received: by 2002:a17:906:348b:b0:a45:a313:a534 with SMTP id g11-20020a170906348b00b00a45a313a534mr140619ejb.27.1709586425877; Mon, 04 Mar 2024 13:07:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709586425; cv=pass; d=google.com; s=arc-20160816; b=EMq+VdB/d7mgzCNZkTP/bUecNGEj10M7gLcp6w7oUAxa6kmH3NAZ1OPXkq858FgUT5 md5jGzCDH9snD+720Sw8FgCTQmJfFrdXarb0zRvq7gXt1vdJvxD0DfaT+l036ZXcNztL VPjUS/LzfbFMuj0newnojq2qX96jvD4yodduLLTgfk9gAcxK7dnGZ+1BVhdNpzVWTOC3 uLqO+f/68wpi3gh4pe6+pGF8Kep8+83SDe01B30c/cF1VJY8eOuv9z9SZ4EEhE5JB0Rw GbAYzWTNy1rlUcDGVR2aVk8fYHwDYUksf87CSdY9n24bxDRru9Pq7gblr3KfaGW414vb bF+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uKNQ2fkdCjhGBa+kaMl+KJX7DmKBW+ieONr3gSm7+3s=; fh=NmpEgNdzGDid+/i4g4kFUpt0hab9EMz46vHfbEjef4U=; b=Ff0/O7rw4ZarXhR/7JceJSdwq1r4YR6oq/pypTbML5aObECeIjDnFMGdoiEozm2Kxp Ufc9Kpx1xB5LDiahAQKU3VfU7HpyWnhu9D8brWCi2bcwYKaljb/MDAiHiDCkwxz6ny5/ jIkP11tU4uCNFAx7HWMHenVk/guvD7CpBwlcNPSb4dwt01ogfJPBF8ECqfqPEIH52DnT OxFDAoEmlUaqkJ83nbA+cILcNsVQefOocD1CPNKTCRN1nKtXM62sDDO9wzmDoYIRve1T 6sd8LTf7erpWMqqIAHaHm/UjrTc3nomxoUtv+hpSVW5RSe6W3IgAsRNXk2WKCqvyfTLb p77Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eYSJJvCH; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-91271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id va11-20020a17090711cb00b00a4426ea6485si4371493ejb.450.2024.03.04.13.07.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 13:07:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eYSJJvCH; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-91271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 967901F226D8 for ; Mon, 4 Mar 2024 21:06:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB26B1CA80; Mon, 4 Mar 2024 21:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="eYSJJvCH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B17C79F2; Mon, 4 Mar 2024 21:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709586365; cv=none; b=L9AfWNTUD0fEn/7GKUuq+gUU9wk7F4iapvTgUfPHEcxD+ihtNGwdXtVIWeDHJAPle7tBRaW7spZOv/45U3m+H4ZMPa2sUPd/DGp+EnnlvMexZzEb3VjC2cr9vbHfInG4CMWzkT3YoQNUuHVNDxl5lRPlRHGHgfjJcTsCaAtkv9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709586365; c=relaxed/simple; bh=zS+gYeruCtodKk4pXApqYKYDJKfbyvisos470S6jSc0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OTF8oRMd0gL74uaGo5zhqhlCO27IiVs9leK3Iu4Hfhn7f7tImGqJjnr4g9K9Uz/V3NOBsUS7/BAjvJVjigZ0vq0QhsexWfHtvI/cSwRF9ckZXktz47VN/wC1CFcj9GIYsdTS6uWEA0i5b53aZ/lBuEALBrMTkwVekX/C9VaLa9Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eYSJJvCH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E217C433C7; Mon, 4 Mar 2024 21:06:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709586364; bh=zS+gYeruCtodKk4pXApqYKYDJKfbyvisos470S6jSc0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eYSJJvCHU2Ce1pT7JMGMPVWZ5AayXlllUFHdmhN5pBdwQSWydWkjJA4saC/SqbchX Uq881zqu82nV2wjU3fgdGfX5m3BSA6PiBEFW6y8zwrUYG/vGweSLFPf558QCDNdvIU Ia1KKwjDhaZtjL0flvDBS4ceyT2xYupfTZ8E+8Ek= Date: Mon, 4 Mar 2024 21:04:00 +0000 From: Greg KH To: Demi Marie Obenour Cc: linux-usb@vger.kernel.org, Marek =?iso-8859-1?Q?Marczykowski-G=F3recki?= , Linux Kernel Mailing List Subject: Re: usbip doesn't work with userspace code that accesses USB devices Message-ID: <2024030406-kilogram-raving-33c5@gregkh> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Mar 04, 2024 at 03:01:51PM -0500, Demi Marie Obenour wrote: > Qubes OS users are reporting that MTP doesn't work with USB passthrough. > Fastboot (used for flashing a custom OS to an Android device) also > doesn't work. Kernel-mode drivers, such as Bluetooth and USB storage, > seem to usually work as expected. Since MTP and fastboot are both > implemented in userspace, it appears that there is some problem with the > interaction of usbip, our USB proxy (which is based on USBIP), and > userspace programs that interact with USB devices directly. > > The bug report can be found at [1] and the source code for the USB proxy > can be found at [2]. The script used on the sending side (the one with > the physical USB controller) is at [3] and the script used by the > receiving side (the one the device is attached to) is at [4]. All of > these links are for the current version as of this email being sent, so > that anyone looking at this email in the future doesn't get confused. > > Is this a bug in usbip, or is this due to usbip being used incorrectly? I'm amazed that usbip works with usbfs at all, I didn't think that was a thing. If you have a reproducer, or some error messages somewhere, that might be the easiest way forward. In reading the bug report, it looks like the "bridge" you all made can't handle the device disconnecting itself properly? But that's just a guess, could be anything. thanks, greg k-h