]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot/compressed/64: Print error if 5-level paging is not supported
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Mon, 4 Dec 2017 12:40:56 +0000 (15:40 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Dec 2017 09:36:26 +0000 (10:36 +0100)
commit519d7e2e84090ca6b5ae3165a8d4509e325e747e
tree7fd60dce0164cd66d4f68bc2b2158ab336f7e6b7
parent96ab54ae4d646496814255952abc031a05139748
x86/boot/compressed/64: Print error if 5-level paging is not supported

If the machine does not support the paging mode for which the kernel was
compiled, the boot process cannot continue.

It's not possible to let the kernel detect the mismatch as it does not even
reach the point where cpu features can be evaluted due to a triple fault in
the KASLR setup.

Instead of instantaneous silent reboot, emit an error message which gives
the user the information why the boot fails.

Fixes: 59436a151aa0 ("x86: Enable 5-level paging support via CONFIG_X86_5LEVEL=y")
Reported-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Borislav Petkov <bp@suse.de>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: stable@vger.kernel.org
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: linux-mm@kvack.org
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lkml.kernel.org/r/20171204124059.63515-3-kirill.shutemov@linux.intel.com
arch/x86/boot/compressed/misc.c