Thread (1 message) 1 message, 1 author, 2025-07-23

Re: [PATCH bpf-next v3 10/10] selftests/bpf: Cover read/write to skb metadata at an offset

From: Jakub Sitnicki <jakub@cloudflare.com>
Date: 2025-07-23 09:09:28
Also in: bpf

On Tue, Jul 22, 2025 at 01:30 PM -07, Eduard Zingerman wrote:
On Mon, 2025-07-21 at 12:52 +0200, Jakub Sitnicki wrote:
quoted
Exercise r/w access to skb metadata through an offset-adjusted dynptr,
read/write helper with an offset argument, and a slice starting at an
offset.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
---
Maybe also add a test case checking error conditions for out of bounds
metadata access?
Crossed my mind. I was on the fence here, asking myself:

do we need a test for dynptr OOB checks for each dynptr kind?

I decided at that time that we don't, but happy to add it. Doesn't hurt.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help