From: patchwork-bot+netdevbpf@kernel.org
To: Daniel Borkmann <daniel@iogearbox.net>
Cc: eddyz87@gmail.com, puranjay@kernel.org, memxor@gmail.com,
yonghong.song@linux.dev, info@starlabs.sg, bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next 1/2] bpf: Drop scalar id on sign-extending narrowing stack fills
Date: Thu, 09 Jul 2026 19:30:09 +0000 [thread overview]
Message-ID: <178362540938.4090369.14805985399599329813.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260709153131.386599-1-daniel@iogearbox.net>
Hello:
This series was applied to bpf/bpf-next.git (master)
by Eduard Zingerman <eddyz87@gmail.com>:
On Thu, 9 Jul 2026 17:31:30 +0200 you wrote:
> When a spilled scalar is filled back with a sign-extending narrowing load
> (BPF_MEMSX), check_stack_read_fixed_off() copies the spilled register
> including its scalar id, but coerce_reg_to_size_sx() then sign-extends the
> filled register's value. If the same slot is also filled with a plain
> zero-extending load (BPF_MEM), both destination registers share the id yet
> hold different values. A later 'if <zext-reg> == const' then refines the
> sign-extended register through sync_linked_regs() to a value it does not
> have at runtime (e.g. the verifier believes 0x80000000 while the register
> is 0xffffffff80000000), which can be turned into an out-of-bounds access.
>
> [...]
Here is the summary with links:
- [bpf-next,1/2] bpf: Drop scalar id on sign-extending narrowing stack fills
https://git.kernel.org/bpf/bpf-next/c/2cb5f4ca695e
- [bpf-next,2/2] selftests/bpf: Add test for scalar id on sign-extending stack fill
https://git.kernel.org/bpf/bpf-next/c/c3d5ef291a2a
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-07-09 19:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 15:31 [PATCH bpf-next 1/2] bpf: Drop scalar id on sign-extending narrowing stack fills Daniel Borkmann
2026-07-09 15:31 ` [PATCH bpf-next 2/2] selftests/bpf: Add test for scalar id on sign-extending stack fill Daniel Borkmann
2026-07-09 19:30 ` 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=178362540938.4090369.14805985399599329813.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=info@starlabs.sg \
--cc=memxor@gmail.com \
--cc=puranjay@kernel.org \
--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