linux-loongson/arch/loongarch/kernel
Huacai Chen 112ca94f6c LoongArch: Save LBT before FPU in setup_sigcontext()
Now if preemption happens between protected_save_fpu_context() and
protected_save_lbt_context(), FTOP context is lost. Because FTOP is
saved by protected_save_lbt_context() but protected_save_fpu_context()
disables TM before that. So save LBT before FPU in setup_sigcontext()
to avoid this potential risk.

Signed-off-by: Hanlu Li <lihanlu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2025-08-20 22:23:44 +08:00
..
.gitignore
access-helper.h
acpi.c LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
alternative.c LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
asm-offsets.c ARM: 2025-03-25 14:22:07 -07:00
cacheinfo.c LoongArch: Correct the cacheinfo sharing information 2025-01-25 18:51:33 +08:00
cpu-probe.c LoongArch: Derive timer max_delta from PRCFG1's timer_bits 2025-01-25 18:51:33 +08:00
crash_dump.c
dma.c dma-mapping: Add helpers for dma_range_map bounds 2024-04-26 12:07:24 +02:00
efi-header.S include: pe.h: Fix PE definitions 2025-05-21 16:46:37 +02:00
efi.c LoongArch: Reserve the EFI memory map region 2025-06-26 20:07:18 +08:00
elf.c LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
entry.S LoongArch: Enable HAVE_ARCH_STACKLEAK 2025-05-30 21:45:42 +08:00
env.c LoongArch: Avoid in-place string operation on FDT content 2025-08-03 22:49:47 +08:00
fpu.S LoongArch: Handle fp, lsx, lasx and lbt assembly symbols 2025-04-26 09:58:12 +08:00
ftrace_dyn.c LoongArch: ftrace: Use RCU in all users of __module_text_address(). 2025-03-10 11:54:45 +01:00
ftrace.c
genex.S LoongArch: Move __arch_cpu_idle() to .cpuidle.text section 2025-05-14 22:17:52 +08:00
head.S include: pe.h: Fix PE definitions 2025-05-21 16:46:37 +02:00
hw_breakpoint.c LoongArch: Change 8 to 14 for LOONGARCH_MAX_{BRP,WRP} 2025-01-26 21:49:59 +08:00
idle.c LoongArch: Fix idle VS timer enqueue 2025-02-13 12:02:35 +08:00
image-vars.h efi/loongarch: Directly position the loaded image file 2023-12-19 11:16:37 +01:00
inst.c LoongArch: BPF: Add dynamic code modification support 2025-08-05 19:00:18 +08:00
irq.c LoongArch: Switch to irq_set_nr_irqs() 2024-10-16 21:56:56 +02:00
jump_label.c
kdebugfs.c LoongArch: Add debugfs entries to switch SFB/TSO state 2025-01-26 21:49:59 +08:00
kfpu.c LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
kgdb.c LoongArch: Rework the arch_kgdb_breakpoint() implementation 2025-03-30 16:31:09 +08:00
kprobes.c LoongArch: Make the users of larch_insn_gen_break() constant 2024-07-20 22:41:07 +08:00
lbt.S LoongArch: Handle fp, lsx, lasx and lbt assembly symbols 2025-04-26 09:58:12 +08:00
machine_kexec.c LoongArch: Convert unreachable() to BUG() 2025-03-08 13:50:45 +08:00
Makefile arch: use always-$(KBUILD_BUILTIN) for vmlinux.lds 2025-06-07 14:38:07 +09:00
Makefile.syscalls syscalls: fix syscall macros for newfstat/newfstatat 2024-08-02 15:20:47 +02:00
mcount_dyn.S fgraph: Replace fgraph_ret_regs with ftrace_regs 2024-12-26 10:50:02 -05:00
mcount.S fgraph: Replace fgraph_ret_regs with ftrace_regs 2024-12-26 10:50:02 -05:00
mem.c
module-sections.c LoongArch: Optimize module load time by optimizing PLT/GOT counting 2025-08-20 22:23:44 +08:00
module.c arch: make execmem setup available regardless of CONFIG_MODULES 2024-05-14 00:31:44 -07:00
numa.c LoongArch: Introduce the numa_memblks conversion 2025-05-30 21:45:43 +08:00
paravirt.c LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
perf_event.c loongarch/perf: Remove driver-specific throttle support 2025-05-21 13:57:46 +02:00
perf_regs.c
proc.c LoongArch: Remove the deprecated notifier hook mechanism 2025-02-13 12:02:40 +08:00
process.c LoongArch: entry: Fix include order 2025-05-07 11:05:57 +02:00
ptrace.c LoongArch: ptrace: Use USER_REGSET_NOTE_TYPE() to specify regset note names 2025-07-14 22:27:47 -07:00
relocate_kernel.S LoongArch: Make relocate_new_kernel_size be a .quad value 2025-08-03 22:49:47 +08:00
relocate.c LoongArch: Add support for relocating the kernel with RELR relocation 2024-07-20 22:41:07 +08:00
reset.c LoongArch: Fix idle VS timer enqueue 2025-02-13 12:02:35 +08:00
rethook_trampoline.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
rethook.c
rethook.h LoongArch: Replace kretprobe with rethook 2023-06-29 20:58:44 +08:00
setup.c LoongArch changes for v6.17 2025-08-08 06:36:48 +03:00
signal.c LoongArch: Save LBT before FPU in setup_sigcontext() 2025-08-20 22:23:44 +08:00
smp.c LoongArch: Add SCHED_MC (Multi-core scheduler) support 2025-05-30 21:45:42 +08:00
stacktrace.c LoongArch: Add kernel livepatching support 2024-03-11 22:23:47 +08:00
switch.S LoongArch: Correct the __switch_to() prototype in comments 2025-01-25 18:51:42 +08:00
syscall.c LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall) 2024-09-17 22:23:10 +08:00
sysrq.c
time.c LoongArch: Add cpuhotplug hooks to fix high cpu usage of vCPU threads 2025-08-20 22:23:44 +08:00
topology.c LoongArch: convert to use arch_cpu_is_hotpluggable() 2023-12-06 12:41:50 +09:00
traps.c LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
unaligned.c LoongArch: Add debugfs entries to switch SFB/TSO state 2025-01-26 21:49:59 +08:00
unwind_guess.c LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
unwind_orc.c LoongArch: Don't use %pK through printk() in unwinder 2025-08-03 22:49:47 +08:00
unwind_prologue.c LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
unwind.c LoongArch: Set unwind stack type to unknown rather than set error flag 2023-12-09 15:49:15 +08:00
uprobes.c LoongArch: uprobes: Remove redundant code about resume_era 2025-05-14 22:18:10 +08:00
vdso.c LoongArch: Enable ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS 2025-05-30 21:45:42 +08:00
vmlinux.lds.S LoongArch: Add support for relocating the kernel with RELR relocation 2024-07-20 22:41:07 +08:00