From: kernel test robot <lkp@intel.com>
To: Stanislav Fomichev <sdf@google.com>,
netdev@vger.kernel.org, bpf@vger.kernel.org
Cc: kbuild-all@lists.01.org, ast@kernel.org, daniel@iogearbox.net,
andrii@kernel.org, Stanislav Fomichev <sdf@google.com>
Subject: Re: [PATCH bpf-next v2 2/7] bpf: per-cgroup lsm flavor
Date: Thu, 7 Apr 2022 02:42:52 +0800 [thread overview]
Message-ID: <202204070201.lzjdBJq0-lkp@intel.com> (raw)
In-Reply-To: <20220405214342.1968262-3-sdf@google.com>
Hi Stanislav,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Stanislav-Fomichev/bpf-cgroup_sock-lsm-flavor/20220406-162419
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: powerpc-buildonly-randconfig-r003-20220406 (https://download.01.org/0day-ci/archive/20220407/202204070201.lzjdBJq0-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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/b416dabea64e9ab8418ffb26990f2d303b968f2d
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Stanislav-Fomichev/bpf-cgroup_sock-lsm-flavor/20220406-162419
git checkout b416dabea64e9ab8418ffb26990f2d303b968f2d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
powerpc-linux-ld: kernel/bpf/trampoline.o: in function `bpf_trampoline_compute_key':
>> include/linux/bpf_verifier.h:540: undefined reference to `btf_obj_id'
>> powerpc-linux-ld: include/linux/bpf_verifier.h:540: undefined reference to `btf_obj_id'
vim +540 include/linux/bpf_verifier.h
ab3f0063c48c26c Jakub Kicinski 2017-11-03 521
be80a1d3f9dbe5a Daniel Borkmann 2022-01-10 522 int check_ptr_off_reg(struct bpf_verifier_env *env,
51c39bb1d5d105a Alexei Starovoitov 2020-01-09 523 const struct bpf_reg_state *reg, int regno);
25b35dd28138f61 Kumar Kartikeya Dwivedi 2022-03-05 524 int check_func_arg_reg_off(struct bpf_verifier_env *env,
25b35dd28138f61 Kumar Kartikeya Dwivedi 2022-03-05 525 const struct bpf_reg_state *reg, int regno,
24d5bb806c7e2c0 Kumar Kartikeya Dwivedi 2022-03-05 526 enum bpf_arg_type arg_type,
24d5bb806c7e2c0 Kumar Kartikeya Dwivedi 2022-03-05 527 bool is_release_func);
d583691c47dc042 Kumar Kartikeya Dwivedi 2022-01-14 528 int check_kfunc_mem_size_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg,
d583691c47dc042 Kumar Kartikeya Dwivedi 2022-01-14 529 u32 regno);
e5069b9c23b3857 Dmitrii Banshchikov 2021-02-13 530 int check_mem_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg,
e5069b9c23b3857 Dmitrii Banshchikov 2021-02-13 531 u32 regno, u32 mem_size);
51c39bb1d5d105a Alexei Starovoitov 2020-01-09 532
f7b12b6fea00988 Toke Høiland-Jørgensen 2020-09-25 533 /* this lives here instead of in bpf.h because it needs to dereference tgt_prog */
f7b12b6fea00988 Toke Høiland-Jørgensen 2020-09-25 534 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog,
22dc4a0f5ed11b6 Andrii Nakryiko 2020-12-03 535 struct btf *btf, u32 btf_id)
f7b12b6fea00988 Toke Høiland-Jørgensen 2020-09-25 536 {
22dc4a0f5ed11b6 Andrii Nakryiko 2020-12-03 537 if (tgt_prog)
22dc4a0f5ed11b6 Andrii Nakryiko 2020-12-03 538 return ((u64)tgt_prog->aux->id << 32) | btf_id;
22dc4a0f5ed11b6 Andrii Nakryiko 2020-12-03 539 else
22dc4a0f5ed11b6 Andrii Nakryiko 2020-12-03 @540 return ((u64)btf_obj_id(btf) << 32) | 0x80000000 | btf_id;
f7b12b6fea00988 Toke Høiland-Jørgensen 2020-09-25 541 }
f7b12b6fea00988 Toke Høiland-Jørgensen 2020-09-25 542
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-04-06 20:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-05 21:43 [PATCH bpf-next v2 0/7] bpf: cgroup_sock lsm flavor Stanislav Fomichev
2022-04-05 21:43 ` [PATCH bpf-next v2 1/7] bpf: add bpf_func_t and trampoline helpers Stanislav Fomichev
2022-04-05 21:43 ` [PATCH bpf-next v2 2/7] bpf: per-cgroup lsm flavor Stanislav Fomichev
2022-04-06 18:42 ` kernel test robot [this message]
2022-04-21 19:46 ` Kumar Kartikeya Dwivedi
2022-04-21 20:22 ` Stanislav Fomichev
2022-04-05 21:43 ` [PATCH bpf-next v2 3/7] bpf: minimize number of allocated lsm slots per program Stanislav Fomichev
2022-04-05 21:43 ` [PATCH bpf-next v2 4/7] bpf: allow writing to a subset of sock fields from lsm progtype Stanislav Fomichev
2022-04-05 21:43 ` [PATCH bpf-next v2 5/7] libbpf: add lsm_cgoup_sock type Stanislav Fomichev
2022-04-05 21:43 ` [PATCH bpf-next v2 6/7] selftests/bpf: lsm_cgroup functional test Stanislav Fomichev
2022-04-05 21:43 ` [PATCH bpf-next v2 7/7] selftests/bpf: verify lsm_cgroup struct sock access Stanislav Fomichev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202204070201.lzjdBJq0-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=kbuild-all@lists.01.org \
--cc=netdev@vger.kernel.org \
--cc=sdf@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).