Received: by 2002:ac8:4892:0:b0:41c:c224:f26f with SMTP id i18csp826083qtq; Thu, 19 Oct 2023 13:32:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVAJfIigm/gOEzO+CgDbPxedc2GUjE8c8bfKJGtOkXa3q+DDQ+c/4s7xIvvv0vO3nBJRG8 X-Received: by 2002:a17:903:138f:b0:1c9:d8b6:e7ad with SMTP id jx15-20020a170903138f00b001c9d8b6e7admr3347211plb.56.1697747573140; Thu, 19 Oct 2023 13:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697747573; cv=none; d=google.com; s=arc-20160816; b=W6F6hu4i9kCCtVN1CCZ0LRA7wnlPblpSwonHbo498U680aCPM9baOeIzKY4v/qdxUq b+vg+aGfSozXqV2891PYQd8LhVb1eyL3KvblaffpR2nDcBoQIMCXWtBdBPwB0ggIMfQX pZLEbZLXffRGx6qy3CSrRBCn638XiIQ83vTkXhz3aAXjAgv3t+n3FX0gQbX+WWuVhqAX /JEEvcrdJFlZbsTSswG/diovj0QepCeom9Vt8h8URo1nNHngkLfQ1InjGfrFDfwuUlm8 AMfkJpGN32uhKzqhIe+FXy6Y4yNKKeUZUUEtoEkSjIXA1Xjw+BbL9moXhwA9ZLwR8INm j9Cw== 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=MTm5i15lNMqvh/ySxseUF4qjOUZYREq76t23O2Xaa8U=; fh=VCbF2t0WGdvn7mwXE5w5/xn/evvZPhd2Y+oajdPU640=; b=IXwQ9+x/PeYivN7xXZhaW6tRTgrS73CwC8TpwixtlY0g1ybwGl0AOFW3RFgHnvsY4S c3/d1pTnPpUzwmljwwIBCQej2FDn2DAwydcyKc2zy+hYtZ5TqrAJjEwxZtNzIzR9jyJu 7Hq1Lhu2sjy3i6AYoaJlOB1sEVksVmA4cDNRY8ztFUQfgIe9W6spUSf5M8wIxq6Fxhll zyEspwDIaNzfKMidrs9sUhly+mBnRNpp9b5Tndqt7qHxWJTyjPDuc0VnHWVN343qxS0G miaBzguzfszE2j+pANRcTIyyfUSD28asZtpsBgOtXiSu6/zF7MtZ188zPtfl2b8Kr9kN N97Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TlHRTyqc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id b19-20020a170902ed1300b001c9d9050b37si253030pld.260.2023.10.19.13.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 13:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TlHRTyqc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8B0EE8260FB5; Thu, 19 Oct 2023 13:32:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346397AbjJSUcg (ORCPT + 99 others); Thu, 19 Oct 2023 16:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbjJSUce (ORCPT ); Thu, 19 Oct 2023 16:32:34 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E16116; Thu, 19 Oct 2023 13:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697747552; x=1729283552; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OSAcALiopd2/KG7f+4neIMz5XaB38UH5mNVjgH1UBNY=; b=TlHRTyqcq6mO0wrRGR6bDidxdaQg7FhT9uMQ9vJ93xpVOF3QWWbs5qDD Wt2b9T3vhn1x3acerxcjoaX8ls6P59HGtVwwXPFjfHB+iVh/VePj193Ic qENgSH+urelXZ+ViYFdSome0pLfDmfoPZm8rzv7X//Y05vcIXfa3jE8uv GO/TSo5unsgZsEI4P7jYJTliFVlaiwy2yzDB0GRw0lGZfm+aqxLt4GT9+ 9qHCShelVBHMuPTcQW61ODFNEeb3oa5rD7qqzU2NsUR4Pg3YmUFMTQlDk KWSyxrq0uqmbkqLhxJj1Mwt39/4z1h0xIbTkPGSW/QymLRiqOUA1Fnu2J w==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="366595946" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="366595946" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2023 13:32:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="827476366" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="827476366" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 19 Oct 2023 13:32:29 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qtZgx-0002ZV-0f; Thu, 19 Oct 2023 20:32:27 +0000 Date: Fri, 20 Oct 2023 04:32:09 +0800 From: kernel test robot To: Avichal Rakesh , dan.scally@ideasonboard.com, gregkh@linuxfoundation.org, laurent.pinchart@ideasonboard.com, m.grzeschik@pengutronix.de Cc: oe-kbuild-all@lists.linux.dev, etalvala@google.com, jchowdhary@google.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v6 4/4] usb: gadget: uvc: Fix use-after-free for inflight usb_requests Message-ID: <202310200457.GwPPFuHX-lkp@intel.com> References: <20231019185319.2714000-5-arakesh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231019185319.2714000-5-arakesh@google.com> 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 19 Oct 2023 13:32:50 -0700 (PDT) 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 vim +231 drivers/usb/gadget/function/uvc_video.c 225 226 /* -------------------------------------------------------------------------- 227 * Request handling 228 */ 229 230 /** > 231 * Must be called with req_lock held as it modifies the list ureq is held in 232 */ 233 static void 234 uvc_video_free_request(struct uvc_request *ureq, struct usb_ep *ep) 235 { 236 sg_free_table(&ureq->sgt); 237 if (ureq->req && ep) { 238 usb_ep_free_request(ep, ureq->req); 239 ureq->req = NULL; 240 } 241 242 kfree(ureq->req_buffer); 243 ureq->req_buffer = NULL; 244 245 if (!list_empty(&ureq->list)) 246 list_del_init(&ureq->list); 247 248 kfree(ureq); 249 } 250 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki