kernel_samsung_a53x/arch/s390/mm
Claudio Imbrenda a5c6cf4c43 s390/mm: Fix clearing storage keys for huge pages
[ Upstream commit 412050af2ea39407fe43324b0be4ab641530ce88 ]

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: 3afdfca69870 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 11:32:42 +01:00
..
cmm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dump_pagetables.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
extmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fault.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gmap.c s390/mm: Fix storage key clearing for guest huge pages 2024-11-19 11:32:42 +01:00
hugetlbpage.c s390/mm: Fix clearing storage keys for huge pages 2024-11-19 11:32:42 +01:00
init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kasan_init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
maccess.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page-states.c s390/cmma: fix detection of DAT pages 2024-11-18 12:11:11 +01:00
pageattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgalloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgtable.c KVM: s390/mm: Properly reset no-dat 2024-11-18 12:11:46 +01:00
vmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00