HomeFreeBSD

IBRS support, AKA Spectre hardware mitigation.

Description

IBRS support, AKA Spectre hardware mitigation.

It is coded according to the Intel document 336996-001, reading of the
patches posted on lkml, and some additional consultations with Intel.

For existing processors, you need a microcode update which adds IBRS
CPU features, and to manually enable it by setting the tunable/sysctl
hw.ibrs_disable to 0. Current status can be checked in sysctl
hw.ibrs_active. The mitigation might be inactive if the CPU feature
is not patched in, or if CPU reports that IBRS use is not required, by
IA32_ARCH_CAP_IBRS_ALL bit.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D14029

Details

Provenance
kibAuthored on
Differential Revision
D14029: Spectre AKA IBRS
Parents
rS328624: Do not enable PTI when IA32_ARCH_CAP_RDCL_NO bit is set.
Branches
Unknown
Tags
Unknown