Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp923108rda; Sun, 22 Oct 2023 16:55:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5gB2o7tG/0DrB3TgS1AH/9hVZ/fsWjEMA2/QqWpUiL9F+6exHut9gs5M2NXzmU7EQclvb X-Received: by 2002:a05:6870:2192:b0:1d6:97:bd7d with SMTP id l18-20020a056870219200b001d60097bd7dmr9805526oae.34.1698018919921; Sun, 22 Oct 2023 16:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698018919; cv=none; d=google.com; s=arc-20160816; b=xt9iefPBHaZ150QOCOG6SRaoexIGJLgHX5vbPfYGcNle0Jio4yw6s/y4lHoQ0VLn7V 8IJjSZ9FYF7Alpce2Xcj+mhxztejbm8CgJXXcmhmmc48YbDuW4XPP0R3lYmM4dNFDS3V JCb5kOz9JiQ8Pcvqf+hS3e9tj5k2amq5lWyEs48KnOsqusoXivNcwThLD7rwnkdycMib CaAYcgqArxSBzZami/Az3EwL3iobg+Tpx+Do/az3hrKvamG8eUJ+JlIBh2EdNPMM+m6C zunuIul0t4txSRvJq45oV9y1KX0OSm68qI8xSZdaY0jJPNpoMoTbF6VtKtYnOFsBvGFG gcSQ== 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=a0KhObER6SNtQK3YfIqxl8d8S2hVgX4p93bNKcekOCw=; fh=lXQ1vr0cS3DWo4wRUCkpzlAfs5VWTXG0jgzJCXwfUTY=; b=SZrwoTMucNvtzkmrnFmXIHnbRCAuuszHFGU3xtucddzAuosQQtGURtgBxW/acwznGM OmFONn8tZgXg1SayDQKsAtjzRTML89gYupXJxH4UZIQ7p/+UucrwJVdrgdgXixySgmbs lWs3E1wvN+eJn004NsY5bPMlwXSeTsERSRFU14UQQMiTqyvw5fQIGcJ6EBemFS78J6pA rLsx8yBVw//QXKAu8lLPp/THCPAHtN0WJxwSvFZ1eMo/YEZh+EmdZ3/G88aGGwNKFgHV WK5DujSjjlpE0aYJ9E8MuRXZOSAUqXa2nai15tS3FeGEX5ZJgOBkQFwOD1e8CPc8sT+4 ir/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZOMa2NFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 187-20020a6300c4000000b00589fcc39ef1si5378034pga.365.2023.10.22.16.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 16:55:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZOMa2NFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E3D3C8065CA5; Sun, 22 Oct 2023 16:55:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231671AbjJVXn1 (ORCPT + 99 others); Sun, 22 Oct 2023 19:43:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjJVXn0 (ORCPT ); Sun, 22 Oct 2023 19:43:26 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8CEFEB; Sun, 22 Oct 2023 16:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698018205; x=1729554205; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=DyT6PnTT/oc9Q+V3yg1tRUU7lgRIJofWae5O90LzgAc=; b=ZOMa2NFpQZAG2bMUDOmUdtemkKeWxAskiP3COrRf2B4Gvf3XBC3zAw0Y 2MLMhv4jC+BdQkm+zeScTI3lamZ+/dslh7N8tY7SLIJJlfoSUUMzRcrjr ACnDJbxpfeLOYcwdYj+Qz6YtBo8b73cCybmWMwOLcHwVrXEO3r4tmJeFn 4Dm4pyqiNXGIdL/kCSnAcYSUYYuUT2SlP5t5gb3eMR7VpbdNwBXrd9mZu oilmebgQKum/F4H2TNENU8y4qa/TIB7wv1mfS4WTqWT0KVnrUoqprmOcE A+2+cpzdDqiZwYQVK4mh8yXo8ebViWgrhF3GlPxjAGmzblOnKeSbT/sxP Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="5361564" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="5361564" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2023 16:43:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="5618519" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 22 Oct 2023 16:42:06 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qui6I-0006NC-0W; Sun, 22 Oct 2023 23:43:18 +0000 Date: Mon, 23 Oct 2023 07:42:41 +0800 From: kernel test robot To: Hengqi Chen , linux-kernel@vger.kernel.org, bpf@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, keescook@chromium.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, luto@amacapital.net, wad@chromium.org, alexyonghe@tencent.com, hengqi.chen@gmail.com Subject: Re: [PATCH v2 2/5] seccomp, bpf: Introduce SECCOMP_LOAD_FILTER operation Message-ID: <202310230704.Uif0R7cz-lkp@intel.com> References: <20231015232953.84836-3-hengqi.chen@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231015232953.84836-3-hengqi.chen@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 22 Oct 2023 16:55:17 -0700 (PDT) Hi Hengqi, kernel test robot noticed the following build errors: [auto build test ERROR on kees/for-next/seccomp] [also build test ERROR on bpf-next/master bpf/master linus/master v6.6-rc6 next-20231020] [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/Hengqi-Chen/seccomp-Refactor-filter-copy-create-for-reuse/20231017-134654 base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/seccomp patch link: https://lore.kernel.org/r/20231015232953.84836-3-hengqi.chen%40gmail.com patch subject: [PATCH v2 2/5] seccomp, bpf: Introduce SECCOMP_LOAD_FILTER operation config: sh-shx3_defconfig (https://download.01.org/0day-ci/archive/20231023/202310230704.Uif0R7cz-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231023/202310230704.Uif0R7cz-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/202310230704.Uif0R7cz-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/seccomp.c: In function 'seccomp_load_filter': >> kernel/seccomp.c:2052:15: error: implicit declaration of function 'security_bpf_prog_alloc'; did you mean 'security_msg_msg_alloc'? [-Werror=implicit-function-declaration] 2052 | ret = security_bpf_prog_alloc(prog->aux); | ^~~~~~~~~~~~~~~~~~~~~~~ | security_msg_msg_alloc >> kernel/seccomp.c:2062:15: error: implicit declaration of function 'bpf_prog_new_fd'; did you mean 'bpf_prog_get_ok'? [-Werror=implicit-function-declaration] 2062 | ret = bpf_prog_new_fd(prog); | ^~~~~~~~~~~~~~~ | bpf_prog_get_ok cc1: some warnings being treated as errors vim +2052 kernel/seccomp.c 2037 2038 static long seccomp_load_filter(const char __user *filter) 2039 { 2040 struct sock_fprog fprog; 2041 struct bpf_prog *prog; 2042 int ret; 2043 2044 ret = seccomp_copy_user_filter(filter, &fprog); 2045 if (ret) 2046 return ret; 2047 2048 ret = seccomp_prepare_prog(&prog, &fprog); 2049 if (ret) 2050 return ret; 2051 > 2052 ret = security_bpf_prog_alloc(prog->aux); 2053 if (ret) { 2054 bpf_prog_free(prog); 2055 return ret; 2056 } 2057 2058 prog->aux->user = get_current_user(); 2059 atomic64_set(&prog->aux->refcnt, 1); 2060 prog->type = BPF_PROG_TYPE_SECCOMP; 2061 > 2062 ret = bpf_prog_new_fd(prog); 2063 if (ret < 0) 2064 bpf_prog_put(prog); 2065 2066 return ret; 2067 } 2068 #else 2069 static inline long seccomp_set_mode_filter(unsigned int flags, 2070 const char __user *filter) 2071 { 2072 return -EINVAL; 2073 } 2074 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki