]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
x86/spectre_v2: Print what options are available.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 2 Feb 2018 04:22:46 +0000 (23:22 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 8 Feb 2018 18:15:41 +0000 (10:15 -0800)
Orabug: 27477743
CVE: CVE-2017-5715

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
arch/x86/kernel/cpu/bugs_64.c

index dd4581ef6acfbf61d073e4100d999f3944ccfcbe..763ada9dcab0146bb6d14b2b409fde0594e78fbb 100644 (file)
@@ -330,6 +330,10 @@ retpoline_auto:
                mode = retp_compiler() ? SPECTRE_V2_RETPOLINE_GENERIC :
                                         SPECTRE_V2_RETPOLINE_MINIMAL;
 
+               pr_info("Options: %s%s\n",
+                       check_ibrs_inuse() ? "IBRS " : "",
+                       retp_compiler() ? "retpoline" : "");
+
                /* IBRS available. Lets see if we are compiled with retpoline. */
                if (check_ibrs_inuse() && !retp_compiler()) {
                        mode = SPECTRE_V2_IBRS;