Re: [PATCH] x86/speculation: Fix incorrect MDS/TAA mitigation status

From: Waiman Long
Date: Fri Nov 15 2019 - 09:41:08 EST


On 11/14/19 5:09 PM, Borislav Petkov wrote:
> On Thu, Nov 14, 2019 at 04:58:24PM -0500, Waiman Long wrote:
>>> Maybe delay MDS mitigation print till TAA is evaluated.
>> I will see what can be done about that. However, this is not a critical
>> issue and I may not change it if there is no easy solution.
> Swapping the two mitigation selection calls in check_bugs() might
> work...

Not really. If taa_select_mitigation() goes first and with
"tsx_async_abort=off" only, the mds file is correct, but the taa file
will be wrong.

Cheers,
Longman