Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2794491lqz; Wed, 3 Apr 2024 08:48:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLeHfcY6nuUxXl2GIbLO7tUPsaO1woq/tsYXhrAG7a+NX+/fOIkTMgy1AhecfUb2qF0ecrIFY1jzBq6ex2LG7Rap8MgnpUiUQ2oZY1yw== X-Google-Smtp-Source: AGHT+IHp8Tg1Z/FtmVlXwkZ5nDVVXzb+VZnx9U86W/xMi2+azsvQGnbqHhea2Dm45nolx2DqeKyC X-Received: by 2002:a17:90b:19d2:b0:2a2:6248:6bc1 with SMTP id nm18-20020a17090b19d200b002a262486bc1mr5004496pjb.34.1712159294745; Wed, 03 Apr 2024 08:48:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712159294; cv=pass; d=google.com; s=arc-20160816; b=UlkhvSCQN3B1YJAeCUPW8y2aLD9wtvZYaSHuBXfseCfIMYIvpb+Sm9W/B3doWg7Yfs oue7ko/2SdxWJnudQqYJYt9qqxd2IiPQ9+SoR5N4Zk2GdLpR/4USTvN84bPkEcnxV642 nvP/2J+IfMsoosg++HXpGFcvzt04CmTfmTSmpd3TBkzV5EdpVRVm3hnIidTU0r3CWPva jOpkwrSqcV/rRi1lK256IhJMmPM2Q2ZuianGh+6qgzUZU6FXRxpJsWOop22NCDQF3C0I vMTxzCWPe9/tviqmHYgg/xgGfxGgYlwG9OodwPwxWTZtpKTpis1vGue8eL/IRw3gE14v AUoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9bJPZ68y+WoBvBEFGbA8GINcR70+x4otoaIhrnEg9zU=; fh=/P1yPpO+gNaCjTiHfAZ0sYa8Ocn7s2USUBjTWYtdOMU=; b=P/NXqL9uSwhIeR+PYYA5/w0fsTEuFAHKEclpQlefDvxn8/KNVeRWb5J/FTpvL0IGug QS9pRyceNn/fTxv2C4ttyaS6DkemonCedI8x/a7XMSTWpUOFPLLeRyKKbJxc9tKY574m 5K7xY/dD0lyzDwG/CNNdJJnlK4fcnPE/j7rWjAmt1/qu/3Niufrd4bxUFs5kb3Qb0m+V XTXdpPNIdmjZDhq4ozPbncm3wNNoF9/CvR0b2OC8RskGxDR3vZlj8eSQiBDjSm6wggut kZ9/gYDdtoyLfXRbe+av+7NxDFNKT6u0CovCJUBZpzd444Xm6oWh7A+esZDHjRYdPBSk VaIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lSQvN18p; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-130122-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p14-20020a17090b010e00b0029ba35e520bsi15545647pjz.78.2024.04.03.08.48.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:48:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130122-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lSQvN18p; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-130122-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 26E9A282416 for ; Wed, 3 Apr 2024 15:48:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8124C14A616; Wed, 3 Apr 2024 15:48:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lSQvN18p" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2123143869; Wed, 3 Apr 2024 15:47:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712159279; cv=none; b=WysVQ44QwEJc9J4QjbI4/PORqp6Zz7kEJTcnGdmew41NM8ZR2WS5j+tHtzJz2aSdLIbQAFrW8WlxYF/a4iyCqFDN3M3Dbmg9p4wh25ECUSVIdFh84Nf0zV7TojfioywbzSJYSRt9faNCi4F29lqdayyv8H7Wv86PpuBBA0/L030= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712159279; c=relaxed/simple; bh=wzzfIE273kK/KSd802a4HQaAZTBLYE4XpaXSQtu0YcQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BOomeMP0keHlgo1rG9LCnF1zGva4jCylnAByYW4Cdi7/Yu/bfJ1uRWdFGY8p5D8BGvFK0q1y9Z4cqM9++QfiJXMT0hrR8RWNTBfHCUTMSYP8V3Wjde96zU+szcdeQjyNrI9HoCh98VYyeOGVcwcIYfk0B+CdS5TTBbeazfImsc4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lSQvN18p; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712159279; x=1743695279; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wzzfIE273kK/KSd802a4HQaAZTBLYE4XpaXSQtu0YcQ=; b=lSQvN18pfmZNZ3cQe6C7SnKzJuLykRjKjBO4ByNAXzelSvsj+wKuVU/V Dedv5/DtBF9R5hBkPIi3UaEbFa4oXMnd040+OeurcTsgfKV2s0xUI08yq L89vhS/2c9Pu39W5wyD3aKWaGi+6/O/JvjXi9RAIQkQsgtUSKT9+NbztM r559e2WZKNqEACYe2NUP7hnIY87G1bees6y87uOzY3Crgn6nOZ+Cu/d8F J+K3IS1SmPHMyI/GEzeUqiKEN2p1JMmAE+kbPP9kieJax1o4bcn4ULO9W BgRYlHjsn3ZOj0zp4NN3Q63Sh3j5GQy/3gbh1WFpWwnonp1KBgQK/uXvf w==; X-CSE-ConnectionGUID: UGoyrI8bQwGV7sTXj+muHg== X-CSE-MsgGUID: I6q8bCmeTzykcBlCN96BsA== X-IronPort-AV: E=McAfee;i="6600,9927,11033"; a="18558390" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18558390" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 08:47:58 -0700 X-CSE-ConnectionGUID: xFH3pTNqRYKDyd2CjLd83Q== X-CSE-MsgGUID: fkgl5cVSTnqwRuFhVMznNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18397626" Received: from lkp-server02.sh.intel.com (HELO 90ee3aa53dbd) ([10.239.97.151]) by fmviesa010.fm.intel.com with ESMTP; 03 Apr 2024 08:47:54 -0700 Received: from kbuild by 90ee3aa53dbd with local (Exim 4.96) (envelope-from ) id 1rs2q7-0002Mc-2t; Wed, 03 Apr 2024 15:47:51 +0000 Date: Wed, 3 Apr 2024 23:40:32 +0800 From: kernel test robot To: Vinicius Costa Gomes , brauner@kernel.org, amir73il@gmail.com, hu1.chen@intel.com Cc: oe-kbuild-all@lists.linux.dev, miklos@szeredi.hu, malini.bhandaru@intel.com, tim.c.chen@intel.com, mikko.ylinen@intel.com, lizhen.you@intel.com, linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Vinicius Costa Gomes Subject: Re: [PATCH v1 2/3] fs: Optimize credentials reference count for backing file ops Message-ID: <202404032344.SKdrnkhI-lkp@intel.com> References: <20240403021808.309900-3-vinicius.gomes@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240403021808.309900-3-vinicius.gomes@intel.com> Hi Vinicius, kernel test robot noticed the following build warnings: [auto build test WARNING on brauner-vfs/vfs.all] [also build test WARNING on linus/master v6.9-rc2 next-20240403] [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/Vinicius-Costa-Gomes/cred-Add-a-light-version-of-override-revert_creds/20240403-101954 base: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.all patch link: https://lore.kernel.org/r/20240403021808.309900-3-vinicius.gomes%40intel.com patch subject: [PATCH v1 2/3] fs: Optimize credentials reference count for backing file ops config: i386-randconfig-061-20240403 (https://download.01.org/0day-ci/archive/20240403/202404032344.SKdrnkhI-lkp@intel.com/config) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240403/202404032344.SKdrnkhI-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/202404032344.SKdrnkhI-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) fs/backing-file.c: note: in included file (through include/linux/sched/signal.h, include/linux/rcuwait.h, include/linux/percpu-rwsem.h, ...): >> include/linux/cred.h:182:41: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const *old @@ got struct cred const [noderef] __rcu *cred @@ include/linux/cred.h:182:41: sparse: expected struct cred const *old include/linux/cred.h:182:41: sparse: got struct cred const [noderef] __rcu *cred >> include/linux/cred.h:182:41: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const *old @@ got struct cred const [noderef] __rcu *cred @@ include/linux/cred.h:182:41: sparse: expected struct cred const *old include/linux/cred.h:182:41: sparse: got struct cred const [noderef] __rcu *cred >> include/linux/cred.h:182:41: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const *old @@ got struct cred const [noderef] __rcu *cred @@ include/linux/cred.h:182:41: sparse: expected struct cred const *old include/linux/cred.h:182:41: sparse: got struct cred const [noderef] __rcu *cred >> include/linux/cred.h:182:41: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const *old @@ got struct cred const [noderef] __rcu *cred @@ include/linux/cred.h:182:41: sparse: expected struct cred const *old include/linux/cred.h:182:41: sparse: got struct cred const [noderef] __rcu *cred >> include/linux/cred.h:182:41: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const *old @@ got struct cred const [noderef] __rcu *cred @@ include/linux/cred.h:182:41: sparse: expected struct cred const *old include/linux/cred.h:182:41: sparse: got struct cred const [noderef] __rcu *cred vim +182 include/linux/cred.h 58319057b78476 Andy Lutomirski 2015-09-04 174 dd60a254548056 Vinicius Costa Gomes 2024-04-02 175 /* dd60a254548056 Vinicius Costa Gomes 2024-04-02 176 * Override creds without bumping reference count. Caller must ensure dd60a254548056 Vinicius Costa Gomes 2024-04-02 177 * reference remains valid or has taken reference. Almost always not the dd60a254548056 Vinicius Costa Gomes 2024-04-02 178 * interface you want. Use override_creds()/revert_creds() instead. dd60a254548056 Vinicius Costa Gomes 2024-04-02 179 */ dd60a254548056 Vinicius Costa Gomes 2024-04-02 180 static inline const struct cred *override_creds_light(const struct cred *override_cred) dd60a254548056 Vinicius Costa Gomes 2024-04-02 181 { dd60a254548056 Vinicius Costa Gomes 2024-04-02 @182 const struct cred *old = current->cred; dd60a254548056 Vinicius Costa Gomes 2024-04-02 183 dd60a254548056 Vinicius Costa Gomes 2024-04-02 184 rcu_assign_pointer(current->cred, override_cred); dd60a254548056 Vinicius Costa Gomes 2024-04-02 185 return old; dd60a254548056 Vinicius Costa Gomes 2024-04-02 186 } dd60a254548056 Vinicius Costa Gomes 2024-04-02 187 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki