linux/arch/s390
Heiko Carstens b95e0e7928 s390/mm: Fix phys_to_folio() usage in do_secure_storage_access()
In case of a Secure-Storage-Access exception the effective aka virtual
address which caused the exception is contained within the TEID.

do_secure_storage_access() incorrectly uses phys_to_folio() instead of
virt_to_folio() to translate the virtual address to the corresponding
folio.

Fix this by using virt_to_folio() instead of phys_to_folio().

Fixes: 084ea4d611 ("s390/mm: add (non)secure page access exceptions handlers")
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2026-04-28 14:45:03 +02:00
..
appldata Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
boot s390/boot: Respect kaslr_enabled() for identity randomization 2026-03-05 21:08:50 +01:00
configs s390 updates for 7.1 merge window 2026-04-22 11:13:45 -07:00
crypto This update includes the following changes: 2026-04-15 15:22:26 -07:00
hypfs Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
include s390 updates for 7.1 merge window 2026-04-22 11:13:45 -07:00
kernel s390/debug: Reject zero-length input in debug_input_flush_fn() 2026-04-28 14:45:02 +02:00
kvm - ESA nesting support 2026-04-13 19:01:15 +02:00
lib s390: move the XOR code to lib/raid/ 2026-04-02 23:36:19 -07:00
mm s390/mm: Fix phys_to_folio() usage in do_secure_storage_access() 2026-04-28 14:45:03 +02:00
net bpf: Pass bpf_verifier_env to JIT 2026-04-16 07:03:40 -07:00
pci s390 updates for 7.1 merge window 2026-04-22 11:13:45 -07:00
purgatory kbuild: Consolidate C dialect options 2026-03-12 12:52:37 +01:00
tools s390: Add Dat-Enhancement facility 1 to architecture level set 2025-11-06 14:12:30 +01:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig s390 updates for 7.1 merge window 2026-04-22 11:13:45 -07:00
Kconfig.debug s390/mm: Add configurable STRICT_MM_TYPECHECKS 2025-03-11 15:27:34 +01:00
Makefile Update to the VDSO subsystem: 2026-04-14 10:53:44 -07:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00