]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 16 Nov 2017 13:23:29 +0000 (11:23 -0200)
commit58ccfdba991ca6900eebf78747bab5298675bd9b
treee3dd2c406e53c94b68fc96de15132e8b919e833c
parentac36febe2803a5cb175dbdddc04bcd6882638fbd
x86/cpu/AMD: Apply the Erratum 688 fix when the BIOS doesn't

BugLink: http://bugs.launchpad.net/bugs/1731961
commit bfc1168de949cd3e9ca18c3480b5085deff1ea7c upstream.

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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/x86/kernel/amd_nb.c