BPF List
 help / color / mirror / Atom feed
From: Anton Protopopov <a.s.protopopov@gmail.com>
To: bpf@vger.kernel.org
Cc: Alexei Starovoitov <ast@kernel.org>
Subject: Re: [PATCH bpf-next] bpf: force BPF_F_RDONLY_PROG on insn array creation
Date: Fri, 28 Nov 2025 06:24:18 +0000	[thread overview]
Message-ID: <aSlAEotGnO518JYf@mail.gmail.com> (raw)
In-Reply-To: <20251127210656.3239541-1-a.s.protopopov@gmail.com>

On 25/11/27 09:06PM, Anton Protopopov wrote:
> The original implementation added a hack to check_mem_access()
> to prevent programs from writing into insn arrays. To get rid
> of this hack, enforce BPF_F_RDONLY_PROG on map creation.
> 
> Also fix the corresponding selftest, as the error message changes
> with this patch.

Will resend it as part of a series, as the following patch depends on this one.
(See https://lore.kernel.org/bpf/20251127210732.3241888-1-a.s.protopopov@gmail.com/T/#u)

> [...]

      reply	other threads:[~2025-11-28  6:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-27 21:06 [PATCH bpf-next] bpf: force BPF_F_RDONLY_PROG on insn array creation Anton Protopopov
2025-11-28  6:24 ` Anton Protopopov [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=aSlAEotGnO518JYf@mail.gmail.com \
    --to=a.s.protopopov@gmail.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    /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