From: Martin KaFai Lau <kafai@fb.com>
To: <bpf@vger.kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>,
Andrii Nakryiko <andrii@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>, <kernel-team@fb.com>,
Yonghong Song <yhs@fb.com>
Subject: [PATCH bpf 0/2] bpf: Fix out-of-bound issue when jit-ing bpf_pseudo_func
Date: Fri, 5 Nov 2021 18:40:07 -0700 [thread overview]
Message-ID: <20211106014007.650366-1-kafai@fb.com> (raw)
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
next reply other threads:[~2021-11-06 1:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-06 1:40 Martin KaFai Lau [this message]
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
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=20211106014007.650366-1-kafai@fb.com \
--to=kafai@fb.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=kernel-team@fb.com \
--cc=yhs@fb.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