mirror-linux/arch/s390/mm
Claudio Imbrenda 2f393c228c KVM: s390: Fix gmap_helper_zap_one_page() again
A few checks were missing in gmap_helper_zap_one_page(), which can lead
to memory corruption in the guest under specific circumstances.

Add the missing checks.

Fixes: 5deafa27d9 ("KVM: s390: Fix to clear PTE when discarding a swapped page")
Cc: stable@vger.kernel.org
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Tested-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2025-12-08 13:06:14 +01:00
..
Makefile KVM: s390: Refactor and split some gmap helpers 2025-05-28 17:48:04 +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 s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
fault.c s390: Remove compat support 2025-11-17 11:10:38 +01:00
gmap.c Significant patch series in this merge are as follows: 2025-12-05 13:52:43 -08:00
gmap_helpers.c KVM: s390: Fix gmap_helper_zap_one_page() again 2025-12-08 13:06:14 +01:00
hugetlbpage.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
init.c s390: Handle KCOV __init vs inline mismatches 2025-07-21 21:44:01 -07:00
maccess.c s390: Remove superfluous newlines from inline assemblies 2025-09-29 13:52:08 +02:00
mmap.c s390: Remove compat support 2025-11-17 11:10:38 +01:00
page-states.c
pageattr.c s390/vmem: Support 2G page splitting for KASAN shadow freeing 2025-12-07 16:15:19 +01:00
pfault.c sched: Provide and use set_need_resched_current() 2025-11-20 22:26:09 +01:00
pgalloc.c s390/mm: Support removal of boot-allocated virtual memory map 2025-10-14 14:24:53 +02:00
pgtable.c Significant patch series in this merge are as follows: 2025-12-05 13:52:43 -08:00
physaddr.c
vmem.c s390: Unmap early KASAN shadow on memory offlining 2025-12-07 16:15:19 +01:00