Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 AE2A621C9ED for ; Thu, 21 Aug 2025 06:04:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755756292; cv=none; b=OMBBIZI8Ah+l5F9HnlKY44zjBDdvMvp98hqlqT/yfIG2AlhvL0FAceMCbcVJIgmXt+GHvynWn87HnUM2P+ai9CtDxloMCElfxdjd8Qz94GhCDYpnjF8zq5A7O7s56Zuhx4nfO3zKbiPT897U14udzVZ5zYeFa1ZwrFYA9TFPBBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755756292; c=relaxed/simple; bh=6jSvasqbDn198/wQE2YXzLyPHVkpsBehjoM1v63Yp84=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PTvQ8cJ/TEHXFaHAH5E5C/WNyDBoKiXej87M0RwgkjqGwHTTexXq8nlrBDhFGuzwk05SiMUF04BrIAao8xBA5JiKUGhVEBP2dBijU0BZgE7oJ1zt9KU7JD+5+39U6kQ2bMcMRV77ESLfvxUy7mRF1tcuTlA/FzZdsVEKwJtTXGg= 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=h/I+eDK8; arc=none smtp.client-ip=192.198.163.17 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="h/I+eDK8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1755756290; x=1787292290; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6jSvasqbDn198/wQE2YXzLyPHVkpsBehjoM1v63Yp84=; b=h/I+eDK8Rme2J+TIk3PtolYUzD1KaWJY8SaLoP17oYMkwf9w/MRdUg1w Q0IMGxW3zwagNfw+/1GkYkAv0B1xpCVLe98kuMTWO380Hhnufp3wbfX6J tdhhOVw6Qdv5Z4rdeiaxjwVqTKFAQMbfojzGZBy4+zxYNB2774Wt52zv8 7RhGoqfKiZzhP7IMuxzCw+QKc/GFhDKxKAqIv1vYZZIaydh1CSR38IT9Z wUpu0yRvKv9yUZ/DTO22QJWzujDB29EtYA0Y+TSBxsBzzBC/0aMQC4nBp 4yE5JTtZXNuCcKYC3KgQKKdGQ+ieTxIlc+FshtMjJIT0dY989O6A8s+Cp w==; X-CSE-ConnectionGUID: lvOVflQ+RvCMCvb05fVQLA== X-CSE-MsgGUID: oLhs21EBTVSFK2RHLI/tpg== X-IronPort-AV: E=McAfee;i="6800,10657,11527"; a="57960836" X-IronPort-AV: E=Sophos;i="6.17,306,1747724400"; d="scan'208";a="57960836" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2025 23:04:50 -0700 X-CSE-ConnectionGUID: E52xw2KITl2K6qHxKZPPww== X-CSE-MsgGUID: AFhJpI0CQSOoyM51GquDJg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,306,1747724400"; d="scan'208";a="168682080" Received: from lkp-server02.sh.intel.com (HELO 4ea60e6ab079) ([10.239.97.151]) by fmviesa008.fm.intel.com with ESMTP; 20 Aug 2025 23:04:49 -0700 Received: from kbuild by 4ea60e6ab079 with local (Exim 4.96) (envelope-from ) id 1uoyPn-000JzL-04; Thu, 21 Aug 2025 06:04:47 +0000 Date: Thu, 21 Aug 2025 14:03:48 +0800 From: kernel test robot To: Sebastian Andrzej Siewior Cc: oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH nf-next v2 3/3] netfilter: nft_set_pipapo: Use nested-BH locking for nft_pipapo_scratch Message-ID: <202508211441.Q4fISzKv-lkp@intel.com> References: <20250815160937.1192748-4-bigeasy@linutronix.de> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250815160937.1192748-4-bigeasy@linutronix.de> Hi Sebastian, kernel test robot noticed the following build warnings: [auto build test WARNING on netfilter-nf/main] [also build test WARNING on linus/master v6.17-rc2 next-20250820] [cannot apply to nf-next/master horms-ipvs/master] [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/Sebastian-Andrzej-Siewior/netfilter-nft_set_pipapo-Store-real-pointer-adjust-later/20250816-001334 base: https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git main patch link: https://lore.kernel.org/r/20250815160937.1192748-4-bigeasy%40linutronix.de patch subject: [PATCH nf-next v2 3/3] netfilter: nft_set_pipapo: Use nested-BH locking for nft_pipapo_scratch config: x86_64-randconfig-r122-20250821 (https://download.01.org/0day-ci/archive/20250821/202508211441.Q4fISzKv-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250821/202508211441.Q4fISzKv-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/202508211441.Q4fISzKv-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> net/netfilter/nft_set_pipapo_avx2.c:1176:24: sparse: sparse: Using plain integer as NULL pointer vim +1176 net/netfilter/nft_set_pipapo_avx2.c 1134 1135 /** 1136 * nft_pipapo_avx2_lookup() - Lookup function for AVX2 implementation 1137 * @net: Network namespace 1138 * @set: nftables API set representation 1139 * @key: nftables API element representation containing key data 1140 * 1141 * For more details, see DOC: Theory of Operation in nft_set_pipapo.c. 1142 * 1143 * This implementation exploits the repetitive characteristic of the algorithm 1144 * to provide a fast, vectorised version using the AVX2 SIMD instruction set. 1145 * 1146 * Return: true on match, false otherwise. 1147 */ 1148 const struct nft_set_ext * 1149 nft_pipapo_avx2_lookup(const struct net *net, const struct nft_set *set, 1150 const u32 *key) 1151 { 1152 struct nft_pipapo *priv = nft_set_priv(set); 1153 const struct nft_set_ext *ext = NULL; 1154 struct nft_pipapo_scratch *scratch; 1155 u8 genmask = nft_genmask_cur(net); 1156 const struct nft_pipapo_match *m; 1157 const struct nft_pipapo_field *f; 1158 unsigned long *res, *fill, *map; 1159 const u8 *rp = (const u8 *)key; 1160 bool map_index; 1161 int i; 1162 1163 local_bh_disable(); 1164 1165 if (unlikely(!irq_fpu_usable())) { 1166 ext = nft_pipapo_lookup(net, set, key); 1167 1168 local_bh_enable(); 1169 return ext; 1170 } 1171 1172 m = rcu_dereference(priv->match); 1173 scratch = *raw_cpu_ptr(m->scratch); 1174 if (unlikely(!scratch)) { 1175 local_bh_enable(); > 1176 return false; 1177 } 1178 __local_lock_nested_bh(&scratch->bh_lock); 1179 /* Note that we don't need a valid MXCSR state for any of the 1180 * operations we use here, so pass 0 as mask and spare a LDMXCSR 1181 * instruction. 1182 */ 1183 kernel_fpu_begin_mask(0); 1184 1185 map_index = scratch->map_index; 1186 map = NFT_PIPAPO_LT_ALIGN(&scratch->__map[0]); 1187 res = map + (map_index ? m->bsize_max : 0); 1188 fill = map + (map_index ? 0 : m->bsize_max); 1189 1190 pipapo_resmap_init_avx2(m, res); 1191 1192 nft_pipapo_avx2_prepare(); 1193 1194 next_match: 1195 nft_pipapo_for_each_field(f, i, m) { 1196 bool last = i == m->field_count - 1, first = !i; 1197 int ret = 0; 1198 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki