BPF List
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: bot+bpf-ci@kernel.org
Cc: bpf@vger.kernel.org, andrii@kernel.org, eddyz87@gmail.com,
	ast@kernel.org, daniel@iogearbox.net, martin.lau@kernel.org,
	yonghong.song@linux.dev, mason@kernel.org,
	ihor.solodrai@linux.dev
Subject: Re: [PATCH bpf] selftests/bpf: Add tests to assert that netfilter progs cannot write to skb
Date: Wed, 2 Sep 2026 11:00:58 +0200	[thread overview]
Message-ID: <apflyjoO0S-9XuUE@strlen.de> (raw)
In-Reply-To: <da1f216ffd5f1f1102cb82245064b6f60f6e893f6a2e6cb46983206195f49c75@mail.kernel.org>

bot+bpf-ci@kernel.org <bot+bpf-ci@kernel.org> wrote:
> >     Assert that bpf netfilter program type exposes readonly access to the
> >     skb, either via direct packet access or via dynptr API.

> This isn't a bug, but since netfilter progs have no direct packet access,
> would it be clearer to describe this case as writing through ctx->skb (BTF
> walk) instead of 'direct packet access'? The test (ctx->skb->data[0] = 0)
> walks a BTF pointer, which is why the expected message is 'cannot write
> into rdonly_untrusted_mem' rather than a packet-access error.

I'll shorten this to:

"Assert that bpf netfilter programs do not allow skb write access."

I'll also follow the other suggested changes to function names.

      reply	other threads:[~2026-09-02  9:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02  6:52 [PATCH bpf] selftests/bpf: Add tests to assert that netfilter progs cannot write to skb Florian Westphal
2026-09-02  7:41 ` bot+bpf-ci
2026-09-02  9:00   ` Florian Westphal [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=apflyjoO0S-9XuUE@strlen.de \
    --to=fw@strlen.de \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bot+bpf-ci@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=martin.lau@kernel.org \
    --cc=mason@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