linux-stable/arch
Heiko Carstens 569955a7bf s390/cmma: fix detection of DAT pages
commit 44d9304524 upstream.

If the cmma no-dat feature is available the kernel page tables are walked
to identify and mark all pages which are used for address translation (all
region, segment, and page tables). In a subsequent loop all other pages are
marked as "no-dat" pages with the ESSA instruction.

This information is visible to the hypervisor, so that the hypervisor can
optimize purging of guest TLB entries. The initial loop however is
incorrect: only the first three of the four pages which belong to segment
and region tables will be marked as being used for DAT. The last page is
incorrectly marked as no-dat.

This can result in incorrect guest TLB flushes.

Fix this by simply marking all four pages.

Cc: <stable@vger.kernel.org>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 17:15:08 +00:00
..
alpha Kbuild fixes for v6.5 (2nd) 2023-08-13 08:56:24 -07:00
arc ARC: atomics: Add compiler barrier to atomic operations... 2023-09-19 12:30:22 +02:00
arm ARM: 9320/1: fix stack depot IRQ stack filter 2023-11-28 17:14:47 +00:00
arm64 arm64: dts: qcom: ipq6018: Fix tcsr_mutex register size 2023-11-28 17:15:06 +00:00
csky arch/csky patches for 6.5 2023-07-01 21:12:32 -07:00
hexagon Merge branch 'expand-stack' 2023-06-28 20:35:21 -07:00
ia64 locking: remove spin_lock_prefetch 2023-08-12 09:18:47 -07:00
loongarch LoongArch: Disable WUC for pgprot_writecombine() like ioremap_wc() 2023-11-08 14:09:02 +01:00
m68k m68k: Fix invalid .section syntax 2023-07-24 14:50:02 +02:00
microblaze slab updates for 6.5 2023-06-29 16:34:12 -07:00
mips MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled 2023-10-06 13:16:01 +02:00
nios2 slab updates for 6.5 2023-06-29 16:34:12 -07:00
openrisc OpenRISC fix for 6.5 2023-07-12 16:28:53 -07:00
parisc parisc/pdc: Add width field to struct pdc_model 2023-11-28 17:15:03 +00:00
powerpc powerpc/perf: Fix disabling BHRB and instruction sampling 2023-11-28 17:14:58 +00:00
riscv riscv: provide riscv-specific is_trap_insn() 2023-11-28 17:14:53 +00:00
s390 s390/cmma: fix detection of DAT pages 2023-11-28 17:15:08 +00:00
sh sh: bios: Revive earlyprintk support 2023-11-20 11:57:10 +01:00
sparc sparc32: fix a braino in fault handling in csum_and_copy_..._user() 2023-11-02 09:36:59 +01:00
um um: virt-pci: fix missing declaration warning 2023-09-13 09:53:48 +02:00
x86 KVM: x86: Fix lapic timer interrupt lost after loading a snapshot. 2023-11-28 17:15:00 +00:00
xtensa xtensa: boot/lib: fix function prototypes 2023-10-06 13:16:04 +02:00
.gitignore
Kconfig cpu/SMT: Create topology_smt_thread_allowed() 2023-11-20 11:56:44 +01:00