BPF List
 help / color / mirror / Atom feed
From: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>
To: "Puranjay Mohan" <puranjay@kernel.org>, <bpf@vger.kernel.org>
Cc: <daniel@iogearbox.net>, <andrii@kernel.org>, <eddyz87@gmail.com>,
	<memxor@gmail.com>, "Puranjay Mohan" <puranjay12@gmail.com>
Subject: Re: [PATCH bpf] bpf: Don't hold pack_mutex over arm64 IPIs
Date: Wed, 28 Oct 2026 04:23:36 +0000	[thread overview]
Message-ID: <DMG6O6EP77A5.2C5VRL2JY4KAJ@gmail.com> (raw)
In-Reply-To: <m21p9avrr7.fsf@kernel.org>

On Tue, Oct 27, 2026 at 12:59 PM Puranjay Mohan <puranjay@kernel.org> wrote:
> Can't we do the bpf_arch_text_invalidate() before taking the pack_mutex?
> then it works on all architectures and there is no lock nesting.
>
> Because the caller owns [ptr, ptr+size) until bitmap_clear() so it
> should work.

Interesting idea. I guess that's simpler.
bpf_arch_text_copy() already writes into a pack without pack_mutex.

but other archs gain nothing. fine.

> I can commandeer it if you want.

Sure. pls go ahead.

pw-bot:cr

first time for my own patches. next level unlocked :)


      reply	other threads:[~2026-10-28  4:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-24  3:10 [PATCH bpf] bpf: Don't hold pack_mutex over arm64 IPIs Alexei Starovoitov
2026-10-27 19:59 ` Puranjay Mohan
2026-10-28  4:23   ` Alexei Starovoitov [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=DMG6O6EP77A5.2C5VRL2JY4KAJ@gmail.com \
    --to=alexei.starovoitov@gmail.com \
    --cc=andrii@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=memxor@gmail.com \
    --cc=puranjay12@gmail.com \
    --cc=puranjay@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