linux-next/arch/s390
Vasily Gorbik cc00550b2a Revert "s390/mm: Allow large pages for KASAN shadow mapping"
This reverts commit ff123eb774.

Allowing large pages for KASAN shadow mappings isn't inherently wrong,
but adding POPULATE_KASAN_MAP_SHADOW to large_allowed() exposes an issue
in can_large_pud() and can_large_pmd().

Since commit d8073dc6bc ("s390/mm: Allow large pages only for aligned
physical addresses"), both can_large_pud() and can_large_pmd() call _pa()
to check if large page physical addresses are aligned. However, _pa()
has a side effect: it allocates memory in POPULATE_KASAN_MAP_SHADOW
mode. This results in massive memory leaks.

The proper fix would be to address both large_allowed() and _pa()'s side
effects, but for now, revert this change to avoid the leaks.

Fixes: ff123eb774 ("s390/mm: Allow large pages for KASAN shadow mapping")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2024-11-29 13:41:11 +01:00
..
appldata sysctl: treewide: constify the ctl_table argument of proc_handlers 2024-07-24 20:59:29 +02:00
boot Revert "s390/mm: Allow large pages for KASAN shadow mapping" 2024-11-29 13:41:11 +01:00
configs s390 updates for 6.13 merge window 2024-11-18 17:45:41 -08:00
crypto s390/crypto: Add hardware acceleration for full AES-XTS mode 2024-10-29 11:17:19 +01:00
hypfs [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
include s390/spinlock: Generate shorter code for arch_spin_unlock() 2024-11-28 14:12:04 +01:00
kernel s390/entry: Mark IRQ entries to fix stack depot warnings 2024-11-21 12:44:07 +01:00
kvm KVM: s390: Remove one byte cmpxchg() usage 2024-11-27 12:55:15 +01:00
lib s390/spinlock: Use flag output constraint for arch_cmpxchg_niai8() 2024-11-28 14:14:34 +01:00
mm s390/mm: Add PTE_MARKER support for hugetlbfs mappings 2024-11-27 12:57:01 +01:00
net s390/bpf: Implement exceptions 2024-07-08 16:39:35 +02:00
pci s390/pci: Fix potential double remove of hotplug slot 2024-11-28 14:12:04 +01:00
purgatory s390: Fix various typos 2024-10-25 16:03:23 +02:00
tools s390 updates for 6.12 merge window 2024-09-21 09:02:54 -07:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig s390: Support PREEMPT_DYNAMIC 2024-11-28 14:12:04 +01:00
Kconfig.debug s390/Kconfig.debug: fix indentation 2022-06-01 12:03:15 +02:00
Makefile s390: use a larger stack for KMSAN 2024-07-03 19:30:24 -07:00
Makefile.postlink s390/build: Avoid relocation information in final vmlinux 2024-08-27 20:16:48 +02:00