From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2BD5C43460 for ; Wed, 19 May 2021 18:04:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C0029611BD for ; Wed, 19 May 2021 18:04:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230506AbhESSFk (ORCPT ); Wed, 19 May 2021 14:05:40 -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-Google-Smtp-Source: ABdhPJxeGPAdq0VhugQUUTYen/hKPMuk3ywUwrdpqTtKH8oX2TUZUgKtHF78OkvjLqURN7+gd9GmBA== 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