linux-stable/arch
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
..
alpha alpha: remove __init annotation from exported page_is_ram() 2023-08-16 18:32:31 +02:00
arc ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard 2023-07-19 16:36:19 +02:00
arm ARM: OMAP2+: Fix -Warray-bounds warning in _pwrdm_state_switch() 2023-09-13 09:48:38 +02:00
arm64 arm64: sdei: abort running SDEI handlers during crash 2023-09-13 09:48:42 +02:00
csky csky: fix up lock_mm_and_find_vma() conversion 2023-07-01 13:12:41 +02:00
hexagon mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-07-01 13:12:39 +02:00
ia64 ia64/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:04:48 +02:00
loongarch LoongArch: Ensure FP/SIMD registers in the core dump file is up to date 2023-09-13 09:48:44 +02:00
m68k m68k: Fix invalid .section syntax 2023-09-13 09:47:51 +02:00
microblaze mm: always expand the stack with the mmap write lock held 2023-07-01 13:12:40 +02:00
mips locking/arch: Avoid variable shadowing in local_try_cmpxchg() 2023-09-13 09:47:57 +02:00
nios2 mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-07-01 13:12:39 +02:00
openrisc openrisc: Union fpcsr and oldmask in sigcontext to unbreak userspace ABI 2023-07-23 13:53:45 +02:00
parisc parisc: Fix /proc/cpuinfo output for lscpu 2023-09-13 09:48:41 +02:00
powerpc powerpc/ftrace: Fix dropping weak symbols with older toolchains 2023-09-13 09:48:39 +02:00
riscv riscv: Mark KASAN tmp* page tables variables as static 2023-09-13 09:48:38 +02:00
s390 s390/ipl: add missing secure/has_secure file to ipl type 'unknown' 2023-09-13 09:48:43 +02:00
sh sh/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:04:49 +02:00
sparc sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:04:49 +02:00
um um: virt-pci: fix missing declaration warning 2023-09-13 09:48:36 +02:00
x86 perf/x86/uncore: Correct the number of CHAs on EMR 2023-09-13 09:48:44 +02:00
xtensa xtensa: PMU: fix base address for the newer hardware 2023-09-13 09:48:39 +02:00
.gitignore
Kconfig init: Provide arch_cpu_finalize_init() 2023-08-08 20:04:47 +02:00