WSL2-Linux-Kernel/arch
Claudio Imbrenda 49a2686add KVM: s390: pv: fix index value of replaced ASCE
[ Upstream commit c2fceb59bb ]

The index field of the struct page corresponding to a guest ASCE should
be 0. When replacing the ASCE in s390_replace_asce(), the index of the
new ASCE should also be set to 0.

Having the wrong index might lead to the wrong addresses being passed
around when notifying pte invalidations, and eventually to validity
intercepts (VM crash) if the prefix gets unmapped and the notifier gets
called with the wrong address.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Fixes: faa2f72cb3 ("KVM: s390: pv: leak the topmost page table when destroy fails")
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20230705111937.33472-3-imbrenda@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-03 10:22:26 +02:00
..
alpha alpha: fix R_ALPHA_LITERAL reloc for large modules 2023-03-17 08:49:01 +01:00
arc ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard 2023-07-23 13:47:15 +02:00
arm ARM: orion5x: fix d2net gpio initialization 2023-07-23 13:47:36 +02:00
arm64 arm64: errata: Add detection for TRBE overwrite in FILL mode 2023-07-23 13:47:48 +02:00
csky
h8300
hexagon
ia64 ia64: fix an addr to taddr in huge_pte_offset() 2023-05-11 23:00:39 +09:00
m68k m68k: Move signal frame following exception on 68020/030 2023-05-30 13:55:30 +01:00
microblaze
mips MIPS: dec: prom: Address -Warray-bounds warning 2023-07-27 08:46:58 +02:00
nds32
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 parisc: Delete redundant register definitions in <asm/assembly.h> 2023-07-05 18:25:05 +01:00
powerpc powerpc/security: Fix Speculation_Store_Bypass reporting on Power10 2023-07-23 13:47:47 +02:00
riscv riscv: mm: fix truncation warning on RV32 2023-07-23 13:47:45 +02:00
s390 KVM: s390: pv: fix index value of replaced ASCE 2023-08-03 10:22:26 +02:00
sh sh: dma: Fix DMA channel offset calculation 2023-07-23 13:47:30 +02:00
sparc
um um: Use HOST_DIR for mrproper 2023-07-23 13:47:33 +02:00
x86 x86/cpu/amd: Add a Zenbleed fix 2023-07-24 19:08:20 +02:00
xtensa xtensa: ISS: fix call to split_if_spec 2023-07-23 13:47:56 +02:00
.gitignore
Kconfig