Re: [PATCH 2/5] x86/alternatives: Catch late X86_FEATURE modifiers

From: Nikolay Borisov
Date: Wed Mar 27 2024 - 12:28:16 EST




On 27.03.24 г. 17:43 ч., Borislav Petkov wrote:
From: "Borislav Petkov (AMD)" <bp@xxxxxxxxx>

After alternatives have been patched, changes to the X86_FEATURE flags
won't take effect and could potentially even be wrong.

Warn about it.

This is something which has been long overdue.

Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>

nit: While cleaning this bit mind if you also switch alternatives_patched to a bool?