]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/mm: Consider KMSAN modules metadata for paging levels
authorVasily Gorbik <gor@linux.ibm.com>
Tue, 10 Dec 2024 11:35:34 +0000 (12:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:01:59 +0000 (14:01 +0100)
commit532d40c321fb857755cbd1f136fa14b6a923d476
treeb4f4fa519615d7530f9de6475fffe37153058e7a
parentbaedaacee165744cd8980b8acca64bcca32e56e0
s390/mm: Consider KMSAN modules metadata for paging levels

[ Upstream commit 282da38b465395c930687974627c24f47ddce5ff ]

The calculation determining whether to use three- or four-level paging
didn't account for KMSAN modules metadata. Include this metadata in the
virtual memory size calculation to ensure correct paging mode selection
and avoiding potentially unnecessary physical memory size limitations.

Fixes: 65ca73f9fb36 ("s390/mm: define KMSAN metadata for vmalloc and modules")
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/boot/startup.c