Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1935473rwb; Thu, 19 Jan 2023 18:06:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLxXbWNIDHjjdjOZgh8wBJClDzolQWs0cg0aYDy8cu5lpMpHLT6yniDbuJCElbgGDHcsS7 X-Received: by 2002:a17:907:9118:b0:7c1:22a6:818f with SMTP id p24-20020a170907911800b007c122a6818fmr8086349ejq.25.1674180363510; Thu, 19 Jan 2023 18:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674180363; cv=none; d=google.com; s=arc-20160816; b=RdmpKvTK+AnxcmY5G9xG5FKztMgrnvBvLaSDfjWVM3J16sDDyCGsq+FfgZOtn+V4RH 7aJ701wZWZZxKqTcEyTjall3deei5uqdX7zanvy4JTmHq40NdStox5hkX0gNB5rv2hlG 2w6ZBLNHLnDtvIYvwLgToe4+q+BIcBCTdWn6jCZO5gwGrjl92fQ0x9x4ol2luqG6JWbi 5/ic7x5FnqovW9iVsYnG1gOgdfLlUQR7rMNneuXEAL23buSz0jYynSM8I9n46DhOyBMn yC6FNeinKDUuKEMGk9KcpyHsbn0qJUt4KImkZ1bCzJlskV+rFCgijI/qp2RP5C+L3rUr 2SJQ== 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=h05bW6YkeZajeyak1nBKzrJe2MpWzC+NVcSxT3HoaqE=; b=Cfq47GuXagn/lvsymSU7OuUILRzw9mqqqyPy6vPSu8co/c0B56w7e6REHEtQoY+cM1 gZkufCaT/x/ZVsnB87jEW3ugPbcoEQJearr2T0i4nv37qgPoWMtNGmHZlECXGa0Zv2vE yAykVZkJyAbMMraumVEw6mlrvxbZhw7ZpefNqSH2IvURPDeOPrdmtv9fEzZEXWVbyMjt ovG95srTvodzT7nL/o0mIkMMtIB7Ijza5JJMm/wQ2jSCrvJZ2mIK3+DPNpVEoZa2UWx4 2XL5t2qoPxt2FmUVfxcpa87jFt3T/IyqpYzxH99sz0eJwrovcgugpf0X0u77hwH6UaC2 GjoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kU+pE0HJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a05640205cb00b004960cb11e1fsi14108404edx.413.2023.01.19.18.05.35; Thu, 19 Jan 2023 18:06:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kU+pE0HJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbjATBOj (ORCPT + 46 others); Thu, 19 Jan 2023 20:14:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjATBOh (ORCPT ); Thu, 19 Jan 2023 20:14:37 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 701319F3B5; Thu, 19 Jan 2023 17:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674177276; x=1705713276; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5y9wsfR82nKhpSG8Hoxflc8ORWgomjjfcjKYDRm1mqc=; b=kU+pE0HJTg2eI7nFZbzJFgpqTlh3LPV6jw/BQAnsIF9H3fcQnS3NqePi Zbwuj0sP3ls1nYykiKBbEN3gqKRDzc2hzygD3co2v9AFdcCeH8O+VzDcr da0c7cDE9wUWA+24VOygKk3YUDfK7jljoGhY/G6NasROfqydyowNvqt+J 1mG/gEGQQUPK0HyX0SkWmdIvjJX4N7m12e4Z+hCAmVb0X5quWkK3QV5xz zPSQShonoRvh+nZ0Gxy6hYZh2FLgTWI359SjxXoEP2lQPfUKsaw2Pd5rf 51EV6yrq8UhB83Fj2SHhH+kCVnntcjhhUluvS3kPkPdtAVHWcJfBCqm6D A==; X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="305847206" X-IronPort-AV: E=Sophos;i="5.97,230,1669104000"; d="scan'208";a="305847206" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 17:14:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="723789273" X-IronPort-AV: E=Sophos;i="5.97,230,1669104000"; d="scan'208";a="723789273" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 19 Jan 2023 17:14:31 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pIfzD-00022V-03; Fri, 20 Jan 2023 01:14:31 +0000 Date: Fri, 20 Jan 2023 09:14:25 +0800 From: kernel test robot To: David Vernet , bpf@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@meta.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, tj@kernel.org Subject: Re: [PATCH bpf-next 1/8] bpf: Enable annotating trusted nested pointers Message-ID: <202301200957.At49rpzu-lkp@intel.com> References: <20230119235833.2948341-2-void@manifault.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230119235833.2948341-2-void@manifault.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/David-Vernet/bpf-Enable-annotating-trusted-nested-pointers/20230120-080139 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20230119235833.2948341-2-void%40manifault.com patch subject: [PATCH bpf-next 1/8] bpf: Enable annotating trusted nested pointers config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230120/202301200957.At49rpzu-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/8f6df14342b1be3516f8e21037edf771df851427 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review David-Vernet/bpf-Enable-annotating-trusted-nested-pointers/20230120-080139 git checkout 8f6df14342b1be3516f8e21037edf771df851427 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash kernel/bpf/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/bpf/btf.c:533:5: warning: no previous prototype for 'bpf_find_btf_id' [-Wmissing-prototypes] 533 | s32 bpf_find_btf_id(const char *name, u32 kind, struct btf **btf_p) | ^~~~~~~~~~~~~~~ kernel/bpf/btf.c: In function 'btf_seq_show': kernel/bpf/btf.c:6977:29: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 6977 | seq_vprintf((struct seq_file *)show->target, fmt, args); | ^~~~~~~~ kernel/bpf/btf.c: In function 'btf_snprintf_show': kernel/bpf/btf.c:7014:9: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 7014 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args); | ^~~ vim +/bpf_find_btf_id +533 kernel/bpf/btf.c 532 > 533 s32 bpf_find_btf_id(const char *name, u32 kind, struct btf **btf_p) 534 { 535 struct btf *btf; 536 s32 ret; 537 int id; 538 539 btf = bpf_get_btf_vmlinux(); 540 if (IS_ERR(btf)) 541 return PTR_ERR(btf); 542 if (!btf) 543 return -EINVAL; 544 545 ret = btf_find_by_name_kind(btf, name, kind); 546 /* ret is never zero, since btf_find_by_name_kind returns 547 * positive btf_id or negative error. 548 */ 549 if (ret > 0) { 550 btf_get(btf); 551 *btf_p = btf; 552 return ret; 553 } 554 555 /* If name is not found in vmlinux's BTF then search in module's BTFs */ 556 spin_lock_bh(&btf_idr_lock); 557 idr_for_each_entry(&btf_idr, btf, id) { 558 if (!btf_is_module(btf)) 559 continue; 560 /* linear search could be slow hence unlock/lock 561 * the IDR to avoiding holding it for too long 562 */ 563 btf_get(btf); 564 spin_unlock_bh(&btf_idr_lock); 565 ret = btf_find_by_name_kind(btf, name, kind); 566 if (ret > 0) { 567 *btf_p = btf; 568 return ret; 569 } 570 spin_lock_bh(&btf_idr_lock); 571 btf_put(btf); 572 } 573 spin_unlock_bh(&btf_idr_lock); 574 return ret; 575 } 576 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests