]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: ignore memory above supported physical address size
authorKristina Martsenko <kristina.martsenko@arm.com>
Thu, 18 Jan 2018 19:13:11 +0000 (19:13 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 19 Jan 2018 13:09:40 +0000 (13:09 +0000)
commit5c9c1c262c96447854ee174f91b04949c605af24
treeeb7f4fca42a6d238cb3b66d744d60d171f042913
parent1737921ff9e72e6175382fcc03b8d7dd62833be7
arm64: mm: ignore memory above supported physical address size

When booting a kernel without 52-bit PA support (e.g. a kernel with 4k
pages) on a system with 52-bit memory, the kernel will currently try to
use the 52-bit memory and crash. Fix this by ignoring any memory higher
than what the kernel supports.

Fixes: 3e6c26a21cf7 ("arm64: enable 52-bit physical address support")
Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/init.c