linux/arch/loongarch/net
Chenghao Duan e7a7d7e629 LoongArch: BPF: Enhance the bpf_arch_text_poke() function
commit 73721d8676 upstream.

Enhance the bpf_arch_text_poke() function to enable accurate location
of BPF program entry points.

When modifying the entry point of a BPF program, skip the "move t0, ra"
instruction to ensure the correct logic and copy of the jump address.

Cc: stable@vger.kernel.org
Fixes: 677e6123e3 ("LoongArch: BPF: Disable trampoline for kernel module function trace")
Signed-off-by: Chenghao Duan <duanchenghao@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-08 10:17:21 +01:00
..
bpf_jit.c LoongArch: BPF: Enhance the bpf_arch_text_poke() function 2026-01-08 10:17:21 +01:00
bpf_jit.h LoongArch: BPF: Sign extend kfunc call arguments 2026-01-08 10:17:13 +01:00
Makefile LoongArch: Add BPF JIT support 2022-10-12 16:36:20 +08:00