]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm/64: Fix reboot interaction with CR4.PCIDE
authorAndy Lutomirski <luto@kernel.org>
Mon, 9 Oct 2017 04:53:05 +0000 (21:53 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 9 Oct 2017 11:31:04 +0000 (13:31 +0200)
commitde793d1f3a63784abdf191eb349ec8dc47d1c23c
tree9b85f57af2c7b646e284b194636d925c6e265e7a
parent1206841b01257df395b09307cd16b52338a7c22f
x86/mm/64: Fix reboot interaction with CR4.PCIDE

Trying to reboot via real mode fails with PCID on: long mode cannot
be exited while CR4.PCIDE is set.  (No, I have no idea why, but the
SDM and actual CPUs are in agreement here.)  The result is a GPF and
a hang instead of a reboot.

I didn't catch this in testing because neither my computer nor my VM
reboots this way.  I can trigger it with reboot=bios, though.

Fixes: cec9b277278c ("x86/mm: Enable CR4.PCIDE on supported systems")
Reported-and-tested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Borislav Petkov <bp@alien8.de>
Link: https://lkml.kernel.org/r/f1e7d965998018450a7a70c2823873686a8b21c0.1507524746.git.luto@kernel.org
arch/x86/kernel/reboot.c