Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp14015rdb; Fri, 15 Dec 2023 20:45:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGftZS+HkThgKle2+ibJb9YwJQfh3w1OIgJ9gsWehvrg1PAAOCcMrkM05M98Xc1FfXY+aN X-Received: by 2002:a17:903:1207:b0:1d0:b790:2fc0 with SMTP id l7-20020a170903120700b001d0b7902fc0mr12013740plh.67.1702701906769; Fri, 15 Dec 2023 20:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702701906; cv=none; d=google.com; s=arc-20160816; b=NzvtfTxIREH2SyINRwqwRjljwhgMwj4+M6tNFsZngmFQhXPtHXq63cDexZtCKlckPm OoePPDBNC5QMJC/UIrEeU7MnVTb6Gli4OFUf2bKIK6h+eOS1U88ZL+RZD0qo7SsPPNiX LXgIrHM8k5UNdHCOryH5TWN8vlipkuzxzNlXqtp78wEovsOLmGHZLn/GtBq21tyMBzBv oag2xB0yzwxNnbCDIQ6sB7ugcI9TcCanIrROaWvLCf9u3bjgM0Le+tvPC6fjj8giwzim FC3MsjMxiZHYe2pgTHurNO5y/V4voJsSkCUjQbqEgQ6PKCgtmyIdLJHoLibnN6j0IO8v v/xg== ARC-Message-Signature: i=1; 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=m02I7cMU4+6+aK3dPq8PEjDxqsN0m1B6kt+FRJfFYhc=; fh=55J6YIYrdyDuL7fFvS2JN2SLsaUKU7M822PU1ZZ3Jsw=; b=RLzThbFekJeZiul9wuockVk57Kmz3M/bOeRzYkP3gHt0VJozWrRBPEptjHQkvsZAw/ GhK2DQRkNgl7ANbwUpeKQW9Vpvcx3BNf+F96BNDptUW6G5AVJQ4v14SKg/oColkKshyO KMVT+OgdY6f6UPi2SS1qy0Ch1VXQfKgXdc84HyEQcxv6ltvPuYEhEwo9GdVPbdJ8gLqI WVdGbNOr9Df0/5y75K13LV3dJSrkRtD1mLvoaiflLAfNiKfJtzqXcKtbbwL4whrjDcrY Xa7xv6Emt904jSM7D5GMAciZAelxaoYBh4hUXqKNgy2sxiMgisawjd0HI8GIY9QyMTVG cp/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LIBtbvGL; spf=pass (google.com: domain of linux-kernel+bounces-2075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2075-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o3-20020a170902d4c300b001d376614fa0si3246219plg.607.2023.12.15.20.45.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 20:45:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LIBtbvGL; spf=pass (google.com: domain of linux-kernel+bounces-2075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2075-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 13AC3286F40 for ; Sat, 16 Dec 2023 04:44:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7391E10A3D; Sat, 16 Dec 2023 04:44:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LIBtbvGL" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 283821095F; Sat, 16 Dec 2023 04:44:05 +0000 (UTC) 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=1702701846; x=1734237846; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+wm8O2jpkMg+U4sXAGtL5iG9r74+fI4ciPTlI6TYHbc=; b=LIBtbvGLIFcl8+PUN4aYcWdVABYKoDTc5VDhiMYQYtd3yY4JL2M/Dw3z DS2/ir4qR8AKCkEymt3kz+n9UNRCNwjRPmfTzrsthsLgzRWZXO2eZn76E s5cErn0xbKA1kKmNnHFjuqoXJVIyhV2xTaOonTUN1SCUkQWSIMF2J6n3a nbAiYVjhgNpaif+mMBRjeA/A+HS3U7cvOl/x9OAw0T2DT/JP7u/24TFLV oel2/9q+0z8m/YZiHvm/Q1U/4+jGuEoanwzNuYhneXQtFVBEsc1yXutpH sDDBwXkS1ToH/igcymEeFjr3GXkZSrUFRi9HPMonKKCah8KbaiMqtZAOH A==; X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="2534284" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="2534284" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 20:44:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="898354499" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="898354499" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 15 Dec 2023 20:44:01 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rEMWt-0001AI-0L; Sat, 16 Dec 2023 04:43:59 +0000 Date: Sat, 16 Dec 2023 12:43:23 +0800 From: kernel test robot To: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Boqun Feng , Daniel Borkmann , Eric Dumazet , Frederic Weisbecker , Ingo Molnar , Jakub Kicinski , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon , Sebastian Andrzej Siewior Subject: Re: [PATCH net-next 04/24] net: Use nested-BH locking for napi_alloc_cache. Message-ID: <202312161210.q8xdLxsl-lkp@intel.com> References: <20231215171020.687342-5-bigeasy@linutronix.de> 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: <20231215171020.687342-5-bigeasy@linutronix.de> Hi Sebastian, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Sebastian-Andrzej-Siewior/locking-local_lock-Introduce-guard-definition-for-local_lock/20231216-011911 base: net-next/main patch link: https://lore.kernel.org/r/20231215171020.687342-5-bigeasy%40linutronix.de patch subject: [PATCH net-next 04/24] net: Use nested-BH locking for napi_alloc_cache. config: x86_64-randconfig-121-20231216 (https://download.01.org/0day-ci/archive/20231216/202312161210.q8xdLxsl-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231216/202312161210.q8xdLxsl-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/202312161210.q8xdLxsl-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> net/core/skbuff.c:302:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct local_lock_t [usertype] *l @@ got struct local_lock_t [noderef] __percpu * @@ net/core/skbuff.c:302:38: sparse: expected struct local_lock_t [usertype] *l net/core/skbuff.c:302:38: sparse: got struct local_lock_t [noderef] __percpu * net/core/skbuff.c:331:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct local_lock_t [usertype] *l @@ got struct local_lock_t [noderef] __percpu * @@ net/core/skbuff.c:331:38: sparse: expected struct local_lock_t [usertype] *l net/core/skbuff.c:331:38: sparse: got struct local_lock_t [noderef] __percpu * net/core/skbuff.c:734:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct local_lock_t [usertype] *l @@ got struct local_lock_t [noderef] __percpu * @@ net/core/skbuff.c:734:17: sparse: expected struct local_lock_t [usertype] *l net/core/skbuff.c:734:17: sparse: got struct local_lock_t [noderef] __percpu * net/core/skbuff.c:806:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct local_lock_t [usertype] *l @@ got struct local_lock_t [noderef] __percpu * @@ net/core/skbuff.c:806:9: sparse: expected struct local_lock_t [usertype] *l net/core/skbuff.c:806:9: sparse: got struct local_lock_t [noderef] __percpu * net/core/skbuff.c:1317:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct local_lock_t [usertype] *l @@ got struct local_lock_t [noderef] __percpu * @@ net/core/skbuff.c:1317:38: sparse: expected struct local_lock_t [usertype] *l net/core/skbuff.c:1317:38: sparse: got struct local_lock_t [noderef] __percpu * net/core/skbuff.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/umh.h, include/linux/kmod.h, ...): include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false net/core/skbuff.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/umh.h, include/linux/kmod.h, ...): >> include/linux/local_lock.h:71:1: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct local_lock_t [usertype] * @@ include/linux/local_lock.h:71:1: sparse: expected void const [noderef] __percpu *__vpp_verify include/linux/local_lock.h:71:1: sparse: got struct local_lock_t [usertype] * >> include/linux/local_lock.h:71:1: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct local_lock_t [usertype] * @@ include/linux/local_lock.h:71:1: sparse: expected void const [noderef] __percpu *__vpp_verify include/linux/local_lock.h:71:1: sparse: got struct local_lock_t [usertype] * >> include/linux/local_lock.h:71:1: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct local_lock_t [usertype] * @@ include/linux/local_lock.h:71:1: sparse: expected void const [noderef] __percpu *__vpp_verify include/linux/local_lock.h:71:1: sparse: got struct local_lock_t [usertype] * net/core/skbuff.c: note: in included file (through include/net/net_namespace.h, include/linux/inet.h): include/linux/skbuff.h:2715:28: sparse: sparse: self-comparison always evaluates to false net/core/skbuff.c: note: in included file (through include/linux/skbuff.h, include/net/net_namespace.h, include/linux/inet.h): include/net/checksum.h:33:39: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@ include/net/checksum.h:33:39: sparse: expected restricted __wsum [usertype] sum include/net/checksum.h:33:39: sparse: got unsigned int vim +302 net/core/skbuff.c 296 297 void *__napi_alloc_frag_align(unsigned int fragsz, unsigned int align_mask) 298 { 299 struct napi_alloc_cache *nc = this_cpu_ptr(&napi_alloc_cache); 300 301 fragsz = SKB_DATA_ALIGN(fragsz); > 302 guard(local_lock_nested_bh)(&napi_alloc_cache.bh_lock); 303 304 return page_frag_alloc_align(&nc->page, fragsz, GFP_ATOMIC, align_mask); 305 } 306 EXPORT_SYMBOL(__napi_alloc_frag_align); 307 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki