linux-stable/arch/loongarch
Huacai Chen 95c5d3fbd3 LoongArch: Ensure FP/SIMD registers in the core dump file is up to date
[ Upstream commit 656f9aec07 ]

This is a port of commit 379eb01c21 ("riscv: Ensure the value
of FP registers in the core dump file is up to date").

The values of FP/SIMD registers in the core dump file come from the
thread.fpu. However, kernel saves the FP/SIMD registers only before
scheduling out the process. If no process switch happens during the
exception handling, kernel will not have a chance to save the latest
values of FP/SIMD registers. So it may cause their values in the core
dump file incorrect. To solve this problem, force fpr_get()/simd_get()
to save the FP/SIMD registers into the thread.fpu if the target task
equals the current task.

Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:48:44 +02:00
..
boot loongarch: efi: enable generic EFI compressed boot 2022-09-20 09:50:31 +02:00
configs ixgb: Remove ixgb driver 2023-03-19 10:51:07 +00:00
crypto LoongArch: crypto: Add crc32 and crc32c hw acceleration 2023-05-01 17:19:43 +08:00
include LoongArch: Ensure FP/SIMD registers in the core dump file is up to date 2023-09-13 09:48:44 +02:00
kernel LoongArch: Ensure FP/SIMD registers in the core dump file is up to date 2023-09-13 09:48:44 +02:00
lib LoongArch: Fix return value underflow in exception path 2023-08-03 10:26:11 +02:00
mm mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-07-01 13:12:39 +02:00
net LoongArch: BPF: Fix check condition to call lu32id in move_imm() 2023-08-03 10:26:11 +02:00
pci LoongArch: Add FDT booting support from efi system table 2022-12-14 08:41:53 +08:00
power LoongArch: Enable PG when wakeup from suspend 2023-04-18 19:38:58 +08:00
vdso vdso: Improve cmd_vdso_check to check all dynamic relocations 2023-03-21 21:15:34 +01:00
Kbuild LoongArch: Add BPF JIT support 2022-10-12 16:36:20 +08:00
Kconfig loongarch/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:04:48 +02:00
Kconfig.debug LoongArch: Add prologue unwinder support 2022-08-12 13:10:11 +08:00
Makefile LoongArch: Only fiddle with CHECKFLAGS if `need-compiler' 2023-09-13 09:47:52 +02:00