]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/spec: Also print IBRS if IBPB is disabled.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 25 Jan 2018 22:10:36 +0000 (17:10 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Sat, 27 Jan 2018 00:17:33 +0000 (16:17 -0800)
commit85d09a7c4b7a56324af79cf332688fa06c95cdf2
tree05e78c57c0106ffc8d8bccc1e960f4b7d9493c40
parent8ab025dbfd1646a57303eaeb3ea198d231fd5b65
x86/spec: Also print IBRS if IBPB is disabled.

If ones disables ibpb_enabled the 'spectre_v2' sysfs
shows "Vulnerable" but it should say "IBRS"

This fixes it.

OraBug: 27448313
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/kernel/cpu/bugs_64.c