Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1407671rdg; Sat, 14 Oct 2023 00:28:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8LiXenUs2NUrjI5dGQCvVdAMoO1NvUwCcDwVSdyDOMJ6HzlerApIaggHzjfXqosBuMFGe X-Received: by 2002:a05:6808:4ce:b0:3af:794c:df98 with SMTP id a14-20020a05680804ce00b003af794cdf98mr28345879oie.49.1697268518429; Sat, 14 Oct 2023 00:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697268518; cv=none; d=google.com; s=arc-20160816; b=jrhgd7fJdtEJikLS9MNhVoBLohLQ15O388kzL+YaR09T5uMPCNJ9d0izUcwbWAZ7nU 8oiWKIE8Tx1pQB8Iu1/cbcfVCj0bBblrkq8ymemj0mpNcHvbGijV8nOkVH6vqME0B6WP ZI2gdRbq8Z0p51iXvkPSUHQ4NBIMHBt6lcO5MUvdZqxIjLDFLpNCL8OY87xBmDCVnpEf /FA+2FBdqoLRF4RQH/+0Blj1caa39s3l3FJ28PRHDLyu8d4859g1kUMfxWMpTEdQDAr/ 5NcD9XWuXfGay2NdPnU3mYTe92eiReGB/foCQmawyesk9ulMuHEHRMytGfke2n7FWdKu eGIQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9oRK1PnAhpsLMg8rMZlhSTVmCCC/cX69tNAWmPXhNSU=; fh=B9ZBxzUccWW/JnVjG9xYD6EYtpRuFP+H+kx8QJXlvnE=; b=w66WPMBHc7eQnVaI2z/Fa6MnaxI8aEc2XA2rX2qufeF/MSwKlKtzI9paCvIX793l1M RKH0nsXHU4sRD5L75wlFsrqdwz6JVP1vcjs7G+s7veRH6VCT7W/Wfh9uM7aGki1g+GfA F65YxmTTtTZB3E043TzJSj5wcb2HXoq4MDlO5sFOkdYGaQyFIcYsMmCyG5SJE0BBlXCU 4qRgn+5bWPh9x6KebXnoOd2/oZ90fy668YWfrRJFLR5PmX6aWmXJZJdx+95U4G4MZoSq TKHo7uYizusmIJ7YhD6zrQBemRUwikmhZDesOn72XjgQtjV1dJBNAaLg5vEqCdjbop+U byuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oMEATjnk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id nu8-20020a17090b1b0800b002774ecb2ecdsi1913038pjb.19.2023.10.14.00.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 00:28:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oMEATjnk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 691C3801BA7B; Sat, 14 Oct 2023 00:28:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232717AbjJNH2a (ORCPT + 99 others); Sat, 14 Oct 2023 03:28:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjJNH23 (ORCPT ); Sat, 14 Oct 2023 03:28:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1728C0 for ; Sat, 14 Oct 2023 00:28:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36973C433C7; Sat, 14 Oct 2023 07:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697268508; bh=G5pBXaikKy5eZl79Bhi0g0REKTXJ2KpCpRRBmh/PXQU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oMEATjnk4N9ELAngiomINc1CaPU1jqZ830cOQrefLc/MRELm28PC7n1A3890dssT+ p7AhUNEb+Z2jYl61CMyaW1PYZivJnJxBmwKO+EZHLWtdZwUFhWUNMqMPUmkLZG/GPF pS2kNPnjFI4juE/C9JJpm8IW9zHmqPASLKGEwT0IDX3DitX0jxsraGXZjyV4GV6nAF gHuGdbwWdN6vjvdlxh2t2GxxUMfP9HS7YpQ3A5Kut20tNk7iptIcAGs772IvcLfX36 6Z0zAn8HoCBZbkILL3EqiNIrMOvHk+s9fTmWxk1V/5dBBqeT+OxsijqEYGGdjAP7oI 56nHXhiI3hgOg== Date: Sat, 14 Oct 2023 09:28:24 +0200 From: Simon Horman To: Edward AD Cc: bpf@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzbot+225bfad78b079744fd5e@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH] media: imon: fix stall in worker_thread Message-ID: <20231014072824.GU29570@kernel.org> References: <20231013105909.GC29570@kernel.org> <20231014035114.1057686-2-twuufnxlz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231014035114.1057686-2-twuufnxlz@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 14 Oct 2023 00:28:36 -0700 (PDT) On Sat, Oct 14, 2023 at 11:51:15AM +0800, Edward AD wrote: > On Fri, 13 Oct 2023 12:59:09 +0200 Simon Horman wrote: > > The code is already switching based on urb->status, > > so unless the warning message is really desired, > > perhaps this is more appropriate? > > > > diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c > > index 74546f7e3469..0e2f06f2f456 100644 > > --- a/drivers/media/rc/imon.c > > +++ b/drivers/media/rc/imon.c > > @@ -1799,6 +1799,7 @@ static void usb_rx_callback_intf1(struct urb *urb) > > > > switch (urb->status) { > > case -ENOENT: /* usbcore unlink successful! */ > > + case -EPROTO: /* XXX: something goes here */ > > return; > > > > case -ESHUTDOWN: /* transport endpoint was shut down */ > > Hi Simon Horman, > > Who added the above code where? Maybe I misunderstand your question but I am suggesting the above change as an alternative approach.