[GIT PULL] LoongArch fixes for v6.19-rc4
From: Huacai Chen
Date: Fri Jan 02 2026 - 07:43:14 EST
The following changes since commit f8f9c1f4d0c7a64600e2ca312dec824a0bc2f1da:
Linux 6.19-rc3 (2025-12-28 13:24:26 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git tags/loongarch-fixes-6.19-1
for you to fetch changes up to bb85d206be208bbf834883e948125a35ac59993a:
samples/ftrace: Adjust LoongArch register restore order in direct calls (2025-12-31 15:19:25 +0800)
----------------------------------------------------------------
LoongArch fixes for v6.19-rc4
Complete CPUCFG registers definition, set correct protection_map[] for
VM_NONE/VM_SHARED, fix some bugs about orc stack unwinder, ftrace and BPF
JIT.
----------------------------------------------------------------
Chenghao Duan (7):
LoongArch: Enable exception fixup for specific ADE subcode
LoongArch: Refactor register restoration in ftrace_common_return
LoongArch: BPF: Save return address register ra to t0 before trampoline
LoongArch: BPF: Adjust the jump offset of tail calls
LoongArch: BPF: Enable trampoline-based tracing for module functions
LoongArch: BPF: Enhance the bpf_arch_text_poke() function
samples/ftrace: Adjust LoongArch register restore order in direct calls
Hengqi Chen (2):
LoongArch: BPF: Sign extend kfunc call arguments
LoongArch: BPF: Zero-extend bpf_tail_call() index
Huacai Chen (2):
LoongArch: Complete CPUCFG registers definition
LoongArch: Set correct protection_map[] for VM_NONE/VM_SHARED
Tiezhu Yang (3):
LoongArch: Use UNWIND_HINT_END_OF_STACK for entry points
LoongArch: Remove is_entry_func() and kernel_entry_end
LoongArch: Remove unnecessary checks for ORC unwinder
arch/loongarch/include/asm/loongarch.h | 7 ++++
arch/loongarch/kernel/head.S | 4 +-
arch/loongarch/kernel/mcount_dyn.S | 14 +++++--
arch/loongarch/kernel/traps.c | 5 +++
arch/loongarch/kernel/unwind_orc.c | 27 +++-----------
arch/loongarch/mm/cache.c | 8 ++--
arch/loongarch/net/bpf_jit.c | 58 +++++++++++++++++++++++------
arch/loongarch/net/bpf_jit.h | 26 +++++++++++++
samples/ftrace/ftrace-direct-modify.c | 8 ++--
samples/ftrace/ftrace-direct-multi-modify.c | 8 ++--
samples/ftrace/ftrace-direct-multi.c | 4 +-
samples/ftrace/ftrace-direct-too.c | 4 +-
samples/ftrace/ftrace-direct.c | 4 +-
13 files changed, 120 insertions(+), 57 deletions(-)