From: kernel test robot <lkp@intel.com>
To: Xu Kuohai <xukuohai@huaweicloud.com>,
bpf@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Alexei Starovoitov" <ast@kernel.org>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Andrii Nakryiko" <andrii@kernel.org>,
"Martin KaFai Lau" <martin.lau@linux.dev>,
"Eduard Zingerman" <eddyz87@gmail.com>,
"Yonghong Song" <yonghong.song@linux.dev>,
"Puranjay Mohan" <puranjay@kernel.org>,
"Anton Protopopov" <a.s.protopopov@gmail.com>,
"Shahab Vahedi" <list+bpf@vahedi.org>,
"Russell King" <linux@armlinux.org.uk>,
"Tiezhu Yang" <yangtiezhu@loongson.cn>,
"Hengqi Chen" <hengqi.chen@gmail.com>,
"Johan Almbladh" <johan.almbladh@anyfinetworks.com>,
"Paul Burton" <paulburton@kernel.org>,
"Hari Bathini" <hbathini@linux.ibm.com>,
"Christophe Leroy" <chleroy@kernel.org>,
"Naveen N Rao" <naveen@kernel.org>,
"Luke Nelson" <luke.r.nels@gmail.com>,
"Xi Wang" <xi.wang@gmail.com>, "Björn Töpel" <bjorn@kernel.org>,
"Pu Lehui" <pulehui@huawei.com>,
"Ilya Leoshkevich" <iii@linux.ibm.com>,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"David S . Miller" <davem@davemloft.net>,
"Wang YanQing" <udknight@gmail.com>
Subject: Re: [bpf-next v7 1/5] bpf: Move constants blinding from JIT to verifier
Date: Sun, 8 Mar 2026 01:23:16 +0800 [thread overview]
Message-ID: <202603080126.Lh5uvLLo-lkp@intel.com> (raw)
In-Reply-To: <20260307103949.2340104-2-xukuohai@huaweicloud.com>
Hi Xu,
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Xu-Kuohai/bpf-Move-constants-blinding-from-JIT-to-verifier/20260307-181538
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/r/20260307103949.2340104-2-xukuohai%40huaweicloud.com
patch subject: [bpf-next v7 1/5] bpf: Move constants blinding from JIT to verifier
config: riscv-randconfig-002-20260307 (https://download.01.org/0day-ci/archive/20260308/202603080126.Lh5uvLLo-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project c32caeec8158d634bb71ab8911a6031248b9fc47)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260308/202603080126.Lh5uvLLo-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603080126.Lh5uvLLo-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/bpf/verifier.c:23100:9: error: call to undeclared function 'bpf_jit_blind_constants'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
23100 | err = bpf_jit_blind_constants(env);
| ^
1 error generated.
vim +/bpf_jit_blind_constants +23100 kernel/bpf/verifier.c
23087
23088 static int fixup_call_args(struct bpf_verifier_env *env)
23089 {
23090 #ifndef CONFIG_BPF_JIT_ALWAYS_ON
23091 struct bpf_prog *prog = env->prog;
23092 struct bpf_insn *insn = prog->insnsi;
23093 bool has_kfunc_call = bpf_prog_has_kfunc_call(prog);
23094 int i, depth;
23095 #endif
23096 int err = 0;
23097
23098 if (env->prog->jit_requested &&
23099 !bpf_prog_is_offloaded(env->prog->aux)) {
23100 err = bpf_jit_blind_constants(env);
23101 if (err)
23102 return err;
23103 err = jit_subprogs(env);
23104 if (err == 0)
23105 return 0;
23106 if (err == -EFAULT)
23107 return err;
23108 }
23109 #ifndef CONFIG_BPF_JIT_ALWAYS_ON
23110 if (has_kfunc_call) {
23111 verbose(env, "calling kernel functions are not allowed in non-JITed programs\n");
23112 return -EINVAL;
23113 }
23114 if (env->subprog_cnt > 1 && env->prog->aux->tail_call_reachable) {
23115 /* When JIT fails the progs with bpf2bpf calls and tail_calls
23116 * have to be rejected, since interpreter doesn't support them yet.
23117 */
23118 verbose(env, "tail_calls are not allowed in non-JITed programs with bpf-to-bpf calls\n");
23119 return -EINVAL;
23120 }
23121 for (i = 0; i < prog->len; i++, insn++) {
23122 if (bpf_pseudo_func(insn)) {
23123 /* When JIT fails the progs with callback calls
23124 * have to be rejected, since interpreter doesn't support them yet.
23125 */
23126 verbose(env, "callbacks are not allowed in non-JITed programs\n");
23127 return -EINVAL;
23128 }
23129
23130 if (!bpf_pseudo_call(insn))
23131 continue;
23132 depth = get_callee_stack_depth(env, insn, i);
23133 if (depth < 0)
23134 return depth;
23135 bpf_patch_call_args(insn, depth);
23136 }
23137 err = 0;
23138 #endif
23139 return err;
23140 }
23141
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-03-07 17:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-07 10:39 [bpf-next v7 0/5] emit ENDBR/BTI instructions for indirect jump targets Xu Kuohai
2026-03-07 10:39 ` [bpf-next v7 1/5] bpf: Move constants blinding from JIT to verifier Xu Kuohai
2026-03-07 17:08 ` kernel test robot
2026-03-09 9:22 ` Xu Kuohai
2026-03-07 17:23 ` kernel test robot
2026-03-07 17:23 ` kernel test robot [this message]
2026-03-07 10:39 ` [bpf-next v7 2/5] bpf: Pass bpf_verifier_env to JIT Xu Kuohai
2026-03-07 10:39 ` [bpf-next v7 3/5] bpf: Add helper to detect indirect jump targets Xu Kuohai
2026-03-07 17:14 ` bot+bpf-ci
2026-03-09 9:21 ` Xu Kuohai
2026-03-07 10:39 ` [bpf-next v7 4/5] bpf, x86: Emit ENDBR for " Xu Kuohai
2026-03-07 10:39 ` [bpf-next v7 5/5] bpf, arm64: Emit BTI for indirect jump target Xu Kuohai
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=202603080126.Lh5uvLLo-lkp@intel.com \
--to=lkp@intel.com \
--cc=a.s.protopopov@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=chleroy@kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=eddyz87@gmail.com \
--cc=gor@linux.ibm.com \
--cc=hbathini@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=hengqi.chen@gmail.com \
--cc=iii@linux.ibm.com \
--cc=johan.almbladh@anyfinetworks.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=list+bpf@vahedi.org \
--cc=llvm@lists.linux.dev \
--cc=luke.r.nels@gmail.com \
--cc=martin.lau@linux.dev \
--cc=naveen@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=paulburton@kernel.org \
--cc=pulehui@huawei.com \
--cc=puranjay@kernel.org \
--cc=udknight@gmail.com \
--cc=xi.wang@gmail.com \
--cc=xukuohai@huaweicloud.com \
--cc=yangtiezhu@loongson.cn \
--cc=yonghong.song@linux.dev \
/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