Linux x86 fixes address a bug that could disable Branch History Injection mitigation on some Intel, ARM and AMD systems, including kernels built without KVM support.
A batch of Linux x86 fixes sent ahead of the Linux 7.4-rc2 release includes a correction for inconsistent Branch History Injection (BHI) mitigation selection. The fix is scheduled to be merged before Linux 7.4-rc2.
The issue could automatically disable BHI mitigation when the kernel was built without KVM virtualization support, even though user-to-kernel exploit vectors could still exist. The same effect could occur with the mitigations=auto,no_guest_host boot setting.
The correction is also marked for backporting to supported Linux kernel patch series dating back to 2022, when BHI was introduced. The pull request includes additional x86 changes for AMD RMPOPT and SEV-SNP handling.