Spectre and Meltdown Vulnerability Fixes
Patches are available to remedy these Spectre and Meltdown vulnerabilities:
- CVE-2017-5753: Bounds check bypass (Spectre variant 1)
- CVE-2017-5715: Branch target injection (Spectre variant 2)
- CVE-2017-5754: Rogue data cache load (Meltdown)
- This issue applies to Cumulus Linux 3.0.0 - 3.7.12 ESR only. Cumulus Linux 4.0.0 and later enable the Spectre and Meltdown patches by default.
NVIDIA has tested and verified that the patches are available for the following platforms; the resolution listed below applies to all supported platforms:
- Dell Z9100-ON
- Dell Z9264F-ON
- Edgecore AS6712-32X
- Edgecore AS5712-54X
- HPE Altoline 6940
- HPE Altoline 6920
- NVIDIA Spectrum
NVIDIA applied the patches to the Cumulus Linux 3.7.4 kernel and later releases, but disabled them by default in the 3.7.x branch. NVIDIA disabled them because, although NVIDIA has done extensive testing, this fix includes many kernel changes and can impact switch performance. If you wish, you can leave this fix disabled.
You enable the patches by configuring some kernel command line options in GRUB configuration files, rebooting the switch, then updating your switch BIOS.
The command line option is in the
/etc/default/grub.d/00-spectre-meltdown.cfg file. If you installed Cumulus Linux 3.7.4 from the binary installation image, the command line option also appears in
To apply the patches, do the following:
/etc/default/grub.d/00-spectre-meltdown.cfgfile as follows:
cumulus@switch:~$ sed -i "s/GRUB_CMDLINE_LINUX_DEFAULT/#GRUB_CMDLINE_LINUX_DEFAULT/" /etc/default/grub.d/00-spectre-meltdown.cfg
If you did a binary install of Cumulus Linux 3.7.4 or later, you also must edit
cumulus@switch:~$ sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet noibrs noibpb nolfence spectre_v2=off nopti"/#GRUB_CMDLINE_LINUX_DEFAULT="quiet noibrs noibpb nolfence spectre_v2=off nopti"\ GRUB_CMDLINE_LINUX_DEFAULT="quiet"/' /etc/default/grub
Reboot the switch.
Update the BIOS on your switch. For information on how to do this, contact your switch manufacturer.
Verify that the GRUB option was successfully enabled, check
/proc/cmdlineto make sure the following does not exist:
cumulus@switch:~$ grep "noibrs noibpb nolfence spectre_v2=off nopti" /proc/cmdline cumulus@switch:~$
You can also verify that the GRUB option was successfully enabled by checking:
cumulus@switch:~$ rgrep . /sys/devices/system/cpu/vulnerabilities /sys/devices/system/cpu/vulnerabilities/spectre_v1:Mitigation: lfence /sys/devices/system/cpu/vulnerabilities/spectre_v2:Mitigation: IBRS IBPB /sys/devices/system/cpu/vulnerabilities/meltdown:Mitigation: PTI cumulus@switch:~$