]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86: cpu: microcode: fix late loading SpectreV2 bugs eval
authorMihai Carabas <mihai.carabas@oracle.com>
Mon, 18 Mar 2019 14:07:28 +0000 (16:07 +0200)
committerBrian Maly <brian.maly@oracle.com>
Tue, 26 Mar 2019 20:33:08 +0000 (16:33 -0400)
commit7059f245ff33a32427fe341a49096917eda86bbe
treefdf10286ca7af342badb3e1f2ef8941ca8c2386d
parent3d71c94a6b65a1af82dd08a4cbd53ddc9ea5ff90
x86: cpu: microcode: fix late loading SpectreV2 bugs eval

On microcode reloading we have to update the status of SpectreV2 mitigations if
they were not present at init time: we run the logic of selecting the default
mitigation in auto mode.

It was not possible to use the same functions as most of the logic is using
boot_command_line which is in init data and dropped after booting. Also we had
to drop some of the __init clauses on some functions we use in order to not
duplicate them.

This patch is not addressing alternative instructions related to SpectreV2. The
only one that we found so far is STUFF_RSB macro, and it will be addressed
later.

Orabug: 29336760

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kernel/cpu/bugs_64.c
arch/x86/kernel/cpu/scattered.c