Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1763285rda; Tue, 24 Oct 2023 02:28:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IECdjQUcsTfRxdpuQIzg/n9aBYF0UOIX+0kZqp1Oez4IX3gE0cOJpNQ/6kr+Xd9g9e8J1ob X-Received: by 2002:a05:6808:150a:b0:3a3:4314:8dc0 with SMTP id u10-20020a056808150a00b003a343148dc0mr13018818oiw.5.1698139698894; Tue, 24 Oct 2023 02:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698139698; cv=none; d=google.com; s=arc-20160816; b=isbaaokbJeNTsoxFsgy96697J/K9Nqfx2ohIRs/2RVz3o6cWuJgw8PV34rzacVNqlf v+MhAgS6uZCxvcLqM/QAQV/eiS5b0mj1ZcYpKnbFLEXC15cjVjhAXv/Vc3nP1bxWLg8p u4GYrBPM43KVk3LUZsIg+7uL8M0aPPlxVLY6t5UI+zDXwyaL6gNMkgBbBR0BNQhhLj0T AlOcmherfcDpQ/x/4axwLbmAD+NFdNtt0M/jKULlTpv13SEzIB+AAXVWoYfNN/h3xJdD v1dAIixRPJwi8mDstdm0p9zqv1bep8nc2RHw6YzHu0itrFn4ynN61qc1MwYaX5Oa8VfX qVpQ== 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=FuGFCIK1nhbGcQyq53qTqDsgAx/Z8b//dKvCeMmZG2g=; fh=IB3SroHvdQUqPzIa5v2mdFk+ZwdiiUZ9U7NcU9NGZNE=; b=oII7AIIpUDazDLJpfHH8cs9j01WypQxsTdYptjedQFlJTgxl7hMDaM3g+jcQqWml/X FuVw+7NcQHMQW3VjHnANzEAtKFRDAf4Xk8g1oaClsApovlXUihalM6RJQ3igidlHaRkP uXFXZKwyZpBpT/ejWWyOlHni1avFQtHDgki7sZVA1vX5/IrC1C+NNTve6Qc0EEpy2z/j 4E+HMb86TM5rbfkFGgbg7FSmzVJzVOi2jYtwXs4C/RRDLmBwGQ3dH8S6CPGqvv0MFl3o 9qDCcnls2RzAeXPoJVqSXbz9zFTxd7AjjzqUDCGw2cv3nx9RrZRICoZUsT1g1Wb9bDkY T9SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R3F3xzwT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w63-20020a638242000000b00563dfffe7b9si8276116pgd.810.2023.10.24.02.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:28:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R3F3xzwT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 28D24806E3C1; Tue, 24 Oct 2023 02:28:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234136AbjJXJ2C (ORCPT + 99 others); Tue, 24 Oct 2023 05:28:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234193AbjJXJ1p (ORCPT ); Tue, 24 Oct 2023 05:27:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 651BD1739 for ; Tue, 24 Oct 2023 02:27:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 809DBC433C9; Tue, 24 Oct 2023 09:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698139638; bh=+OZ/RtjQyCJCTnws85wXqbhd+IrZjqPDKhLQnwiy5A8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R3F3xzwTzUU3+OaJD4RWUKFcrtjlg/tBftpB0s9sG7U9ER3EIot2eDOCkH8HJbvYb PLBrd9bTbcF3dwATX3GHgxjZ18OSFkXPpZyizvyO6Pjpk0IxGuUqrwzRC/uwJckDD0 oCODsYu4x/dps3+7MgIie741cEhzX9TyEo+hEP+g= Date: Tue, 24 Oct 2023 11:27:16 +0200 From: Greg KH To: Avichal Rakesh Cc: etalvala@google.com, jchowdhary@google.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dan.scally@ideasonboard.com, laurent.pinchart@ideasonboard.com, m.grzeschik@pengutronix.de Subject: Re: [PATCH v6 4/4] usb: gadget: uvc: Fix use-after-free for inflight usb_requests Message-ID: <2023102440-retaining-eskimo-92b0@gregkh> References: <20231019185319.2714000-5-arakesh@google.com> <202310200457.GwPPFuHX-lkp@intel.com> <738df245-e7d1-4fc0-9076-3ac5afebaa44@google.com> <2023102103-casually-wavy-6a54@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 24 Oct 2023 02:28:16 -0700 (PDT) On Mon, Oct 23, 2023 at 02:25:30PM -0700, Avichal Rakesh wrote: > On Sat, Oct 21, 2023 at 3:05 AM Greg KH wrote: > > > > On Thu, Oct 19, 2023 at 03:30:00PM -0700, Avichal Rakesh wrote: > > > > > > > > > On 10/19/23 13:32, kernel test robot wrote: > > > > Hi Avichal, > > > > > > > > kernel test robot noticed the following build warnings: > > > > > > > > [auto build test WARNING on usb/usb-testing] > > > > [also build test WARNING on usb/usb-next usb/usb-linus linus/master v6.6-rc6 next-20231019] > > > > [If your patch is applied to the wrong git tree, kindly drop us a note. > > > > And when submitting patch, we suggest to use '--base' as documented in > > > > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > > > > > > > url: https://github.com/intel-lab-lkp/linux/commits/Avichal-Rakesh/usb-gadget-uvc-prevent-use-of-disabled-endpoint/20231020-025512 > > > > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing > > > > patch link: https://lore.kernel.org/r/20231019185319.2714000-5-arakesh%40google.com > > > > patch subject: [PATCH v6 4/4] usb: gadget: uvc: Fix use-after-free for inflight usb_requests > > > > config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231020/202310200457.GwPPFuHX-lkp@intel.com/config) > > > > compiler: m68k-linux-gcc (GCC) 13.2.0 > > > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231020/202310200457.GwPPFuHX-lkp@intel.com/reproduce) > > > > > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > > > the same patch/commit), kindly add following tags > > > > | Reported-by: kernel test robot > > > > | Closes: https://lore.kernel.org/oe-kbuild-all/202310200457.GwPPFuHX-lkp@intel.com/ > > > > > > > > All warnings (new ones prefixed by >>): > > > > > > > >>> drivers/usb/gadget/function/uvc_video.c:231: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst > > > > * Must be called with req_lock held as it modifies the list ureq is held in > > > > > > > > > > > > > > Greg, apologies for the newb question: do you want me to upload > > > the fix for this as a reply to [PATCH v6 4/4], or upload a new chain of > > > v7s with this patch fixed? > > > > A whole new v7 series please. > > > > Had a feeling, so sent out v7 series preemptively. Let me know if that > doesn't work. > > v7: https://lore.kernel.org/20231020173626.2978356-1-arakesh@google.com/ I have already dropped that from my review queue as your emails crossed with that, so I thought it was obsolete by now, sorry. Can you send a v8 please? thanks, greg k-h