Page MenuHomeFreeBSD

amd64: properly recalculate mitigations knobs after resume
ClosedPublic

Authored by kib on Mar 17 2023, 7:51 PM.
Tags
None
Referenced Files
F157798339: D39146.id119052.diff
Mon, May 25, 7:44 AM
F157769596: D39146.id.diff
Mon, May 25, 12:00 AM
F157741211: D39146.id119027.diff
Sun, May 24, 5:40 PM
Unknown Object (File)
Thu, May 21, 1:58 PM
Unknown Object (File)
Sun, May 17, 11:42 PM
Unknown Object (File)
Sun, May 17, 11:42 PM
Unknown Object (File)
Sun, May 17, 11:42 PM
Unknown Object (File)
Fri, May 15, 12:14 PM
Subscribers

Details

Summary
Revision r333125 AKA 986c4ca38772f72 forced clear cpu_stdext_feature3
on suspend, since at that time microcode update was not reloaded
early on resume. Then, revision 8405c63dadaf started re-reading
cpu_stdext_feature3 again. Since modern CPUs do not require mitigations
from the Skylake era, this went unnoticed for some time.

Keep zeroing cpu_stdext_feature3 on suspend, but re-read it in more
controlled way on resume after microcode is reloaded, and recalculate
active workarounds based on actual microcode capabilities.

Reported and tested by: romain

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable