Skip to content

bpf: Fix out-of-bound issue when jit-ing bpf_pseudo_func

Martin KaFai Lau bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: Stop caching subprog index in the bpf_pseudo_func insninclude/linux/bpf.h kernel/bpf/core.c kernel/bpf/verifier.c+27 -230 replies
2/2bpf: selftest: Trigger a DCE on the whole subprogtools/testing/selftests/bpf/progs/for_each_array_map_elem.c+12 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf 0/2] bpf: Fix out-of-bound issue when jit-ing bpf_pseudo_func

This set fixes an out-of-bound access issue when jit-ing the bpf_pseudo_func insn (i.e. ld_imm64 with src_reg == BPF_PSEUDO_FUNC)

Martin KaFai Lau (2):
bpf: Stop caching subprog index in the bpf_pseudo_func insn
bpf: selftest: Trigger a DCE on the whole subprog

 include/linux/bpf.h                           |  6 +++
 kernel/bpf/core.c                             |  7 ++++
 kernel/bpf/verifier.c                         | 37 +++++++------------
 .../bpf/progs/for_each_array_map_elem.c       | 12 ++++++
 4 files changed, 39 insertions(+), 23 deletions(-)
Signature · 1 line
2.30.2