From: patchwork-bot+netdevbpf@kernel.org
To: Paul Chaignon <paul.chaignon@gmail.com>
Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
andrii@kernel.org, eddyz87@gmail.com, john.fastabend@gmail.com
Subject: Re: [PATCH bpf-next v2 1/2] bpf: Reject narrower access to pointer ctx fields
Date: Thu, 24 Jul 2025 02:50:07 +0000 [thread overview]
Message-ID: <175332540780.1856668.12807197332073126174.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <3b8dcee67ff4296903351a974ddd9c4dca768b64.1753194596.git.paul.chaignon@gmail.com>
Hello:
This series was applied to bpf/bpf-next.git (net)
by Martin KaFai Lau <martin.lau@kernel.org>:
On Tue, 22 Jul 2025 16:32:32 +0200 you wrote:
> The following BPF program, simplified from a syzkaller repro, causes a
> kernel warning:
>
> r0 = *(u8 *)(r1 + 169);
> exit;
>
> With pointer field sk being at offset 168 in __sk_buff. This access is
> detected as a narrower read in bpf_skb_is_valid_access because it
> doesn't match offsetof(struct __sk_buff, sk). It is therefore allowed
> and later proceeds to bpf_convert_ctx_access. At that point,
> target_size is null and the verifier errors with a kernel warning and:
>
> [...]
Here is the summary with links:
- [bpf-next,v2,1/2] bpf: Reject narrower access to pointer ctx fields
https://git.kernel.org/bpf/bpf-next/c/e09299225d5b
- [bpf-next,v2,2/2] selftests/bpf: Test invalid narrower ctx load
https://git.kernel.org/bpf/bpf-next/c/ba578b87fe2b
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:[~2025-07-24 2:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-22 14:32 [PATCH bpf-next v2 1/2] bpf: Reject narrower access to pointer ctx fields Paul Chaignon
2025-07-22 14:33 ` [PATCH bpf-next v2 2/2] selftests/bpf: Test invalid narrower ctx load Paul Chaignon
2025-07-22 21:38 ` Eduard Zingerman
2025-07-22 20:40 ` [PATCH bpf-next v2 1/2] bpf: Reject narrower access to pointer ctx fields Eduard Zingerman
2025-07-22 22:28 ` Martin KaFai Lau
2025-07-23 8:13 ` Paul Chaignon
2025-07-24 2:42 ` Martin KaFai Lau
2025-07-24 2:50 ` 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=175332540780.1856668.12807197332073126174.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=john.fastabend@gmail.com \
--cc=paul.chaignon@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.