]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpu/AMD: Apply the Erratum 688 fix when the BIOS doesn't
authorBorislav Petkov <bp@suse.de>
Sun, 22 Oct 2017 10:47:31 +0000 (12:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 22 Oct 2017 11:06:02 +0000 (13:06 +0200)
commit89260a85a1c64a6e5d40a92c68799e818a9775d2
tree989b48bdcfaf3dfbe900c38dd15f9d91f00e3c8c
parente87006a6583ab7e6854c4789d08a9bf1c00316e0
x86/cpu/AMD: Apply the Erratum 688 fix when the BIOS doesn't

Some F14h machines have an erratum which, "under a highly specific
and detailed set of internal timing conditions" can lead to skipping
instructions and RIP corruption.

Add the fix for those machines when their BIOS doesn't apply it or
there simply isn't BIOS update for them.

Tested-by: <mirh@protonmail.ch>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sherry Hurwitz <sherry.hurwitz@amd.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
Link: http://lkml.kernel.org/r/20171022104731.28249-1-bp@alien8.de
Link: https://bugzilla.kernel.org/show_bug.cgi?id=197285
[ Added pr_info() that we activated the workaround. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/amd_nb.c