From: Huacai Chen <chenhuacai@kernel.org>
To: patchwork-bot+netdevbpf@kernel.org
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>,
hengqi.chen@gmail.com, loongarch@lists.linux.dev,
bpf@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] LoongArch: BPF: Make arch_protect_bpf_trampoline() return 0
Date: Fri, 20 Mar 2026 11:27:34 +0800 [thread overview]
Message-ID: <CAAhV-H6m4959xs9tYw7MhZFtarvpAFk8xRub7D9W5eycJ+67hg@mail.gmail.com> (raw)
In-Reply-To: <177395545307.1805592.472462208613814092.git-patchwork-notify@kernel.org>
On Fri, Mar 20, 2026 at 5:24 AM <patchwork-bot+netdevbpf@kernel.org> wrote:
>
> Hello:
>
> This patch was applied to netdev/net.git (main)
> by Huacai Chen <chenhuacai@loongson.cn>:
Emmm, this patch has already been upstream...
Huacai
>
> On Tue, 10 Mar 2026 14:47:06 +0800 you wrote:
> > Occasionally, there exists "text_copy_cb: operation failed" when executing
> > bpf selftests, the reason is copy_to_kernel_nofault() failed and the ecode
> > of estat register is 0x4 (PME: Page Modification Exception) due to the pte
> > is not writeable, the root cause is that there is another place to set pte
> > readonly which is in the generic weak arch_protect_bpf_trampoline().
> >
> > There are two ways to fix this race condition issue, the direct way is to
> > modify the generic weak arch_protect_bpf_trampoline() to add a mutex lock
> > for set_memory_rox(), but the other simple and proper way is to just make
> > arch_protect_bpf_trampoline() return 0 in the arch-specific code because
> > LoongArch already uses BPF prog pack allocator for trampoline.
> >
> > [...]
>
> Here is the summary with links:
> - [v1] LoongArch: BPF: Make arch_protect_bpf_trampoline() return 0
> https://git.kernel.org/netdev/net/c/b254c629a963
>
> 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:[~2026-03-20 3:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 6:47 [PATCH v1] LoongArch: BPF: Make arch_protect_bpf_trampoline() return 0 Tiezhu Yang
2026-03-10 7:29 ` bot+bpf-ci
2026-03-15 3:27 ` Hengqi Chen
2026-03-15 8:04 ` Huacai Chen
2026-03-19 21:24 ` patchwork-bot+netdevbpf
2026-03-20 3:27 ` Huacai Chen [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=CAAhV-H6m4959xs9tYw7MhZFtarvpAFk8xRub7D9W5eycJ+67hg@mail.gmail.com \
--to=chenhuacai@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=hengqi.chen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=patchwork-bot+netdevbpf@kernel.org \
--cc=yangtiezhu@loongson.cn \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).