x86/spec-ctrl: Mitigate TAA after S3 resume

The user chosen setting for MSR_TSX_CTRL needs restoring after S3.

All APs get the correct setting via start_secondary(), but the BSP was missed
out.

This is XSA-377 / CVE-2021-28690.

Fixes: 8c4330818f ("x86/spec-ctrl: Mitigate the TSX Asynchronous Abort sidechannel")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2021-06-08 17:43:06 +01:00
1 parent 45f59ed886
commit 8cf276cb2e
1 file changed
+2
+2
View File
@@ -288,6 +288,8 @@ static int enter_state(u32 state)
microcode_update_one();
tsx_init(); /* Needs microcode. May change HLE/RTM feature bits. */
if ( !recheck_cpu_features(0) )
panic("Missing previously available feature(s)\n");
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.