From: Andrei Matei <andreimatei1@gmail.com>
To: bpf@vger.kernel.org
Cc: andrii.nakryiko@gmail.com, eddyz87@gmail.com,
Andrei Matei <andreimatei1@gmail.com>
Subject: [PATCH bpf-next v4 0/2] bpf: Simplify checking size of helper accesses
Date: Thu, 21 Dec 2023 18:22:23 -0500 [thread overview]
Message-ID: <20231221232225.568730-1-andreimatei1@gmail.com> (raw)
v3->v4:
- kept only the minimal change, undoing debatable changes (Andrii)
- dropped the second patch from before, with changes to the error
message (Andrii)
- extracted the new test into a separate patch (Andrii)
- added Acked by Andrii
v2->v3:
- split the error-logging function to a separate patch (Andrii)
- make the error buffers smaller (Andrii)
- include size of memory region for PTR_TO_MEM (Andrii)
- nits from Andrii and Eduard
v1->v2:
- make the error message include more info about the context of the
zero-sized access (Andrii)
Andrei Matei (2):
bpf: Simplify checking size of helper accesses
bpf: add a possibly-zero-sized read test
kernel/bpf/verifier.c | 10 ++---
.../bpf/progs/verifier_helper_value_access.c | 45 +++++++++++++++++--
.../selftests/bpf/progs/verifier_raw_stack.c | 2 +-
3 files changed, 46 insertions(+), 11 deletions(-)
--
2.40.1
next reply other threads:[~2023-12-21 23:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-21 23:22 Andrei Matei [this message]
2023-12-21 23:22 ` [PATCH bpf-next v4 1/2] bpf: Simplify checking size of helper accesses Andrei Matei
2023-12-21 23:22 ` [PATCH bpf-next v4 2/2] bpf: add a possibly-zero-sized read test Andrei Matei
2024-01-03 18:20 ` [PATCH bpf-next v4 0/2] bpf: Simplify checking size of helper accesses patchwork-bot+netdevbpf
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=20231221232225.568730-1-andreimatei1@gmail.com \
--to=andreimatei1@gmail.com \
--cc=andrii.nakryiko@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=eddyz87@gmail.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