BPF List
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] bpf: Fix out-of-bound issue when jit-ing bpf_pseudo_func
@ 2021-11-06  1:40 Martin KaFai Lau
  2021-11-06  1:40 ` [PATCH bpf 1/2] bpf: Stop caching subprog index in the bpf_pseudo_func insn Martin KaFai Lau
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Martin KaFai Lau @ 2021-11-06  1:40 UTC (permalink / raw)
  To: bpf
  Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann, kernel-team,
	Yonghong Song

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(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-06 20:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-06  1:40 [PATCH bpf 0/2] bpf: Fix out-of-bound issue when jit-ing bpf_pseudo_func Martin KaFai Lau
2021-11-06  1:40 ` [PATCH bpf 1/2] bpf: Stop caching subprog index in the bpf_pseudo_func insn Martin KaFai Lau
2021-11-06  1:40 ` [PATCH bpf 2/2] bpf: selftest: Trigger a DCE on the whole subprog Martin KaFai Lau
2021-11-06 20:25 ` [PATCH bpf 0/2] bpf: Fix out-of-bound issue when jit-ing bpf_pseudo_func Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox