Report: Add RC1 data
[csit.git] / docs / report / introduction / test_environment_sut_meltspec_hsw.rst
1 Spectre and Meltdown Checks
2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3
4 Following section displays the output of a running shell script to tell if
5 system is vulnerable against the several "speculative execution" CVEs that were
6 made public in 2018. Script is available on `Spectre & Meltdown Checker Github
7 <https://github.com/speed47/spectre-meltdown-checker>`_.
8
9 ::
10
11   Spectre and Meltdown mitigation detection tool v0.43
12
13   awk: cannot open bash (No such file or directory)
14   Checking for vulnerabilities on current system
15   Kernel is Linux 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64
16   CPU is Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz
17
18   Hardware check
19   * Hardware support (CPU microcode) for mitigation techniques
20     * Indirect Branch Restricted Speculation (IBRS)
21       * SPEC_CTRL MSR is available: YES
22       * CPU indicates IBRS capability: YES (SPEC_CTRL feature bit)
23     * Indirect Branch Prediction Barrier (IBPB)
24       * PRED_CMD MSR is available: YES
25       * CPU indicates IBPB capability: YES (SPEC_CTRL feature bit)
26     * Single Thread Indirect Branch Predictors (STIBP)
27       * SPEC_CTRL MSR is available: YES
28       * CPU indicates STIBP capability: YES (Intel STIBP feature bit)
29     * Speculative Store Bypass Disable (SSBD)
30       * CPU indicates SSBD capability: YES (Intel SSBD)
31     * L1 data cache invalidation
32       * FLUSH_CMD MSR is available: YES
33       * CPU indicates L1D flush capability: YES (L1D flush feature bit)
34     * Microarchitectural Data Sampling
35       * VERW instruction is available: YES (MD_CLEAR feature bit)
36     * Enhanced IBRS (IBRS_ALL)
37       * CPU indicates ARCH_CAPABILITIES MSR availability: NO
38       * ARCH_CAPABILITIES MSR advertises IBRS_ALL capability: NO
39     * CPU explicitly indicates not being vulnerable to Meltdown/L1TF (RDCL_NO): NO
40     * CPU explicitly indicates not being vulnerable to Variant 4 (SSB_NO): NO
41     * CPU/Hypervisor indicates L1D flushing is not necessary on this system: NO
42     * Hypervisor indicates host CPU might be vulnerable to RSB underflow (RSBA): NO
43     * CPU explicitly indicates not being vulnerable to Microarchitectural Data Sampling (MDS_NO): NO
44     * CPU explicitly indicates not being vulnerable to TSX Asynchronous Abort (TAA_NO): NO
45     * CPU explicitly indicates not being vulnerable to iTLB Multihit (PSCHANGE_MSC_NO): NO
46     * CPU explicitly indicates having MSR for TSX control (TSX_CTRL_MSR): NO
47     * CPU supports Transactional Synchronization Extensions (TSX): NO
48     * CPU supports Software Guard Extensions (SGX): NO
49     * CPU microcode is known to cause stability problems: NO (model 0x3f family 0x6 stepping 0x2 ucode 0x43 cpuid 0x306f2)
50     * CPU microcode is the latest known available version: awk: cannot open bash (No such file or directory)
51   UNKNOWN (latest microcode version for your CPU model is unknown)
52   * CPU vulnerability to the speculative execution attack variants
53     * Vulnerable to CVE-2017-5753 (Spectre Variant 1, bounds check bypass): YES
54     * Vulnerable to CVE-2017-5715 (Spectre Variant 2, branch target injection): YES
55     * Vulnerable to CVE-2017-5754 (Variant 3, Meltdown, rogue data cache load): YES
56     * Vulnerable to CVE-2018-3640 (Variant 3a, rogue system register read): YES
57     * Vulnerable to CVE-2018-3639 (Variant 4, speculative store bypass): YES
58     * Vulnerable to CVE-2018-3615 (Foreshadow (SGX), L1 terminal fault): NO
59     * Vulnerable to CVE-2018-3620 (Foreshadow-NG (OS), L1 terminal fault): YES
60     * Vulnerable to CVE-2018-3646 (Foreshadow-NG (VMM), L1 terminal fault): YES
61     * Vulnerable to CVE-2018-12126 (Fallout, microarchitectural store buffer data sampling (MSBDS)): YES
62     * Vulnerable to CVE-2018-12130 (ZombieLoad, microarchitectural fill buffer data sampling (MFBDS)): YES
63     * Vulnerable to CVE-2018-12127 (RIDL, microarchitectural load port data sampling (MLPDS)): YES
64     * Vulnerable to CVE-2019-11091 (RIDL, microarchitectural data sampling uncacheable memory (MDSUM)): YES
65     * Vulnerable to CVE-2019-11135 (ZombieLoad V2, TSX Asynchronous Abort (TAA)): NO
66     * Vulnerable to CVE-2018-12207 (No eXcuses, iTLB Multihit, machine check exception on page size changes (MCEPSC)): YES
67
68   CVE-2017-5753 aka Spectre Variant 1, bounds check bypass
69   * Mitigated according to the /sys interface: YES (Mitigation: usercopy/swapgs barriers and __user pointer sanitization)
70   * Kernel has array_index_mask_nospec: YES (1 occurrence(s) found of x86 64 bits array_index_mask_nospec())
71   * Kernel has the Red Hat/Ubuntu patch: NO
72   * Kernel has mask_nospec64 (arm64): NO
73   > STATUS: NOT VULNERABLE (Mitigation: usercopy/swapgs barriers and __user pointer sanitization)
74
75   CVE-2017-5715 aka Spectre Variant 2, branch target injection
76   * Mitigated according to the /sys interface: YES (Mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, RSB filling)
77   * Mitigation 1
78     * Kernel is compiled with IBRS support: YES
79       * IBRS enabled and active: YES (for firmware code only)
80     * Kernel is compiled with IBPB support: YES
81       * IBPB enabled and active: YES
82   * Mitigation 2
83     * Kernel has branch predictor hardening (arm): NO
84     * Kernel compiled with retpoline option: YES
85       * Kernel compiled with a retpoline-aware compiler: YES (kernel reports full retpoline compilation)
86   > STATUS: NOT VULNERABLE (Full retpoline + IBPB are mitigating the vulnerability)
87
88   CVE-2017-5754 aka Variant 3, Meltdown, rogue data cache load
89   * Mitigated according to the /sys interface: YES (Mitigation: PTI)
90   * Kernel supports Page Table Isolation (PTI): YES
91     * PTI enabled and active: YES
92     * Reduced performance impact of PTI: YES (CPU supports INVPCID, performance impact of PTI will be greatly reduced)
93   * Running as a Xen PV DomU: NO
94   > STATUS: NOT VULNERABLE (Mitigation: PTI)
95
96   CVE-2018-3640 aka Variant 3a, rogue system register read
97   * CPU microcode mitigates the vulnerability: YES
98   > STATUS: NOT VULNERABLE (your CPU microcode mitigates the vulnerability)
99
100   CVE-2018-3639 aka Variant 4, speculative store bypass
101   * Mitigated according to the /sys interface: YES (Mitigation: Speculative Store Bypass disabled via prctl and seccomp)
102   * Kernel supports disabling speculative store bypass (SSB): YES (found in /proc/self/status)
103   * SSB mitigation is enabled and active: YES (per-thread through prctl)
104   * SSB mitigation currently active for selected processes: YES (systemd-journald systemd-logind systemd-networkd systemd-resolved systemd-timesyncd systemd-udevd)
105   > STATUS: NOT VULNERABLE (Mitigation: Speculative Store Bypass disabled via prctl and seccomp)
106
107   CVE-2018-3615 aka Foreshadow (SGX), L1 terminal fault
108   * CPU microcode mitigates the vulnerability: N/A
109   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
110
111   CVE-2018-3620 aka Foreshadow-NG (OS), L1 terminal fault
112   * Mitigated according to the /sys interface: YES (Mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled)
113   * Kernel supports PTE inversion: YES (found in kernel image)
114   * PTE inversion enabled and active: YES
115   > STATUS: NOT VULNERABLE (Mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled)
116
117   CVE-2018-3646 aka Foreshadow-NG (VMM), L1 terminal fault
118   * Information from the /sys interface: Mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
119   * This system is a host running a hypervisor: NO
120   * Mitigation 1 (KVM)
121     * EPT is disabled: NO
122   * Mitigation 2
123     * L1D flush is supported by kernel: YES (found flush_l1d in /proc/cpuinfo)
124     * L1D flush enabled: YES (conditional flushes)
125     * Hardware-backed L1D flush supported: YES (performance impact of the mitigation will be greatly reduced)
126     * Hyper-Threading (SMT) is enabled: NO
127   > STATUS: NOT VULNERABLE (this system is not running a hypervisor)
128
129   CVE-2018-12126 aka Fallout, microarchitectural store buffer data sampling (MSBDS)
130   * Mitigated according to the /sys interface: YES (Mitigation: Clear CPU buffers; SMT disabled)
131   * Kernel supports using MD_CLEAR mitigation: YES (md_clear found in /proc/cpuinfo)
132   * Kernel mitigation is enabled and active: YES
133   * SMT is either mitigated or disabled: YES
134   > STATUS: NOT VULNERABLE (Your microcode and kernel are both up to date for this mitigation, and mitigation is enabled)
135
136   CVE-2018-12130 aka ZombieLoad, microarchitectural fill buffer data sampling (MFBDS)
137   * Mitigated according to the /sys interface: YES (Mitigation: Clear CPU buffers; SMT disabled)
138   * Kernel supports using MD_CLEAR mitigation: YES (md_clear found in /proc/cpuinfo)
139   * Kernel mitigation is enabled and active: YES
140   * SMT is either mitigated or disabled: YES
141   > STATUS: NOT VULNERABLE (Your microcode and kernel are both up to date for this mitigation, and mitigation is enabled)
142
143   CVE-2018-12127 aka RIDL, microarchitectural load port data sampling (MLPDS)
144   * Mitigated according to the /sys interface: YES (Mitigation: Clear CPU buffers; SMT disabled)
145   * Kernel supports using MD_CLEAR mitigation: YES (md_clear found in /proc/cpuinfo)
146   * Kernel mitigation is enabled and active: YES
147   * SMT is either mitigated or disabled: YES
148   > STATUS: NOT VULNERABLE (Your microcode and kernel are both up to date for this mitigation, and mitigation is enabled)
149
150   CVE-2019-11091 aka RIDL, microarchitectural data sampling uncacheable memory (MDSUM)
151   * Mitigated according to the /sys interface: YES (Mitigation: Clear CPU buffers; SMT disabled)
152   * Kernel supports using MD_CLEAR mitigation: YES (md_clear found in /proc/cpuinfo)
153   * Kernel mitigation is enabled and active: YES
154   * SMT is either mitigated or disabled: YES
155   > STATUS: NOT VULNERABLE (Your microcode and kernel are both up to date for this mitigation, and mitigation is enabled)
156
157   CVE-2019-11135 aka ZombieLoad V2, TSX Asynchronous Abort (TAA)
158   * Mitigated according to the /sys interface: YES (Not affected)
159   * TAA mitigation is supported by kernel: YES (found tsx_async_abort in kernel image)
160   * TAA mitigation enabled and active: NO
161   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
162
163   CVE-2018-12207 aka No eXcuses, iTLB Multihit, machine check exception on page size changes (MCEPSC)
164   * Mitigated according to the /sys interface: YES (KVM: Mitigation: Split huge pages)
165   * This system is a host running a hypervisor: NO
166   * iTLB Multihit mitigation is supported by kernel: YES (found itlb_multihit in kernel image)
167   * iTLB Multihit mitigation enabled and active: YES (KVM: Mitigation: Split huge pages)
168   > STATUS: NOT VULNERABLE (this system is not running a hypervisor)
169
170   > SUMMARY: CVE-2017-5753:OK CVE-2017-5715:OK CVE-2017-5754:OK CVE-2018-3640:OK CVE-2018-3639:OK CVE-2018-3615:OK CVE-2018-3620:OK CVE-2018-3646:OK CVE-2018-12126:OK CVE-2018-12130:OK CVE-2018-12127:OK CVE-2019-11091:OK CVE-2019-11135:OK CVE-2018-12207:OK