linux_dsm_epyc7002/arch
Vincent Chen 98d6a702e9 riscv: Ensure the value of FP registers in the core dump file is up to date
commit 379eb01c21795edb4ca8d342503bd2183a19ec3a upstream.

The value of FP registers in the core dump file comes from the
thread.fstate. However, kernel saves the FP registers to the thread.fstate
only before scheduling out the process. If no process switch happens
during the exception handling process, kernel will not have a chance to
save the latest value of FP registers to thread.fstate. It will cause the
value of FP registers in the core dump file may be incorrect. To solve this
problem, this patch force lets kernel save the FP register into the
thread.fstate if the target task_struct equals the current.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Fixes: b8c8a9590e ("RISC-V: Add FP register ptrace support for gdb.")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-05 18:57:29 +02:00
..
alpha alpha: Send stop IPI to send to online CPUs 2024-07-05 18:52:32 +02:00
arc ARC: Fix CONFIG_STACKDEPOT 2024-07-05 18:56:15 +02:00
arm ARM: dts: nomadik: Fix up interrupt controller node names 2024-07-05 18:55:44 +02:00
arm64 arm64: dts: qcom: msm8992-bullhead: Remove PSCI 2024-07-05 18:55:45 +02:00
c6x
csky
h8300
hexagon
ia64 mm/page_alloc: fix memory map initialization for descending nodes 2021-07-25 14:36:18 +02:00
m68k
microblaze init: add dsm gpl source 2024-07-05 18:00:04 +02:00
mips MIPS: Malta: Do not byte-swap accesses to the CBUS UART 2024-07-05 18:52:29 +02:00
nds32 nds32: fix up stack guard gap 2021-07-28 14:35:46 +02:00
nios2
openrisc
parisc
powerpc powerpc/smp: Fix OOPS in topology_init() 2024-07-05 18:54:41 +02:00
riscv riscv: Ensure the value of FP registers in the core dump file is up to date 2024-07-05 18:57:29 +02:00
s390 s390/pci: fix use after free of zpci_dev 2024-07-05 18:55:59 +02:00
sh
sparc init: add dsm gpl source 2024-07-05 18:00:04 +02:00
um
x86 KVM: X86: Fix warning caused by stale emulation context 2024-07-05 18:55:30 +02:00
xtensa init: add dsm gpl source 2024-07-05 18:00:04 +02:00
.gitignore
Kconfig