WSL2-Linux-Kernel/arch
Heiko Carstens 8e72db3ffa KVM: s390: fix sthyi error handling
[ Upstream commit 0c02cc576e ]

Commit 9fb6c9b3fe ("s390/sthyi: add cache to store hypervisor info")
added cache handling for store hypervisor info. This also changed the
possible return code for sthyi_fill().

Instead of only returning a condition code like the sthyi instruction would
do, it can now also return a negative error value (-ENOMEM). handle_styhi()
was not changed accordingly. In case of an error, the negative error value
would incorrectly injected into the guest PSW.

Add proper error handling to prevent this, and update the comment which
describes the possible return values of sthyi_fill().

Fixes: 9fb6c9b3fe ("s390/sthyi: add cache to store hypervisor info")
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Link: https://lore.kernel.org/r/20230727182939.2050744-1-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-11 15:13:49 +02:00
..
alpha init: Remove check_bugs() leftovers 2023-08-08 19:58:31 +02:00
arc ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard 2023-07-23 13:47:15 +02:00
arm ARM: cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:30 +02:00
arm64 arm64: dts: imx8mn-var-som: add missing pull-up for onboard PHY reset pinmux 2023-08-11 15:13:49 +02:00
csky kprobes: treewide: Cleanup the error messages for kprobes 2023-02-22 12:57:00 +01:00
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-01 08:27:21 +01:00
hexagon hexagon: Fix function name in die() 2023-02-01 08:27:20 +01:00
ia64 ia64/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:30 +02:00
m68k m68k/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:30 +02:00
microblaze exit: Add and use make_task_dead. 2023-02-01 08:27:20 +01:00
mips mips/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:30 +02:00
nds32 exit: Add and use make_task_dead. 2023-02-01 08:27:20 +01:00
nios2 nios2: dts: Fix tse_mac "max-frame-size" property 2023-06-21 15:59:14 +02:00
openrisc openrisc: Properly store r31 to pt_regs on unhandled exceptions 2023-05-11 23:00:37 +09:00
parisc init: Remove check_bugs() leftovers 2023-08-08 19:58:31 +02:00
powerpc word-at-a-time: use the same return type for has_zero regardless of endianness 2023-08-11 15:13:49 +02:00
riscv riscv: mm: fix truncation warning on RV32 2023-07-23 13:47:45 +02:00
s390 KVM: s390: fix sthyi error handling 2023-08-11 15:13:49 +02:00
sh sh/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:31 +02:00
sparc sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:31 +02:00
um um/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:31 +02:00
x86 x86: fix backwards merge of GDS/SRSO bit 2023-08-08 19:58:35 +02:00
xtensa init: Remove check_bugs() leftovers 2023-08-08 19:58:31 +02:00
.gitignore
Kconfig init: Provide arch_cpu_finalize_init() 2023-08-08 19:58:30 +02:00