linux/arch/s390/mm
Gerald Schaefer ec84aad4c3 s390/mm: Fix type mismatch in get_align_mask().
Commit 86f48f922b ("s390/mmap: disable mmap alignment when
randomize_va_space = 0") introduced get_align_mask() with return type of
'int', while the target field 'info.align_mask' in struct
vm_unmapped_area_info is 'unsigned long'.

With currently used masks, this should not cause truncation issues, but
fix it and return 'unsigned long' to avoid future problems.

Fixes: 86f48f922b ("s390/mmap: disable mmap alignment when randomize_va_space = 0")
Cc: stable@vger.kernel.org # v6.9+
Signed-off-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2026-07-08 17:02:47 +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: Revert support for DCACHE_WORD_ACCESS 2026-06-12 11:30:25 +02: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 KVM: s390: Fix S390_USER_OPEREXEC and more gmap fixes 2026-06-24 13:41:41 +02:00
hugetlbpage.c s390/mm: Complete ptep_get() conversion 2026-06-16 17:30:31 +02:00
init.c mm.git review status for mm-hotfixes-stable..mm-stable 2026-06-19 10:14:34 -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/mm: Fix type mismatch in get_align_mask(). 2026-07-08 17:02:47 +02:00
page-states.c KVM: s390: KVM page table management functions: allocation 2026-02-04 17:00:09 +01:00
pageattr.c s390/mm: Complete ptep_get() conversion 2026-06-16 17:30:31 +02: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 more s390 updates for 7.2 merge window 2026-06-22 07:43:48 -07:00