linux-stable/arch/s390/mm
Claudio Imbrenda 412050af2e s390/mm: Fix clearing storage keys for huge pages
The function __storage_key_init_range() expects the end address to be
the first byte outside the range to be initialized. I.e. end - start
should be the size of the area to be initialized.

The current code works because __storage_key_init_range() will still loop
over every page in the range, but it is slower than using sske_frame().

Fixes: 3afdfca698 ("s390/mm: Clear skeys for newly mapped huge guest pmds")
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Link: https://lore.kernel.org/r/20240416114220.28489-3-imbrenda@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2024-04-22 12:47:47 +02:00
..
Makefile s390/mm: provide simple ARCH_HAS_DEBUG_VIRTUAL support 2024-03-13 09:23:49 +01:00
cmm.c S390: Remove now superfluous sentinel elem from ctl_table arrays 2023-10-10 15:22:02 -07:00
dump_pagetables.c mm: ptdump: have ptdump_check_wx() return bool 2024-02-22 10:24:47 -08:00
extable.c s390: add support for DCACHE_WORD_ACCESS 2023-10-16 13:04:09 +02:00
extmem.c s390/extmem: fix virtual vs physical address confusion 2024-02-09 13:58:16 +01:00
fault.c s390/mm: fix NULL pointer dereference 2024-04-03 15:00:19 +02:00
gmap.c s390/mm: Fix storage key clearing for guest huge pages 2024-04-22 12:47:47 +02:00
hugetlbpage.c s390/mm: Fix clearing storage keys for huge pages 2024-04-22 12:47:47 +02:00
init.c arm64, powerpc, riscv, s390, x86: ptdump: refactor CONFIG_DEBUG_WX 2024-02-22 10:24:47 -08:00
maccess.c s390/ctlreg: rename ctl_reg.h to ctlreg.h 2023-09-19 13:26:56 +02:00
mmap.c s390/mmap: disable mmap alignment when randomize_va_space = 0 2024-02-09 13:58:14 +01:00
page-states.c s390/cmma: rework no-dat handling 2023-11-05 22:34:58 +01:00
pageattr.c mm/treewide: replace pud_large() with pud_leaf() 2024-03-06 13:04:19 -08:00
pfault.c s390/pfault: use consistent comment style 2023-07-29 14:57:18 +02:00
pgalloc.c s390: supplement for ptdesc conversion 2024-03-06 13:04:18 -08:00
pgtable.c mm/treewide: replace pud_large() with pud_leaf() 2024-03-06 13:04:19 -08:00
physaddr.c s390/mm: provide simple ARCH_HAS_DEBUG_VIRTUAL support 2024-03-13 09:23:49 +01:00
vmem.c mm/treewide: replace pud_large() with pud_leaf() 2024-03-06 13:04:19 -08:00