Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1761938pxj; Wed, 19 May 2021 13:19:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7BX6UNSXMyxu11V+xmp8CGdZNFvuDNWqLDx27E6vSSDrH79LZc64Szn6FM97qOnCtIUor X-Received: by 2002:a92:520e:: with SMTP id g14mr960792ilb.218.1621455576300; Wed, 19 May 2021 13:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621455576; cv=none; d=google.com; s=arc-20160816; b=Mnq3QtD5Ts0Iyba31CL4O9IHbZMiwoCzkMtiOSJbv6BCzmBpWPHKdEZ4kUpaA1qoXH WI0fbgdfZzmLmNHI5J5wA94e3enK+go7XugcMvO6bD77n+Yi7UiD98ZNpkNwDWDDYOLE IDb5bu3fXHN6A5MpodtTdrNwKsKPKWsliXyfd0UJ4ZhhAhyiI7mbjnXk95rsbFPpvTHi Q53tL4HPa8cnOCNkufmzYJZjFRKgkBnkbMEYe3JboKTZX3UcMzPexSpHiCFDBh6LU30y 7KmBGgBXCOZHBuRPc0xFD5VcT3zigfRUFN3taLXa++2KRCme7ZlLa3R+pGfJ3wSWBLNP 22xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rGfeJx++iO9RYfUcCMG9BLDyjoPpwJYUjp9mfyv1ihM=; b=xKAaV1+1rUw43Catvj5vQBA6Gl4gwyNx+3D6EOpz0Gc6YH+MiALV/YMeCk443jXgsG an3JInwfSV7ZF6o5wonw6BrxcLVzSdbGsf1o00EsxkSFSqxJeGF95/pQal0GhCUYXu/+ bI0+2pB2fM2+1aKJDTwl3zTW5IXVGaS5qb6YL3koOIz6T4o1pgf9pWb3/w7Wq5d/FFbo 50qm4bbe37bZPrpwmlMfGVn0FmtlJUCwRqqBWmg8lbiHBBNZRAYC5ceWIJLTGWRdM2J2 Rrgax/qyBiIWHEaQQ8gk85J5CcSI5boDXAVhh1v5VGSIu55edfAG6K2EXxxuYnonIfX7 J84A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NEAfDStc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si284538jas.113.2021.05.19.13.19.23; Wed, 19 May 2021 13:19:36 -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; dkim=pass header.i=@linaro.org header.s=google header.b=NEAfDStc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230445AbhESSFj (ORCPT + 99 others); Wed, 19 May 2021 14:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbhESSFi (ORCPT ); Wed, 19 May 2021 14:05:38 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8477DC06175F for ; Wed, 19 May 2021 11:04:18 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id f6-20020a1c1f060000b0290175ca89f698so3936100wmf.5 for ; Wed, 19 May 2021 11:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=rGfeJx++iO9RYfUcCMG9BLDyjoPpwJYUjp9mfyv1ihM=; b=NEAfDStc9DOvedcU6BCdRiV8UOOkBhLuwKUUam+wB1CTjEaeRxjLFicSBzJwVpr6OW szQmN5jRsu6uJR51DzlqApvpIpJlzqDsc3igg6P8luM2Hv+yCAdZeBQQ/OQSf7RRLtIN MjY6mmUYIR+O97G/3Vb6/KFCyMi/BHIQTR7+2pTVjUXXrwIOSs45SizX5nDQXWlvkrZA 0wjCq4EKpoOoIdjjxU9fxs8jcHeq6BqnFVnjx+OaNYHb7h+TM4BOm5WDpkOPp1mWa5Wq XqA2GvK1d/7BD2sx+VHUP/vlRqkVFM22G5WpBfXLtgrfu2SxfI53rRMlGEry3kMpmWyG zapQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=rGfeJx++iO9RYfUcCMG9BLDyjoPpwJYUjp9mfyv1ihM=; b=pAkvQJKg49hmxo3fstDltMrU0j08j7fnL9WMI/KXehEulhbjyD0yVZL5ZU6peLayRu kUxMPdINbOV7089TddIoEG3cY2aC6HLWk8AdohtEtpkwlTX7ucZdntztAdQZ9UXGbF+C xRhD04knM7LT3HZiW05VUvroMPRXTUbUNpnT1uplazCfhG5RWy5/bON4bTnizdnMAd0k hXm9qoxiUD3mQW1CUNZJQKdx2l328vJNJHyaw4y1mflYwBc5/aWzP9bIyxzR5bcT5UgY 9w4zefSzdqy/wIRW7l7K/5T91yTyoU5BPJ8JWwmGS2fgAu5LHSyRDrxy2Pqpdqxxm3sS FOWQ== X-Gm-Message-State: AOAM5326ymsIn/AdLEcrOW3TdxD4VLghmI0MfPKWfddCkx1vX5eHqoYh 5PDdW0NSkEkYWa3EctKUs07AZw== X-Received: by 2002:a1c:b306:: with SMTP id c6mr468387wmf.37.1621447457105; Wed, 19 May 2021 11:04:17 -0700 (PDT) Received: from dell ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id h10sm133975wrt.3.2021.05.19.11.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 11:04:16 -0700 (PDT) Date: Wed, 19 May 2021 19:04:14 +0100 From: Lee Jones To: Guido Kiener Cc: Alan Stern , dave penkler , Dmitry Vyukov , syzbot , Greg Kroah-Hartman , 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: Re: [syzbot] INFO: rcu detected stall in tx Message-ID: <20210519180414.GL2549456@dell> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 May 2021, Guido Kiener wrote: > > 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? > > Maybe there is a misunderstanding. I guess that Dave wanted to propose: > "EPROTO is a link level issue and needs to be handled by the host driver. > When the host driver detects a protocol error while processing an > URB it SHOULD complete the URB with EPROTO status and SHOULD mark the endpoint > as halted." > Is this a realistic fix for all host drivers? > > -Guido Guido, would you mind taking a look at your mailer settings please? I now have >=7 threads running through my inbox with the same subject. For some reason your mailer is insisting on creating a new one for each of your replies. It's also adding odd "re: re: re: ..." prefixes. TIA -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog