android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Heiko Carstens 4730c0a113 KVM: s390: fix sthyi error handling
[ Upstream commit 0c02cc576eac161601927b41634f80bfd55bfa9e ]

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 11:53:55 +02:00
..
alpha init: Remove check_bugs() leftovers 2023-08-08 19:56:34 +02:00
arc ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard 2023-07-27 08:37:18 +02:00
arm ARM: cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:33 +02:00
arm64 arm64: Fix bit-shifting UB in the MIDR_CPU_MODEL() macro 2023-08-11 11:53:54 +02:00
c6x
csky
h8300
hexagon
ia64 ia64/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:34 +02:00
m68k m68k/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:34 +02:00
microblaze
mips mips/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:34 +02:00
nds32
nios2 nios2: dts: Fix tse_mac "max-frame-size" property 2023-06-21 15:44:10 +02:00
openrisc openrisc: Properly store r31 to pt_regs on unhandled exceptions 2023-05-17 11:35:53 +02:00
parisc init: Remove check_bugs() leftovers 2023-08-08 19:56:34 +02:00
powerpc word-at-a-time: use the same return type for has_zero regardless of endianness 2023-08-11 11:53:54 +02:00
riscv
s390 KVM: s390: fix sthyi error handling 2023-08-11 11:53:55 +02:00
sh sh/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:34 +02:00
sparc sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:34 +02:00
um um/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:34 +02:00
unicore32
x86 x86: fix backwards merge of GDS/SRSO bit 2023-08-08 19:56:37 +02:00
xtensa init: Remove check_bugs() leftovers 2023-08-08 19:56:34 +02:00
.gitignore
Kconfig init: Provide arch_cpu_finalize_init() 2023-08-08 19:56:33 +02:00