From: patchwork-bot+netdevbpf@kernel.org
To: Daniel Borkmann <daniel@iogearbox.net>
Cc: bpf@vger.kernel.org, ast@kernel.org, eddyz87@gmail.com, info@starlabs.sg
Subject: Re: [PATCH bpf-next 1/2] bpf: Drop pkt_end markers on arithmetic to prevent is_pkt_ptr_branch_taken
Date: Thu, 09 Apr 2026 20:20:10 +0000 [thread overview]
Message-ID: <177576601004.1723637.10865726418244127226.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260409155016.536608-1-daniel@iogearbox.net>
Hello:
This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Thu, 9 Apr 2026 17:50:15 +0200 you wrote:
> When a pkt pointer acquires AT_PKT_END or BEYOND_PKT_END range from
> a comparison, and then, known-constant arithmetic is performed,
> adjust_ptr_min_max_vals() copies the stale range via dst_reg->raw =
> ptr_reg->raw without clearing the negative reg->range sentinel values.
>
> This lets is_pkt_ptr_branch_taken() choose one branch direction and
> skip going through the other. Fix this by clearing negative pkt range
> values (that is, AT_PKT_END and BEYOND_PKT_END) after arithmetic on
> pkt pointers. This ensures is_pkt_ptr_branch_taken() returns unknown
> and both branches are properly verified.
>
> [...]
Here is the summary with links:
- [bpf-next,1/2] bpf: Drop pkt_end markers on arithmetic to prevent is_pkt_ptr_branch_taken
https://git.kernel.org/bpf/bpf-next/c/9f118095dd34
- [bpf-next,2/2] selftests/bpf: Add test for stale pkt range after scalar arithmetic
https://git.kernel.org/bpf/bpf-next/c/8697bdd67be8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-04-09 20:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 15:50 [PATCH bpf-next 1/2] bpf: Drop pkt_end markers on arithmetic to prevent is_pkt_ptr_branch_taken Daniel Borkmann
2026-04-09 15:50 ` [PATCH bpf-next 2/2] selftests/bpf: Add test for stale pkt range after scalar arithmetic Daniel Borkmann
2026-04-09 20:20 ` patchwork-bot+netdevbpf [this message]
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=177576601004.1723637.10865726418244127226.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=info@starlabs.sg \
/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