Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1754196pxj; Wed, 19 May 2021 13:08:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyl5sihXa4euIewvK9pIA0KynRuF9lOp8oSTjkzVAr6np7yagvLjKzdOAXuUYUefr9mbl1 X-Received: by 2002:a05:6402:2207:: with SMTP id cq7mr820250edb.216.1621454910759; Wed, 19 May 2021 13:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621454910; cv=none; d=google.com; s=arc-20160816; b=pzRo986p+STnn8N56toTs0Tk3Ho9AzFtA+0qPVko2UDI5+cGM27cE0XwTiTE02AeDO 1EkEE/+gpDl/a1+u1x4feRbLWaO0egfHJ/pPmPSTEqybGMr8wzUXY2sqMUnVkYjMl7Hg UyYQjDiA1Xz59/DKSQHlUNMHt6fyzoU8CT61Cm9X6PvzRxRqgQMXMMhtUGv68rNGlgpg X4YrHQiITHBhxepZ+sIHxauH7PWcYD3PFfmd7oIjyUduPPXcxQJO4pUrpeQKBsLTvgH9 b9pDDv8yZMpx4zrLDDHbZNWTo2ttDdnWBu2+FB0+vB5sNRdMah0Yy64GNkVUSLaLe0qX nXow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=e2MPSqcICguvrWC4dHskXBeFX5mZIgA+OLjBizBwXxU=; b=WgnBGZ6HIWfMhaRRDBggTPRWWjiGuxcTluO2wKH2ReOf24p9gIK+UwbE88bM3G1xrM PfwMsIvEsy7jF7ZNycAnsCJPTwBHFiAFCficialJOrzmubpTfjspm4ACb45C5Gzzk3gh HREFS/8/88QEivZNmGyZNeNHXYlv49fX9z+MpQ/dL3bQZpNk3/DimenbkRzWft0keo0N vtWiPE/v4V6vmtfYSC2ObYWzSGnvPBaUommBWQXe1zxdIe8WIKWpNF0m6L88vGIi2BUI t1AJ3ltoP9vR6FCjSsbqiC35i96Ea7a/rJ7YFgfD+71D1ts4DOhs1aDUUNJg2EGCtfP4 k2Qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hj18si613380ejb.152.2021.05.19.13.08.06; Wed, 19 May 2021 13:08:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347995AbhESOhe (ORCPT + 99 others); Wed, 19 May 2021 10:37:34 -0400 Received: from netrider.rowland.org ([192.131.102.5]:33637 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S243400AbhESOhe (ORCPT ); Wed, 19 May 2021 10:37:34 -0400 Received: (qmail 1166645 invoked by uid 1000); 19 May 2021 10:36:13 -0400 Date: Wed, 19 May 2021 10:36:13 -0400 From: Alan Stern To: dave penkler Cc: Guido Kiener , Dmitry Vyukov , syzbot , Greg Kroah-Hartman , "lee.jones@linaro.org" , USB list , "bp@alien8.de" , "dwmw@amazon.co.uk" , "hpa@zytor.com" , "linux-kernel@vger.kernel.org" , "luto@kernel.org" , "mingo@redhat.com" , "syzkaller-bugs@googlegroups.com" , "tglx@linutronix.de" , "x86@kernel.org" Subject: Re: Re: Re: Re: Re: [syzbot] INFO: rcu detected stall in tx Message-ID: <20210519143613.GA1165692@rowland.harvard.edu> References: <6cffd7eebba54ed8acd043d51d212ec1@rohde-schwarz.com> <20210508142947.GB810516@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 19, 2021 at 10:48:29AM +0200, dave penkler wrote: > On Sat, 8 May 2021 at 16:29, Alan Stern wrote: > > > > On Sat, May 08, 2021 at 10:14:41AM +0200, dave penkler wrote: > > > When the host driver detects a protocol error while processing an URB > > > it completes the URB with EPROTO status and marks the endpoint as > > > halted. > > > > Not true. It does not mark the endpoint as halted, not unless it > > receives a STALL handshake from the device. A STALL is not a protocol > > error. > > > > > When the class driver resubmits the URB and the if the host driver > > > finds the endpoint still marked as halted it should return EPIPE > > > status on the resubmitted URB > > > > Irrelevant. > Not at all. The point is that when an application is talking to an > instrument over the usbtmc driver, the underlying host controller and > its driver will detect and silence a babbling endpoint. No, they won't. That is, they will detect a babble error and return an error status, but they won't silence the endpoint. What makes you think they will? > Hence no EPROTO loop will ensue in this case and therefore no changes > are needed in usbtmc. Since this conclusion relies on the incorrect assumption above, it also is incorrect. Alan Stern