Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp5229rdb; Fri, 15 Dec 2023 20:13:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzwY8jCEY+JOiaM+ydW3AJutPgVi2zTwLBchiKjdkp2bP9EG8vlX3woMdYCwal2ghntWLq X-Received: by 2002:ad4:5c65:0:b0:67a:a721:b1a9 with SMTP id i5-20020ad45c65000000b0067aa721b1a9mr16294755qvh.100.1702700004855; Fri, 15 Dec 2023 20:13:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702700004; cv=none; d=google.com; s=arc-20160816; b=OYQ9Vv81ql9j1C9cbSGx4DS5yiB5x7DHork0Yk8LTgP8VVClllLtogf7sUxAgo00wj J5N22DT1SMEBP0UCeFxxinb9S/XyPieb+AInGlKhkbGNTDNRSOubo5TXaT7/iGVhW8Ui MEs6ex8MGK/FnGy1ekDts04BH7wq0JHOnY2pz+aPd6XtcNVEu+l2EyVpOSK8wfH6SFAj 6x664wESWPpr1I8jwE0fvRK+uCr3rjL5iRiSpTgs+lFZgK5lafCL2r4VjeMhtKmLaLO8 IlPMqWtGTwKmyOSiwp01kqx7x2vJKqeq11XsNKhn9ZXoxwHnygZCW23NGwv5HS7Mb01P NP7g== 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=pnLru8y4EtfnBE2JJriETNqYpn7GAj8oT6tKZAr7Z8U=; fh=IoQHPDBHhKHegbMDsRI1l3MCbqG8MkheT88HkHlNub0=; b=0YYfa+3ZegMtWdLbcnz02Paa7T5fFwtEtm0UKjTCzDO0HGwZFOit9nlqTHUJjZveAT lI//8s3RN3bcslXKNqG6QB7N6OeOzMECoJYlqCT5fOT1fZbDzZ7j4Es8/Q1ro2jv9JMe Q8d2F47yuP5U7fyZS3aX5wc5vBS6YN9L21ADtqU7/89/x4/Ko/S8eKXzsVQ/A9bMLwrS 13u6yg7MRbazjZeL0+kB9FBUwJjSSwjRQe5bd+ZaKk40eE04wR07FMUaSFrgJjruPmGw iGTHbuQUdlM/pc/mrsp2bDNF/teZ+mkoZoUs+e4BgaU95NpgXeWPYuAr25GXlwEtXVfl 24Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kv6m6gB+; spf=pass (google.com: domain of linux-kernel+bounces-2038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i21-20020a0cab55000000b0067f29f2d926si271630qvb.429.2023.12.15.20.13.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 20:13:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kv6m6gB+; spf=pass (google.com: domain of linux-kernel+bounces-2038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2038-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 80D5C1C2407D for ; Sat, 16 Dec 2023 04:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2168910A2B; Sat, 16 Dec 2023 04:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kv6m6gB+" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (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 24B4A107A1; Sat, 16 Dec 2023 04:13:09 +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=1702699989; x=1734235989; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LmI/S8V6mA9hG+wIBl7uJCDqj/JYOAakrqXZAAVPnCY=; b=kv6m6gB+mltwRmQE/+NbnenMDxEQJBeVcvmgi3a2ckrI3cJV1booizQ6 wRUatkEPQmaC4I8iQRH7FZvB/5554mVx/VQZyKo2gUyh+GcJBXBpeD9la UN+xRfZFdnlb67Ms4+LtKxl7JpIeoUR8B+ZZegOTzqC6XGT3rM/0WqKTc yfqtIe74K+xD6eyMobfldOXu+S+YIMH1rEk7DapEfHUaS1y6L4UieW1a2 KeMKV93G2yyNva8fvvRab4sBRqinb6VL4asDx+1mYtXAjORY5Flc7No0g BV9iBv7NAvqIhltqvsctkfQ4SAP3eKVrZPBbs0Ll/LeukKZyJklwYfsJh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="459683134" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="459683134" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 20:13:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="768214712" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="768214712" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 15 Dec 2023 20:13:00 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rEM2s-00019E-1f; Sat, 16 Dec 2023 04:12:58 +0000 Date: Sat, 16 Dec 2023 12:12:17 +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 , Alexei Starovoitov , Andrii Nakryiko , Cong Wang , Hao Luo , Jamal Hadi Salim , Jesper Dangaard Brouer , Jiri Olsa , Jiri Pirko , John Fastabend , KP Singh , Martin KaFai Lau , Ronak Doshi , Song Liu , Stanislav Fomichev , VMware PV-Drivers Reviewers , Yonghong Song Subject: Re: [PATCH net-next 15/24] net: Use nested-BH locking for XDP redirect. Message-ID: <202312161103.iKeGoacH-lkp@intel.com> References: <20231215171020.687342-16-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-16-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-16-bigeasy%40linutronix.de patch subject: [PATCH net-next 15/24] net: Use nested-BH locking for XDP redirect. config: x86_64-randconfig-122-20231216 (https://download.01.org/0day-ci/archive/20231216/202312161103.iKeGoacH-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/202312161103.iKeGoacH-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/202312161103.iKeGoacH-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) net/sched/cls_api.c:391:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] protocol @@ got unsigned int [usertype] protocol @@ net/sched/cls_api.c:391:22: sparse: expected restricted __be16 [usertype] protocol net/sched/cls_api.c:391:22: sparse: got unsigned int [usertype] protocol net/sched/cls_api.c:1862:16: sparse: sparse: incompatible types in comparison expression (different address spaces): net/sched/cls_api.c:1862:16: sparse: struct tcf_proto * net/sched/cls_api.c:1862:16: sparse: struct tcf_proto [noderef] __rcu * net/sched/cls_api.c:1962:20: sparse: sparse: incompatible types in comparison expression (different address spaces): net/sched/cls_api.c:1962:20: sparse: struct tcf_proto [noderef] __rcu * net/sched/cls_api.c:1962:20: sparse: struct tcf_proto * net/sched/cls_api.c:1924:25: sparse: sparse: incompatible types in comparison expression (different address spaces): net/sched/cls_api.c:1924:25: sparse: struct tcf_proto [noderef] __rcu * net/sched/cls_api.c:1924:25: sparse: struct tcf_proto * net/sched/cls_api.c:1944:16: sparse: sparse: incompatible types in comparison expression (different address spaces): net/sched/cls_api.c:1944:16: sparse: struct tcf_proto * net/sched/cls_api.c:1944:16: sparse: struct tcf_proto [noderef] __rcu * net/sched/cls_api.c:2010:25: sparse: sparse: restricted __be16 degrades to integer net/sched/cls_api.c:2697:50: sparse: sparse: restricted __be16 degrades to integer >> net/sched/cls_api.c:3933: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/sched/cls_api.c:3933:38: sparse: expected struct local_lock_t [usertype] *l net/sched/cls_api.c:3933:38: sparse: got struct local_lock_t [noderef] __percpu * net/sched/cls_api.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] * vim +3933 net/sched/cls_api.c 3921 3922 struct sk_buff *tcf_qevent_handle(struct tcf_qevent *qe, struct Qdisc *sch, struct sk_buff *skb, 3923 struct sk_buff **to_free, int *ret) 3924 { 3925 struct tcf_result cl_res; 3926 struct tcf_proto *fl; 3927 3928 if (!qe->info.block_index) 3929 return skb; 3930 3931 fl = rcu_dereference_bh(qe->filter_chain); 3932 > 3933 guard(local_lock_nested_bh)(&bpf_run_lock.redirect_lock); 3934 switch (tcf_classify(skb, NULL, fl, &cl_res, false)) { 3935 case TC_ACT_SHOT: 3936 qdisc_qstats_drop(sch); 3937 __qdisc_drop(skb, to_free); 3938 *ret = __NET_XMIT_BYPASS; 3939 return NULL; 3940 case TC_ACT_STOLEN: 3941 case TC_ACT_QUEUED: 3942 case TC_ACT_TRAP: 3943 __qdisc_drop(skb, to_free); 3944 *ret = __NET_XMIT_STOLEN; 3945 return NULL; 3946 case TC_ACT_REDIRECT: 3947 skb_do_redirect(skb); 3948 *ret = __NET_XMIT_STOLEN; 3949 return NULL; 3950 } 3951 3952 return skb; 3953 } 3954 EXPORT_SYMBOL(tcf_qevent_handle); 3955 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki