linux/arch/s390/mm
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
..
cmm.c s390/cmm: Replace sprintf() with scnprintf() for buffer safety 2025-10-21 10:17:20 +02:00
dump_pagetables.c s390 updates for 6.19 merge window 2025-12-02 16:37:00 -08:00
extable.c s390/uaccess: Shorten raw_copy_from_user() / raw_copy_to_user() inline assemblies 2025-03-04 17:18:03 +01:00
extmem.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fault.c s390/mm: Fix phys_to_folio() usage in do_secure_storage_access() 2026-04-28 14:45:03 +02:00
gmap_helpers.c mm: rename zap_page_range_single() to zap_vma_range() 2026-04-05 13:53:15 -07:00
hugetlbpage.c Loongarch: 2026-02-13 11:31:15 -08:00
init.c mm: cache struct page for empty_zero_page and return it from ZERO_PAGE() 2026-04-05 13:53:01 -07:00
maccess.c s390: Remove superfluous newlines from inline assemblies 2025-09-29 13:52:08 +02:00
Makefile KVM: s390: Remove gmap from s390/mm 2026-02-04 17:00:10 +01:00
mmap.c s390: Remove compat support 2025-11-17 11:10:38 +01:00
page-states.c KVM: s390: KVM page table management functions: allocation 2026-02-04 17:00:09 +01:00
pageattr.c s390: Move sske_frame() to a header 2026-02-04 17:00:08 +01:00
pfault.c s390/pfault: Fix virtual vs physical address confusion 2026-02-25 17:00:25 +01:00
pgalloc.c KVM: S390: Remove PGSTE code from linux/s390 mm 2026-02-04 17:00:10 +01:00
pgtable.c KVM: S390: Remove PGSTE code from linux/s390 mm 2026-02-04 17:00:10 +01:00
physaddr.c s390/mm: provide simple ARCH_HAS_DEBUG_VIRTUAL support 2024-03-13 09:23:49 +01:00
vmem.c s390: Unmap early KASAN shadow on memory offlining 2025-12-07 16:15:19 +01:00