https://github.com/torvalds/linux
Revision 192d1dccbfc5b901b66527df9df80304693cf06e authored by Andy Lutomirski on 29 September 2016, 19:48:11 UTC, committed by Thomas Gleixner on 30 September 2016, 10:37:40 UTC
The condition for reading CR4 was wrong: there are some CPUs with
CPUID but not CR4.  Rather than trying to make the condition exact,
use __read_cr4_safe().

Fixes: 18bc7bd523e0 ("x86/boot: Synchronize trampoline_cr4_features and mmu_cr4_features directly")
Reported-by: david@saggiorato.net
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Link: http://lkml.kernel.org/r/8c453a61c4f44ab6ff43c29780ba04835234d2e5.1475178369.git.luto@kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

1 parent e1bfc11
History
Tip revision: 192d1dccbfc5b901b66527df9df80304693cf06e authored by Andy Lutomirski on 29 September 2016, 19:48:11 UTC
x86/boot: Fix another __read_cr4() case on 486
Tip revision: 192d1dc
File Mode Size
.gitignore -rw-r--r-- 44 bytes
Kconfig -rw-r--r-- 2.6 KB
Makefile -rw-r--r-- 3.7 KB
system_certificates.S -rw-r--r-- 917 bytes
system_keyring.c -rw-r--r-- 6.8 KB

back to top