* [bpf-next:master 24/51] kernel/bpf/precision.c:66 bpf_insn_callee() error: buffer overflow 'aux->const_reg_vals' 10 <= 16
@ 2026-11-21 11:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-21 11:21 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
Unfiltered warning: this smatch report is sent as-is and has not been
reviewed for false positives, so please treat it with due skepticism.
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Alexei Starovoitov <ast@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
head: 9867c61abbd44f7053a871566b3d982f62c6d8dc
commit: 37e13b091537b2e41b85a2f362e6defece1ed351 [24/51] bpf: Find the xregs that an unproven insn depends on
:::::: branch date: 7 hours ago
:::::: commit date: 7 hours ago
config: parisc-randconfig-2200-20261121 (https://download.01.org/0day-ci/archive/20261121/20261121121608.NYDAtCSJ-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 16.2.0
smatch: v0.5.0-9187-g5189e3fb
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/20261121121608.NYDAtCSJ-lkp@intel.com/
smatch warnings:
kernel/bpf/precision.c:66 bpf_insn_callee() error: buffer overflow 'aux->const_reg_vals' 10 <= 16
vim +66 kernel/bpf/precision.c
37e13b091537b2 Alexei Starovoitov 2026-11-20 54
37e13b091537b2 Alexei Starovoitov 2026-11-20 55 /* The function that the insn at @idx calls, or hands to a helper. -1 if that is not known. */
37e13b091537b2 Alexei Starovoitov 2026-11-20 56 int bpf_insn_callee(struct bpf_verifier_env *env, int idx)
37e13b091537b2 Alexei Starovoitov 2026-11-20 57 {
37e13b091537b2 Alexei Starovoitov 2026-11-20 58 struct bpf_insn_aux_data *aux = &env->insn_aux_data[idx];
37e13b091537b2 Alexei Starovoitov 2026-11-20 59 struct bpf_insn *insn = &env->prog->insnsi[idx];
37e13b091537b2 Alexei Starovoitov 2026-11-20 60 u16 funcs = aux->const_reg_subprog_mask & aux->use_regs;
37e13b091537b2 Alexei Starovoitov 2026-11-20 61
37e13b091537b2 Alexei Starovoitov 2026-11-20 62 if (bpf_pseudo_call(insn))
37e13b091537b2 Alexei Starovoitov 2026-11-20 63 return bpf_find_subprog(env, idx + insn->imm + 1);
37e13b091537b2 Alexei Starovoitov 2026-11-20 64 if (hweight16(funcs) == 1 && (aux->calls_callback ||
37e13b091537b2 Alexei Starovoitov 2026-11-20 65 bpf_is_async_callback_calling_insn(insn)))
37e13b091537b2 Alexei Starovoitov 2026-11-20 @66 return aux->const_reg_vals[__ffs(funcs)];
37e13b091537b2 Alexei Starovoitov 2026-11-20 67 return -1;
37e13b091537b2 Alexei Starovoitov 2026-11-20 68 }
37e13b091537b2 Alexei Starovoitov 2026-11-20 69
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-21 11:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21 11:21 [bpf-next:master 24/51] kernel/bpf/precision.c:66 bpf_insn_callee() error: buffer overflow 'aux->const_reg_vals' 10 <= 16 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.