]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitbfc1168de949cd3e9ca18c3480b5085deff1ea7c
tree989b48bdcfaf3dfbe900c38dd15f9d91f00e3c8c
parentce56a86e2ade45d052b3228cdfebe913a1ae7381
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