The upcoming Linux 7.1‑rc6 release will strip the official documentation for the clearcpuid boot option, signaling that the feature is now considered a debugging‑only aid. While the code remains unchanged, the change aims to curb misuse that can lead to unstable systems or misleading benchmark results.
Linux 7.1‑rc6 Removes Documentation for clearcpuid Kernel Parameter
The Linux kernel development tree is about to drop the man‑page entry for the clearcpuid= boot parameter in the 7.1‑rc6 release candidate. The change, submitted by Borislav Petkov and merged today, replaces the previous description with a brief warning that the option is "for debugging only and must not be used in production".
What clearcpuid= Does
clearcpuid= accepts a comma‑separated list of CPUID bits or feature flags taken from /proc/cpuinfo. When the kernel parses the parameter it masks the requested bits in the data structures that the kernel itself consults. In practice this means:
- The kernel will behave as if the specified CPU extensions are absent.
- User‑space programs that query the kernel via
sysfsorprctlwill see the feature as disabled. - Direct
cpuidinstructions executed by user‑space are not affected; those programs can still detect and use the feature unless they explicitly check the kernel‑provided view.
Because the kernel only hides the feature from its own code paths, the option is useful for isolating kernel‑level regressions or for creating controlled benchmark environments. A common use case is disabling AVX‑512 on a Skylake‑X system to compare performance of an application that falls back to AVX2 when AVX‑512 is unavailable.
Why the Documentation Is Being Pulled
The patch notes highlight two risks:
- False security guarantees – developers may assume that
clearcpuid=disables a feature globally, while in reality user‑space can still invoke the instruction directly. Benchmarks that rely on the kernel’s view may therefore report misleading numbers. - System instability – clearing bits that the kernel itself depends on (e.g.,
XSAVE,SMEP,SMAP) can cause kernel panics or subtle bugs. The kernel does not currently validate the safety of the requested mask.
Given these pitfalls, the kernel community has decided to keep the implementation but hide it behind a strong advisory. The new wording reads:
DO NOT USE this cmdline option in production – it is meant to be used only as a quick'n'dirty debugging aid to rule out a feature‑enabling code path as the culprit. If you use it, it'll taint the kernel.
Market and Supply‑Chain Implications
The removal of documentation does not affect the underlying code, but it may influence how OEMs and cloud providers configure their images.
- OEMs – Companies that ship Linux on servers or workstations often embed kernel command‑line options in firmware. The advisory discourages the inclusion of
clearcpuid=in production firmware images, reducing the risk of accidental feature suppression that could impact performance guarantees. - Cloud providers – Some hypervisors expose CPU feature masks to guests via
cpuidfiltering. The kernel’s own masking mechanism is now clearly marked as unsuitable for production, nudging providers toward hypervisor‑level controls instead of kernel boot parameters. - Benchmarking firms – Firms that publish performance numbers for CPUs will need to document the use of
clearcpuid=explicitly, as the lack of official docs may raise questions about reproducibility.
What Remains Unchanged
- The
clearcpuid=parsing code is still present inarch/x86/kernel/cpu/common.c. - Existing distributions that already ship the option will continue to accept it; the change only affects the kernel’s built‑in help output (
Documentation/admin‑guide/kernel-parameters.txt). - The kernel will still mark a tainted state (
Taint: P) when the option is used, preserving the ability to trace the cause of any later instability.
How to Access the Updated Information
The patch landed in the mainline tree on May 31, 2026. The updated kernel source can be viewed at the official Linux Git repository. The change is identified by commit c7f9a2e8b9 and is part of the 7.1‑rc6 tag.
Bottom Line
The clearcpuid boot option will continue to work, but developers and system integrators should treat it as a temporary debugging tool rather than a production‑grade feature‑control mechanism. The documentation removal is a clear signal from the kernel community that the risks outweigh the convenience for most real‑world deployments.
{{IMAGE:2}}

Comments
Please log in or register to join the discussion