Re: [PATCH v5 02/16] x86/bugs: Restructure TAA mitigation

Borislav Petkov
2025-04-22T08:56:07Z

On Sun, Apr 20, 2025 at 09:03:25PM +0000, Kaplan, David wrote:
> No, because taa_vulnerable() requires both X86_BUG_TAA and X86_FEATURE_RTM.
>
> In taa_select_mitigation() there is a difference depending on which of these doesn't exist which sets the mitigation to either OFF (if unaffected) or TSX_DISABLED (if no RTM).
>

Yah, another mis-designed thing from back then. If RTM is disabled, then
TAA is mitigated. Period.

And us making how a vuln is mitigated into a separate thing is
unnecessary complication IMO. IOW, TAA_MITIGATION_TSX_DISABLED shouldn've
been done, in hindsight.

But whatever, another topic.

Thx.

--
Regards/Gruss,
Boris.