linux-stable/arch
Heiko Carstens 7453e81061 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:20:05 +00:00
..
alpha
arc
arm
arm64 arm64: dts: qcom: ipq6018: Fix tcsr_mutex register size 2023-11-28 17:20:03 +00:00
csky
hexagon
ia64
loongarch
m68k
microblaze
mips mips: use nth_page() in place of direct struct page manipulation 2023-11-28 17:20:05 +00:00
nios2
openrisc
parisc parisc/pdc: Add width field to struct pdc_model 2023-11-28 17:20:00 +00:00
powerpc powerpc/perf: Fix disabling BHRB and instruction sampling 2023-11-28 17:19:55 +00:00
riscv riscv: split cache ops out of dma-noncoherent.c 2023-11-28 17:19:49 +00:00
s390 s390/cmma: fix detection of DAT pages 2023-11-28 17:20:05 +00:00
sh
sparc
um
x86 acpi/processor: sanitize _OSC/_PDC capabilities for Xen dom0 2023-11-28 17:19:57 +00:00
xtensa
.gitignore
Kconfig