]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Documentation/arch/x86: Hide clearcpuid=
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 20 May 2026 20:25:07 +0000 (13:25 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 26 May 2026 03:37:20 +0000 (05:37 +0200)
commit80501dff814eeccebf44a59340c3fe3a205eb120
tree149f6a19466633c56c500377ea557e89996f5e0e
parente7ae89a0c97ce2b68b0983cd01eda67cf373517d
Documentation/arch/x86: Hide clearcpuid=

This option was never meant to be used in production because it solely
clears the X86_FEATURE kernel-internal representation of what CPUID bits
it has detected and doesn't do any *proper* feature disablement like
clearing CR4.CET in the user shadow stack case, for example.

So remove its documentation so that it doesn't get used in production
and people get silly ideas. It is meant strictly for debugging; and if
a chicken bit for properly disabling a feature is warranted, then that
would need proper enablement.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Mathias Krause <minipli@grsecurity.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://patch.msgid.link/20260520202508.160112-1-bp@kernel.org
Documentation/admin-guide/kernel-parameters.txt
Documentation/arch/x86/cpuinfo.rst