Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1618321rdb; Wed, 20 Sep 2023 14:38:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENN2nSZJJLpAz4UwRCcYeEVW8rE1P1bv2nAoSUDY5tB+Trs2jJYRGZHugKTuMz+hKGfeYd X-Received: by 2002:a05:6358:50cc:b0:133:a55:7e26 with SMTP id m12-20020a05635850cc00b001330a557e26mr5201932rwm.7.1695245905455; Wed, 20 Sep 2023 14:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695245905; cv=none; d=google.com; s=arc-20160816; b=ZeQ7p0ipOqTUk4/5BDp46j5H09t++XJYK0xYAfHyFP9NKOKOx7uEo8pLRD73NB/7UX 6sJ/tRmFDxSaDjqS4+bed9oD3bSUG3+chfh6nzV1YBr08AEJ7FGGdxxd0cvEuoxirlda ep5Knbg0uxoOdzkVf/auidCUdKU5ahmWqZfD7nW3p1+NIMJZYNcoejIOzq5Dv/3rac4B DtnJtFEzR3jLn98ylNzMSTRFymmRtgIO2oNmSuS3bcUxWEj4FDUqC1kK/8TUOcaXQP9p FANhE7aT1he3LltpUdFTW3W8TgDkwqZuFpmym5xLCb5mCEs5xvwMA876SemGXRfkoXfu NlxA== 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=hyUMpPEyDiZY7wyE5areNjz35u8+R0Mvu9nJZelG3dQ=; fh=UvIAk0VfBTKvHqkSQ9ajxpfAmdZCmgd+lf7e4ruPMao=; b=j7cHhkh+ZEn5svSKPT5REPjEARR567+7OpcW8aL17JtJN8n9Obf4VcvnmdQFrhUc+i Lviys34g9Yu6j6eir9svp7Fnf6ISdYQXvQAzF5cGMq/hS4xSHv0/cIUp6XteAXVwfAy4 o0Cum2j/nizUan73DtJbJvvlyXq4NOGaoGEbzRXUMVO7xQ0GRQeNmktDxa9kbvXtotjC 9WlA3Lh0qduyAwMETYFWRN9AMOnZ7zEKBxQyUOPa0mcoa2ptsxPe1FL36YJ7r6fFbxka W7NYOMOaQcbL8hcZ2qWRGR+s+bbEt4zGd2199RLYAfR+pU7J4Hnv5pMIPr0q0n9YCBb7 JxAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S+nDyxED; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bg26-20020a056a02011a00b00578cbee11easi3093120pgb.9.2023.09.20.14.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 14:38:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S+nDyxED; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 4DD6981BB18D; Wed, 20 Sep 2023 11:36:15 -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 S229587AbjITSgO (ORCPT + 99 others); Wed, 20 Sep 2023 14:36:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjITSgO (ORCPT ); Wed, 20 Sep 2023 14:36:14 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 987DBCA; Wed, 20 Sep 2023 11:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695234966; x=1726770966; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=a8ELTmMI9Unx8eS9T0XpqRrj0jV6ZoJovZMopr1k63g=; b=S+nDyxEDd2+YrrUbKdk+BFtwu7LlgQ0UzgB/ThPzwk+hUuFWwxJdVOmT JGObeSHAd9exXU5kf8WmfXsZU5mm6zapW0ciojwTWLO2AjtqeVpb7JoWP dt/YXDuH+1e5w256Ihb5KOqwM4tEgffApOf9Ct7t5ww5kkBEF90V9mRKZ 3waHRlxlXj7A6PNPWBFVhwpJGuBLAUdpmjKjruAedt0kzkUH2m/EHXMv5 Oq6Wt65d+ypCoIl7xz1xFCGfjhmm7hVAU3+WWQhoLPt7mkUtU4qGJI2mb eMzraEvtoUOu+AJBJDb9sP07dzCs9s1zDb0aynZ6me6AuVxHg0FNKeXbB g==; X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="360558046" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="360558046" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 11:36:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="890047778" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="890047778" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 20 Sep 2023 11:35:15 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qj23O-00092C-1r; Wed, 20 Sep 2023 18:36:02 +0000 Date: Thu, 21 Sep 2023 02:35:11 +0800 From: kernel test robot To: Javier Carrasco , Dmitry Torokhov Cc: oe-kbuild-all@lists.linux.dev, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Carrasco , syzbot+0434ac83f907a1dbdd1e@syzkaller.appspotmail.com Subject: Re: [PATCH] Input: powermate - fix use-after-free in powermate_config_complete Message-ID: <202309210232.d7MpKEIm-lkp@intel.com> References: <20230916-topic-powermate_use_after_free-v1-1-2ffa46652869@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230916-topic-powermate_use_after_free-v1-1-2ffa46652869@gmail.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 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]); Wed, 20 Sep 2023 11:36:15 -0700 (PDT) Hi Javier, kernel test robot noticed the following build errors: [auto build test ERROR on 0bb80ecc33a8fb5a682236443c1e740d5c917d1d] url: https://github.com/intel-lab-lkp/linux/commits/Javier-Carrasco/Input-powermate-fix-use-after-free-in-powermate_config_complete/20230917-052943 base: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d patch link: https://lore.kernel.org/r/20230916-topic-powermate_use_after_free-v1-1-2ffa46652869%40gmail.com patch subject: [PATCH] Input: powermate - fix use-after-free in powermate_config_complete config: powerpc-ppc6xx_defconfig (https://download.01.org/0day-ci/archive/20230921/202309210232.d7MpKEIm-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230921/202309210232.d7MpKEIm-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/202309210232.d7MpKEIm-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/input/misc/powermate.c: In function 'powermate_config_complete': >> drivers/input/misc/powermate.c:201:21: error: 'status' undeclared (first use in this function); did you mean 'kstatfs'? 201 | if (status == -ENOENT || status == -ESHUTDOWN) | ^~~~~~ | kstatfs drivers/input/misc/powermate.c:201:21: note: each undeclared identifier is reported only once for each function it appears in vim +201 drivers/input/misc/powermate.c 192 193 /* Called when our asynchronous control message completes. We may need to issue another immediately */ 194 static void powermate_config_complete(struct urb *urb) 195 { 196 struct powermate_device *pm = urb->context; 197 unsigned long flags; 198 199 if (urb->status) { 200 printk(KERN_ERR "powermate: config urb returned %d\n", urb->status); > 201 if (status == -ENOENT || status == -ESHUTDOWN) 202 return; 203 } 204 205 spin_lock_irqsave(&pm->lock, flags); 206 powermate_sync_state(pm); 207 spin_unlock_irqrestore(&pm->lock, flags); 208 } 209 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki