lab: update Arm lab docs
[csit.git] / docs / report / introduction / test_environment_sut_meltspec_tx2.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.44+
12
13   Checking for vulnerabilities on current system
14   Kernel is Linux 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:27:25 UTC 2021 aarch64
15   CPU is
16
17   Hardware check
18   * CPU vulnerability to the speculative execution attack variants
19     * Affected by CVE-2017-5753 (Spectre Variant 1, bounds check bypass): YES
20     * Affected by CVE-2017-5715 (Spectre Variant 2, branch target injection): YES
21     * Affected by CVE-2017-5754 (Variant 3, Meltdown, rogue data cache load): NO
22     * Affected by CVE-2018-3640 (Variant 3a, rogue system register read): NO
23     * Affected by CVE-2018-3639 (Variant 4, speculative store bypass): YES
24     * Affected by CVE-2018-3615 (Foreshadow (SGX), L1 terminal fault): NO
25     * Affected by CVE-2018-3620 (Foreshadow-NG (OS), L1 terminal fault): NO
26     * Affected by CVE-2018-3646 (Foreshadow-NG (VMM), L1 terminal fault): NO
27     * Affected by CVE-2018-12126 (Fallout, microarchitectural store buffer data sampling (MSBDS)): NO
28     * Affected by CVE-2018-12130 (ZombieLoad, microarchitectural fill buffer data sampling (MFBDS)): NO
29     * Affected by CVE-2018-12127 (RIDL, microarchitectural load port data sampling (MLPDS)): NO
30     * Affected by CVE-2019-11091 (RIDL, microarchitectural data sampling uncacheable memory (MDSUM)): NO
31     * Affected by CVE-2019-11135 (ZombieLoad V2, TSX Asynchronous Abort (TAA)): NO
32     * Affected by CVE-2018-12207 (No eXcuses, iTLB Multihit, machine check exception on page size changes (MCEPSC)): NO
33     * Affected by CVE-2020-0543 (Special Register Buffer Data Sampling (SRBDS)): NO
34
35   CVE-2017-5753 aka Spectre Variant 1, bounds check bypass
36   * Mitigated according to the /sys interface: YES (Mitigation: __user pointer sanitization)
37   * Kernel has array_index_mask_nospec: NO
38   * Kernel has the Red Hat/Ubuntu patch: NO
39   * Kernel has mask_nospec64 (arm64): NO
40   * Kernel has array_index_nospec (arm64): NO
41   * Checking count of LFENCE instructions following a jump in kernel... NO (only 0 jump-then-lfence instructions found, should be >= 30 (heuristic))
42   > STATUS: NOT VULNERABLE (Mitigation: __user pointer sanitization)
43
44   CVE-2017-5715 aka Spectre Variant 2, branch target injection
45   * Mitigated according to the /sys interface: NO (Vulnerable)
46   * Mitigation 1
47     * Kernel is compiled with IBRS support: YES
48       * IBRS enabled and active: NO
49     * Kernel is compiled with IBPB support: NO
50       * IBPB enabled and active: NO
51   * Mitigation 2
52     * Kernel has branch predictor hardening (arm): YES
53     * Kernel compiled with retpoline option: NO
54   > STATUS: NOT VULNERABLE (Branch predictor hardening mitigates the vulnerability)
55
56   CVE-2017-5754 aka Variant 3, Meltdown, rogue data cache load
57   * Mitigated according to the /sys interface: YES (Not affected)
58   * Kernel supports Page Table Isolation (PTI): YES
59     * PTI enabled and active: UNKNOWN (dmesg truncated, please reboot and relaunch this script)
60     * Reduced performance impact of PTI: NO (PCID/INVPCID not supported, performance impact of PTI will be significant)
61   * Running as a Xen PV DomU: NO
62   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
63
64   CVE-2018-3640 aka Variant 3a, rogue system register read
65   * CPU microcode mitigates the vulnerability: NO
66   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
67
68   CVE-2018-3639 aka Variant 4, speculative store bypass
69   * Mitigated according to the /sys interface: NO (Vulnerable)
70   * Kernel supports disabling speculative store bypass (SSB): YES (found in /proc/self/status)
71   * SSB mitigation is enabled and active: NO
72   > STATUS: VULNERABLE (Your CPU doesnt support SSBD)
73
74   CVE-2018-3615 aka Foreshadow (SGX), L1 terminal fault
75   * CPU microcode mitigates the vulnerability: N/A
76   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
77
78   CVE-2018-3620 aka Foreshadow-NG (OS), L1 terminal fault
79   * Mitigated according to the /sys interface: YES (Not affected)
80   * Kernel supports PTE inversion: NO
81   * PTE inversion enabled and active: NO
82   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
83
84   CVE-2018-3646 aka Foreshadow-NG (VMM), L1 terminal fault
85   * Information from the /sys interface: Not affected
86   * This system is a host running a hypervisor: NO
87   * Mitigation 1 (KVM)
88     * EPT is disabled: N/A (the kvm_intel module is not loaded)
89   * Mitigation 2
90     * L1D flush is supported by kernel: NO
91     * L1D flush enabled: NO
92     * Hardware-backed L1D flush supported: NO (flush will be done in software, this is slower)
93     * Hyper-Threading (SMT) is enabled: UNKNOWN
94   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
95
96   CVE-2018-12126 aka Fallout, microarchitectural store buffer data sampling (MSBDS)
97   * Mitigated according to the /sys interface: YES (Not affected)
98   * Kernel supports using MD_CLEAR mitigation: NO
99   * Kernel mitigation is enabled and active: NO
100   * SMT is either mitigated or disabled: NO
101   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
102
103   CVE-2018-12130 aka ZombieLoad, microarchitectural fill buffer data sampling (MFBDS)
104   * Mitigated according to the /sys interface: YES (Not affected)
105   * Kernel supports using MD_CLEAR mitigation: NO
106   * Kernel mitigation is enabled and active: NO
107   * SMT is either mitigated or disabled: NO
108   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
109
110   CVE-2018-12127 aka RIDL, microarchitectural load port data sampling (MLPDS)
111   * Mitigated according to the /sys interface: YES (Not affected)
112   * Kernel supports using MD_CLEAR mitigation: NO
113   * Kernel mitigation is enabled and active: NO
114   * SMT is either mitigated or disabled: NO
115   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
116
117   CVE-2019-11091 aka RIDL, microarchitectural data sampling uncacheable memory (MDSUM)
118   * Mitigated according to the /sys interface: YES (Not affected)
119   * Kernel supports using MD_CLEAR mitigation: NO
120   * Kernel mitigation is enabled and active: NO
121   * SMT is either mitigated or disabled: NO
122   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
123
124   CVE-2019-11135 aka ZombieLoad V2, TSX Asynchronous Abort (TAA)
125   * Mitigated according to the /sys interface: YES (Not affected)
126   * TAA mitigation is supported by kernel: YES (found tsx_async_abort in kernel image)
127   * TAA mitigation enabled and active: NO
128   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
129
130   CVE-2018-12207 aka No eXcuses, iTLB Multihit, machine check exception on page size changes (MCEPSC)
131   * Mitigated according to the /sys interface: YES (Not affected)
132   * This system is a host running a hypervisor: NO
133   * iTLB Multihit mitigation is supported by kernel: YES (found itlb_multihit in kernel image)
134   * iTLB Multihit mitigation enabled and active: NO
135   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
136
137   CVE-2020-0543 aka Special Register Buffer Data Sampling (SRBDS)
138   * Mitigated according to the /sys interface: YES (Not affected)
139   * SRBDS mitigation control is supported by the kernel: NO
140   * SRBDS mitigation control is enabled and active: NO
141   > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
142
143   > SUMMARY: CVE-2017-5753:OK CVE-2017-5715:OK CVE-2017-5754:OK CVE-2018-3640:OK CVE-2018-3639:KO 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 CVE-2020-0543:OK