Re: [PATCH v1 2/2] LoongArch: BPF: Use beqz and bnez instructions for trampoline

From: Tiezhu Yang

Date: Fri Nov 06 2026 - 21:16:37 EST


On 11/6/26 10:45 PM, Huacai Chen wrote:
On Tue, Nov 3, 2026 at 10:27 AM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:

On 2026/11/2 下午3:53, bot+bpf-ci@xxxxxxxxxx wrote:
LoongArch: BPF: Use beqz and bnez instructions for trampoline

TL;DR: Commit message only: the claimed branch-overflow risk looks impossible,
since trampolines fit in one page and the old code behaved identically, so the
Fixes: and Cc: stable tags may not be justified.

...

Could the changelog drop the overflow-risk wording, or describe the change
as a cleanup, and could the Fixes: and Cc: stable tags be reconsidered given
that stable-kernel-rules requires a fix for a real bug?

Will update the commit message and remove the 'Fixes' and 'Cc: stable'
tags. If no more comments, I will send out v2 next week.
Fixes can be removed but I suggest keep Cc: stable, the overflow risk
actually exists.

Since the branch overflow is technically impossible under the current
1-page limit of BPF trampoline, I plan to drop the Fixes and Cc: stable
tags in v2 to align with standard upstream cleanup rules.

If you still prefer to backport this for architecture-level defense,
please feel free to append the Cc: stable tag when applying the patch.

Thanks,
Tiezhu