x86/alternatives: Catch late X86_FEATURE modifiers
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 27 Mar 2024 15:43:14 +0000 (16:43 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 9 Apr 2024 16:03:53 +0000 (18:03 +0200)
commitee8962082a4413dba1a1b3d3d23490c5221f3b8a
tree8a618545042e590d8f3e4e5b02b4a7e2a27e1b28
parentfec50db7033ea478773b159e0e2efb135270e3b7
x86/alternatives: Catch late X86_FEATURE modifiers

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@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Srikanth Aithal <sraithal@amd.com>
Link: https://lore.kernel.org/r/20240327154317.29909-3-bp@alien8.de
arch/x86/include/asm/cpufeature.h
arch/x86/kernel/cpu/cpuid-deps.c