]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/spectre: Update sysctl values if toggled only by set_{ibrs,ibpb}_disabled
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 1 Feb 2018 16:45:41 +0000 (11:45 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 8 Feb 2018 18:15:03 +0000 (10:15 -0800)
commit96c806884414eac9e46fafedf9ffa3da1c727eb2
tree99eaa19b209432f275dc61dfdc637ec72a4a8425
parent0c2b670605d6ae8df9abdae476d676f6a9ebd6e5
x86/spectre: Update sysctl values if toggled only by set_{ibrs,ibpb}_disabled

As otherwise we will report the wrong values in the
/sys/kernel/debug/x86/{ibrs,ipbp}_enabled at first
bootup - that is if you have 'noibrs' on the command line.

Orabug: 27477743
CVE: CVE-2017-5715

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Pavel Tatashin <pasha.tatashin@oracle.com>
arch/x86/include/asm/spec_ctrl.h
arch/x86/kernel/cpu/spec_ctrl.c