From: Harishankar Vishwanathan <harishankar.vishwanathan@gmail.com>
To: ast@kernel.org
Cc: m.shachnai@rutgers.edu, srinivas.narayana@rutgers.edu,
santosh.nagarakatte@rutgers.edu,
Harishankar Vishwanathan <harishankar.vishwanathan@gmail.com>,
Daniel Borkmann <daniel@iogearbox.net>,
John Fastabend <john.fastabend@gmail.com>,
Andrii Nakryiko <andrii@kernel.org>,
Martin KaFai Lau <martin.lau@linux.dev>,
Eduard Zingerman <eddyz87@gmail.com>, Song Liu <song@kernel.org>,
Yonghong Song <yonghong.song@linux.dev>,
KP Singh <kpsingh@kernel.org>,
Stanislav Fomichev <sdf@fomichev.me>, Hao Luo <haoluo@google.com>,
Jiri Olsa <jolsa@kernel.org>,
bpf@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] bpf, verifier: Improve precision of BPF_ADD and BPF_SUB
Date: Tue, 17 Jun 2025 19:17:30 -0400 [thread overview]
Message-ID: <20250617231733.181797-1-harishankar.vishwanathan@gmail.com> (raw)
This patchset improves the precision of BPF_ADD and BPF_SUB range
tracking, and also adds selftests that exercise the precision
improvement.
Changelog:
v2:
* Add clearer example of precision improvement in the commit message for
verifier.c changes.
* Add selftests that exercise the precision improvement to
verifier_bounds.c (suggested by Eduard Zingerman).
v1:
https://lore.kernel.org/bpf/20250610221356.2663491-1-harishankar.vishwanathan@gmail.com/
Harishankar Vishwanathan (2):
bpf, verifier: Improve precision for BPF_ADD and BPF_SUB
selftests/bpf: Add testcases for BPF_ADD and BPF_SUB
kernel/bpf/verifier.c | 76 ++++++++++++-----
.../selftests/bpf/progs/verifier_bounds.c | 85 +++++++++++++++++++
2 files changed, 141 insertions(+), 20 deletions(-)
--
2.45.2
next reply other threads:[~2025-06-17 23:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-17 23:17 Harishankar Vishwanathan [this message]
2025-06-17 23:17 ` [PATCH v2 1/2] bpf, verifier: Improve precision for BPF_ADD and BPF_SUB Harishankar Vishwanathan
2025-06-18 11:24 ` Hao Sun
2025-06-19 22:17 ` Harishankar Vishwanathan
2025-06-18 20:53 ` Eduard Zingerman
2025-06-17 23:17 ` [PATCH v2 2/2] selftests/bpf: Add testcases " Harishankar Vishwanathan
2025-06-18 21:22 ` Eduard Zingerman
2025-06-19 21:13 ` Harishankar Vishwanathan
2025-06-19 21:55 ` Eduard Zingerman
2025-06-19 22:34 ` Harishankar Vishwanathan
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=20250617231733.181797-1-harishankar.vishwanathan@gmail.com \
--to=harishankar.vishwanathan@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.shachnai@rutgers.edu \
--cc=martin.lau@linux.dev \
--cc=santosh.nagarakatte@rutgers.edu \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=srinivas.narayana@rutgers.edu \
--cc=yonghong.song@linux.dev \
/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;
as well as URLs for NNTP newsgroup(s).