public inbox for linux-security-module@vger.kernel.org
 help / color / mirror / Atom feed
* Subject: x86/msr + lockdown: allow access to **documented** RAPL/TCC controls under Secure Boot
@ 2026-03-09 12:24 Artem S. Tashkinov
  2026-03-09 15:13 ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Artem S. Tashkinov @ 2026-03-09 12:24 UTC (permalink / raw)
  To: x86; +Cc: Linux Kernel Mailing List, linux-pm, linux-efi,
	linux-security-module

Hello,

When Secure Boot is enabled and kernel lockdown is active, the x86 MSR 
driver blocks all raw MSR access from user space via `/dev/cpu/*/msr`. 
This effectively prevents legitimate use of documented CPU power and 
thermal management interfaces such as RAPL power limits (PL1/PL2) and 
the TCC/TjOffset control. These registers are part of Intel’s 
**publicly** documented architectural interface and have been stable 
across many generations of processors.

As a result, under Secure Boot Linux users lose the ability to read or 
adjust **standard** power-management controls that remain available 
through equivalent tooling on other operating systems.

The current all-or-nothing restriction appears broader than necessary 
for the stated goal of protecting kernel integrity. MSRs associated with 
power limits and TCC offset are not privileged debugging or microcode 
interfaces but standard hardware configuration knobs intended for 
platform power and thermal management.

It would be useful if the kernel either allowed access to a small 
whitelist of such documented registers under lockdown or exposed a 
mediated kernel interface for adjusting them. Without such a mechanism, 
Secure Boot effectively disables legitimate and widely used 
power/thermal tuning functionality on modern Intel laptops.

Most (if not all) Intel laptops don't expose or allow to configure 
PL1/PL2 limits in BIOS/EFI either.

This is being tracked here: 
https://bugzilla.kernel.org/show_bug.cgi?id=221192

Regards,
Artem

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-11 12:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 12:24 Subject: x86/msr + lockdown: allow access to **documented** RAPL/TCC controls under Secure Boot Artem S. Tashkinov
2026-03-09 15:13 ` Rafael J. Wysocki
2026-03-11 12:18   ` bauen1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox