linux-stable/arch/s390
Claudio Imbrenda 74f677ab16 s390/mm: Fix clearing storage keys for huge pages
[ Upstream commit 412050af2e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-17 11:43:49 +02:00
..
appldata
boot s390/ipl: add missing intersection check to ipl_report handling 2023-03-22 13:28:09 +01:00
configs locking/refcount: Consolidate implementations of refcount_t 2022-07-29 17:14:17 +02:00
crypto s390/archrandom: simplify back to earlier design and initialize earlier 2022-07-07 17:36:48 +02:00
hypfs s390/hypfs: avoid error message under KVM 2022-09-05 10:27:47 +02:00
include s390/pci: fix max size calculation in zpci_memcpy_toio() 2024-01-25 14:34:32 -08:00
kernel s390/entry: align system call table on 8 bytes 2024-04-13 12:51:37 +02:00
kvm KVM: s390: fix setting of fpc register 2024-02-23 08:24:56 +01:00
lib s390/uaccess: add missing earlyclobber annotations to __clear_user() 2023-04-05 11:16:46 +02:00
mm s390/mm: Fix clearing storage keys for huge pages 2024-05-17 11:43:49 +02:00
net bpf, s390: Fix potential memory leak about jit_data 2021-10-13 10:08:20 +02:00
numa s390/numa: set node distance to LOCAL_DISTANCE 2020-09-03 11:26:50 +02:00
oprofile
pci s390: use the correct count for __iowrite64_copy() 2024-03-01 13:13:37 +01:00
purgatory s390/kexec_file: fix diag308 subcode when loading crash kernel 2020-12-30 11:51:34 +01:00
scripts
tools
Kbuild
Kconfig s390: remove unneeded 'select BUILD_BIN2C' 2022-07-07 17:36:49 +02:00
Kconfig.debug
Makefile s390: disable -Warray-bounds 2022-05-18 09:47:26 +02:00